]>
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(); | |
b0f7404b RD |
750 | if (arr) |
751 | return wxArrayString2PyList_helper(*arr); | |
752 | else | |
753 | return PyList_New(0); | |
d55e5bfc RD |
754 | } |
755 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
756 | wxArrayString* arr = self->GetFacenames(); | |
b0f7404b RD |
757 | if (arr) |
758 | return wxArrayString2PyList_helper(*arr); | |
759 | else | |
760 | return PyList_New(0); | |
d55e5bfc RD |
761 | } |
762 | ||
763 | ||
79fccf9d RD |
764 | wxLocale *new_wxLocale(int language,int flags){ |
765 | if (language == -1) | |
766 | return new wxLocale(); | |
767 | else | |
768 | return new wxLocale(language, flags); | |
769 | } | |
d55e5bfc RD |
770 | |
771 | #include "wx/wxPython/pydrawxxx.h" | |
772 | ||
c24da6d6 | 773 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d55e5bfc RD |
774 | wxColour col; |
775 | self->GetPixel(x, y, &col); | |
776 | return col; | |
777 | } | |
c24da6d6 | 778 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d55e5bfc RD |
779 | wxColour col; |
780 | self->GetPixel(pt, &col); | |
781 | return col; | |
782 | } | |
783 | ||
784 | SWIGSTATICINLINE(double) | |
785 | SWIG_AsDouble(PyObject *obj) | |
786 | { | |
787 | if (PyNumber_Check(obj)) | |
788 | return PyFloat_AsDouble(obj); | |
789 | else { | |
790 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
791 | obj->ob_type->tp_name); | |
792 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
793 | Py_DECREF(errmsg); | |
794 | return 0; | |
795 | } | |
796 | } | |
797 | ||
798 | ||
799 | SWIGSTATICINLINE(int) | |
800 | SWIG_CheckDouble(PyObject* obj) | |
801 | { | |
802 | SWIG_AsDouble(obj); | |
803 | if (PyErr_Occurred()) { | |
804 | PyErr_Clear(); | |
805 | return 0; | |
806 | } else { | |
807 | return 1; | |
808 | } | |
809 | } | |
810 | ||
811 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
812 | wxRect rv; | |
813 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
814 | return rv; | |
815 | } | |
816 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
817 | wxRect rect; | |
818 | self->GetClippingBox(rect); | |
819 | return rect; | |
820 | } | |
821 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
822 | wxArrayInt widths; | |
823 | self->GetPartialTextExtents(text, widths); | |
824 | return widths; | |
825 | } | |
c24da6d6 RD |
826 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
827 | self->SetLogicalOrigin(point.x, point.y); | |
828 | } | |
829 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
830 | self->SetDeviceOrigin(point.x, point.y); | |
831 | } | |
832 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
833 | self->CalcBoundingBox(point.x, point.y); | |
834 | } | |
d55e5bfc RD |
835 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
836 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
837 | } | |
838 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
839 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
840 | } | |
841 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
842 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
843 | } | |
844 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
845 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
846 | } | |
847 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
848 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
849 | } | |
850 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
851 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
852 | } | |
853 | ||
854 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
855 | *x1 = dc->MinX(); | |
856 | *y1 = dc->MinY(); | |
857 | *x2 = dc->MaxX(); | |
858 | *y2 = dc->MaxY(); | |
859 | } | |
860 | ||
861 | ||
862 | #include <wx/dcbuffer.h> | |
863 | ||
864 | ||
865 | #include <wx/dcps.h> | |
866 | ||
867 | ||
868 | #include <wx/metafile.h> | |
869 | ||
870 | ||
871 | ||
872 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
873 | self->AddColour(name, wxColour(red, green, blue)); | |
874 | } | |
875 | ||
876 | #include <wx/effects.h> | |
877 | ||
878 | #ifdef __cplusplus | |
879 | extern "C" { | |
880 | #endif | |
881 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
882 | PyObject *resultobj; | |
883 | wxGDIObject *result; | |
884 | char *kwnames[] = { | |
885 | NULL | |
886 | }; | |
887 | ||
888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
889 | { | |
0439c23b | 890 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
892 | result = (wxGDIObject *)new wxGDIObject(); | |
893 | ||
894 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 895 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
896 | } |
897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); | |
898 | return resultobj; | |
899 | fail: | |
900 | return NULL; | |
901 | } | |
902 | ||
903 | ||
904 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject *resultobj; | |
906 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
907 | PyObject * obj0 = 0 ; | |
908 | char *kwnames[] = { | |
909 | (char *) "self", NULL | |
910 | }; | |
911 | ||
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
915 | { | |
916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
917 | delete arg1; | |
918 | ||
919 | wxPyEndAllowThreads(__tstate); | |
920 | if (PyErr_Occurred()) SWIG_fail; | |
921 | } | |
922 | Py_INCREF(Py_None); resultobj = Py_None; | |
923 | return resultobj; | |
924 | fail: | |
925 | return NULL; | |
926 | } | |
927 | ||
928 | ||
929 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
930 | PyObject *resultobj; | |
931 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
932 | bool result; | |
933 | PyObject * obj0 = 0 ; | |
934 | char *kwnames[] = { | |
935 | (char *) "self", NULL | |
936 | }; | |
937 | ||
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
941 | { | |
942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
943 | result = (bool)(arg1)->GetVisible(); | |
944 | ||
945 | wxPyEndAllowThreads(__tstate); | |
946 | if (PyErr_Occurred()) SWIG_fail; | |
947 | } | |
948 | { | |
949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
950 | } | |
951 | return resultobj; | |
952 | fail: | |
953 | return NULL; | |
954 | } | |
955 | ||
956 | ||
957 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
958 | PyObject *resultobj; | |
959 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
960 | bool arg2 ; | |
961 | PyObject * obj0 = 0 ; | |
962 | PyObject * obj1 = 0 ; | |
963 | char *kwnames[] = { | |
964 | (char *) "self",(char *) "visible", NULL | |
965 | }; | |
966 | ||
967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
970 | arg2 = (bool) SWIG_AsBool(obj1); | |
971 | if (PyErr_Occurred()) SWIG_fail; | |
972 | { | |
973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
974 | (arg1)->SetVisible(arg2); | |
975 | ||
976 | wxPyEndAllowThreads(__tstate); | |
977 | if (PyErr_Occurred()) SWIG_fail; | |
978 | } | |
979 | Py_INCREF(Py_None); resultobj = Py_None; | |
980 | return resultobj; | |
981 | fail: | |
982 | return NULL; | |
983 | } | |
984 | ||
985 | ||
986 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
987 | PyObject *resultobj; | |
988 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
989 | bool result; | |
990 | PyObject * obj0 = 0 ; | |
991 | char *kwnames[] = { | |
992 | (char *) "self", NULL | |
993 | }; | |
994 | ||
995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
998 | { | |
999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1000 | result = (bool)(arg1)->IsNull(); | |
1001 | ||
1002 | wxPyEndAllowThreads(__tstate); | |
1003 | if (PyErr_Occurred()) SWIG_fail; | |
1004 | } | |
1005 | { | |
1006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1007 | } | |
1008 | return resultobj; | |
1009 | fail: | |
1010 | return NULL; | |
1011 | } | |
1012 | ||
1013 | ||
1014 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
1015 | PyObject *obj; | |
1016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1017 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1018 | Py_INCREF(obj); | |
1019 | return Py_BuildValue((char *)""); | |
1020 | } | |
1021 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1022 | PyObject *resultobj; | |
79fccf9d RD |
1023 | byte arg1 = (byte) 0 ; |
1024 | byte arg2 = (byte) 0 ; | |
1025 | byte arg3 = (byte) 0 ; | |
d55e5bfc RD |
1026 | wxColour *result; |
1027 | PyObject * obj0 = 0 ; | |
1028 | PyObject * obj1 = 0 ; | |
1029 | PyObject * obj2 = 0 ; | |
1030 | char *kwnames[] = { | |
1031 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1032 | }; | |
1033 | ||
1034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1035 | if (obj0) { | |
79fccf9d | 1036 | arg1 = (byte) SWIG_AsUnsignedChar(obj0); |
d55e5bfc RD |
1037 | if (PyErr_Occurred()) SWIG_fail; |
1038 | } | |
1039 | if (obj1) { | |
79fccf9d | 1040 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
d55e5bfc RD |
1041 | if (PyErr_Occurred()) SWIG_fail; |
1042 | } | |
1043 | if (obj2) { | |
79fccf9d | 1044 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
d55e5bfc RD |
1045 | if (PyErr_Occurred()) SWIG_fail; |
1046 | } | |
1047 | { | |
1048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1049 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1050 | ||
1051 | wxPyEndAllowThreads(__tstate); | |
1052 | if (PyErr_Occurred()) SWIG_fail; | |
1053 | } | |
1054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1055 | return resultobj; | |
1056 | fail: | |
1057 | return NULL; | |
1058 | } | |
1059 | ||
1060 | ||
1061 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1062 | PyObject *resultobj; | |
1063 | wxString *arg1 = 0 ; | |
1064 | wxColour *result; | |
1065 | bool temp1 = False ; | |
1066 | PyObject * obj0 = 0 ; | |
1067 | char *kwnames[] = { | |
1068 | (char *) "colorName", NULL | |
1069 | }; | |
1070 | ||
1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1072 | { | |
1073 | arg1 = wxString_in_helper(obj0); | |
1074 | if (arg1 == NULL) SWIG_fail; | |
1075 | temp1 = True; | |
1076 | } | |
1077 | { | |
bf26d883 | 1078 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1080 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1081 | ||
1082 | wxPyEndAllowThreads(__tstate); | |
1083 | if (PyErr_Occurred()) SWIG_fail; | |
1084 | } | |
1085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1086 | { | |
1087 | if (temp1) | |
1088 | delete arg1; | |
1089 | } | |
1090 | return resultobj; | |
1091 | fail: | |
1092 | { | |
1093 | if (temp1) | |
1094 | delete arg1; | |
1095 | } | |
1096 | return NULL; | |
1097 | } | |
1098 | ||
1099 | ||
1100 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1101 | PyObject *resultobj; | |
1102 | unsigned long arg1 ; | |
1103 | wxColour *result; | |
1104 | PyObject * obj0 = 0 ; | |
1105 | char *kwnames[] = { | |
1106 | (char *) "colRGB", NULL | |
1107 | }; | |
1108 | ||
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
1110 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
1111 | if (PyErr_Occurred()) SWIG_fail; | |
1112 | { | |
1113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1114 | result = (wxColour *)new wxColour(arg1); | |
1115 | ||
1116 | wxPyEndAllowThreads(__tstate); | |
1117 | if (PyErr_Occurred()) SWIG_fail; | |
1118 | } | |
1119 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1120 | return resultobj; | |
1121 | fail: | |
1122 | return NULL; | |
1123 | } | |
1124 | ||
1125 | ||
1126 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1127 | PyObject *resultobj; | |
1128 | wxColour *arg1 = (wxColour *) 0 ; | |
1129 | PyObject * obj0 = 0 ; | |
1130 | char *kwnames[] = { | |
1131 | (char *) "self", NULL | |
1132 | }; | |
1133 | ||
1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1137 | { | |
1138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1139 | delete arg1; | |
1140 | ||
1141 | wxPyEndAllowThreads(__tstate); | |
1142 | if (PyErr_Occurred()) SWIG_fail; | |
1143 | } | |
1144 | Py_INCREF(Py_None); resultobj = Py_None; | |
1145 | return resultobj; | |
1146 | fail: | |
1147 | return NULL; | |
1148 | } | |
1149 | ||
1150 | ||
1151 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject *resultobj; | |
1153 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1154 | byte result; |
d55e5bfc RD |
1155 | PyObject * obj0 = 0 ; |
1156 | char *kwnames[] = { | |
1157 | (char *) "self", NULL | |
1158 | }; | |
1159 | ||
1160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1163 | { | |
1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1165 | result = (byte)(arg1)->Red(); |
d55e5bfc RD |
1166 | |
1167 | wxPyEndAllowThreads(__tstate); | |
1168 | if (PyErr_Occurred()) SWIG_fail; | |
1169 | } | |
1170 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1171 | return resultobj; | |
1172 | fail: | |
1173 | return NULL; | |
1174 | } | |
1175 | ||
1176 | ||
1177 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1178 | PyObject *resultobj; | |
1179 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1180 | byte result; |
d55e5bfc RD |
1181 | PyObject * obj0 = 0 ; |
1182 | char *kwnames[] = { | |
1183 | (char *) "self", NULL | |
1184 | }; | |
1185 | ||
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1189 | { | |
1190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1191 | result = (byte)(arg1)->Green(); |
d55e5bfc RD |
1192 | |
1193 | wxPyEndAllowThreads(__tstate); | |
1194 | if (PyErr_Occurred()) SWIG_fail; | |
1195 | } | |
1196 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1197 | return resultobj; | |
1198 | fail: | |
1199 | return NULL; | |
1200 | } | |
1201 | ||
1202 | ||
1203 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1204 | PyObject *resultobj; | |
1205 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1206 | byte result; |
d55e5bfc RD |
1207 | PyObject * obj0 = 0 ; |
1208 | char *kwnames[] = { | |
1209 | (char *) "self", NULL | |
1210 | }; | |
1211 | ||
1212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1215 | { | |
1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1217 | result = (byte)(arg1)->Blue(); |
d55e5bfc RD |
1218 | |
1219 | wxPyEndAllowThreads(__tstate); | |
1220 | if (PyErr_Occurred()) SWIG_fail; | |
1221 | } | |
1222 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1223 | return resultobj; | |
1224 | fail: | |
1225 | return NULL; | |
1226 | } | |
1227 | ||
1228 | ||
1229 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1230 | PyObject *resultobj; | |
1231 | wxColour *arg1 = (wxColour *) 0 ; | |
1232 | bool result; | |
1233 | PyObject * obj0 = 0 ; | |
1234 | char *kwnames[] = { | |
1235 | (char *) "self", NULL | |
1236 | }; | |
1237 | ||
1238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1241 | { | |
1242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1243 | result = (bool)(arg1)->Ok(); | |
1244 | ||
1245 | wxPyEndAllowThreads(__tstate); | |
1246 | if (PyErr_Occurred()) SWIG_fail; | |
1247 | } | |
1248 | { | |
1249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1250 | } | |
1251 | return resultobj; | |
1252 | fail: | |
1253 | return NULL; | |
1254 | } | |
1255 | ||
1256 | ||
1257 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1258 | PyObject *resultobj; | |
1259 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d RD |
1260 | byte arg2 ; |
1261 | byte arg3 ; | |
1262 | byte arg4 ; | |
d55e5bfc RD |
1263 | PyObject * obj0 = 0 ; |
1264 | PyObject * obj1 = 0 ; | |
1265 | PyObject * obj2 = 0 ; | |
1266 | PyObject * obj3 = 0 ; | |
1267 | char *kwnames[] = { | |
1268 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1269 | }; | |
1270 | ||
1271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
79fccf9d | 1274 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
d55e5bfc | 1275 | if (PyErr_Occurred()) SWIG_fail; |
79fccf9d | 1276 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
d55e5bfc | 1277 | if (PyErr_Occurred()) SWIG_fail; |
79fccf9d | 1278 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); |
d55e5bfc RD |
1279 | if (PyErr_Occurred()) SWIG_fail; |
1280 | { | |
1281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1282 | (arg1)->Set(arg2,arg3,arg4); | |
1283 | ||
1284 | wxPyEndAllowThreads(__tstate); | |
1285 | if (PyErr_Occurred()) SWIG_fail; | |
1286 | } | |
1287 | Py_INCREF(Py_None); resultobj = Py_None; | |
1288 | return resultobj; | |
1289 | fail: | |
1290 | return NULL; | |
1291 | } | |
1292 | ||
1293 | ||
1294 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1295 | PyObject *resultobj; | |
1296 | wxColour *arg1 = (wxColour *) 0 ; | |
1297 | unsigned long arg2 ; | |
1298 | PyObject * obj0 = 0 ; | |
1299 | PyObject * obj1 = 0 ; | |
1300 | char *kwnames[] = { | |
1301 | (char *) "self",(char *) "colRGB", NULL | |
1302 | }; | |
1303 | ||
1304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1307 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
1308 | if (PyErr_Occurred()) SWIG_fail; | |
1309 | { | |
1310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1311 | (arg1)->Set(arg2); | |
1312 | ||
1313 | wxPyEndAllowThreads(__tstate); | |
1314 | if (PyErr_Occurred()) SWIG_fail; | |
1315 | } | |
1316 | Py_INCREF(Py_None); resultobj = Py_None; | |
1317 | return resultobj; | |
1318 | fail: | |
1319 | return NULL; | |
1320 | } | |
1321 | ||
1322 | ||
1323 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1324 | PyObject *resultobj; | |
1325 | wxColour *arg1 = (wxColour *) 0 ; | |
1326 | wxString *arg2 = 0 ; | |
1327 | bool temp2 = False ; | |
1328 | PyObject * obj0 = 0 ; | |
1329 | PyObject * obj1 = 0 ; | |
1330 | char *kwnames[] = { | |
1331 | (char *) "self",(char *) "colourName", NULL | |
1332 | }; | |
1333 | ||
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1337 | { | |
1338 | arg2 = wxString_in_helper(obj1); | |
1339 | if (arg2 == NULL) SWIG_fail; | |
1340 | temp2 = True; | |
1341 | } | |
1342 | { | |
1343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1344 | (arg1)->InitFromName((wxString const &)*arg2); | |
1345 | ||
1346 | wxPyEndAllowThreads(__tstate); | |
1347 | if (PyErr_Occurred()) SWIG_fail; | |
1348 | } | |
1349 | Py_INCREF(Py_None); resultobj = Py_None; | |
1350 | { | |
1351 | if (temp2) | |
1352 | delete arg2; | |
1353 | } | |
1354 | return resultobj; | |
1355 | fail: | |
1356 | { | |
1357 | if (temp2) | |
1358 | delete arg2; | |
1359 | } | |
1360 | return NULL; | |
1361 | } | |
1362 | ||
1363 | ||
1364 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1365 | PyObject *resultobj; | |
1366 | wxColour *arg1 = (wxColour *) 0 ; | |
1367 | long result; | |
1368 | PyObject * obj0 = 0 ; | |
1369 | char *kwnames[] = { | |
1370 | (char *) "self", NULL | |
1371 | }; | |
1372 | ||
1373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1376 | { | |
1377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1378 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1379 | ||
1380 | wxPyEndAllowThreads(__tstate); | |
1381 | if (PyErr_Occurred()) SWIG_fail; | |
1382 | } | |
1383 | resultobj = SWIG_FromLong((long)result); | |
1384 | return resultobj; | |
1385 | fail: | |
1386 | return NULL; | |
1387 | } | |
1388 | ||
1389 | ||
1390 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject *resultobj; | |
1392 | wxColour *arg1 = (wxColour *) 0 ; | |
1393 | wxColour *arg2 = 0 ; | |
1394 | bool result; | |
1395 | wxColour temp2 ; | |
1396 | PyObject * obj0 = 0 ; | |
1397 | PyObject * obj1 = 0 ; | |
1398 | char *kwnames[] = { | |
1399 | (char *) "self",(char *) "colour", NULL | |
1400 | }; | |
1401 | ||
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1405 | { | |
1406 | arg2 = &temp2; | |
1407 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1408 | } | |
1409 | { | |
1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1411 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1412 | ||
1413 | wxPyEndAllowThreads(__tstate); | |
1414 | if (PyErr_Occurred()) SWIG_fail; | |
1415 | } | |
1416 | { | |
1417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1418 | } | |
1419 | return resultobj; | |
1420 | fail: | |
1421 | return NULL; | |
1422 | } | |
1423 | ||
1424 | ||
1425 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1426 | PyObject *resultobj; | |
1427 | wxColour *arg1 = (wxColour *) 0 ; | |
1428 | wxColour *arg2 = 0 ; | |
1429 | bool result; | |
1430 | wxColour temp2 ; | |
1431 | PyObject * obj0 = 0 ; | |
1432 | PyObject * obj1 = 0 ; | |
1433 | char *kwnames[] = { | |
1434 | (char *) "self",(char *) "colour", NULL | |
1435 | }; | |
1436 | ||
1437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1440 | { | |
1441 | arg2 = &temp2; | |
1442 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1443 | } | |
1444 | { | |
1445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1446 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1447 | ||
1448 | wxPyEndAllowThreads(__tstate); | |
1449 | if (PyErr_Occurred()) SWIG_fail; | |
1450 | } | |
1451 | { | |
1452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1453 | } | |
1454 | return resultobj; | |
1455 | fail: | |
1456 | return NULL; | |
1457 | } | |
1458 | ||
1459 | ||
1460 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1461 | PyObject *resultobj; | |
1462 | wxColour *arg1 = (wxColour *) 0 ; | |
1463 | PyObject *result; | |
1464 | PyObject * obj0 = 0 ; | |
1465 | char *kwnames[] = { | |
1466 | (char *) "self", NULL | |
1467 | }; | |
1468 | ||
1469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1472 | { | |
1473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1474 | result = (PyObject *)wxColour_Get(arg1); | |
1475 | ||
1476 | wxPyEndAllowThreads(__tstate); | |
1477 | if (PyErr_Occurred()) SWIG_fail; | |
1478 | } | |
1479 | resultobj = result; | |
1480 | return resultobj; | |
1481 | fail: | |
1482 | return NULL; | |
1483 | } | |
1484 | ||
1485 | ||
1486 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1487 | PyObject *resultobj; | |
1488 | wxColour *arg1 = (wxColour *) 0 ; | |
1489 | unsigned long result; | |
1490 | PyObject * obj0 = 0 ; | |
1491 | char *kwnames[] = { | |
1492 | (char *) "self", NULL | |
1493 | }; | |
1494 | ||
1495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; | |
1496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1498 | { | |
1499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1500 | result = (unsigned long)wxColour_GetRGB(arg1); | |
1501 | ||
1502 | wxPyEndAllowThreads(__tstate); | |
1503 | if (PyErr_Occurred()) SWIG_fail; | |
1504 | } | |
1505 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
1506 | return resultobj; | |
1507 | fail: | |
1508 | return NULL; | |
1509 | } | |
1510 | ||
1511 | ||
1512 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1513 | PyObject *obj; | |
1514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1515 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1516 | Py_INCREF(obj); | |
1517 | return Py_BuildValue((char *)""); | |
1518 | } | |
1519 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1520 | PyObject *resultobj; | |
1521 | int arg1 ; | |
1522 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1523 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1524 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1525 | wxPalette *result; | |
1526 | PyObject * obj0 = 0 ; | |
1527 | PyObject * obj1 = 0 ; | |
1528 | PyObject * obj2 = 0 ; | |
1529 | PyObject * obj3 = 0 ; | |
1530 | char *kwnames[] = { | |
1531 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1532 | }; | |
1533 | ||
1534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1535 | arg1 = (int) SWIG_AsInt(obj0); | |
1536 | if (PyErr_Occurred()) SWIG_fail; | |
1537 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1539 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1541 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1543 | { | |
0439c23b | 1544 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1546 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1547 | ||
1548 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1549 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1550 | } |
1551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); | |
1552 | return resultobj; | |
1553 | fail: | |
1554 | return NULL; | |
1555 | } | |
1556 | ||
1557 | ||
1558 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1559 | PyObject *resultobj; | |
1560 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1561 | PyObject * obj0 = 0 ; | |
1562 | char *kwnames[] = { | |
1563 | (char *) "self", NULL | |
1564 | }; | |
1565 | ||
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1569 | { | |
1570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1571 | delete arg1; | |
1572 | ||
1573 | wxPyEndAllowThreads(__tstate); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
1576 | Py_INCREF(Py_None); resultobj = Py_None; | |
1577 | return resultobj; | |
1578 | fail: | |
1579 | return NULL; | |
1580 | } | |
1581 | ||
1582 | ||
1583 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1584 | PyObject *resultobj; | |
1585 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1586 | byte arg2 ; | |
1587 | byte arg3 ; | |
1588 | byte arg4 ; | |
1589 | int result; | |
1590 | PyObject * obj0 = 0 ; | |
1591 | PyObject * obj1 = 0 ; | |
1592 | PyObject * obj2 = 0 ; | |
1593 | PyObject * obj3 = 0 ; | |
1594 | char *kwnames[] = { | |
1595 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1596 | }; | |
1597 | ||
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1601 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
1602 | if (PyErr_Occurred()) SWIG_fail; | |
1603 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
1604 | if (PyErr_Occurred()) SWIG_fail; | |
1605 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
1606 | if (PyErr_Occurred()) SWIG_fail; | |
1607 | { | |
1608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1609 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1610 | ||
1611 | wxPyEndAllowThreads(__tstate); | |
1612 | if (PyErr_Occurred()) SWIG_fail; | |
1613 | } | |
1614 | resultobj = SWIG_FromInt((int)result); | |
1615 | return resultobj; | |
1616 | fail: | |
1617 | return NULL; | |
1618 | } | |
1619 | ||
1620 | ||
1621 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1622 | PyObject *resultobj; | |
1623 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1624 | int arg2 ; | |
1625 | byte *arg3 = (byte *) 0 ; | |
1626 | byte *arg4 = (byte *) 0 ; | |
1627 | byte *arg5 = (byte *) 0 ; | |
1628 | bool result; | |
1629 | byte temp3 ; | |
1630 | byte temp4 ; | |
1631 | byte temp5 ; | |
1632 | PyObject * obj0 = 0 ; | |
1633 | PyObject * obj1 = 0 ; | |
1634 | char *kwnames[] = { | |
1635 | (char *) "self",(char *) "pixel", NULL | |
1636 | }; | |
1637 | ||
1638 | arg3 = &temp3; | |
1639 | arg4 = &temp4; | |
1640 | arg5 = &temp5; | |
1641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1644 | arg2 = (int) SWIG_AsInt(obj1); | |
1645 | if (PyErr_Occurred()) SWIG_fail; | |
1646 | { | |
1647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1648 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1649 | ||
1650 | wxPyEndAllowThreads(__tstate); | |
1651 | if (PyErr_Occurred()) SWIG_fail; | |
1652 | } | |
1653 | { | |
1654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1655 | } | |
1656 | { | |
1657 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1658 | resultobj = t_output_helper(resultobj,o); | |
1659 | } | |
1660 | { | |
1661 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1662 | resultobj = t_output_helper(resultobj,o); | |
1663 | } | |
1664 | { | |
1665 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1666 | resultobj = t_output_helper(resultobj,o); | |
1667 | } | |
1668 | return resultobj; | |
1669 | fail: | |
1670 | return NULL; | |
1671 | } | |
1672 | ||
1673 | ||
1674 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1675 | PyObject *resultobj; | |
1676 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1677 | bool result; | |
1678 | PyObject * obj0 = 0 ; | |
1679 | char *kwnames[] = { | |
1680 | (char *) "self", NULL | |
1681 | }; | |
1682 | ||
1683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1686 | { | |
1687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1688 | result = (bool)(arg1)->Ok(); | |
1689 | ||
1690 | wxPyEndAllowThreads(__tstate); | |
1691 | if (PyErr_Occurred()) SWIG_fail; | |
1692 | } | |
1693 | { | |
1694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1695 | } | |
1696 | return resultobj; | |
1697 | fail: | |
1698 | return NULL; | |
1699 | } | |
1700 | ||
1701 | ||
1702 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1703 | PyObject *obj; | |
1704 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1705 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1706 | Py_INCREF(obj); | |
1707 | return Py_BuildValue((char *)""); | |
1708 | } | |
1709 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1710 | PyObject *resultobj; | |
1711 | wxColour *arg1 = 0 ; | |
1712 | int arg2 = (int) 1 ; | |
1713 | int arg3 = (int) wxSOLID ; | |
1714 | wxPen *result; | |
1715 | wxColour temp1 ; | |
1716 | PyObject * obj0 = 0 ; | |
1717 | PyObject * obj1 = 0 ; | |
1718 | PyObject * obj2 = 0 ; | |
1719 | char *kwnames[] = { | |
1720 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1721 | }; | |
1722 | ||
1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1724 | { | |
1725 | arg1 = &temp1; | |
1726 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1727 | } | |
1728 | if (obj1) { | |
1729 | arg2 = (int) SWIG_AsInt(obj1); | |
1730 | if (PyErr_Occurred()) SWIG_fail; | |
1731 | } | |
1732 | if (obj2) { | |
1733 | arg3 = (int) SWIG_AsInt(obj2); | |
1734 | if (PyErr_Occurred()) SWIG_fail; | |
1735 | } | |
1736 | { | |
0439c23b | 1737 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1739 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1740 | ||
1741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1742 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1743 | } |
1744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); | |
1745 | return resultobj; | |
1746 | fail: | |
1747 | return NULL; | |
1748 | } | |
1749 | ||
1750 | ||
1751 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1752 | PyObject *resultobj; | |
1753 | wxPen *arg1 = (wxPen *) 0 ; | |
1754 | PyObject * obj0 = 0 ; | |
1755 | char *kwnames[] = { | |
1756 | (char *) "self", NULL | |
1757 | }; | |
1758 | ||
1759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1762 | { | |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | delete arg1; | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
1769 | Py_INCREF(Py_None); resultobj = Py_None; | |
1770 | return resultobj; | |
1771 | fail: | |
1772 | return NULL; | |
1773 | } | |
1774 | ||
1775 | ||
1776 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1777 | PyObject *resultobj; | |
1778 | wxPen *arg1 = (wxPen *) 0 ; | |
1779 | int result; | |
1780 | PyObject * obj0 = 0 ; | |
1781 | char *kwnames[] = { | |
1782 | (char *) "self", NULL | |
1783 | }; | |
1784 | ||
1785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1788 | { | |
1789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1790 | result = (int)(arg1)->GetCap(); | |
1791 | ||
1792 | wxPyEndAllowThreads(__tstate); | |
1793 | if (PyErr_Occurred()) SWIG_fail; | |
1794 | } | |
1795 | resultobj = SWIG_FromInt((int)result); | |
1796 | return resultobj; | |
1797 | fail: | |
1798 | return NULL; | |
1799 | } | |
1800 | ||
1801 | ||
1802 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1803 | PyObject *resultobj; | |
1804 | wxPen *arg1 = (wxPen *) 0 ; | |
1805 | wxColour result; | |
1806 | PyObject * obj0 = 0 ; | |
1807 | char *kwnames[] = { | |
1808 | (char *) "self", NULL | |
1809 | }; | |
1810 | ||
1811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1814 | { | |
1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1816 | result = (arg1)->GetColour(); | |
1817 | ||
1818 | wxPyEndAllowThreads(__tstate); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | { | |
1822 | wxColour * resultptr; | |
1823 | resultptr = new wxColour((wxColour &) result); | |
1824 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1825 | } | |
1826 | return resultobj; | |
1827 | fail: | |
1828 | return NULL; | |
1829 | } | |
1830 | ||
1831 | ||
1832 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1833 | PyObject *resultobj; | |
1834 | wxPen *arg1 = (wxPen *) 0 ; | |
1835 | int result; | |
1836 | PyObject * obj0 = 0 ; | |
1837 | char *kwnames[] = { | |
1838 | (char *) "self", NULL | |
1839 | }; | |
1840 | ||
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1844 | { | |
1845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1846 | result = (int)(arg1)->GetJoin(); | |
1847 | ||
1848 | wxPyEndAllowThreads(__tstate); | |
1849 | if (PyErr_Occurred()) SWIG_fail; | |
1850 | } | |
1851 | resultobj = SWIG_FromInt((int)result); | |
1852 | return resultobj; | |
1853 | fail: | |
1854 | return NULL; | |
1855 | } | |
1856 | ||
1857 | ||
1858 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1859 | PyObject *resultobj; | |
1860 | wxPen *arg1 = (wxPen *) 0 ; | |
1861 | int result; | |
1862 | PyObject * obj0 = 0 ; | |
1863 | char *kwnames[] = { | |
1864 | (char *) "self", NULL | |
1865 | }; | |
1866 | ||
1867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1870 | { | |
1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1872 | result = (int)(arg1)->GetStyle(); | |
1873 | ||
1874 | wxPyEndAllowThreads(__tstate); | |
1875 | if (PyErr_Occurred()) SWIG_fail; | |
1876 | } | |
1877 | resultobj = SWIG_FromInt((int)result); | |
1878 | return resultobj; | |
1879 | fail: | |
1880 | return NULL; | |
1881 | } | |
1882 | ||
1883 | ||
1884 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1885 | PyObject *resultobj; | |
1886 | wxPen *arg1 = (wxPen *) 0 ; | |
1887 | int result; | |
1888 | PyObject * obj0 = 0 ; | |
1889 | char *kwnames[] = { | |
1890 | (char *) "self", NULL | |
1891 | }; | |
1892 | ||
1893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1896 | { | |
1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1898 | result = (int)(arg1)->GetWidth(); | |
1899 | ||
1900 | wxPyEndAllowThreads(__tstate); | |
1901 | if (PyErr_Occurred()) SWIG_fail; | |
1902 | } | |
1903 | resultobj = SWIG_FromInt((int)result); | |
1904 | return resultobj; | |
1905 | fail: | |
1906 | return NULL; | |
1907 | } | |
1908 | ||
1909 | ||
1910 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1911 | PyObject *resultobj; | |
1912 | wxPen *arg1 = (wxPen *) 0 ; | |
1913 | bool result; | |
1914 | PyObject * obj0 = 0 ; | |
1915 | char *kwnames[] = { | |
1916 | (char *) "self", NULL | |
1917 | }; | |
1918 | ||
1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1922 | { | |
1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1924 | result = (bool)(arg1)->Ok(); | |
1925 | ||
1926 | wxPyEndAllowThreads(__tstate); | |
1927 | if (PyErr_Occurred()) SWIG_fail; | |
1928 | } | |
1929 | { | |
1930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1931 | } | |
1932 | return resultobj; | |
1933 | fail: | |
1934 | return NULL; | |
1935 | } | |
1936 | ||
1937 | ||
1938 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1939 | PyObject *resultobj; | |
1940 | wxPen *arg1 = (wxPen *) 0 ; | |
1941 | int arg2 ; | |
1942 | PyObject * obj0 = 0 ; | |
1943 | PyObject * obj1 = 0 ; | |
1944 | char *kwnames[] = { | |
1945 | (char *) "self",(char *) "cap_style", NULL | |
1946 | }; | |
1947 | ||
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; | |
1949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1951 | arg2 = (int) SWIG_AsInt(obj1); | |
1952 | if (PyErr_Occurred()) SWIG_fail; | |
1953 | { | |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | (arg1)->SetCap(arg2); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
1960 | Py_INCREF(Py_None); resultobj = Py_None; | |
1961 | return resultobj; | |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1968 | PyObject *resultobj; | |
1969 | wxPen *arg1 = (wxPen *) 0 ; | |
1970 | wxColour *arg2 = 0 ; | |
1971 | wxColour temp2 ; | |
1972 | PyObject * obj0 = 0 ; | |
1973 | PyObject * obj1 = 0 ; | |
1974 | char *kwnames[] = { | |
1975 | (char *) "self",(char *) "colour", NULL | |
1976 | }; | |
1977 | ||
1978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1981 | { | |
1982 | arg2 = &temp2; | |
1983 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1984 | } | |
1985 | { | |
1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1987 | (arg1)->SetColour(*arg2); | |
1988 | ||
1989 | wxPyEndAllowThreads(__tstate); | |
1990 | if (PyErr_Occurred()) SWIG_fail; | |
1991 | } | |
1992 | Py_INCREF(Py_None); resultobj = Py_None; | |
1993 | return resultobj; | |
1994 | fail: | |
1995 | return NULL; | |
1996 | } | |
1997 | ||
1998 | ||
1999 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2000 | PyObject *resultobj; | |
2001 | wxPen *arg1 = (wxPen *) 0 ; | |
2002 | int arg2 ; | |
2003 | PyObject * obj0 = 0 ; | |
2004 | PyObject * obj1 = 0 ; | |
2005 | char *kwnames[] = { | |
2006 | (char *) "self",(char *) "join_style", NULL | |
2007 | }; | |
2008 | ||
2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; | |
2010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2012 | arg2 = (int) SWIG_AsInt(obj1); | |
2013 | if (PyErr_Occurred()) SWIG_fail; | |
2014 | { | |
2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2016 | (arg1)->SetJoin(arg2); | |
2017 | ||
2018 | wxPyEndAllowThreads(__tstate); | |
2019 | if (PyErr_Occurred()) SWIG_fail; | |
2020 | } | |
2021 | Py_INCREF(Py_None); resultobj = Py_None; | |
2022 | return resultobj; | |
2023 | fail: | |
2024 | return NULL; | |
2025 | } | |
2026 | ||
2027 | ||
2028 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject *resultobj; | |
2030 | wxPen *arg1 = (wxPen *) 0 ; | |
2031 | int arg2 ; | |
2032 | PyObject * obj0 = 0 ; | |
2033 | PyObject * obj1 = 0 ; | |
2034 | char *kwnames[] = { | |
2035 | (char *) "self",(char *) "style", NULL | |
2036 | }; | |
2037 | ||
2038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2041 | arg2 = (int) SWIG_AsInt(obj1); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | { | |
2044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2045 | (arg1)->SetStyle(arg2); | |
2046 | ||
2047 | wxPyEndAllowThreads(__tstate); | |
2048 | if (PyErr_Occurred()) SWIG_fail; | |
2049 | } | |
2050 | Py_INCREF(Py_None); resultobj = Py_None; | |
2051 | return resultobj; | |
2052 | fail: | |
2053 | return NULL; | |
2054 | } | |
2055 | ||
2056 | ||
2057 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2058 | PyObject *resultobj; | |
2059 | wxPen *arg1 = (wxPen *) 0 ; | |
2060 | int arg2 ; | |
2061 | PyObject * obj0 = 0 ; | |
2062 | PyObject * obj1 = 0 ; | |
2063 | char *kwnames[] = { | |
2064 | (char *) "self",(char *) "width", NULL | |
2065 | }; | |
2066 | ||
2067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2070 | arg2 = (int) SWIG_AsInt(obj1); | |
2071 | if (PyErr_Occurred()) SWIG_fail; | |
2072 | { | |
2073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2074 | (arg1)->SetWidth(arg2); | |
2075 | ||
2076 | wxPyEndAllowThreads(__tstate); | |
2077 | if (PyErr_Occurred()) SWIG_fail; | |
2078 | } | |
2079 | Py_INCREF(Py_None); resultobj = Py_None; | |
2080 | return resultobj; | |
2081 | fail: | |
2082 | return NULL; | |
2083 | } | |
2084 | ||
2085 | ||
2086 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2087 | PyObject *resultobj; | |
2088 | wxPen *arg1 = (wxPen *) 0 ; | |
2089 | int arg2 ; | |
2090 | wxDash *arg3 = (wxDash *) 0 ; | |
2091 | PyObject * obj0 = 0 ; | |
2092 | PyObject * obj1 = 0 ; | |
2093 | char *kwnames[] = { | |
2094 | (char *) "self",(char *) "dashes", NULL | |
2095 | }; | |
2096 | ||
2097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2100 | { | |
2101 | arg2 = PyList_Size(obj1); | |
2102 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2103 | if (arg3 == NULL) SWIG_fail; | |
2104 | } | |
2105 | { | |
2106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2107 | (arg1)->SetDashes(arg2,arg3); | |
2108 | ||
2109 | wxPyEndAllowThreads(__tstate); | |
2110 | if (PyErr_Occurred()) SWIG_fail; | |
2111 | } | |
2112 | Py_INCREF(Py_None); resultobj = Py_None; | |
2113 | { | |
2114 | if (arg3) delete [] arg3; | |
2115 | } | |
2116 | return resultobj; | |
2117 | fail: | |
2118 | { | |
2119 | if (arg3) delete [] arg3; | |
2120 | } | |
2121 | return NULL; | |
2122 | } | |
2123 | ||
2124 | ||
2125 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2126 | PyObject *resultobj; | |
2127 | wxPen *arg1 = (wxPen *) 0 ; | |
2128 | PyObject *result; | |
2129 | PyObject * obj0 = 0 ; | |
2130 | char *kwnames[] = { | |
2131 | (char *) "self", NULL | |
2132 | }; | |
2133 | ||
2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2137 | { | |
2138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2139 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2140 | ||
2141 | wxPyEndAllowThreads(__tstate); | |
2142 | if (PyErr_Occurred()) SWIG_fail; | |
2143 | } | |
2144 | resultobj = result; | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | return NULL; | |
2148 | } | |
2149 | ||
2150 | ||
c24da6d6 | 2151 | static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2152 | PyObject *resultobj; |
2153 | wxPen *arg1 = (wxPen *) 0 ; | |
c24da6d6 RD |
2154 | PyObject *arg2 = (PyObject *) 0 ; |
2155 | PyObject *arg3 = (PyObject *) 0 ; | |
d55e5bfc RD |
2156 | PyObject * obj0 = 0 ; |
2157 | PyObject * obj1 = 0 ; | |
c24da6d6 | 2158 | PyObject * obj2 = 0 ; |
d55e5bfc | 2159 | char *kwnames[] = { |
c24da6d6 | 2160 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d55e5bfc RD |
2161 | }; |
2162 | ||
c24da6d6 | 2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
2164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c24da6d6 RD |
2166 | arg2 = obj1; |
2167 | arg3 = obj2; | |
d55e5bfc RD |
2168 | { |
2169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2170 | wxPen__SetDashes(arg1,arg2,arg3); |
d55e5bfc RD |
2171 | |
2172 | wxPyEndAllowThreads(__tstate); | |
2173 | if (PyErr_Occurred()) SWIG_fail; | |
2174 | } | |
c24da6d6 | 2175 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2176 | return resultobj; |
2177 | fail: | |
2178 | return NULL; | |
2179 | } | |
2180 | ||
2181 | ||
2182 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2183 | PyObject *resultobj; | |
2184 | wxPen *arg1 = (wxPen *) 0 ; | |
2185 | int result; | |
2186 | PyObject * obj0 = 0 ; | |
2187 | char *kwnames[] = { | |
2188 | (char *) "self", NULL | |
2189 | }; | |
2190 | ||
2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2194 | { | |
2195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2196 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2197 | ||
2198 | wxPyEndAllowThreads(__tstate); | |
2199 | if (PyErr_Occurred()) SWIG_fail; | |
2200 | } | |
2201 | resultobj = SWIG_FromInt((int)result); | |
2202 | return resultobj; | |
2203 | fail: | |
2204 | return NULL; | |
2205 | } | |
2206 | ||
2207 | ||
2208 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2209 | PyObject *resultobj; | |
2210 | wxPen *arg1 = (wxPen *) 0 ; | |
2211 | wxBitmap *result; | |
2212 | PyObject * obj0 = 0 ; | |
2213 | char *kwnames[] = { | |
2214 | (char *) "self", NULL | |
2215 | }; | |
2216 | ||
2217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
2218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2220 | { | |
2221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2222 | result = (wxBitmap *)(arg1)->GetStipple(); | |
2223 | ||
2224 | wxPyEndAllowThreads(__tstate); | |
2225 | if (PyErr_Occurred()) SWIG_fail; | |
2226 | } | |
2227 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2228 | return resultobj; | |
2229 | fail: | |
2230 | return NULL; | |
2231 | } | |
2232 | ||
2233 | ||
2234 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2235 | PyObject *resultobj; | |
2236 | wxPen *arg1 = (wxPen *) 0 ; | |
2237 | wxBitmap *arg2 = 0 ; | |
2238 | PyObject * obj0 = 0 ; | |
2239 | PyObject * obj1 = 0 ; | |
2240 | char *kwnames[] = { | |
2241 | (char *) "self",(char *) "stipple", NULL | |
2242 | }; | |
2243 | ||
2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2248 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2249 | SWIG_fail; | |
2250 | if (arg2 == NULL) { | |
2251 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2252 | SWIG_fail; | |
2253 | } | |
2254 | { | |
2255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2256 | (arg1)->SetStipple(*arg2); | |
2257 | ||
2258 | wxPyEndAllowThreads(__tstate); | |
2259 | if (PyErr_Occurred()) SWIG_fail; | |
2260 | } | |
2261 | Py_INCREF(Py_None); resultobj = Py_None; | |
2262 | return resultobj; | |
2263 | fail: | |
2264 | return NULL; | |
2265 | } | |
2266 | ||
2267 | ||
c24da6d6 | 2268 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2269 | PyObject *resultobj; |
c24da6d6 RD |
2270 | wxPen *arg1 = (wxPen *) 0 ; |
2271 | wxPen *arg2 = (wxPen *) 0 ; | |
2272 | bool result; | |
d55e5bfc RD |
2273 | PyObject * obj0 = 0 ; |
2274 | PyObject * obj1 = 0 ; | |
d55e5bfc | 2275 | char *kwnames[] = { |
c24da6d6 | 2276 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2277 | }; |
2278 | ||
c24da6d6 RD |
2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
2280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
2284 | { |
2285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2286 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2287 | |
2288 | wxPyEndAllowThreads(__tstate); | |
2289 | if (PyErr_Occurred()) SWIG_fail; | |
2290 | } | |
d55e5bfc | 2291 | { |
c24da6d6 | 2292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc | 2293 | } |
d55e5bfc RD |
2294 | return resultobj; |
2295 | fail: | |
2296 | return NULL; | |
2297 | } | |
2298 | ||
2299 | ||
c24da6d6 | 2300 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2301 | PyObject *resultobj; |
c24da6d6 RD |
2302 | wxPen *arg1 = (wxPen *) 0 ; |
2303 | wxPen *arg2 = (wxPen *) 0 ; | |
2304 | bool result; | |
d55e5bfc RD |
2305 | PyObject * obj0 = 0 ; |
2306 | PyObject * obj1 = 0 ; | |
2307 | char *kwnames[] = { | |
c24da6d6 | 2308 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2309 | }; |
2310 | ||
c24da6d6 RD |
2311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2314 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
d55e5bfc | 2315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d55e5bfc RD |
2316 | { |
2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2318 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2319 | |
2320 | wxPyEndAllowThreads(__tstate); | |
2321 | if (PyErr_Occurred()) SWIG_fail; | |
2322 | } | |
d55e5bfc | 2323 | { |
c24da6d6 | 2324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
2325 | } |
2326 | return resultobj; | |
2327 | fail: | |
d55e5bfc RD |
2328 | return NULL; |
2329 | } | |
2330 | ||
2331 | ||
c24da6d6 | 2332 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
d55e5bfc RD |
2333 | PyObject *obj; |
2334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
c24da6d6 | 2335 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d55e5bfc RD |
2336 | Py_INCREF(obj); |
2337 | return Py_BuildValue((char *)""); | |
2338 | } | |
2339 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2340 | PyObject *resultobj; | |
2341 | wxColour *arg1 = 0 ; | |
2342 | int arg2 = (int) wxSOLID ; | |
2343 | wxBrush *result; | |
2344 | wxColour temp1 ; | |
2345 | PyObject * obj0 = 0 ; | |
2346 | PyObject * obj1 = 0 ; | |
2347 | char *kwnames[] = { | |
2348 | (char *) "colour",(char *) "style", NULL | |
2349 | }; | |
2350 | ||
2351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; | |
2352 | { | |
2353 | arg1 = &temp1; | |
2354 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2355 | } | |
2356 | if (obj1) { | |
2357 | arg2 = (int) SWIG_AsInt(obj1); | |
2358 | if (PyErr_Occurred()) SWIG_fail; | |
2359 | } | |
2360 | { | |
0439c23b | 2361 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2363 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2364 | ||
2365 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2366 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2367 | } |
2368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
2369 | return resultobj; | |
2370 | fail: | |
2371 | return NULL; | |
2372 | } | |
2373 | ||
2374 | ||
2375 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2376 | PyObject *resultobj; | |
2377 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2378 | PyObject * obj0 = 0 ; | |
2379 | char *kwnames[] = { | |
2380 | (char *) "self", NULL | |
2381 | }; | |
2382 | ||
2383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2386 | { | |
2387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2388 | delete arg1; | |
2389 | ||
2390 | wxPyEndAllowThreads(__tstate); | |
2391 | if (PyErr_Occurred()) SWIG_fail; | |
2392 | } | |
2393 | Py_INCREF(Py_None); resultobj = Py_None; | |
2394 | return resultobj; | |
2395 | fail: | |
2396 | return NULL; | |
2397 | } | |
2398 | ||
2399 | ||
2400 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2401 | PyObject *resultobj; | |
2402 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2403 | wxColour *arg2 = 0 ; | |
2404 | wxColour temp2 ; | |
2405 | PyObject * obj0 = 0 ; | |
2406 | PyObject * obj1 = 0 ; | |
2407 | char *kwnames[] = { | |
2408 | (char *) "self",(char *) "col", NULL | |
2409 | }; | |
2410 | ||
2411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2414 | { | |
2415 | arg2 = &temp2; | |
2416 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2417 | } | |
2418 | { | |
2419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2420 | (arg1)->SetColour((wxColour const &)*arg2); | |
2421 | ||
2422 | wxPyEndAllowThreads(__tstate); | |
2423 | if (PyErr_Occurred()) SWIG_fail; | |
2424 | } | |
2425 | Py_INCREF(Py_None); resultobj = Py_None; | |
2426 | return resultobj; | |
2427 | fail: | |
2428 | return NULL; | |
2429 | } | |
2430 | ||
2431 | ||
2432 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2433 | PyObject *resultobj; | |
2434 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2435 | int arg2 ; | |
2436 | PyObject * obj0 = 0 ; | |
2437 | PyObject * obj1 = 0 ; | |
2438 | char *kwnames[] = { | |
2439 | (char *) "self",(char *) "style", NULL | |
2440 | }; | |
2441 | ||
2442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2445 | arg2 = (int) SWIG_AsInt(obj1); | |
2446 | if (PyErr_Occurred()) SWIG_fail; | |
2447 | { | |
2448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2449 | (arg1)->SetStyle(arg2); | |
2450 | ||
2451 | wxPyEndAllowThreads(__tstate); | |
2452 | if (PyErr_Occurred()) SWIG_fail; | |
2453 | } | |
2454 | Py_INCREF(Py_None); resultobj = Py_None; | |
2455 | return resultobj; | |
2456 | fail: | |
2457 | return NULL; | |
2458 | } | |
2459 | ||
2460 | ||
2461 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2462 | PyObject *resultobj; | |
2463 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2464 | wxBitmap *arg2 = 0 ; | |
2465 | PyObject * obj0 = 0 ; | |
2466 | PyObject * obj1 = 0 ; | |
2467 | char *kwnames[] = { | |
2468 | (char *) "self",(char *) "stipple", NULL | |
2469 | }; | |
2470 | ||
2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2475 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2476 | SWIG_fail; | |
2477 | if (arg2 == NULL) { | |
2478 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2479 | SWIG_fail; | |
2480 | } | |
2481 | { | |
2482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2483 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2484 | ||
2485 | wxPyEndAllowThreads(__tstate); | |
2486 | if (PyErr_Occurred()) SWIG_fail; | |
2487 | } | |
2488 | Py_INCREF(Py_None); resultobj = Py_None; | |
2489 | return resultobj; | |
2490 | fail: | |
2491 | return NULL; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2498 | wxColour result; | |
2499 | PyObject * obj0 = 0 ; | |
2500 | char *kwnames[] = { | |
2501 | (char *) "self", NULL | |
2502 | }; | |
2503 | ||
2504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2507 | { | |
2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2509 | result = ((wxBrush const *)arg1)->GetColour(); | |
2510 | ||
2511 | wxPyEndAllowThreads(__tstate); | |
2512 | if (PyErr_Occurred()) SWIG_fail; | |
2513 | } | |
2514 | { | |
2515 | wxColour * resultptr; | |
2516 | resultptr = new wxColour((wxColour &) result); | |
2517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2518 | } | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
2525 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2526 | PyObject *resultobj; | |
2527 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2528 | int result; | |
2529 | PyObject * obj0 = 0 ; | |
2530 | char *kwnames[] = { | |
2531 | (char *) "self", NULL | |
2532 | }; | |
2533 | ||
2534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2537 | { | |
2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2539 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2540 | ||
2541 | wxPyEndAllowThreads(__tstate); | |
2542 | if (PyErr_Occurred()) SWIG_fail; | |
2543 | } | |
2544 | resultobj = SWIG_FromInt((int)result); | |
2545 | return resultobj; | |
2546 | fail: | |
2547 | return NULL; | |
2548 | } | |
2549 | ||
2550 | ||
2551 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject *resultobj; | |
2553 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2554 | wxBitmap *result; | |
2555 | PyObject * obj0 = 0 ; | |
2556 | char *kwnames[] = { | |
2557 | (char *) "self", NULL | |
2558 | }; | |
2559 | ||
2560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2563 | { | |
2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2565 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2566 | ||
2567 | wxPyEndAllowThreads(__tstate); | |
2568 | if (PyErr_Occurred()) SWIG_fail; | |
2569 | } | |
2570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2571 | return resultobj; | |
2572 | fail: | |
2573 | return NULL; | |
2574 | } | |
2575 | ||
2576 | ||
2577 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2578 | PyObject *resultobj; | |
2579 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2580 | bool result; | |
2581 | PyObject * obj0 = 0 ; | |
2582 | char *kwnames[] = { | |
2583 | (char *) "self", NULL | |
2584 | }; | |
2585 | ||
2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2589 | { | |
2590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2591 | result = (bool)(arg1)->Ok(); | |
2592 | ||
2593 | wxPyEndAllowThreads(__tstate); | |
2594 | if (PyErr_Occurred()) SWIG_fail; | |
2595 | } | |
2596 | { | |
2597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2598 | } | |
2599 | return resultobj; | |
2600 | fail: | |
2601 | return NULL; | |
2602 | } | |
2603 | ||
2604 | ||
2605 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2606 | PyObject *obj; | |
2607 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2608 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2609 | Py_INCREF(obj); | |
2610 | return Py_BuildValue((char *)""); | |
2611 | } | |
2612 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2613 | PyObject *resultobj; | |
2614 | wxString *arg1 = 0 ; | |
2615 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2616 | wxBitmap *result; | |
2617 | bool temp1 = False ; | |
2618 | PyObject * obj0 = 0 ; | |
2619 | PyObject * obj1 = 0 ; | |
2620 | char *kwnames[] = { | |
2621 | (char *) "name",(char *) "type", NULL | |
2622 | }; | |
2623 | ||
2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; | |
2625 | { | |
2626 | arg1 = wxString_in_helper(obj0); | |
2627 | if (arg1 == NULL) SWIG_fail; | |
2628 | temp1 = True; | |
2629 | } | |
2630 | if (obj1) { | |
2631 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); | |
2632 | if (PyErr_Occurred()) SWIG_fail; | |
2633 | } | |
2634 | { | |
0439c23b | 2635 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2637 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2638 | ||
2639 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2640 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2641 | } |
2642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2643 | { | |
2644 | if (temp1) | |
2645 | delete arg1; | |
2646 | } | |
2647 | return resultobj; | |
2648 | fail: | |
2649 | { | |
2650 | if (temp1) | |
2651 | delete arg1; | |
2652 | } | |
2653 | return NULL; | |
2654 | } | |
2655 | ||
2656 | ||
2657 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2658 | PyObject *resultobj; | |
2659 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2660 | PyObject * obj0 = 0 ; | |
2661 | char *kwnames[] = { | |
2662 | (char *) "self", NULL | |
2663 | }; | |
2664 | ||
2665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2668 | { | |
2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2670 | delete arg1; | |
2671 | ||
2672 | wxPyEndAllowThreads(__tstate); | |
2673 | if (PyErr_Occurred()) SWIG_fail; | |
2674 | } | |
2675 | Py_INCREF(Py_None); resultobj = Py_None; | |
2676 | return resultobj; | |
2677 | fail: | |
2678 | return NULL; | |
2679 | } | |
2680 | ||
2681 | ||
c24da6d6 RD |
2682 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
2683 | PyObject *resultobj; | |
2684 | int arg1 ; | |
2685 | int arg2 ; | |
2686 | int arg3 = (int) -1 ; | |
2687 | wxBitmap *result; | |
2688 | PyObject * obj0 = 0 ; | |
2689 | PyObject * obj1 = 0 ; | |
2690 | PyObject * obj2 = 0 ; | |
2691 | char *kwnames[] = { | |
2692 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2693 | }; | |
2694 | ||
2695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2696 | arg1 = (int) SWIG_AsInt(obj0); | |
2697 | if (PyErr_Occurred()) SWIG_fail; | |
2698 | arg2 = (int) SWIG_AsInt(obj1); | |
2699 | if (PyErr_Occurred()) SWIG_fail; | |
2700 | if (obj2) { | |
2701 | arg3 = (int) SWIG_AsInt(obj2); | |
2702 | if (PyErr_Occurred()) SWIG_fail; | |
2703 | } | |
2704 | { | |
0439c23b | 2705 | if (!wxPyCheckForApp()) SWIG_fail; |
c24da6d6 RD |
2706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2707 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2708 | ||
2709 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2710 | if (PyErr_Occurred()) SWIG_fail; |
c24da6d6 RD |
2711 | } |
2712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2713 | return resultobj; | |
2714 | fail: | |
2715 | return NULL; | |
2716 | } | |
2717 | ||
2718 | ||
d55e5bfc RD |
2719 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
2720 | PyObject *resultobj; | |
2721 | wxIcon *arg1 = 0 ; | |
2722 | wxBitmap *result; | |
2723 | PyObject * obj0 = 0 ; | |
2724 | char *kwnames[] = { | |
2725 | (char *) "icon", NULL | |
2726 | }; | |
2727 | ||
2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
2730 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2731 | SWIG_fail; | |
2732 | if (arg1 == NULL) { | |
2733 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2734 | SWIG_fail; | |
2735 | } | |
2736 | { | |
0439c23b | 2737 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2739 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2740 | ||
2741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2742 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2743 | } |
2744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2745 | return resultobj; | |
2746 | fail: | |
2747 | return NULL; | |
2748 | } | |
2749 | ||
2750 | ||
2751 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2752 | PyObject *resultobj; | |
2753 | wxImage *arg1 = 0 ; | |
2754 | int arg2 = (int) -1 ; | |
2755 | wxBitmap *result; | |
2756 | PyObject * obj0 = 0 ; | |
2757 | PyObject * obj1 = 0 ; | |
2758 | char *kwnames[] = { | |
2759 | (char *) "image",(char *) "depth", NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; | |
2763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
2764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2765 | SWIG_fail; | |
2766 | if (arg1 == NULL) { | |
2767 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2768 | SWIG_fail; | |
2769 | } | |
2770 | if (obj1) { | |
2771 | arg2 = (int) SWIG_AsInt(obj1); | |
2772 | if (PyErr_Occurred()) SWIG_fail; | |
2773 | } | |
2774 | { | |
0439c23b | 2775 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2777 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2778 | ||
2779 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2780 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2781 | } |
2782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2783 | return resultobj; | |
2784 | fail: | |
2785 | return NULL; | |
2786 | } | |
2787 | ||
2788 | ||
2789 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2790 | PyObject *resultobj; | |
2791 | PyObject *arg1 = (PyObject *) 0 ; | |
2792 | wxBitmap *result; | |
2793 | PyObject * obj0 = 0 ; | |
2794 | char *kwnames[] = { | |
2795 | (char *) "listOfStrings", NULL | |
2796 | }; | |
2797 | ||
2798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2799 | arg1 = obj0; | |
2800 | { | |
0439c23b | 2801 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2803 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2804 | ||
2805 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2806 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2807 | } |
2808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2809 | return resultobj; | |
2810 | fail: | |
2811 | return NULL; | |
2812 | } | |
2813 | ||
2814 | ||
2815 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2816 | PyObject *resultobj; | |
2817 | PyObject *arg1 = (PyObject *) 0 ; | |
2818 | int arg2 ; | |
2819 | int arg3 ; | |
2820 | int arg4 = (int) 1 ; | |
2821 | wxBitmap *result; | |
2822 | PyObject * obj0 = 0 ; | |
2823 | PyObject * obj1 = 0 ; | |
2824 | PyObject * obj2 = 0 ; | |
2825 | PyObject * obj3 = 0 ; | |
2826 | char *kwnames[] = { | |
2827 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2828 | }; | |
2829 | ||
2830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2831 | arg1 = obj0; | |
2832 | arg2 = (int) SWIG_AsInt(obj1); | |
2833 | if (PyErr_Occurred()) SWIG_fail; | |
2834 | arg3 = (int) SWIG_AsInt(obj2); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | if (obj3) { | |
2837 | arg4 = (int) SWIG_AsInt(obj3); | |
2838 | if (PyErr_Occurred()) SWIG_fail; | |
2839 | } | |
2840 | { | |
0439c23b | 2841 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2843 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2844 | ||
2845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2846 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2847 | } |
2848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2849 | return resultobj; | |
2850 | fail: | |
2851 | return NULL; | |
2852 | } | |
2853 | ||
2854 | ||
c24da6d6 | 2855 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2856 | PyObject *resultobj; |
c24da6d6 RD |
2857 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
2858 | wxPalette *arg2 = 0 ; | |
d55e5bfc RD |
2859 | PyObject * obj0 = 0 ; |
2860 | PyObject * obj1 = 0 ; | |
c24da6d6 RD |
2861 | char *kwnames[] = { |
2862 | (char *) "self",(char *) "palette", NULL | |
2863 | }; | |
d55e5bfc | 2864 | |
c24da6d6 RD |
2865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; |
2866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
2869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2870 | SWIG_fail; | |
2871 | if (arg2 == NULL) { | |
2872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2873 | SWIG_fail; | |
d55e5bfc RD |
2874 | } |
2875 | { | |
2876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2877 | (arg1)->SetPalette(*arg2); |
d55e5bfc RD |
2878 | |
2879 | wxPyEndAllowThreads(__tstate); | |
2880 | if (PyErr_Occurred()) SWIG_fail; | |
2881 | } | |
c24da6d6 | 2882 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2883 | return resultobj; |
2884 | fail: | |
2885 | return NULL; | |
2886 | } | |
2887 | ||
2888 | ||
c24da6d6 | 2889 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2890 | PyObject *resultobj; |
c24da6d6 RD |
2891 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
2892 | long result; | |
d55e5bfc | 2893 | PyObject * obj0 = 0 ; |
c24da6d6 RD |
2894 | char *kwnames[] = { |
2895 | (char *) "self", NULL | |
2896 | }; | |
d55e5bfc | 2897 | |
c24da6d6 RD |
2898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; |
2899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc | 2901 | { |
c24da6d6 RD |
2902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2903 | result = (long)(arg1)->GetHandle(); | |
2904 | ||
2905 | wxPyEndAllowThreads(__tstate); | |
d55e5bfc RD |
2906 | if (PyErr_Occurred()) SWIG_fail; |
2907 | } | |
c24da6d6 RD |
2908 | resultobj = SWIG_FromLong((long)result); |
2909 | return resultobj; | |
2910 | fail: | |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
2915 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2916 | PyObject *resultobj; | |
2917 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2918 | long arg2 ; | |
2919 | PyObject * obj0 = 0 ; | |
2920 | PyObject * obj1 = 0 ; | |
2921 | char *kwnames[] = { | |
2922 | (char *) "self",(char *) "handle", NULL | |
2923 | }; | |
2924 | ||
2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
2926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2928 | arg2 = (long) SWIG_AsLong(obj1); | |
2929 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
2930 | { |
2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2932 | wxBitmap_SetHandle(arg1,arg2); |
d55e5bfc RD |
2933 | |
2934 | wxPyEndAllowThreads(__tstate); | |
2935 | if (PyErr_Occurred()) SWIG_fail; | |
2936 | } | |
c24da6d6 | 2937 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2938 | return resultobj; |
2939 | fail: | |
2940 | return NULL; | |
2941 | } | |
2942 | ||
2943 | ||
2944 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2945 | PyObject *resultobj; | |
2946 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2947 | bool result; | |
2948 | PyObject * obj0 = 0 ; | |
2949 | char *kwnames[] = { | |
2950 | (char *) "self", NULL | |
2951 | }; | |
2952 | ||
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2956 | { | |
2957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2958 | result = (bool)(arg1)->Ok(); | |
2959 | ||
2960 | wxPyEndAllowThreads(__tstate); | |
2961 | if (PyErr_Occurred()) SWIG_fail; | |
2962 | } | |
2963 | { | |
2964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2965 | } | |
2966 | return resultobj; | |
2967 | fail: | |
2968 | return NULL; | |
2969 | } | |
2970 | ||
2971 | ||
2972 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2973 | PyObject *resultobj; | |
2974 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2975 | int result; | |
2976 | PyObject * obj0 = 0 ; | |
2977 | char *kwnames[] = { | |
2978 | (char *) "self", NULL | |
2979 | }; | |
2980 | ||
2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2984 | { | |
2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2986 | result = (int)(arg1)->GetWidth(); | |
2987 | ||
2988 | wxPyEndAllowThreads(__tstate); | |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
2990 | } | |
2991 | resultobj = SWIG_FromInt((int)result); | |
2992 | return resultobj; | |
2993 | fail: | |
2994 | return NULL; | |
2995 | } | |
2996 | ||
2997 | ||
2998 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2999 | PyObject *resultobj; | |
3000 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3001 | int result; | |
3002 | PyObject * obj0 = 0 ; | |
3003 | char *kwnames[] = { | |
3004 | (char *) "self", NULL | |
3005 | }; | |
3006 | ||
3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
3008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3010 | { | |
3011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3012 | result = (int)(arg1)->GetHeight(); | |
3013 | ||
3014 | wxPyEndAllowThreads(__tstate); | |
3015 | if (PyErr_Occurred()) SWIG_fail; | |
3016 | } | |
3017 | resultobj = SWIG_FromInt((int)result); | |
3018 | return resultobj; | |
3019 | fail: | |
3020 | return NULL; | |
3021 | } | |
3022 | ||
3023 | ||
3024 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3025 | PyObject *resultobj; | |
3026 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3027 | int result; | |
3028 | PyObject * obj0 = 0 ; | |
3029 | char *kwnames[] = { | |
3030 | (char *) "self", NULL | |
3031 | }; | |
3032 | ||
3033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
3034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3036 | { | |
3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3038 | result = (int)(arg1)->GetDepth(); | |
3039 | ||
3040 | wxPyEndAllowThreads(__tstate); | |
3041 | if (PyErr_Occurred()) SWIG_fail; | |
3042 | } | |
3043 | resultobj = SWIG_FromInt((int)result); | |
3044 | return resultobj; | |
3045 | fail: | |
3046 | return NULL; | |
3047 | } | |
3048 | ||
3049 | ||
3050 | static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3051 | PyObject *resultobj; | |
3052 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3053 | wxSize result; | |
3054 | PyObject * obj0 = 0 ; | |
3055 | char *kwnames[] = { | |
3056 | (char *) "self", NULL | |
3057 | }; | |
3058 | ||
3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3062 | { | |
3063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3064 | result = wxBitmap_GetSize(arg1); | |
3065 | ||
3066 | wxPyEndAllowThreads(__tstate); | |
3067 | if (PyErr_Occurred()) SWIG_fail; | |
3068 | } | |
3069 | { | |
3070 | wxSize * resultptr; | |
3071 | resultptr = new wxSize((wxSize &) result); | |
3072 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3073 | } | |
3074 | return resultobj; | |
3075 | fail: | |
3076 | return NULL; | |
3077 | } | |
3078 | ||
3079 | ||
3080 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3081 | PyObject *resultobj; | |
3082 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3083 | SwigValueWrapper< wxImage > result; | |
3084 | PyObject * obj0 = 0 ; | |
3085 | char *kwnames[] = { | |
3086 | (char *) "self", NULL | |
3087 | }; | |
3088 | ||
3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
3090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3092 | { | |
3093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3094 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3095 | ||
3096 | wxPyEndAllowThreads(__tstate); | |
3097 | if (PyErr_Occurred()) SWIG_fail; | |
3098 | } | |
3099 | { | |
3100 | wxImage * resultptr; | |
3101 | resultptr = new wxImage((wxImage &) result); | |
3102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
3103 | } | |
3104 | return resultobj; | |
3105 | fail: | |
3106 | return NULL; | |
3107 | } | |
3108 | ||
3109 | ||
3110 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3111 | PyObject *resultobj; | |
3112 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3113 | wxMask *result; | |
3114 | PyObject * obj0 = 0 ; | |
3115 | char *kwnames[] = { | |
3116 | (char *) "self", NULL | |
3117 | }; | |
3118 | ||
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3122 | { | |
3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3124 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3125 | ||
3126 | wxPyEndAllowThreads(__tstate); | |
3127 | if (PyErr_Occurred()) SWIG_fail; | |
3128 | } | |
3129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); | |
3130 | return resultobj; | |
3131 | fail: | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
3136 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3137 | PyObject *resultobj; | |
3138 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3139 | wxMask *arg2 = (wxMask *) 0 ; | |
3140 | PyObject * obj0 = 0 ; | |
3141 | PyObject * obj1 = 0 ; | |
3142 | char *kwnames[] = { | |
3143 | (char *) "self",(char *) "mask", NULL | |
3144 | }; | |
3145 | ||
3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3149 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3151 | { | |
3152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3153 | (arg1)->SetMask(arg2); | |
3154 | ||
3155 | wxPyEndAllowThreads(__tstate); | |
3156 | if (PyErr_Occurred()) SWIG_fail; | |
3157 | } | |
3158 | Py_INCREF(Py_None); resultobj = Py_None; | |
3159 | return resultobj; | |
3160 | fail: | |
3161 | return NULL; | |
3162 | } | |
3163 | ||
3164 | ||
3165 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3166 | PyObject *resultobj; | |
3167 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3168 | wxColour *arg2 = 0 ; | |
3169 | wxColour temp2 ; | |
3170 | PyObject * obj0 = 0 ; | |
3171 | PyObject * obj1 = 0 ; | |
3172 | char *kwnames[] = { | |
3173 | (char *) "self",(char *) "colour", NULL | |
3174 | }; | |
3175 | ||
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3179 | { | |
3180 | arg2 = &temp2; | |
3181 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3182 | } | |
3183 | { | |
3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3185 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3186 | ||
3187 | wxPyEndAllowThreads(__tstate); | |
3188 | if (PyErr_Occurred()) SWIG_fail; | |
3189 | } | |
3190 | Py_INCREF(Py_None); resultobj = Py_None; | |
3191 | return resultobj; | |
3192 | fail: | |
3193 | return NULL; | |
3194 | } | |
3195 | ||
3196 | ||
3197 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3198 | PyObject *resultobj; | |
3199 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3200 | wxRect *arg2 = 0 ; | |
3201 | SwigValueWrapper< wxBitmap > result; | |
3202 | wxRect temp2 ; | |
3203 | PyObject * obj0 = 0 ; | |
3204 | PyObject * obj1 = 0 ; | |
3205 | char *kwnames[] = { | |
3206 | (char *) "self",(char *) "rect", NULL | |
3207 | }; | |
3208 | ||
3209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3212 | { | |
3213 | arg2 = &temp2; | |
3214 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3219 | ||
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) SWIG_fail; | |
3222 | } | |
3223 | { | |
3224 | wxBitmap * resultptr; | |
3225 | resultptr = new wxBitmap((wxBitmap &) result); | |
3226 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3227 | } | |
3228 | return resultobj; | |
3229 | fail: | |
3230 | return NULL; | |
3231 | } | |
3232 | ||
3233 | ||
3234 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3235 | PyObject *resultobj; | |
3236 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3237 | wxString *arg2 = 0 ; | |
3238 | int arg3 ; | |
c24da6d6 | 3239 | wxPalette *arg4 = (wxPalette *) NULL ; |
d55e5bfc RD |
3240 | bool result; |
3241 | bool temp2 = False ; | |
3242 | PyObject * obj0 = 0 ; | |
3243 | PyObject * obj1 = 0 ; | |
3244 | PyObject * obj2 = 0 ; | |
3245 | PyObject * obj3 = 0 ; | |
3246 | char *kwnames[] = { | |
3247 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3248 | }; | |
3249 | ||
3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3253 | { | |
3254 | arg2 = wxString_in_helper(obj1); | |
3255 | if (arg2 == NULL) SWIG_fail; | |
3256 | temp2 = True; | |
3257 | } | |
3258 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3259 | if (PyErr_Occurred()) SWIG_fail; | |
3260 | if (obj3) { | |
3261 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, | |
3262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3263 | } | |
3264 | { | |
3265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3266 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3267 | ||
3268 | wxPyEndAllowThreads(__tstate); | |
3269 | if (PyErr_Occurred()) SWIG_fail; | |
3270 | } | |
3271 | { | |
3272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3273 | } | |
3274 | { | |
3275 | if (temp2) | |
3276 | delete arg2; | |
3277 | } | |
3278 | return resultobj; | |
3279 | fail: | |
3280 | { | |
3281 | if (temp2) | |
3282 | delete arg2; | |
3283 | } | |
3284 | return NULL; | |
3285 | } | |
3286 | ||
3287 | ||
3288 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3289 | PyObject *resultobj; | |
3290 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3291 | wxString *arg2 = 0 ; | |
3292 | int arg3 ; | |
3293 | bool result; | |
3294 | bool temp2 = False ; | |
3295 | PyObject * obj0 = 0 ; | |
3296 | PyObject * obj1 = 0 ; | |
3297 | PyObject * obj2 = 0 ; | |
3298 | char *kwnames[] = { | |
3299 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3300 | }; | |
3301 | ||
3302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3305 | { | |
3306 | arg2 = wxString_in_helper(obj1); | |
3307 | if (arg2 == NULL) SWIG_fail; | |
3308 | temp2 = True; | |
3309 | } | |
3310 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3311 | if (PyErr_Occurred()) SWIG_fail; | |
3312 | { | |
3313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3314 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3315 | ||
3316 | wxPyEndAllowThreads(__tstate); | |
3317 | if (PyErr_Occurred()) SWIG_fail; | |
3318 | } | |
3319 | { | |
3320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3321 | } | |
3322 | { | |
3323 | if (temp2) | |
3324 | delete arg2; | |
3325 | } | |
3326 | return resultobj; | |
3327 | fail: | |
3328 | { | |
3329 | if (temp2) | |
3330 | delete arg2; | |
3331 | } | |
3332 | return NULL; | |
3333 | } | |
3334 | ||
3335 | ||
3336 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3337 | PyObject *resultobj; | |
3338 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3339 | wxIcon *arg2 = 0 ; | |
3340 | bool result; | |
3341 | PyObject * obj0 = 0 ; | |
3342 | PyObject * obj1 = 0 ; | |
3343 | char *kwnames[] = { | |
3344 | (char *) "self",(char *) "icon", NULL | |
3345 | }; | |
3346 | ||
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3351 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3352 | SWIG_fail; | |
3353 | if (arg2 == NULL) { | |
3354 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3355 | SWIG_fail; | |
3356 | } | |
3357 | { | |
3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3359 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3360 | ||
3361 | wxPyEndAllowThreads(__tstate); | |
3362 | if (PyErr_Occurred()) SWIG_fail; | |
3363 | } | |
3364 | { | |
3365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3366 | } | |
3367 | return resultobj; | |
3368 | fail: | |
3369 | return NULL; | |
3370 | } | |
3371 | ||
3372 | ||
3373 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3374 | PyObject *resultobj; | |
3375 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3376 | int arg2 ; | |
3377 | PyObject * obj0 = 0 ; | |
3378 | PyObject * obj1 = 0 ; | |
3379 | char *kwnames[] = { | |
3380 | (char *) "self",(char *) "height", NULL | |
3381 | }; | |
3382 | ||
3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3386 | arg2 = (int) SWIG_AsInt(obj1); | |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
3388 | { | |
3389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3390 | (arg1)->SetHeight(arg2); | |
3391 | ||
3392 | wxPyEndAllowThreads(__tstate); | |
3393 | if (PyErr_Occurred()) SWIG_fail; | |
3394 | } | |
3395 | Py_INCREF(Py_None); resultobj = Py_None; | |
3396 | return resultobj; | |
3397 | fail: | |
3398 | return NULL; | |
3399 | } | |
3400 | ||
3401 | ||
3402 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject *resultobj; | |
3404 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3405 | int arg2 ; | |
3406 | PyObject * obj0 = 0 ; | |
3407 | PyObject * obj1 = 0 ; | |
3408 | char *kwnames[] = { | |
3409 | (char *) "self",(char *) "width", NULL | |
3410 | }; | |
3411 | ||
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3415 | arg2 = (int) SWIG_AsInt(obj1); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | { | |
3418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3419 | (arg1)->SetWidth(arg2); | |
3420 | ||
3421 | wxPyEndAllowThreads(__tstate); | |
3422 | if (PyErr_Occurred()) SWIG_fail; | |
3423 | } | |
3424 | Py_INCREF(Py_None); resultobj = Py_None; | |
3425 | return resultobj; | |
3426 | fail: | |
3427 | return NULL; | |
3428 | } | |
3429 | ||
3430 | ||
3431 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3432 | PyObject *resultobj; | |
3433 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3434 | int arg2 ; | |
3435 | PyObject * obj0 = 0 ; | |
3436 | PyObject * obj1 = 0 ; | |
3437 | char *kwnames[] = { | |
3438 | (char *) "self",(char *) "depth", NULL | |
3439 | }; | |
3440 | ||
3441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3444 | arg2 = (int) SWIG_AsInt(obj1); | |
3445 | if (PyErr_Occurred()) SWIG_fail; | |
3446 | { | |
3447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3448 | (arg1)->SetDepth(arg2); | |
3449 | ||
3450 | wxPyEndAllowThreads(__tstate); | |
3451 | if (PyErr_Occurred()) SWIG_fail; | |
3452 | } | |
3453 | Py_INCREF(Py_None); resultobj = Py_None; | |
3454 | return resultobj; | |
3455 | fail: | |
3456 | return NULL; | |
3457 | } | |
3458 | ||
3459 | ||
3460 | static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3461 | PyObject *resultobj; | |
3462 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3463 | wxSize *arg2 = 0 ; | |
3464 | wxSize temp2 ; | |
3465 | PyObject * obj0 = 0 ; | |
3466 | PyObject * obj1 = 0 ; | |
3467 | char *kwnames[] = { | |
3468 | (char *) "self",(char *) "size", NULL | |
3469 | }; | |
3470 | ||
3471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3474 | { | |
3475 | arg2 = &temp2; | |
3476 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3477 | } | |
3478 | { | |
3479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3480 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3481 | ||
3482 | wxPyEndAllowThreads(__tstate); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
3485 | Py_INCREF(Py_None); resultobj = Py_None; | |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
3492 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3493 | PyObject *resultobj; | |
3494 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3495 | wxCursor *arg2 = 0 ; | |
3496 | bool result; | |
3497 | PyObject * obj0 = 0 ; | |
3498 | PyObject * obj1 = 0 ; | |
3499 | char *kwnames[] = { | |
3500 | (char *) "self",(char *) "cursor", NULL | |
3501 | }; | |
3502 | ||
3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
3504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
3507 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3508 | SWIG_fail; | |
3509 | if (arg2 == NULL) { | |
3510 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3511 | SWIG_fail; | |
3512 | } | |
3513 | { | |
3514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3515 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
3516 | ||
3517 | wxPyEndAllowThreads(__tstate); | |
3518 | if (PyErr_Occurred()) SWIG_fail; | |
3519 | } | |
3520 | { | |
3521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3522 | } | |
3523 | return resultobj; | |
3524 | fail: | |
3525 | return NULL; | |
3526 | } | |
3527 | ||
3528 | ||
3529 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3530 | PyObject *resultobj; | |
3531 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3532 | int result; | |
3533 | PyObject * obj0 = 0 ; | |
3534 | char *kwnames[] = { | |
3535 | (char *) "self", NULL | |
3536 | }; | |
3537 | ||
3538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
3539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | result = (int)(arg1)->GetQuality(); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
3548 | resultobj = SWIG_FromInt((int)result); | |
3549 | return resultobj; | |
3550 | fail: | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
3555 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject *resultobj; | |
3557 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3558 | int arg2 ; | |
3559 | PyObject * obj0 = 0 ; | |
3560 | PyObject * obj1 = 0 ; | |
3561 | char *kwnames[] = { | |
3562 | (char *) "self",(char *) "q", NULL | |
3563 | }; | |
3564 | ||
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
3566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3568 | arg2 = (int) SWIG_AsInt(obj1); | |
3569 | if (PyErr_Occurred()) SWIG_fail; | |
3570 | { | |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3572 | (arg1)->SetQuality(arg2); | |
3573 | ||
3574 | wxPyEndAllowThreads(__tstate); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
3577 | Py_INCREF(Py_None); resultobj = Py_None; | |
3578 | return resultobj; | |
3579 | fail: | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
3584 | static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject *resultobj; | |
3586 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3587 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3588 | bool result; | |
3589 | PyObject * obj0 = 0 ; | |
3590 | PyObject * obj1 = 0 ; | |
3591 | char *kwnames[] = { | |
3592 | (char *) "self",(char *) "other", NULL | |
3593 | }; | |
3594 | ||
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3600 | { | |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3602 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3603 | ||
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) SWIG_fail; | |
3606 | } | |
3607 | { | |
3608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3609 | } | |
3610 | return resultobj; | |
3611 | fail: | |
3612 | return NULL; | |
3613 | } | |
3614 | ||
3615 | ||
3616 | static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3617 | PyObject *resultobj; | |
3618 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3619 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3620 | bool result; | |
3621 | PyObject * obj0 = 0 ; | |
3622 | PyObject * obj1 = 0 ; | |
3623 | char *kwnames[] = { | |
3624 | (char *) "self",(char *) "other", NULL | |
3625 | }; | |
3626 | ||
3627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3632 | { | |
3633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3634 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3635 | ||
3636 | wxPyEndAllowThreads(__tstate); | |
3637 | if (PyErr_Occurred()) SWIG_fail; | |
3638 | } | |
3639 | { | |
3640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3641 | } | |
3642 | return resultobj; | |
3643 | fail: | |
3644 | return NULL; | |
3645 | } | |
3646 | ||
3647 | ||
3648 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3649 | PyObject *obj; | |
3650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3651 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3652 | Py_INCREF(obj); | |
3653 | return Py_BuildValue((char *)""); | |
3654 | } | |
3655 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3656 | PyObject *resultobj; | |
3657 | wxBitmap *arg1 = 0 ; | |
3658 | wxColour const &arg2_defvalue = wxNullColour ; | |
3659 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3660 | wxMask *result; | |
3661 | wxColour temp2 ; | |
3662 | PyObject * obj0 = 0 ; | |
3663 | PyObject * obj1 = 0 ; | |
3664 | char *kwnames[] = { | |
3665 | (char *) "bitmap",(char *) "colour", NULL | |
3666 | }; | |
3667 | ||
3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; | |
3669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3671 | SWIG_fail; | |
3672 | if (arg1 == NULL) { | |
3673 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3674 | SWIG_fail; | |
3675 | } | |
3676 | if (obj1) { | |
3677 | { | |
3678 | arg2 = &temp2; | |
3679 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3680 | } | |
3681 | } | |
3682 | { | |
0439c23b | 3683 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3685 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3686 | ||
3687 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3688 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3689 | } |
3690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); | |
3691 | return resultobj; | |
3692 | fail: | |
3693 | return NULL; | |
3694 | } | |
3695 | ||
3696 | ||
3697 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3698 | PyObject *obj; | |
3699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3700 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3701 | Py_INCREF(obj); | |
3702 | return Py_BuildValue((char *)""); | |
3703 | } | |
3704 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject *resultobj; | |
3706 | wxString *arg1 = 0 ; | |
3707 | int arg2 ; | |
3708 | int arg3 = (int) -1 ; | |
3709 | int arg4 = (int) -1 ; | |
3710 | wxIcon *result; | |
3711 | bool temp1 = False ; | |
3712 | PyObject * obj0 = 0 ; | |
3713 | PyObject * obj1 = 0 ; | |
3714 | PyObject * obj2 = 0 ; | |
3715 | PyObject * obj3 = 0 ; | |
3716 | char *kwnames[] = { | |
3717 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3718 | }; | |
3719 | ||
3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3721 | { | |
3722 | arg1 = wxString_in_helper(obj0); | |
3723 | if (arg1 == NULL) SWIG_fail; | |
3724 | temp1 = True; | |
3725 | } | |
3726 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | if (obj2) { | |
3729 | arg3 = (int) SWIG_AsInt(obj2); | |
3730 | if (PyErr_Occurred()) SWIG_fail; | |
3731 | } | |
3732 | if (obj3) { | |
3733 | arg4 = (int) SWIG_AsInt(obj3); | |
3734 | if (PyErr_Occurred()) SWIG_fail; | |
3735 | } | |
3736 | { | |
0439c23b | 3737 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3739 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3740 | ||
3741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3742 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3743 | } |
3744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3745 | { | |
3746 | if (temp1) | |
3747 | delete arg1; | |
3748 | } | |
3749 | return resultobj; | |
3750 | fail: | |
3751 | { | |
3752 | if (temp1) | |
3753 | delete arg1; | |
3754 | } | |
3755 | return NULL; | |
3756 | } | |
3757 | ||
3758 | ||
3759 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3760 | PyObject *resultobj; | |
3761 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3762 | PyObject * obj0 = 0 ; | |
3763 | char *kwnames[] = { | |
3764 | (char *) "self", NULL | |
3765 | }; | |
3766 | ||
3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3770 | { | |
3771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3772 | delete arg1; | |
3773 | ||
3774 | wxPyEndAllowThreads(__tstate); | |
3775 | if (PyErr_Occurred()) SWIG_fail; | |
3776 | } | |
3777 | Py_INCREF(Py_None); resultobj = Py_None; | |
3778 | return resultobj; | |
3779 | fail: | |
3780 | return NULL; | |
3781 | } | |
3782 | ||
3783 | ||
3784 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3785 | PyObject *resultobj; | |
3786 | wxIcon *result; | |
3787 | char *kwnames[] = { | |
3788 | NULL | |
3789 | }; | |
3790 | ||
3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3792 | { | |
0439c23b | 3793 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3795 | result = (wxIcon *)new wxIcon(); | |
3796 | ||
3797 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3798 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3799 | } |
3800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3801 | return resultobj; | |
3802 | fail: | |
3803 | return NULL; | |
3804 | } | |
3805 | ||
3806 | ||
3807 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3808 | PyObject *resultobj; | |
3809 | wxIconLocation *arg1 = 0 ; | |
3810 | wxIcon *result; | |
3811 | PyObject * obj0 = 0 ; | |
3812 | char *kwnames[] = { | |
3813 | (char *) "loc", NULL | |
3814 | }; | |
3815 | ||
3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
3818 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3819 | SWIG_fail; | |
3820 | if (arg1 == NULL) { | |
3821 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3822 | SWIG_fail; | |
3823 | } | |
3824 | { | |
0439c23b | 3825 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3827 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3828 | ||
3829 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3830 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3831 | } |
3832 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3833 | return resultobj; | |
3834 | fail: | |
3835 | return NULL; | |
3836 | } | |
3837 | ||
3838 | ||
3839 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3840 | PyObject *resultobj; | |
3841 | wxBitmap *arg1 = 0 ; | |
3842 | wxIcon *result; | |
3843 | PyObject * obj0 = 0 ; | |
3844 | char *kwnames[] = { | |
3845 | (char *) "bmp", NULL | |
3846 | }; | |
3847 | ||
3848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3851 | SWIG_fail; | |
3852 | if (arg1 == NULL) { | |
3853 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3854 | SWIG_fail; | |
3855 | } | |
3856 | { | |
0439c23b | 3857 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3859 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3860 | ||
3861 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3862 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3863 | } |
3864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | PyObject *arg1 = (PyObject *) 0 ; | |
3874 | wxIcon *result; | |
3875 | PyObject * obj0 = 0 ; | |
3876 | char *kwnames[] = { | |
3877 | (char *) "listOfStrings", NULL | |
3878 | }; | |
3879 | ||
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3881 | arg1 = obj0; | |
3882 | { | |
0439c23b | 3883 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3885 | result = (wxIcon *)new_wxIcon(arg1); | |
3886 | ||
3887 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3888 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3889 | } |
3890 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3891 | return resultobj; | |
3892 | fail: | |
3893 | return NULL; | |
3894 | } | |
3895 | ||
3896 | ||
3897 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3898 | PyObject *resultobj; | |
3899 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3900 | wxString *arg2 = 0 ; | |
3901 | int arg3 ; | |
3902 | bool result; | |
3903 | bool temp2 = False ; | |
3904 | PyObject * obj0 = 0 ; | |
3905 | PyObject * obj1 = 0 ; | |
3906 | PyObject * obj2 = 0 ; | |
3907 | char *kwnames[] = { | |
3908 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3909 | }; | |
3910 | ||
3911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3914 | { | |
3915 | arg2 = wxString_in_helper(obj1); | |
3916 | if (arg2 == NULL) SWIG_fail; | |
3917 | temp2 = True; | |
3918 | } | |
3919 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3920 | if (PyErr_Occurred()) SWIG_fail; | |
3921 | { | |
3922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3923 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3924 | ||
3925 | wxPyEndAllowThreads(__tstate); | |
3926 | if (PyErr_Occurred()) SWIG_fail; | |
3927 | } | |
3928 | { | |
3929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3930 | } | |
3931 | { | |
3932 | if (temp2) | |
3933 | delete arg2; | |
3934 | } | |
3935 | return resultobj; | |
3936 | fail: | |
3937 | { | |
3938 | if (temp2) | |
3939 | delete arg2; | |
3940 | } | |
3941 | return NULL; | |
3942 | } | |
3943 | ||
3944 | ||
3945 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3946 | PyObject *resultobj; | |
3947 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3948 | long result; | |
3949 | PyObject * obj0 = 0 ; | |
3950 | char *kwnames[] = { | |
3951 | (char *) "self", NULL | |
3952 | }; | |
3953 | ||
3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3957 | { | |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3959 | result = (long)(arg1)->GetHandle(); | |
3960 | ||
3961 | wxPyEndAllowThreads(__tstate); | |
3962 | if (PyErr_Occurred()) SWIG_fail; | |
3963 | } | |
3964 | resultobj = SWIG_FromLong((long)result); | |
3965 | return resultobj; | |
3966 | fail: | |
3967 | return NULL; | |
3968 | } | |
3969 | ||
3970 | ||
3971 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3972 | PyObject *resultobj; | |
3973 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3974 | long arg2 ; | |
3975 | PyObject * obj0 = 0 ; | |
3976 | PyObject * obj1 = 0 ; | |
3977 | char *kwnames[] = { | |
3978 | (char *) "self",(char *) "handle", NULL | |
3979 | }; | |
3980 | ||
3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
3982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3984 | arg2 = (long) SWIG_AsLong(obj1); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | { | |
3987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3988 | wxIcon_SetHandle(arg1,arg2); | |
3989 | ||
3990 | wxPyEndAllowThreads(__tstate); | |
3991 | if (PyErr_Occurred()) SWIG_fail; | |
3992 | } | |
3993 | Py_INCREF(Py_None); resultobj = Py_None; | |
3994 | return resultobj; | |
3995 | fail: | |
3996 | return NULL; | |
3997 | } | |
3998 | ||
3999 | ||
4000 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4001 | PyObject *resultobj; | |
4002 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4003 | bool result; | |
4004 | PyObject * obj0 = 0 ; | |
4005 | char *kwnames[] = { | |
4006 | (char *) "self", NULL | |
4007 | }; | |
4008 | ||
4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
4010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4012 | { | |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | result = (bool)(arg1)->Ok(); | |
4015 | ||
4016 | wxPyEndAllowThreads(__tstate); | |
4017 | if (PyErr_Occurred()) SWIG_fail; | |
4018 | } | |
4019 | { | |
4020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4021 | } | |
4022 | return resultobj; | |
4023 | fail: | |
4024 | return NULL; | |
4025 | } | |
4026 | ||
4027 | ||
4028 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4029 | PyObject *resultobj; | |
4030 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4031 | int result; | |
4032 | PyObject * obj0 = 0 ; | |
4033 | char *kwnames[] = { | |
4034 | (char *) "self", NULL | |
4035 | }; | |
4036 | ||
4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
4038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4040 | { | |
4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4042 | result = (int)(arg1)->GetWidth(); | |
4043 | ||
4044 | wxPyEndAllowThreads(__tstate); | |
4045 | if (PyErr_Occurred()) SWIG_fail; | |
4046 | } | |
4047 | resultobj = SWIG_FromInt((int)result); | |
4048 | return resultobj; | |
4049 | fail: | |
4050 | return NULL; | |
4051 | } | |
4052 | ||
4053 | ||
4054 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4055 | PyObject *resultobj; | |
4056 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4057 | int result; | |
4058 | PyObject * obj0 = 0 ; | |
4059 | char *kwnames[] = { | |
4060 | (char *) "self", NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
4064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | result = (int)(arg1)->GetHeight(); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | resultobj = SWIG_FromInt((int)result); | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
4080 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4081 | PyObject *resultobj; | |
4082 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4083 | int result; | |
4084 | PyObject * obj0 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "self", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
4090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4092 | { | |
4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4094 | result = (int)(arg1)->GetDepth(); | |
4095 | ||
4096 | wxPyEndAllowThreads(__tstate); | |
4097 | if (PyErr_Occurred()) SWIG_fail; | |
4098 | } | |
4099 | resultobj = SWIG_FromInt((int)result); | |
4100 | return resultobj; | |
4101 | fail: | |
4102 | return NULL; | |
4103 | } | |
4104 | ||
4105 | ||
4106 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4107 | PyObject *resultobj; | |
4108 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4109 | int arg2 ; | |
4110 | PyObject * obj0 = 0 ; | |
4111 | PyObject * obj1 = 0 ; | |
4112 | char *kwnames[] = { | |
4113 | (char *) "self",(char *) "w", NULL | |
4114 | }; | |
4115 | ||
4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
4117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4119 | arg2 = (int) SWIG_AsInt(obj1); | |
4120 | if (PyErr_Occurred()) SWIG_fail; | |
4121 | { | |
4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4123 | (arg1)->SetWidth(arg2); | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
4128 | Py_INCREF(Py_None); resultobj = Py_None; | |
4129 | return resultobj; | |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
4135 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4136 | PyObject *resultobj; | |
4137 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4138 | int arg2 ; | |
4139 | PyObject * obj0 = 0 ; | |
4140 | PyObject * obj1 = 0 ; | |
4141 | char *kwnames[] = { | |
4142 | (char *) "self",(char *) "h", NULL | |
4143 | }; | |
4144 | ||
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
4146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4148 | arg2 = (int) SWIG_AsInt(obj1); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | { | |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | (arg1)->SetHeight(arg2); | |
4153 | ||
4154 | wxPyEndAllowThreads(__tstate); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | } | |
4157 | Py_INCREF(Py_None); resultobj = Py_None; | |
4158 | return resultobj; | |
4159 | fail: | |
4160 | return NULL; | |
4161 | } | |
4162 | ||
4163 | ||
4164 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4165 | PyObject *resultobj; | |
4166 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4167 | int arg2 ; | |
4168 | PyObject * obj0 = 0 ; | |
4169 | PyObject * obj1 = 0 ; | |
4170 | char *kwnames[] = { | |
4171 | (char *) "self",(char *) "d", NULL | |
4172 | }; | |
4173 | ||
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
4175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4177 | arg2 = (int) SWIG_AsInt(obj1); | |
4178 | if (PyErr_Occurred()) SWIG_fail; | |
4179 | { | |
4180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4181 | (arg1)->SetDepth(arg2); | |
4182 | ||
4183 | wxPyEndAllowThreads(__tstate); | |
4184 | if (PyErr_Occurred()) SWIG_fail; | |
4185 | } | |
4186 | Py_INCREF(Py_None); resultobj = Py_None; | |
4187 | return resultobj; | |
4188 | fail: | |
4189 | return NULL; | |
4190 | } | |
4191 | ||
4192 | ||
4193 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4194 | PyObject *resultobj; | |
4195 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4196 | wxSize *arg2 = 0 ; | |
4197 | wxSize temp2 ; | |
4198 | PyObject * obj0 = 0 ; | |
4199 | PyObject * obj1 = 0 ; | |
4200 | char *kwnames[] = { | |
4201 | (char *) "self",(char *) "size", NULL | |
4202 | }; | |
4203 | ||
4204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4207 | { | |
4208 | arg2 = &temp2; | |
4209 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4210 | } | |
4211 | { | |
4212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4213 | (arg1)->SetSize((wxSize const &)*arg2); | |
4214 | ||
4215 | wxPyEndAllowThreads(__tstate); | |
4216 | if (PyErr_Occurred()) SWIG_fail; | |
4217 | } | |
4218 | Py_INCREF(Py_None); resultobj = Py_None; | |
4219 | return resultobj; | |
4220 | fail: | |
4221 | return NULL; | |
4222 | } | |
4223 | ||
4224 | ||
4225 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4226 | PyObject *resultobj; | |
4227 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4228 | wxBitmap *arg2 = 0 ; | |
4229 | PyObject * obj0 = 0 ; | |
4230 | PyObject * obj1 = 0 ; | |
4231 | char *kwnames[] = { | |
4232 | (char *) "self",(char *) "bmp", NULL | |
4233 | }; | |
4234 | ||
4235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4240 | SWIG_fail; | |
4241 | if (arg2 == NULL) { | |
4242 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4243 | SWIG_fail; | |
4244 | } | |
4245 | { | |
4246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4247 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4248 | ||
4249 | wxPyEndAllowThreads(__tstate); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | } | |
4252 | Py_INCREF(Py_None); resultobj = Py_None; | |
4253 | return resultobj; | |
4254 | fail: | |
4255 | return NULL; | |
4256 | } | |
4257 | ||
4258 | ||
4259 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
4260 | PyObject *obj; | |
4261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4262 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4263 | Py_INCREF(obj); | |
4264 | return Py_BuildValue((char *)""); | |
4265 | } | |
4266 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4267 | PyObject *resultobj; | |
4268 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4269 | int arg2 = (int) 0 ; | |
4270 | wxIconLocation *result; | |
4271 | bool temp1 = False ; | |
4272 | PyObject * obj0 = 0 ; | |
4273 | PyObject * obj1 = 0 ; | |
4274 | char *kwnames[] = { | |
4275 | (char *) "filename",(char *) "num", NULL | |
4276 | }; | |
4277 | ||
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; | |
4279 | if (obj0) { | |
4280 | { | |
4281 | arg1 = wxString_in_helper(obj0); | |
4282 | if (arg1 == NULL) SWIG_fail; | |
4283 | temp1 = True; | |
4284 | } | |
4285 | } | |
4286 | if (obj1) { | |
4287 | arg2 = (int) SWIG_AsInt(obj1); | |
4288 | if (PyErr_Occurred()) SWIG_fail; | |
4289 | } | |
4290 | { | |
4291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4292 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4293 | ||
4294 | wxPyEndAllowThreads(__tstate); | |
4295 | if (PyErr_Occurred()) SWIG_fail; | |
4296 | } | |
4297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); | |
4298 | { | |
4299 | if (temp1) | |
4300 | delete arg1; | |
4301 | } | |
4302 | return resultobj; | |
4303 | fail: | |
4304 | { | |
4305 | if (temp1) | |
4306 | delete arg1; | |
4307 | } | |
4308 | return NULL; | |
4309 | } | |
4310 | ||
4311 | ||
4312 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4313 | PyObject *resultobj; | |
4314 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | char *kwnames[] = { | |
4317 | (char *) "self", NULL | |
4318 | }; | |
4319 | ||
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
4321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | delete arg1; | |
4326 | ||
4327 | wxPyEndAllowThreads(__tstate); | |
4328 | if (PyErr_Occurred()) SWIG_fail; | |
4329 | } | |
4330 | Py_INCREF(Py_None); resultobj = Py_None; | |
4331 | return resultobj; | |
4332 | fail: | |
4333 | return NULL; | |
4334 | } | |
4335 | ||
4336 | ||
4337 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4338 | PyObject *resultobj; | |
4339 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4340 | bool result; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | char *kwnames[] = { | |
4343 | (char *) "self", NULL | |
4344 | }; | |
4345 | ||
4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
4347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4349 | { | |
4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4351 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4352 | ||
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
4356 | { | |
4357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4358 | } | |
4359 | return resultobj; | |
4360 | fail: | |
4361 | return NULL; | |
4362 | } | |
4363 | ||
4364 | ||
4365 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject *resultobj; | |
4367 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4368 | wxString *arg2 = 0 ; | |
4369 | bool temp2 = False ; | |
4370 | PyObject * obj0 = 0 ; | |
4371 | PyObject * obj1 = 0 ; | |
4372 | char *kwnames[] = { | |
4373 | (char *) "self",(char *) "filename", NULL | |
4374 | }; | |
4375 | ||
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4379 | { | |
4380 | arg2 = wxString_in_helper(obj1); | |
4381 | if (arg2 == NULL) SWIG_fail; | |
4382 | temp2 = True; | |
4383 | } | |
4384 | { | |
4385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4386 | (arg1)->SetFileName((wxString const &)*arg2); | |
4387 | ||
4388 | wxPyEndAllowThreads(__tstate); | |
4389 | if (PyErr_Occurred()) SWIG_fail; | |
4390 | } | |
4391 | Py_INCREF(Py_None); resultobj = Py_None; | |
4392 | { | |
4393 | if (temp2) | |
4394 | delete arg2; | |
4395 | } | |
4396 | return resultobj; | |
4397 | fail: | |
4398 | { | |
4399 | if (temp2) | |
4400 | delete arg2; | |
4401 | } | |
4402 | return NULL; | |
4403 | } | |
4404 | ||
4405 | ||
4406 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4407 | PyObject *resultobj; | |
4408 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4409 | wxString *result; | |
4410 | PyObject * obj0 = 0 ; | |
4411 | char *kwnames[] = { | |
4412 | (char *) "self", NULL | |
4413 | }; | |
4414 | ||
4415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4418 | { | |
4419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4420 | { | |
4421 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4422 | result = (wxString *) &_result_ref; | |
4423 | } | |
4424 | ||
4425 | wxPyEndAllowThreads(__tstate); | |
4426 | if (PyErr_Occurred()) SWIG_fail; | |
4427 | } | |
4428 | { | |
4429 | #if wxUSE_UNICODE | |
4430 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4431 | #else | |
4432 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4433 | #endif | |
4434 | } | |
4435 | return resultobj; | |
4436 | fail: | |
4437 | return NULL; | |
4438 | } | |
4439 | ||
4440 | ||
4441 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject *resultobj; | |
4443 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4444 | int arg2 ; | |
4445 | PyObject * obj0 = 0 ; | |
4446 | PyObject * obj1 = 0 ; | |
4447 | char *kwnames[] = { | |
4448 | (char *) "self",(char *) "num", NULL | |
4449 | }; | |
4450 | ||
4451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; | |
4452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4454 | arg2 = (int) SWIG_AsInt(obj1); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | { | |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4458 | wxIconLocation_SetIndex(arg1,arg2); | |
4459 | ||
4460 | wxPyEndAllowThreads(__tstate); | |
4461 | if (PyErr_Occurred()) SWIG_fail; | |
4462 | } | |
4463 | Py_INCREF(Py_None); resultobj = Py_None; | |
4464 | return resultobj; | |
4465 | fail: | |
4466 | return NULL; | |
4467 | } | |
4468 | ||
4469 | ||
4470 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject *resultobj; | |
4472 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4473 | int result; | |
4474 | PyObject * obj0 = 0 ; | |
4475 | char *kwnames[] = { | |
4476 | (char *) "self", NULL | |
4477 | }; | |
4478 | ||
4479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4482 | { | |
4483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4484 | result = (int)wxIconLocation_GetIndex(arg1); | |
4485 | ||
4486 | wxPyEndAllowThreads(__tstate); | |
4487 | if (PyErr_Occurred()) SWIG_fail; | |
4488 | } | |
4489 | resultobj = SWIG_FromInt((int)result); | |
4490 | return resultobj; | |
4491 | fail: | |
4492 | return NULL; | |
4493 | } | |
4494 | ||
4495 | ||
4496 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
4497 | PyObject *obj; | |
4498 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4499 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4500 | Py_INCREF(obj); | |
4501 | return Py_BuildValue((char *)""); | |
4502 | } | |
4503 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4504 | PyObject *resultobj; | |
4505 | wxIconBundle *result; | |
4506 | char *kwnames[] = { | |
4507 | NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4511 | { | |
4512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4513 | result = (wxIconBundle *)new wxIconBundle(); | |
4514 | ||
4515 | wxPyEndAllowThreads(__tstate); | |
4516 | if (PyErr_Occurred()) SWIG_fail; | |
4517 | } | |
4518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4519 | return resultobj; | |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
4525 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxString *arg1 = 0 ; | |
4528 | long arg2 ; | |
4529 | wxIconBundle *result; | |
4530 | bool temp1 = False ; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | PyObject * obj1 = 0 ; | |
4533 | char *kwnames[] = { | |
4534 | (char *) "file",(char *) "type", NULL | |
4535 | }; | |
4536 | ||
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; | |
4538 | { | |
4539 | arg1 = wxString_in_helper(obj0); | |
4540 | if (arg1 == NULL) SWIG_fail; | |
4541 | temp1 = True; | |
4542 | } | |
4543 | arg2 = (long) SWIG_AsLong(obj1); | |
4544 | if (PyErr_Occurred()) SWIG_fail; | |
4545 | { | |
4546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4547 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4548 | ||
4549 | wxPyEndAllowThreads(__tstate); | |
4550 | if (PyErr_Occurred()) SWIG_fail; | |
4551 | } | |
4552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4553 | { | |
4554 | if (temp1) | |
4555 | delete arg1; | |
4556 | } | |
4557 | return resultobj; | |
4558 | fail: | |
4559 | { | |
4560 | if (temp1) | |
4561 | delete arg1; | |
4562 | } | |
4563 | return NULL; | |
4564 | } | |
4565 | ||
4566 | ||
4567 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4568 | PyObject *resultobj; | |
4569 | wxIcon *arg1 = 0 ; | |
4570 | wxIconBundle *result; | |
4571 | PyObject * obj0 = 0 ; | |
4572 | char *kwnames[] = { | |
4573 | (char *) "icon", NULL | |
4574 | }; | |
4575 | ||
4576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4579 | SWIG_fail; | |
4580 | if (arg1 == NULL) { | |
4581 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4582 | SWIG_fail; | |
4583 | } | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4587 | ||
4588 | wxPyEndAllowThreads(__tstate); | |
4589 | if (PyErr_Occurred()) SWIG_fail; | |
4590 | } | |
4591 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4592 | return resultobj; | |
4593 | fail: | |
4594 | return NULL; | |
4595 | } | |
4596 | ||
4597 | ||
4598 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4599 | PyObject *resultobj; | |
4600 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4601 | PyObject * obj0 = 0 ; | |
4602 | char *kwnames[] = { | |
4603 | (char *) "self", NULL | |
4604 | }; | |
4605 | ||
4606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4609 | { | |
4610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4611 | delete arg1; | |
4612 | ||
4613 | wxPyEndAllowThreads(__tstate); | |
4614 | if (PyErr_Occurred()) SWIG_fail; | |
4615 | } | |
4616 | Py_INCREF(Py_None); resultobj = Py_None; | |
4617 | return resultobj; | |
4618 | fail: | |
4619 | return NULL; | |
4620 | } | |
4621 | ||
4622 | ||
4623 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4624 | PyObject *resultobj; | |
4625 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4626 | wxIcon *arg2 = 0 ; | |
4627 | PyObject * obj0 = 0 ; | |
4628 | PyObject * obj1 = 0 ; | |
4629 | char *kwnames[] = { | |
4630 | (char *) "self",(char *) "icon", NULL | |
4631 | }; | |
4632 | ||
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4638 | SWIG_fail; | |
4639 | if (arg2 == NULL) { | |
4640 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4641 | SWIG_fail; | |
4642 | } | |
4643 | { | |
4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4645 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4646 | ||
4647 | wxPyEndAllowThreads(__tstate); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | } | |
4650 | Py_INCREF(Py_None); resultobj = Py_None; | |
4651 | return resultobj; | |
4652 | fail: | |
4653 | return NULL; | |
4654 | } | |
4655 | ||
4656 | ||
4657 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4658 | PyObject *resultobj; | |
4659 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4660 | wxString *arg2 = 0 ; | |
4661 | long arg3 ; | |
4662 | bool temp2 = False ; | |
4663 | PyObject * obj0 = 0 ; | |
4664 | PyObject * obj1 = 0 ; | |
4665 | PyObject * obj2 = 0 ; | |
4666 | char *kwnames[] = { | |
4667 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4668 | }; | |
4669 | ||
4670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4673 | { | |
4674 | arg2 = wxString_in_helper(obj1); | |
4675 | if (arg2 == NULL) SWIG_fail; | |
4676 | temp2 = True; | |
4677 | } | |
4678 | arg3 = (long) SWIG_AsLong(obj2); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | { | |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
4687 | Py_INCREF(Py_None); resultobj = Py_None; | |
4688 | { | |
4689 | if (temp2) | |
4690 | delete arg2; | |
4691 | } | |
4692 | return resultobj; | |
4693 | fail: | |
4694 | { | |
4695 | if (temp2) | |
4696 | delete arg2; | |
4697 | } | |
4698 | return NULL; | |
4699 | } | |
4700 | ||
4701 | ||
4702 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject *resultobj; | |
4704 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4705 | wxSize *arg2 = 0 ; | |
4706 | wxIcon *result; | |
4707 | wxSize temp2 ; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | PyObject * obj1 = 0 ; | |
4710 | char *kwnames[] = { | |
4711 | (char *) "self",(char *) "size", NULL | |
4712 | }; | |
4713 | ||
4714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4717 | { | |
4718 | arg2 = &temp2; | |
4719 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4720 | } | |
4721 | { | |
4722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4723 | { | |
4724 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4725 | result = (wxIcon *) &_result_ref; | |
4726 | } | |
4727 | ||
4728 | wxPyEndAllowThreads(__tstate); | |
4729 | if (PyErr_Occurred()) SWIG_fail; | |
4730 | } | |
4731 | { | |
4732 | wxIcon* resultptr = new wxIcon(*result); | |
4733 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4734 | } | |
4735 | return resultobj; | |
4736 | fail: | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
4741 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4742 | PyObject *obj; | |
4743 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4744 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4745 | Py_INCREF(obj); | |
4746 | return Py_BuildValue((char *)""); | |
4747 | } | |
4748 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4749 | PyObject *resultobj; | |
4750 | wxString *arg1 = (wxString *) 0 ; | |
4751 | long arg2 ; | |
4752 | int arg3 = (int) 0 ; | |
4753 | int arg4 = (int) 0 ; | |
4754 | wxCursor *result; | |
4755 | bool temp1 = False ; | |
4756 | PyObject * obj0 = 0 ; | |
4757 | PyObject * obj1 = 0 ; | |
4758 | PyObject * obj2 = 0 ; | |
4759 | PyObject * obj3 = 0 ; | |
4760 | char *kwnames[] = { | |
4761 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4762 | }; | |
4763 | ||
4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4765 | { | |
4766 | arg1 = wxString_in_helper(obj0); | |
4767 | if (arg1 == NULL) SWIG_fail; | |
4768 | temp1 = True; | |
4769 | } | |
4770 | arg2 = (long) SWIG_AsLong(obj1); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | if (obj2) { | |
4773 | arg3 = (int) SWIG_AsInt(obj2); | |
4774 | if (PyErr_Occurred()) SWIG_fail; | |
4775 | } | |
4776 | if (obj3) { | |
4777 | arg4 = (int) SWIG_AsInt(obj3); | |
4778 | if (PyErr_Occurred()) SWIG_fail; | |
4779 | } | |
4780 | { | |
0439c23b | 4781 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4783 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4784 | ||
4785 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4786 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4787 | } |
4788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4789 | { | |
4790 | if (temp1) | |
4791 | delete arg1; | |
4792 | } | |
4793 | return resultobj; | |
4794 | fail: | |
4795 | { | |
4796 | if (temp1) | |
4797 | delete arg1; | |
4798 | } | |
4799 | return NULL; | |
4800 | } | |
4801 | ||
4802 | ||
4803 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4804 | PyObject *resultobj; | |
4805 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4806 | PyObject * obj0 = 0 ; | |
4807 | char *kwnames[] = { | |
4808 | (char *) "self", NULL | |
4809 | }; | |
4810 | ||
4811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4814 | { | |
4815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4816 | delete arg1; | |
4817 | ||
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
4821 | Py_INCREF(Py_None); resultobj = Py_None; | |
4822 | return resultobj; | |
4823 | fail: | |
4824 | return NULL; | |
4825 | } | |
4826 | ||
4827 | ||
4828 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4829 | PyObject *resultobj; | |
4830 | int arg1 ; | |
4831 | wxCursor *result; | |
4832 | PyObject * obj0 = 0 ; | |
4833 | char *kwnames[] = { | |
4834 | (char *) "id", NULL | |
4835 | }; | |
4836 | ||
4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; | |
4838 | arg1 = (int) SWIG_AsInt(obj0); | |
4839 | if (PyErr_Occurred()) SWIG_fail; | |
4840 | { | |
0439c23b | 4841 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4843 | result = (wxCursor *)new wxCursor(arg1); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4846 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4847 | } |
4848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4849 | return resultobj; | |
4850 | fail: | |
4851 | return NULL; | |
4852 | } | |
4853 | ||
4854 | ||
4855 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4856 | PyObject *resultobj; | |
4857 | wxImage *arg1 = 0 ; | |
4858 | wxCursor *result; | |
4859 | PyObject * obj0 = 0 ; | |
4860 | char *kwnames[] = { | |
4861 | (char *) "image", NULL | |
4862 | }; | |
4863 | ||
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
4866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4867 | SWIG_fail; | |
4868 | if (arg1 == NULL) { | |
4869 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4870 | SWIG_fail; | |
4871 | } | |
4872 | { | |
0439c23b | 4873 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4875 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4876 | ||
4877 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4878 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4879 | } |
4880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4881 | return resultobj; | |
4882 | fail: | |
4883 | return NULL; | |
4884 | } | |
4885 | ||
4886 | ||
4887 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4888 | PyObject *resultobj; | |
4889 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4890 | long result; | |
4891 | PyObject * obj0 = 0 ; | |
4892 | char *kwnames[] = { | |
4893 | (char *) "self", NULL | |
4894 | }; | |
4895 | ||
4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4899 | { | |
4900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4901 | result = (long)(arg1)->GetHandle(); | |
4902 | ||
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
4906 | resultobj = SWIG_FromLong((long)result); | |
4907 | return resultobj; | |
4908 | fail: | |
4909 | return NULL; | |
4910 | } | |
4911 | ||
4912 | ||
4913 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject *resultobj; | |
4915 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4916 | long arg2 ; | |
4917 | PyObject * obj0 = 0 ; | |
4918 | PyObject * obj1 = 0 ; | |
4919 | char *kwnames[] = { | |
4920 | (char *) "self",(char *) "handle", NULL | |
4921 | }; | |
4922 | ||
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
4924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4926 | arg2 = (long) SWIG_AsLong(obj1); | |
4927 | if (PyErr_Occurred()) SWIG_fail; | |
4928 | { | |
4929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4930 | wxCursor_SetHandle(arg1,arg2); | |
4931 | ||
4932 | wxPyEndAllowThreads(__tstate); | |
4933 | if (PyErr_Occurred()) SWIG_fail; | |
4934 | } | |
4935 | Py_INCREF(Py_None); resultobj = Py_None; | |
4936 | return resultobj; | |
4937 | fail: | |
4938 | return NULL; | |
4939 | } | |
4940 | ||
4941 | ||
4942 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject *resultobj; | |
4944 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4945 | bool result; | |
4946 | PyObject * obj0 = 0 ; | |
4947 | char *kwnames[] = { | |
4948 | (char *) "self", NULL | |
4949 | }; | |
4950 | ||
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4954 | { | |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | result = (bool)(arg1)->Ok(); | |
4957 | ||
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) SWIG_fail; | |
4960 | } | |
4961 | { | |
4962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4963 | } | |
4964 | return resultobj; | |
4965 | fail: | |
4966 | return NULL; | |
4967 | } | |
4968 | ||
4969 | ||
4970 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject *resultobj; | |
4972 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4973 | int result; | |
4974 | PyObject * obj0 = 0 ; | |
4975 | char *kwnames[] = { | |
4976 | (char *) "self", NULL | |
4977 | }; | |
4978 | ||
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | result = (int)(arg1)->GetWidth(); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | resultobj = SWIG_FromInt((int)result); | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
4996 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4997 | PyObject *resultobj; | |
4998 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4999 | int result; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | char *kwnames[] = { | |
5002 | (char *) "self", NULL | |
5003 | }; | |
5004 | ||
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
5006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5008 | { | |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | result = (int)(arg1)->GetHeight(); | |
5011 | ||
5012 | wxPyEndAllowThreads(__tstate); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
5015 | resultobj = SWIG_FromInt((int)result); | |
5016 | return resultobj; | |
5017 | fail: | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj; | |
5024 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5025 | int result; | |
5026 | PyObject * obj0 = 0 ; | |
5027 | char *kwnames[] = { | |
5028 | (char *) "self", NULL | |
5029 | }; | |
5030 | ||
5031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
5032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5034 | { | |
5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5036 | result = (int)(arg1)->GetDepth(); | |
5037 | ||
5038 | wxPyEndAllowThreads(__tstate); | |
5039 | if (PyErr_Occurred()) SWIG_fail; | |
5040 | } | |
5041 | resultobj = SWIG_FromInt((int)result); | |
5042 | return resultobj; | |
5043 | fail: | |
5044 | return NULL; | |
5045 | } | |
5046 | ||
5047 | ||
5048 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject *resultobj; | |
5050 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5051 | int arg2 ; | |
5052 | PyObject * obj0 = 0 ; | |
5053 | PyObject * obj1 = 0 ; | |
5054 | char *kwnames[] = { | |
5055 | (char *) "self",(char *) "w", NULL | |
5056 | }; | |
5057 | ||
5058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
5059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5061 | arg2 = (int) SWIG_AsInt(obj1); | |
5062 | if (PyErr_Occurred()) SWIG_fail; | |
5063 | { | |
5064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5065 | (arg1)->SetWidth(arg2); | |
5066 | ||
5067 | wxPyEndAllowThreads(__tstate); | |
5068 | if (PyErr_Occurred()) SWIG_fail; | |
5069 | } | |
5070 | Py_INCREF(Py_None); resultobj = Py_None; | |
5071 | return resultobj; | |
5072 | fail: | |
5073 | return NULL; | |
5074 | } | |
5075 | ||
5076 | ||
5077 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5078 | PyObject *resultobj; | |
5079 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5080 | int arg2 ; | |
5081 | PyObject * obj0 = 0 ; | |
5082 | PyObject * obj1 = 0 ; | |
5083 | char *kwnames[] = { | |
5084 | (char *) "self",(char *) "h", NULL | |
5085 | }; | |
5086 | ||
5087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
5088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5090 | arg2 = (int) SWIG_AsInt(obj1); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | { | |
5093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5094 | (arg1)->SetHeight(arg2); | |
5095 | ||
5096 | wxPyEndAllowThreads(__tstate); | |
5097 | if (PyErr_Occurred()) SWIG_fail; | |
5098 | } | |
5099 | Py_INCREF(Py_None); resultobj = Py_None; | |
5100 | return resultobj; | |
5101 | fail: | |
5102 | return NULL; | |
5103 | } | |
5104 | ||
5105 | ||
5106 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5107 | PyObject *resultobj; | |
5108 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5109 | int arg2 ; | |
5110 | PyObject * obj0 = 0 ; | |
5111 | PyObject * obj1 = 0 ; | |
5112 | char *kwnames[] = { | |
5113 | (char *) "self",(char *) "d", NULL | |
5114 | }; | |
5115 | ||
5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
5117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5119 | arg2 = (int) SWIG_AsInt(obj1); | |
5120 | if (PyErr_Occurred()) SWIG_fail; | |
5121 | { | |
5122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5123 | (arg1)->SetDepth(arg2); | |
5124 | ||
5125 | wxPyEndAllowThreads(__tstate); | |
5126 | if (PyErr_Occurred()) SWIG_fail; | |
5127 | } | |
5128 | Py_INCREF(Py_None); resultobj = Py_None; | |
5129 | return resultobj; | |
5130 | fail: | |
5131 | return NULL; | |
5132 | } | |
5133 | ||
5134 | ||
5135 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5136 | PyObject *resultobj; | |
5137 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5138 | wxSize *arg2 = 0 ; | |
5139 | wxSize temp2 ; | |
5140 | PyObject * obj0 = 0 ; | |
5141 | PyObject * obj1 = 0 ; | |
5142 | char *kwnames[] = { | |
5143 | (char *) "self",(char *) "size", NULL | |
5144 | }; | |
5145 | ||
5146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5149 | { | |
5150 | arg2 = &temp2; | |
5151 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5152 | } | |
5153 | { | |
5154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5155 | (arg1)->SetSize((wxSize const &)*arg2); | |
5156 | ||
5157 | wxPyEndAllowThreads(__tstate); | |
5158 | if (PyErr_Occurred()) SWIG_fail; | |
5159 | } | |
5160 | Py_INCREF(Py_None); resultobj = Py_None; | |
5161 | return resultobj; | |
5162 | fail: | |
5163 | return NULL; | |
5164 | } | |
5165 | ||
5166 | ||
5167 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
5168 | PyObject *obj; | |
5169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5170 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
5171 | Py_INCREF(obj); | |
5172 | return Py_BuildValue((char *)""); | |
5173 | } | |
5174 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5175 | PyObject *resultobj; | |
5176 | int arg1 = (int) 0 ; | |
5177 | int arg2 = (int) 0 ; | |
5178 | int arg3 = (int) 0 ; | |
5179 | int arg4 = (int) 0 ; | |
5180 | wxRegion *result; | |
5181 | PyObject * obj0 = 0 ; | |
5182 | PyObject * obj1 = 0 ; | |
5183 | PyObject * obj2 = 0 ; | |
5184 | PyObject * obj3 = 0 ; | |
5185 | char *kwnames[] = { | |
5186 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5187 | }; | |
5188 | ||
5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5190 | if (obj0) { | |
5191 | arg1 = (int) SWIG_AsInt(obj0); | |
5192 | if (PyErr_Occurred()) SWIG_fail; | |
5193 | } | |
5194 | if (obj1) { | |
5195 | arg2 = (int) SWIG_AsInt(obj1); | |
5196 | if (PyErr_Occurred()) SWIG_fail; | |
5197 | } | |
5198 | if (obj2) { | |
5199 | arg3 = (int) SWIG_AsInt(obj2); | |
5200 | if (PyErr_Occurred()) SWIG_fail; | |
5201 | } | |
5202 | if (obj3) { | |
5203 | arg4 = (int) SWIG_AsInt(obj3); | |
5204 | if (PyErr_Occurred()) SWIG_fail; | |
5205 | } | |
5206 | { | |
0439c23b | 5207 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5209 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
5210 | ||
5211 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5212 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5213 | } |
5214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5215 | return resultobj; | |
5216 | fail: | |
5217 | return NULL; | |
5218 | } | |
5219 | ||
5220 | ||
5221 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5222 | PyObject *resultobj; | |
5223 | wxBitmap *arg1 = 0 ; | |
a2569024 RD |
5224 | wxRegion *result; |
5225 | PyObject * obj0 = 0 ; | |
5226 | char *kwnames[] = { | |
5227 | (char *) "bmp", NULL | |
5228 | }; | |
5229 | ||
5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
5231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
5232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5233 | SWIG_fail; | |
5234 | if (arg1 == NULL) { | |
5235 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5236 | SWIG_fail; | |
5237 | } | |
5238 | { | |
5239 | if (!wxPyCheckForApp()) SWIG_fail; | |
5240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5241 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
5242 | ||
5243 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5244 | if (PyErr_Occurred()) SWIG_fail; |
a2569024 RD |
5245 | } |
5246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5247 | return resultobj; | |
5248 | fail: | |
5249 | return NULL; | |
5250 | } | |
5251 | ||
5252 | ||
5253 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5254 | PyObject *resultobj; | |
5255 | wxBitmap *arg1 = 0 ; | |
5256 | wxColour *arg2 = 0 ; | |
d55e5bfc RD |
5257 | int arg3 = (int) 0 ; |
5258 | wxRegion *result; | |
5259 | wxColour temp2 ; | |
5260 | PyObject * obj0 = 0 ; | |
5261 | PyObject * obj1 = 0 ; | |
5262 | PyObject * obj2 = 0 ; | |
5263 | char *kwnames[] = { | |
5264 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5265 | }; | |
5266 | ||
a2569024 | 5267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
5268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
5269 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5270 | SWIG_fail; | |
5271 | if (arg1 == NULL) { | |
5272 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5273 | SWIG_fail; | |
5274 | } | |
a2569024 RD |
5275 | { |
5276 | arg2 = &temp2; | |
5277 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
5278 | } |
5279 | if (obj2) { | |
5280 | arg3 = (int) SWIG_AsInt(obj2); | |
5281 | if (PyErr_Occurred()) SWIG_fail; | |
5282 | } | |
5283 | { | |
0439c23b | 5284 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5286 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5289 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5290 | } |
5291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
5298 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5299 | PyObject *resultobj; | |
5300 | int arg1 ; | |
5301 | wxPoint *arg2 = (wxPoint *) 0 ; | |
5302 | int arg3 = (int) wxWINDING_RULE ; | |
5303 | wxRegion *result; | |
5304 | PyObject * obj0 = 0 ; | |
5305 | PyObject * obj1 = 0 ; | |
5306 | char *kwnames[] = { | |
5307 | (char *) "points",(char *) "fillStyle", NULL | |
5308 | }; | |
5309 | ||
5310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; | |
5311 | { | |
5312 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
5313 | if (arg2 == NULL) SWIG_fail; | |
5314 | } | |
5315 | if (obj1) { | |
5316 | arg3 = (int) SWIG_AsInt(obj1); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | { | |
0439c23b | 5320 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5322 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
5323 | ||
5324 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5325 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5326 | } |
5327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5328 | { | |
5329 | if (arg2) delete [] arg2; | |
5330 | } | |
5331 | return resultobj; | |
5332 | fail: | |
5333 | { | |
5334 | if (arg2) delete [] arg2; | |
5335 | } | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
5340 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject *resultobj; | |
5342 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5343 | PyObject * obj0 = 0 ; | |
5344 | char *kwnames[] = { | |
5345 | (char *) "self", NULL | |
5346 | }; | |
5347 | ||
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
5349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | delete arg1; | |
5354 | ||
5355 | wxPyEndAllowThreads(__tstate); | |
5356 | if (PyErr_Occurred()) SWIG_fail; | |
5357 | } | |
5358 | Py_INCREF(Py_None); resultobj = Py_None; | |
5359 | return resultobj; | |
5360 | fail: | |
5361 | return NULL; | |
5362 | } | |
5363 | ||
5364 | ||
5365 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5366 | PyObject *resultobj; | |
5367 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5368 | PyObject * obj0 = 0 ; | |
5369 | char *kwnames[] = { | |
5370 | (char *) "self", NULL | |
5371 | }; | |
5372 | ||
5373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
5374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5376 | { | |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | (arg1)->Clear(); | |
5379 | ||
5380 | wxPyEndAllowThreads(__tstate); | |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | } | |
5383 | Py_INCREF(Py_None); resultobj = Py_None; | |
5384 | return resultobj; | |
5385 | fail: | |
5386 | return NULL; | |
5387 | } | |
5388 | ||
5389 | ||
5390 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject *resultobj; | |
5392 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5393 | int arg2 ; | |
5394 | int arg3 ; | |
5395 | bool result; | |
5396 | PyObject * obj0 = 0 ; | |
5397 | PyObject * obj1 = 0 ; | |
5398 | PyObject * obj2 = 0 ; | |
5399 | char *kwnames[] = { | |
5400 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5401 | }; | |
5402 | ||
5403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5406 | arg2 = (int) SWIG_AsInt(obj1); | |
5407 | if (PyErr_Occurred()) SWIG_fail; | |
5408 | arg3 = (int) SWIG_AsInt(obj2); | |
5409 | if (PyErr_Occurred()) SWIG_fail; | |
5410 | { | |
5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5412 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5413 | ||
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
5417 | { | |
5418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5419 | } | |
5420 | return resultobj; | |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
5426 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject *resultobj; | |
5428 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5429 | int arg2 ; | |
5430 | int arg3 ; | |
5431 | int result; | |
5432 | PyObject * obj0 = 0 ; | |
5433 | PyObject * obj1 = 0 ; | |
5434 | PyObject * obj2 = 0 ; | |
5435 | char *kwnames[] = { | |
5436 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5437 | }; | |
5438 | ||
5439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5442 | arg2 = (int) SWIG_AsInt(obj1); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
5444 | arg3 = (int) SWIG_AsInt(obj2); | |
5445 | if (PyErr_Occurred()) SWIG_fail; | |
5446 | { | |
5447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5448 | result = (int)(arg1)->Contains(arg2,arg3); | |
5449 | ||
5450 | wxPyEndAllowThreads(__tstate); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | } | |
5453 | resultobj = SWIG_FromInt((int)result); | |
5454 | return resultobj; | |
5455 | fail: | |
5456 | return NULL; | |
5457 | } | |
5458 | ||
5459 | ||
5460 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5461 | PyObject *resultobj; | |
5462 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5463 | wxPoint *arg2 = 0 ; | |
5464 | int result; | |
5465 | wxPoint temp2 ; | |
5466 | PyObject * obj0 = 0 ; | |
5467 | PyObject * obj1 = 0 ; | |
5468 | char *kwnames[] = { | |
5469 | (char *) "self",(char *) "pt", NULL | |
5470 | }; | |
5471 | ||
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
5473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5475 | { | |
5476 | arg2 = &temp2; | |
5477 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5478 | } | |
5479 | { | |
5480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5481 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5482 | ||
5483 | wxPyEndAllowThreads(__tstate); | |
5484 | if (PyErr_Occurred()) SWIG_fail; | |
5485 | } | |
5486 | resultobj = SWIG_FromInt((int)result); | |
5487 | return resultobj; | |
5488 | fail: | |
5489 | return NULL; | |
5490 | } | |
5491 | ||
5492 | ||
5493 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5494 | PyObject *resultobj; | |
5495 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5496 | wxRect *arg2 = 0 ; | |
5497 | int result; | |
5498 | wxRect temp2 ; | |
5499 | PyObject * obj0 = 0 ; | |
5500 | PyObject * obj1 = 0 ; | |
5501 | char *kwnames[] = { | |
5502 | (char *) "self",(char *) "rect", NULL | |
5503 | }; | |
5504 | ||
5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
5506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5508 | { | |
5509 | arg2 = &temp2; | |
5510 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5511 | } | |
5512 | { | |
5513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5514 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5515 | ||
5516 | wxPyEndAllowThreads(__tstate); | |
5517 | if (PyErr_Occurred()) SWIG_fail; | |
5518 | } | |
5519 | resultobj = SWIG_FromInt((int)result); | |
5520 | return resultobj; | |
5521 | fail: | |
5522 | return NULL; | |
5523 | } | |
5524 | ||
5525 | ||
5526 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5527 | PyObject *resultobj; | |
5528 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5529 | int arg2 ; | |
5530 | int arg3 ; | |
5531 | int arg4 ; | |
5532 | int arg5 ; | |
5533 | int result; | |
5534 | PyObject * obj0 = 0 ; | |
5535 | PyObject * obj1 = 0 ; | |
5536 | PyObject * obj2 = 0 ; | |
5537 | PyObject * obj3 = 0 ; | |
5538 | PyObject * obj4 = 0 ; | |
5539 | char *kwnames[] = { | |
5540 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5541 | }; | |
5542 | ||
5543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5546 | arg2 = (int) SWIG_AsInt(obj1); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | arg3 = (int) SWIG_AsInt(obj2); | |
5549 | if (PyErr_Occurred()) SWIG_fail; | |
5550 | arg4 = (int) SWIG_AsInt(obj3); | |
5551 | if (PyErr_Occurred()) SWIG_fail; | |
5552 | arg5 = (int) SWIG_AsInt(obj4); | |
5553 | if (PyErr_Occurred()) SWIG_fail; | |
5554 | { | |
5555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5556 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5557 | ||
5558 | wxPyEndAllowThreads(__tstate); | |
5559 | if (PyErr_Occurred()) SWIG_fail; | |
5560 | } | |
5561 | resultobj = SWIG_FromInt((int)result); | |
5562 | return resultobj; | |
5563 | fail: | |
5564 | return NULL; | |
5565 | } | |
5566 | ||
5567 | ||
5568 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5569 | PyObject *resultobj; | |
5570 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5571 | wxRect result; | |
5572 | PyObject * obj0 = 0 ; | |
5573 | char *kwnames[] = { | |
5574 | (char *) "self", NULL | |
5575 | }; | |
5576 | ||
5577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
5578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | result = (arg1)->GetBox(); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
5587 | { | |
5588 | wxRect * resultptr; | |
5589 | resultptr = new wxRect((wxRect &) result); | |
5590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5591 | } | |
5592 | return resultobj; | |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
5598 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject *resultobj; | |
5600 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5601 | int arg2 ; | |
5602 | int arg3 ; | |
5603 | int arg4 ; | |
5604 | int arg5 ; | |
5605 | bool result; | |
5606 | PyObject * obj0 = 0 ; | |
5607 | PyObject * obj1 = 0 ; | |
5608 | PyObject * obj2 = 0 ; | |
5609 | PyObject * obj3 = 0 ; | |
5610 | PyObject * obj4 = 0 ; | |
5611 | char *kwnames[] = { | |
5612 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5613 | }; | |
5614 | ||
5615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5618 | arg2 = (int) SWIG_AsInt(obj1); | |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
5620 | arg3 = (int) SWIG_AsInt(obj2); | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | arg4 = (int) SWIG_AsInt(obj3); | |
5623 | if (PyErr_Occurred()) SWIG_fail; | |
5624 | arg5 = (int) SWIG_AsInt(obj4); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | { | |
5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5628 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5629 | ||
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
5633 | { | |
5634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5635 | } | |
5636 | return resultobj; | |
5637 | fail: | |
5638 | return NULL; | |
5639 | } | |
5640 | ||
5641 | ||
5642 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject *resultobj; | |
5644 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5645 | wxRect *arg2 = 0 ; | |
5646 | bool result; | |
5647 | wxRect temp2 ; | |
5648 | PyObject * obj0 = 0 ; | |
5649 | PyObject * obj1 = 0 ; | |
5650 | char *kwnames[] = { | |
5651 | (char *) "self",(char *) "rect", NULL | |
5652 | }; | |
5653 | ||
5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5657 | { | |
5658 | arg2 = &temp2; | |
5659 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5660 | } | |
5661 | { | |
5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5663 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5664 | ||
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
5668 | { | |
5669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5670 | } | |
5671 | return resultobj; | |
5672 | fail: | |
5673 | return NULL; | |
5674 | } | |
5675 | ||
5676 | ||
5677 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5678 | PyObject *resultobj; | |
5679 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5680 | wxRegion *arg2 = 0 ; | |
5681 | bool result; | |
5682 | PyObject * obj0 = 0 ; | |
5683 | PyObject * obj1 = 0 ; | |
5684 | char *kwnames[] = { | |
5685 | (char *) "self",(char *) "region", NULL | |
5686 | }; | |
5687 | ||
5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5692 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5693 | SWIG_fail; | |
5694 | if (arg2 == NULL) { | |
5695 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5696 | SWIG_fail; | |
5697 | } | |
5698 | { | |
5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5700 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5701 | ||
5702 | wxPyEndAllowThreads(__tstate); | |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
5704 | } | |
5705 | { | |
5706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5707 | } | |
5708 | return resultobj; | |
5709 | fail: | |
5710 | return NULL; | |
5711 | } | |
5712 | ||
5713 | ||
5714 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5715 | PyObject *resultobj; | |
5716 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5717 | bool result; | |
5718 | PyObject * obj0 = 0 ; | |
5719 | char *kwnames[] = { | |
5720 | (char *) "self", NULL | |
5721 | }; | |
5722 | ||
5723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5726 | { | |
5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5728 | result = (bool)(arg1)->IsEmpty(); | |
5729 | ||
5730 | wxPyEndAllowThreads(__tstate); | |
5731 | if (PyErr_Occurred()) SWIG_fail; | |
5732 | } | |
5733 | { | |
5734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5735 | } | |
5736 | return resultobj; | |
5737 | fail: | |
5738 | return NULL; | |
5739 | } | |
5740 | ||
5741 | ||
5742 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject *resultobj; | |
5744 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5745 | int arg2 ; | |
5746 | int arg3 ; | |
5747 | int arg4 ; | |
5748 | int arg5 ; | |
5749 | bool result; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | PyObject * obj1 = 0 ; | |
5752 | PyObject * obj2 = 0 ; | |
5753 | PyObject * obj3 = 0 ; | |
5754 | PyObject * obj4 = 0 ; | |
5755 | char *kwnames[] = { | |
5756 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5757 | }; | |
5758 | ||
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5762 | arg2 = (int) SWIG_AsInt(obj1); | |
5763 | if (PyErr_Occurred()) SWIG_fail; | |
5764 | arg3 = (int) SWIG_AsInt(obj2); | |
5765 | if (PyErr_Occurred()) SWIG_fail; | |
5766 | arg4 = (int) SWIG_AsInt(obj3); | |
5767 | if (PyErr_Occurred()) SWIG_fail; | |
5768 | arg5 = (int) SWIG_AsInt(obj4); | |
5769 | if (PyErr_Occurred()) SWIG_fail; | |
5770 | { | |
5771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5772 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5773 | ||
5774 | wxPyEndAllowThreads(__tstate); | |
5775 | if (PyErr_Occurred()) SWIG_fail; | |
5776 | } | |
5777 | { | |
5778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5779 | } | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5787 | PyObject *resultobj; | |
5788 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5789 | wxRect *arg2 = 0 ; | |
5790 | bool result; | |
5791 | wxRect temp2 ; | |
5792 | PyObject * obj0 = 0 ; | |
5793 | PyObject * obj1 = 0 ; | |
5794 | char *kwnames[] = { | |
5795 | (char *) "self",(char *) "rect", NULL | |
5796 | }; | |
5797 | ||
5798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5801 | { | |
5802 | arg2 = &temp2; | |
5803 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5804 | } | |
5805 | { | |
5806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5807 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5808 | ||
5809 | wxPyEndAllowThreads(__tstate); | |
5810 | if (PyErr_Occurred()) SWIG_fail; | |
5811 | } | |
5812 | { | |
5813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5814 | } | |
5815 | return resultobj; | |
5816 | fail: | |
5817 | return NULL; | |
5818 | } | |
5819 | ||
5820 | ||
5821 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5822 | PyObject *resultobj; | |
5823 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5824 | wxRegion *arg2 = 0 ; | |
5825 | bool result; | |
5826 | PyObject * obj0 = 0 ; | |
5827 | PyObject * obj1 = 0 ; | |
5828 | char *kwnames[] = { | |
5829 | (char *) "self",(char *) "region", NULL | |
5830 | }; | |
5831 | ||
5832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5836 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5837 | SWIG_fail; | |
5838 | if (arg2 == NULL) { | |
5839 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5840 | SWIG_fail; | |
5841 | } | |
5842 | { | |
5843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5844 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5845 | ||
5846 | wxPyEndAllowThreads(__tstate); | |
5847 | if (PyErr_Occurred()) SWIG_fail; | |
5848 | } | |
5849 | { | |
5850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5851 | } | |
5852 | return resultobj; | |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
5858 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5859 | PyObject *resultobj; | |
5860 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5861 | int arg2 ; | |
5862 | int arg3 ; | |
5863 | int arg4 ; | |
5864 | int arg5 ; | |
5865 | bool result; | |
5866 | PyObject * obj0 = 0 ; | |
5867 | PyObject * obj1 = 0 ; | |
5868 | PyObject * obj2 = 0 ; | |
5869 | PyObject * obj3 = 0 ; | |
5870 | PyObject * obj4 = 0 ; | |
5871 | char *kwnames[] = { | |
5872 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5873 | }; | |
5874 | ||
5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5878 | arg2 = (int) SWIG_AsInt(obj1); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | arg3 = (int) SWIG_AsInt(obj2); | |
5881 | if (PyErr_Occurred()) SWIG_fail; | |
5882 | arg4 = (int) SWIG_AsInt(obj3); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | arg5 = (int) SWIG_AsInt(obj4); | |
5885 | if (PyErr_Occurred()) SWIG_fail; | |
5886 | { | |
5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5888 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5889 | ||
5890 | wxPyEndAllowThreads(__tstate); | |
5891 | if (PyErr_Occurred()) SWIG_fail; | |
5892 | } | |
5893 | { | |
5894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5895 | } | |
5896 | return resultobj; | |
5897 | fail: | |
5898 | return NULL; | |
5899 | } | |
5900 | ||
5901 | ||
5902 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5903 | PyObject *resultobj; | |
5904 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5905 | wxRect *arg2 = 0 ; | |
5906 | bool result; | |
5907 | wxRect temp2 ; | |
5908 | PyObject * obj0 = 0 ; | |
5909 | PyObject * obj1 = 0 ; | |
5910 | char *kwnames[] = { | |
5911 | (char *) "self",(char *) "rect", NULL | |
5912 | }; | |
5913 | ||
5914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5917 | { | |
5918 | arg2 = &temp2; | |
5919 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5920 | } | |
5921 | { | |
5922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5923 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5924 | ||
5925 | wxPyEndAllowThreads(__tstate); | |
5926 | if (PyErr_Occurred()) SWIG_fail; | |
5927 | } | |
5928 | { | |
5929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5930 | } | |
5931 | return resultobj; | |
5932 | fail: | |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj; | |
5939 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5940 | wxRegion *arg2 = 0 ; | |
5941 | bool result; | |
5942 | PyObject * obj0 = 0 ; | |
5943 | PyObject * obj1 = 0 ; | |
5944 | char *kwnames[] = { | |
5945 | (char *) "self",(char *) "region", NULL | |
5946 | }; | |
5947 | ||
5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5953 | SWIG_fail; | |
5954 | if (arg2 == NULL) { | |
5955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5956 | SWIG_fail; | |
5957 | } | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | { | |
5966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5967 | } | |
5968 | return resultobj; | |
5969 | fail: | |
5970 | return NULL; | |
5971 | } | |
5972 | ||
5973 | ||
5974 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5975 | PyObject *resultobj; | |
5976 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5977 | int arg2 ; | |
5978 | int arg3 ; | |
5979 | int arg4 ; | |
5980 | int arg5 ; | |
5981 | bool result; | |
5982 | PyObject * obj0 = 0 ; | |
5983 | PyObject * obj1 = 0 ; | |
5984 | PyObject * obj2 = 0 ; | |
5985 | PyObject * obj3 = 0 ; | |
5986 | PyObject * obj4 = 0 ; | |
5987 | char *kwnames[] = { | |
5988 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5989 | }; | |
5990 | ||
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5994 | arg2 = (int) SWIG_AsInt(obj1); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
5996 | arg3 = (int) SWIG_AsInt(obj2); | |
5997 | if (PyErr_Occurred()) SWIG_fail; | |
5998 | arg4 = (int) SWIG_AsInt(obj3); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | arg5 = (int) SWIG_AsInt(obj4); | |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
6002 | { | |
6003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6004 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
6005 | ||
6006 | wxPyEndAllowThreads(__tstate); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
6009 | { | |
6010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6011 | } | |
6012 | return resultobj; | |
6013 | fail: | |
6014 | return NULL; | |
6015 | } | |
6016 | ||
6017 | ||
6018 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject *resultobj; | |
6020 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6021 | wxRect *arg2 = 0 ; | |
6022 | bool result; | |
6023 | wxRect temp2 ; | |
6024 | PyObject * obj0 = 0 ; | |
6025 | PyObject * obj1 = 0 ; | |
6026 | char *kwnames[] = { | |
6027 | (char *) "self",(char *) "rect", NULL | |
6028 | }; | |
6029 | ||
6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
6031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6033 | { | |
6034 | arg2 = &temp2; | |
6035 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6036 | } | |
6037 | { | |
6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6039 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
6040 | ||
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | } | |
6044 | { | |
6045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6046 | } | |
6047 | return resultobj; | |
6048 | fail: | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
6053 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6054 | PyObject *resultobj; | |
6055 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6056 | wxRegion *arg2 = 0 ; | |
6057 | bool result; | |
6058 | PyObject * obj0 = 0 ; | |
6059 | PyObject * obj1 = 0 ; | |
6060 | char *kwnames[] = { | |
6061 | (char *) "self",(char *) "region", NULL | |
6062 | }; | |
6063 | ||
6064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
6065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6068 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6069 | SWIG_fail; | |
6070 | if (arg2 == NULL) { | |
6071 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6072 | SWIG_fail; | |
6073 | } | |
6074 | { | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | { | |
6082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6083 | } | |
6084 | return resultobj; | |
6085 | fail: | |
6086 | return NULL; | |
6087 | } | |
6088 | ||
6089 | ||
6090 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6091 | PyObject *resultobj; | |
6092 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6093 | SwigValueWrapper< wxBitmap > result; | |
6094 | PyObject * obj0 = 0 ; | |
6095 | char *kwnames[] = { | |
6096 | (char *) "self", NULL | |
6097 | }; | |
6098 | ||
6099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
6100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6102 | { | |
6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6104 | result = (arg1)->ConvertToBitmap(); | |
6105 | ||
6106 | wxPyEndAllowThreads(__tstate); | |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
6108 | } | |
6109 | { | |
6110 | wxBitmap * resultptr; | |
6111 | resultptr = new wxBitmap((wxBitmap &) result); | |
6112 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
6113 | } | |
6114 | return resultobj; | |
6115 | fail: | |
6116 | return NULL; | |
6117 | } | |
6118 | ||
6119 | ||
6120 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6121 | PyObject *resultobj; | |
6122 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6123 | wxBitmap *arg2 = 0 ; | |
a2569024 RD |
6124 | bool result; |
6125 | PyObject * obj0 = 0 ; | |
6126 | PyObject * obj1 = 0 ; | |
6127 | char *kwnames[] = { | |
6128 | (char *) "self",(char *) "bmp", NULL | |
6129 | }; | |
6130 | ||
6131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
6132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6134 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6135 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6136 | SWIG_fail; | |
6137 | if (arg2 == NULL) { | |
6138 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6139 | SWIG_fail; | |
6140 | } | |
6141 | { | |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | { | |
6149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6150 | } | |
6151 | return resultobj; | |
6152 | fail: | |
6153 | return NULL; | |
6154 | } | |
6155 | ||
6156 | ||
6157 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6158 | PyObject *resultobj; | |
6159 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6160 | wxBitmap *arg2 = 0 ; | |
6161 | wxColour *arg3 = 0 ; | |
d55e5bfc RD |
6162 | int arg4 = (int) 0 ; |
6163 | bool result; | |
6164 | wxColour temp3 ; | |
6165 | PyObject * obj0 = 0 ; | |
6166 | PyObject * obj1 = 0 ; | |
6167 | PyObject * obj2 = 0 ; | |
6168 | PyObject * obj3 = 0 ; | |
6169 | char *kwnames[] = { | |
6170 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
6171 | }; | |
6172 | ||
a2569024 | 6173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
6174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6177 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6178 | SWIG_fail; | |
6179 | if (arg2 == NULL) { | |
6180 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6181 | SWIG_fail; | |
6182 | } | |
a2569024 RD |
6183 | { |
6184 | arg3 = &temp3; | |
6185 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
6186 | } |
6187 | if (obj3) { | |
6188 | arg4 = (int) SWIG_AsInt(obj3); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | { | |
6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6193 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
6194 | ||
6195 | wxPyEndAllowThreads(__tstate); | |
6196 | if (PyErr_Occurred()) SWIG_fail; | |
6197 | } | |
6198 | { | |
6199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6200 | } | |
6201 | return resultobj; | |
6202 | fail: | |
6203 | return NULL; | |
6204 | } | |
6205 | ||
6206 | ||
6207 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
6208 | PyObject *obj; | |
6209 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6210 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
6211 | Py_INCREF(obj); | |
6212 | return Py_BuildValue((char *)""); | |
6213 | } | |
6214 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6215 | PyObject *resultobj; | |
6216 | wxRegion *arg1 = 0 ; | |
6217 | wxRegionIterator *result; | |
6218 | PyObject * obj0 = 0 ; | |
6219 | char *kwnames[] = { | |
6220 | (char *) "region", NULL | |
6221 | }; | |
6222 | ||
6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
6224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6226 | SWIG_fail; | |
6227 | if (arg1 == NULL) { | |
6228 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6229 | SWIG_fail; | |
6230 | } | |
6231 | { | |
0439c23b | 6232 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6234 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
6235 | ||
6236 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6237 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6238 | } |
6239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); | |
6240 | return resultobj; | |
6241 | fail: | |
6242 | return NULL; | |
6243 | } | |
6244 | ||
6245 | ||
6246 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6247 | PyObject *resultobj; | |
6248 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6249 | PyObject * obj0 = 0 ; | |
6250 | char *kwnames[] = { | |
6251 | (char *) "self", NULL | |
6252 | }; | |
6253 | ||
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
6255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6257 | { | |
6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6259 | delete arg1; | |
6260 | ||
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) SWIG_fail; | |
6263 | } | |
6264 | Py_INCREF(Py_None); resultobj = Py_None; | |
6265 | return resultobj; | |
6266 | fail: | |
6267 | return NULL; | |
6268 | } | |
6269 | ||
6270 | ||
6271 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject *resultobj; | |
6273 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6274 | int result; | |
6275 | PyObject * obj0 = 0 ; | |
6276 | char *kwnames[] = { | |
6277 | (char *) "self", NULL | |
6278 | }; | |
6279 | ||
6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
6281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6283 | { | |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (int)(arg1)->GetX(); | |
6286 | ||
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | resultobj = SWIG_FromInt((int)result); | |
6291 | return resultobj; | |
6292 | fail: | |
6293 | return NULL; | |
6294 | } | |
6295 | ||
6296 | ||
6297 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6298 | PyObject *resultobj; | |
6299 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6300 | int result; | |
6301 | PyObject * obj0 = 0 ; | |
6302 | char *kwnames[] = { | |
6303 | (char *) "self", NULL | |
6304 | }; | |
6305 | ||
6306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
6307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | result = (int)(arg1)->GetY(); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | resultobj = SWIG_FromInt((int)result); | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject *resultobj; | |
6325 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6326 | int result; | |
6327 | PyObject * obj0 = 0 ; | |
6328 | char *kwnames[] = { | |
6329 | (char *) "self", NULL | |
6330 | }; | |
6331 | ||
6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
6333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6335 | { | |
6336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6337 | result = (int)(arg1)->GetW(); | |
6338 | ||
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
6342 | resultobj = SWIG_FromInt((int)result); | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | return NULL; | |
6346 | } | |
6347 | ||
6348 | ||
6349 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6350 | PyObject *resultobj; | |
6351 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6352 | int result; | |
6353 | PyObject * obj0 = 0 ; | |
6354 | char *kwnames[] = { | |
6355 | (char *) "self", NULL | |
6356 | }; | |
6357 | ||
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
6359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6361 | { | |
6362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6363 | result = (int)(arg1)->GetWidth(); | |
6364 | ||
6365 | wxPyEndAllowThreads(__tstate); | |
6366 | if (PyErr_Occurred()) SWIG_fail; | |
6367 | } | |
6368 | resultobj = SWIG_FromInt((int)result); | |
6369 | return resultobj; | |
6370 | fail: | |
6371 | return NULL; | |
6372 | } | |
6373 | ||
6374 | ||
6375 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6376 | PyObject *resultobj; | |
6377 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6378 | int result; | |
6379 | PyObject * obj0 = 0 ; | |
6380 | char *kwnames[] = { | |
6381 | (char *) "self", NULL | |
6382 | }; | |
6383 | ||
6384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
6385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | result = (int)(arg1)->GetH(); | |
6390 | ||
6391 | wxPyEndAllowThreads(__tstate); | |
6392 | if (PyErr_Occurred()) SWIG_fail; | |
6393 | } | |
6394 | resultobj = SWIG_FromInt((int)result); | |
6395 | return resultobj; | |
6396 | fail: | |
6397 | return NULL; | |
6398 | } | |
6399 | ||
6400 | ||
6401 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6402 | PyObject *resultobj; | |
6403 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6404 | int result; | |
6405 | PyObject * obj0 = 0 ; | |
6406 | char *kwnames[] = { | |
6407 | (char *) "self", NULL | |
6408 | }; | |
6409 | ||
6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
6411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6413 | { | |
6414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6415 | result = (int)(arg1)->GetHeight(); | |
6416 | ||
6417 | wxPyEndAllowThreads(__tstate); | |
6418 | if (PyErr_Occurred()) SWIG_fail; | |
6419 | } | |
6420 | resultobj = SWIG_FromInt((int)result); | |
6421 | return resultobj; | |
6422 | fail: | |
6423 | return NULL; | |
6424 | } | |
6425 | ||
6426 | ||
6427 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6428 | PyObject *resultobj; | |
6429 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6430 | wxRect result; | |
6431 | PyObject * obj0 = 0 ; | |
6432 | char *kwnames[] = { | |
6433 | (char *) "self", NULL | |
6434 | }; | |
6435 | ||
6436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
6437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6439 | { | |
6440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6441 | result = (arg1)->GetRect(); | |
6442 | ||
6443 | wxPyEndAllowThreads(__tstate); | |
6444 | if (PyErr_Occurred()) SWIG_fail; | |
6445 | } | |
6446 | { | |
6447 | wxRect * resultptr; | |
6448 | resultptr = new wxRect((wxRect &) result); | |
6449 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
6450 | } | |
6451 | return resultobj; | |
6452 | fail: | |
6453 | return NULL; | |
6454 | } | |
6455 | ||
6456 | ||
6457 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6458 | PyObject *resultobj; | |
6459 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6460 | bool result; | |
6461 | PyObject * obj0 = 0 ; | |
6462 | char *kwnames[] = { | |
6463 | (char *) "self", NULL | |
6464 | }; | |
6465 | ||
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
6467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6469 | { | |
6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6471 | result = (bool)(arg1)->HaveRects(); | |
6472 | ||
6473 | wxPyEndAllowThreads(__tstate); | |
6474 | if (PyErr_Occurred()) SWIG_fail; | |
6475 | } | |
6476 | { | |
6477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6478 | } | |
6479 | return resultobj; | |
6480 | fail: | |
6481 | return NULL; | |
6482 | } | |
6483 | ||
6484 | ||
6485 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6486 | PyObject *resultobj; | |
6487 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6488 | PyObject * obj0 = 0 ; | |
6489 | char *kwnames[] = { | |
6490 | (char *) "self", NULL | |
6491 | }; | |
6492 | ||
6493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
6494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6496 | { | |
6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6498 | (arg1)->Reset(); | |
6499 | ||
6500 | wxPyEndAllowThreads(__tstate); | |
6501 | if (PyErr_Occurred()) SWIG_fail; | |
6502 | } | |
6503 | Py_INCREF(Py_None); resultobj = Py_None; | |
6504 | return resultobj; | |
6505 | fail: | |
6506 | return NULL; | |
6507 | } | |
6508 | ||
6509 | ||
6510 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6511 | PyObject *resultobj; | |
6512 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6513 | PyObject * obj0 = 0 ; | |
6514 | char *kwnames[] = { | |
6515 | (char *) "self", NULL | |
6516 | }; | |
6517 | ||
6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
6519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6521 | { | |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6523 | wxRegionIterator_Next(arg1); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | Py_INCREF(Py_None); resultobj = Py_None; | |
6529 | return resultobj; | |
6530 | fail: | |
6531 | return NULL; | |
6532 | } | |
6533 | ||
6534 | ||
6535 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6536 | PyObject *resultobj; | |
6537 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6538 | bool result; | |
6539 | PyObject * obj0 = 0 ; | |
6540 | char *kwnames[] = { | |
6541 | (char *) "self", NULL | |
6542 | }; | |
6543 | ||
6544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
6545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6547 | { | |
6548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6549 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6550 | ||
6551 | wxPyEndAllowThreads(__tstate); | |
6552 | if (PyErr_Occurred()) SWIG_fail; | |
6553 | } | |
6554 | { | |
6555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6556 | } | |
6557 | return resultobj; | |
6558 | fail: | |
6559 | return NULL; | |
6560 | } | |
6561 | ||
6562 | ||
6563 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
6564 | PyObject *obj; | |
6565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6566 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6567 | Py_INCREF(obj); | |
6568 | return Py_BuildValue((char *)""); | |
6569 | } | |
6570 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6571 | PyObject *resultobj; | |
6572 | wxNativeFontInfo *result; | |
6573 | char *kwnames[] = { | |
6574 | NULL | |
6575 | }; | |
6576 | ||
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6578 | { | |
6579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6580 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6581 | ||
6582 | wxPyEndAllowThreads(__tstate); | |
6583 | if (PyErr_Occurred()) SWIG_fail; | |
6584 | } | |
6585 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); | |
6586 | return resultobj; | |
6587 | fail: | |
6588 | return NULL; | |
6589 | } | |
6590 | ||
6591 | ||
6592 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6593 | PyObject *resultobj; | |
6594 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | char *kwnames[] = { | |
6597 | (char *) "self", NULL | |
6598 | }; | |
6599 | ||
6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
6601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6603 | { | |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | delete arg1; | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
6610 | Py_INCREF(Py_None); resultobj = Py_None; | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
6617 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject *resultobj; | |
6619 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6620 | PyObject * obj0 = 0 ; | |
6621 | char *kwnames[] = { | |
6622 | (char *) "self", NULL | |
6623 | }; | |
6624 | ||
6625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
6626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6628 | { | |
6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6630 | (arg1)->Init(); | |
6631 | ||
6632 | wxPyEndAllowThreads(__tstate); | |
6633 | if (PyErr_Occurred()) SWIG_fail; | |
6634 | } | |
6635 | Py_INCREF(Py_None); resultobj = Py_None; | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | return NULL; | |
6639 | } | |
6640 | ||
6641 | ||
6642 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6643 | PyObject *resultobj; | |
6644 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6645 | wxFont *arg2 = 0 ; | |
6646 | PyObject * obj0 = 0 ; | |
6647 | PyObject * obj1 = 0 ; | |
6648 | char *kwnames[] = { | |
6649 | (char *) "self",(char *) "font", NULL | |
6650 | }; | |
6651 | ||
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
6653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6655 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6656 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6657 | SWIG_fail; | |
6658 | if (arg2 == NULL) { | |
6659 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6660 | SWIG_fail; | |
6661 | } | |
6662 | { | |
6663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6664 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6665 | ||
6666 | wxPyEndAllowThreads(__tstate); | |
6667 | if (PyErr_Occurred()) SWIG_fail; | |
6668 | } | |
6669 | Py_INCREF(Py_None); resultobj = Py_None; | |
6670 | return resultobj; | |
6671 | fail: | |
6672 | return NULL; | |
6673 | } | |
6674 | ||
6675 | ||
6676 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6677 | PyObject *resultobj; | |
6678 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6679 | int result; | |
6680 | PyObject * obj0 = 0 ; | |
6681 | char *kwnames[] = { | |
6682 | (char *) "self", NULL | |
6683 | }; | |
6684 | ||
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
6686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6688 | { | |
6689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6690 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6691 | ||
6692 | wxPyEndAllowThreads(__tstate); | |
6693 | if (PyErr_Occurred()) SWIG_fail; | |
6694 | } | |
6695 | resultobj = SWIG_FromInt((int)result); | |
6696 | return resultobj; | |
6697 | fail: | |
6698 | return NULL; | |
6699 | } | |
6700 | ||
6701 | ||
6702 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6703 | PyObject *resultobj; | |
6704 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6705 | int result; | |
6706 | PyObject * obj0 = 0 ; | |
6707 | char *kwnames[] = { | |
6708 | (char *) "self", NULL | |
6709 | }; | |
6710 | ||
6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6714 | { | |
6715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6716 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6717 | ||
6718 | wxPyEndAllowThreads(__tstate); | |
6719 | if (PyErr_Occurred()) SWIG_fail; | |
6720 | } | |
6721 | resultobj = SWIG_FromInt((int)result); | |
6722 | return resultobj; | |
6723 | fail: | |
6724 | return NULL; | |
6725 | } | |
6726 | ||
6727 | ||
6728 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6729 | PyObject *resultobj; | |
6730 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6731 | int result; | |
6732 | PyObject * obj0 = 0 ; | |
6733 | char *kwnames[] = { | |
6734 | (char *) "self", NULL | |
6735 | }; | |
6736 | ||
6737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6740 | { | |
6741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6742 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6743 | ||
6744 | wxPyEndAllowThreads(__tstate); | |
6745 | if (PyErr_Occurred()) SWIG_fail; | |
6746 | } | |
6747 | resultobj = SWIG_FromInt((int)result); | |
6748 | return resultobj; | |
6749 | fail: | |
6750 | return NULL; | |
6751 | } | |
6752 | ||
6753 | ||
6754 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6755 | PyObject *resultobj; | |
6756 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6757 | bool result; | |
6758 | PyObject * obj0 = 0 ; | |
6759 | char *kwnames[] = { | |
6760 | (char *) "self", NULL | |
6761 | }; | |
6762 | ||
6763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6766 | { | |
6767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6768 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6769 | ||
6770 | wxPyEndAllowThreads(__tstate); | |
6771 | if (PyErr_Occurred()) SWIG_fail; | |
6772 | } | |
6773 | { | |
6774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6775 | } | |
6776 | return resultobj; | |
6777 | fail: | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
6782 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6785 | wxString result; | |
6786 | PyObject * obj0 = 0 ; | |
6787 | char *kwnames[] = { | |
6788 | (char *) "self", NULL | |
6789 | }; | |
6790 | ||
6791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
6792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6794 | { | |
6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6796 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6797 | ||
6798 | wxPyEndAllowThreads(__tstate); | |
6799 | if (PyErr_Occurred()) SWIG_fail; | |
6800 | } | |
6801 | { | |
6802 | #if wxUSE_UNICODE | |
6803 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6804 | #else | |
6805 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6806 | #endif | |
6807 | } | |
6808 | return resultobj; | |
6809 | fail: | |
6810 | return NULL; | |
6811 | } | |
6812 | ||
6813 | ||
6814 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6815 | PyObject *resultobj; | |
6816 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6817 | int result; | |
6818 | PyObject * obj0 = 0 ; | |
6819 | char *kwnames[] = { | |
6820 | (char *) "self", NULL | |
6821 | }; | |
6822 | ||
6823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6826 | { | |
6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6828 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6829 | ||
6830 | wxPyEndAllowThreads(__tstate); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
6832 | } | |
6833 | resultobj = SWIG_FromInt((int)result); | |
6834 | return resultobj; | |
6835 | fail: | |
6836 | return NULL; | |
6837 | } | |
6838 | ||
6839 | ||
6840 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject *resultobj; | |
6842 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6843 | int result; | |
6844 | PyObject * obj0 = 0 ; | |
6845 | char *kwnames[] = { | |
6846 | (char *) "self", NULL | |
6847 | }; | |
6848 | ||
6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6852 | { | |
6853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6854 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6855 | ||
6856 | wxPyEndAllowThreads(__tstate); | |
6857 | if (PyErr_Occurred()) SWIG_fail; | |
6858 | } | |
6859 | resultobj = SWIG_FromInt((int)result); | |
6860 | return resultobj; | |
6861 | fail: | |
6862 | return NULL; | |
6863 | } | |
6864 | ||
6865 | ||
6866 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6867 | PyObject *resultobj; | |
6868 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6869 | int arg2 ; | |
6870 | PyObject * obj0 = 0 ; | |
6871 | PyObject * obj1 = 0 ; | |
6872 | char *kwnames[] = { | |
6873 | (char *) "self",(char *) "pointsize", NULL | |
6874 | }; | |
6875 | ||
6876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
6877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6879 | arg2 = (int) SWIG_AsInt(obj1); | |
6880 | if (PyErr_Occurred()) SWIG_fail; | |
6881 | { | |
6882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6883 | (arg1)->SetPointSize(arg2); | |
6884 | ||
6885 | wxPyEndAllowThreads(__tstate); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
6888 | Py_INCREF(Py_None); resultobj = Py_None; | |
6889 | return resultobj; | |
6890 | fail: | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6896 | PyObject *resultobj; | |
6897 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6898 | int arg2 ; | |
6899 | PyObject * obj0 = 0 ; | |
6900 | PyObject * obj1 = 0 ; | |
6901 | char *kwnames[] = { | |
6902 | (char *) "self",(char *) "style", NULL | |
6903 | }; | |
6904 | ||
6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
6906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6908 | arg2 = (wxFontStyle) SWIG_AsInt(obj1); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | { | |
6911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6912 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6913 | ||
6914 | wxPyEndAllowThreads(__tstate); | |
6915 | if (PyErr_Occurred()) SWIG_fail; | |
6916 | } | |
6917 | Py_INCREF(Py_None); resultobj = Py_None; | |
6918 | return resultobj; | |
6919 | fail: | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
6924 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6925 | PyObject *resultobj; | |
6926 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6927 | int arg2 ; | |
6928 | PyObject * obj0 = 0 ; | |
6929 | PyObject * obj1 = 0 ; | |
6930 | char *kwnames[] = { | |
6931 | (char *) "self",(char *) "weight", NULL | |
6932 | }; | |
6933 | ||
6934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
6935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6937 | arg2 = (wxFontWeight) SWIG_AsInt(obj1); | |
6938 | if (PyErr_Occurred()) SWIG_fail; | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | Py_INCREF(Py_None); resultobj = Py_None; | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
6953 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6954 | PyObject *resultobj; | |
6955 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6956 | bool arg2 ; | |
6957 | PyObject * obj0 = 0 ; | |
6958 | PyObject * obj1 = 0 ; | |
6959 | char *kwnames[] = { | |
6960 | (char *) "self",(char *) "underlined", NULL | |
6961 | }; | |
6962 | ||
6963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6966 | arg2 = (bool) SWIG_AsBool(obj1); | |
6967 | if (PyErr_Occurred()) SWIG_fail; | |
6968 | { | |
6969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6970 | (arg1)->SetUnderlined(arg2); | |
6971 | ||
6972 | wxPyEndAllowThreads(__tstate); | |
6973 | if (PyErr_Occurred()) SWIG_fail; | |
6974 | } | |
6975 | Py_INCREF(Py_None); resultobj = Py_None; | |
6976 | return resultobj; | |
6977 | fail: | |
6978 | return NULL; | |
6979 | } | |
6980 | ||
6981 | ||
6982 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6983 | PyObject *resultobj; | |
6984 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6985 | wxString arg2 ; | |
6986 | PyObject * obj0 = 0 ; | |
6987 | PyObject * obj1 = 0 ; | |
6988 | char *kwnames[] = { | |
6989 | (char *) "self",(char *) "facename", NULL | |
6990 | }; | |
6991 | ||
6992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6995 | { | |
6996 | wxString* sptr = wxString_in_helper(obj1); | |
6997 | if (sptr == NULL) SWIG_fail; | |
6998 | arg2 = *sptr; | |
6999 | delete sptr; | |
7000 | } | |
7001 | { | |
7002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7003 | (arg1)->SetFaceName(arg2); | |
7004 | ||
7005 | wxPyEndAllowThreads(__tstate); | |
7006 | if (PyErr_Occurred()) SWIG_fail; | |
7007 | } | |
7008 | Py_INCREF(Py_None); resultobj = Py_None; | |
7009 | return resultobj; | |
7010 | fail: | |
7011 | return NULL; | |
7012 | } | |
7013 | ||
7014 | ||
7015 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject *resultobj; | |
7017 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7018 | int arg2 ; | |
7019 | PyObject * obj0 = 0 ; | |
7020 | PyObject * obj1 = 0 ; | |
7021 | char *kwnames[] = { | |
7022 | (char *) "self",(char *) "family", NULL | |
7023 | }; | |
7024 | ||
7025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
7026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7028 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
7029 | if (PyErr_Occurred()) SWIG_fail; | |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | (arg1)->SetFamily((wxFontFamily )arg2); | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
7037 | Py_INCREF(Py_None); resultobj = Py_None; | |
7038 | return resultobj; | |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
7044 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7045 | PyObject *resultobj; | |
7046 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7047 | int arg2 ; | |
7048 | PyObject * obj0 = 0 ; | |
7049 | PyObject * obj1 = 0 ; | |
7050 | char *kwnames[] = { | |
7051 | (char *) "self",(char *) "encoding", NULL | |
7052 | }; | |
7053 | ||
7054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
7055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7057 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7058 | if (PyErr_Occurred()) SWIG_fail; | |
7059 | { | |
7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7061 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7062 | ||
7063 | wxPyEndAllowThreads(__tstate); | |
7064 | if (PyErr_Occurred()) SWIG_fail; | |
7065 | } | |
7066 | Py_INCREF(Py_None); resultobj = Py_None; | |
7067 | return resultobj; | |
7068 | fail: | |
7069 | return NULL; | |
7070 | } | |
7071 | ||
7072 | ||
7073 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7074 | PyObject *resultobj; | |
7075 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7076 | wxString *arg2 = 0 ; | |
7077 | bool result; | |
7078 | bool temp2 = False ; | |
7079 | PyObject * obj0 = 0 ; | |
7080 | PyObject * obj1 = 0 ; | |
7081 | char *kwnames[] = { | |
7082 | (char *) "self",(char *) "s", NULL | |
7083 | }; | |
7084 | ||
7085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7088 | { | |
7089 | arg2 = wxString_in_helper(obj1); | |
7090 | if (arg2 == NULL) SWIG_fail; | |
7091 | temp2 = True; | |
7092 | } | |
7093 | { | |
7094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7095 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7096 | ||
7097 | wxPyEndAllowThreads(__tstate); | |
7098 | if (PyErr_Occurred()) SWIG_fail; | |
7099 | } | |
7100 | { | |
7101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7102 | } | |
7103 | { | |
7104 | if (temp2) | |
7105 | delete arg2; | |
7106 | } | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | { | |
7110 | if (temp2) | |
7111 | delete arg2; | |
7112 | } | |
7113 | return NULL; | |
7114 | } | |
7115 | ||
7116 | ||
7117 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7118 | PyObject *resultobj; | |
7119 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7120 | wxString result; | |
7121 | PyObject * obj0 = 0 ; | |
7122 | char *kwnames[] = { | |
7123 | (char *) "self", NULL | |
7124 | }; | |
7125 | ||
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
7127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7129 | { | |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7131 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
7132 | ||
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | { | |
7137 | #if wxUSE_UNICODE | |
7138 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7139 | #else | |
7140 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7141 | #endif | |
7142 | } | |
7143 | return resultobj; | |
7144 | fail: | |
7145 | return NULL; | |
7146 | } | |
7147 | ||
7148 | ||
7149 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7150 | PyObject *resultobj; | |
7151 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7152 | wxString result; | |
7153 | PyObject * obj0 = 0 ; | |
7154 | char *kwnames[] = { | |
7155 | (char *) "self", NULL | |
7156 | }; | |
7157 | ||
7158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
7159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7161 | { | |
7162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7163 | result = wxNativeFontInfo___str__(arg1); | |
7164 | ||
7165 | wxPyEndAllowThreads(__tstate); | |
7166 | if (PyErr_Occurred()) SWIG_fail; | |
7167 | } | |
7168 | { | |
7169 | #if wxUSE_UNICODE | |
7170 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7171 | #else | |
7172 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7173 | #endif | |
7174 | } | |
7175 | return resultobj; | |
7176 | fail: | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7182 | PyObject *resultobj; | |
7183 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7184 | wxString *arg2 = 0 ; | |
7185 | bool result; | |
7186 | bool temp2 = False ; | |
7187 | PyObject * obj0 = 0 ; | |
7188 | PyObject * obj1 = 0 ; | |
7189 | char *kwnames[] = { | |
7190 | (char *) "self",(char *) "s", NULL | |
7191 | }; | |
7192 | ||
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
7194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7196 | { | |
7197 | arg2 = wxString_in_helper(obj1); | |
7198 | if (arg2 == NULL) SWIG_fail; | |
7199 | temp2 = True; | |
7200 | } | |
7201 | { | |
7202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7203 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
7204 | ||
7205 | wxPyEndAllowThreads(__tstate); | |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
7207 | } | |
7208 | { | |
7209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7210 | } | |
7211 | { | |
7212 | if (temp2) | |
7213 | delete arg2; | |
7214 | } | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | { | |
7218 | if (temp2) | |
7219 | delete arg2; | |
7220 | } | |
7221 | return NULL; | |
7222 | } | |
7223 | ||
7224 | ||
7225 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7226 | PyObject *resultobj; | |
7227 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7228 | wxString result; | |
7229 | PyObject * obj0 = 0 ; | |
7230 | char *kwnames[] = { | |
7231 | (char *) "self", NULL | |
7232 | }; | |
7233 | ||
7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
7235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7237 | { | |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | { | |
7245 | #if wxUSE_UNICODE | |
7246 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7247 | #else | |
7248 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7249 | #endif | |
7250 | } | |
7251 | return resultobj; | |
7252 | fail: | |
7253 | return NULL; | |
7254 | } | |
7255 | ||
7256 | ||
7257 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
7258 | PyObject *obj; | |
7259 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7260 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
7261 | Py_INCREF(obj); | |
7262 | return Py_BuildValue((char *)""); | |
7263 | } | |
7264 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7265 | PyObject *resultobj; | |
7266 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7267 | wxString *arg2 = (wxString *) 0 ; | |
7268 | bool temp2 = False ; | |
7269 | PyObject * obj0 = 0 ; | |
7270 | PyObject * obj1 = 0 ; | |
7271 | char *kwnames[] = { | |
7272 | (char *) "self",(char *) "facename", NULL | |
7273 | }; | |
7274 | ||
7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
7276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7278 | { | |
7279 | arg2 = wxString_in_helper(obj1); | |
7280 | if (arg2 == NULL) SWIG_fail; | |
7281 | temp2 = True; | |
7282 | } | |
7283 | if (arg1) (arg1)->facename = *arg2; | |
7284 | ||
7285 | Py_INCREF(Py_None); resultobj = Py_None; | |
7286 | { | |
7287 | if (temp2) | |
7288 | delete arg2; | |
7289 | } | |
7290 | return resultobj; | |
7291 | fail: | |
7292 | { | |
7293 | if (temp2) | |
7294 | delete arg2; | |
7295 | } | |
7296 | return NULL; | |
7297 | } | |
7298 | ||
7299 | ||
7300 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7301 | PyObject *resultobj; | |
7302 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7303 | wxString *result; | |
7304 | PyObject * obj0 = 0 ; | |
7305 | char *kwnames[] = { | |
7306 | (char *) "self", NULL | |
7307 | }; | |
7308 | ||
7309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
7310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7312 | result = (wxString *)& ((arg1)->facename); | |
7313 | ||
7314 | { | |
7315 | #if wxUSE_UNICODE | |
7316 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7317 | #else | |
7318 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7319 | #endif | |
7320 | } | |
7321 | return resultobj; | |
7322 | fail: | |
7323 | return NULL; | |
7324 | } | |
7325 | ||
7326 | ||
7327 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7328 | PyObject *resultobj; | |
7329 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7330 | int arg2 ; | |
7331 | PyObject * obj0 = 0 ; | |
7332 | PyObject * obj1 = 0 ; | |
7333 | char *kwnames[] = { | |
7334 | (char *) "self",(char *) "encoding", NULL | |
7335 | }; | |
7336 | ||
7337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; | |
7338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7340 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7341 | if (PyErr_Occurred()) SWIG_fail; | |
7342 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
7343 | ||
7344 | Py_INCREF(Py_None); resultobj = Py_None; | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | return NULL; | |
7348 | } | |
7349 | ||
7350 | ||
7351 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7352 | PyObject *resultobj; | |
7353 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7354 | int result; | |
7355 | PyObject * obj0 = 0 ; | |
7356 | char *kwnames[] = { | |
7357 | (char *) "self", NULL | |
7358 | }; | |
7359 | ||
7360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
7361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7363 | result = (int) ((arg1)->encoding); | |
7364 | ||
7365 | resultobj = SWIG_FromInt((int)result); | |
7366 | return resultobj; | |
7367 | fail: | |
7368 | return NULL; | |
7369 | } | |
7370 | ||
7371 | ||
7372 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7373 | PyObject *resultobj; | |
7374 | wxNativeEncodingInfo *result; | |
7375 | char *kwnames[] = { | |
7376 | NULL | |
7377 | }; | |
7378 | ||
7379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7380 | { | |
7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7382 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7383 | ||
7384 | wxPyEndAllowThreads(__tstate); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | } | |
7387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
7388 | return resultobj; | |
7389 | fail: | |
7390 | return NULL; | |
7391 | } | |
7392 | ||
7393 | ||
7394 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7395 | PyObject *resultobj; | |
7396 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7397 | PyObject * obj0 = 0 ; | |
7398 | char *kwnames[] = { | |
7399 | (char *) "self", NULL | |
7400 | }; | |
7401 | ||
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
7403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7405 | { | |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | delete arg1; | |
7408 | ||
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) SWIG_fail; | |
7411 | } | |
7412 | Py_INCREF(Py_None); resultobj = Py_None; | |
7413 | return resultobj; | |
7414 | fail: | |
7415 | return NULL; | |
7416 | } | |
7417 | ||
7418 | ||
7419 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7420 | PyObject *resultobj; | |
7421 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7422 | wxString *arg2 = 0 ; | |
7423 | bool result; | |
7424 | bool temp2 = False ; | |
7425 | PyObject * obj0 = 0 ; | |
7426 | PyObject * obj1 = 0 ; | |
7427 | char *kwnames[] = { | |
7428 | (char *) "self",(char *) "s", NULL | |
7429 | }; | |
7430 | ||
7431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7434 | { | |
7435 | arg2 = wxString_in_helper(obj1); | |
7436 | if (arg2 == NULL) SWIG_fail; | |
7437 | temp2 = True; | |
7438 | } | |
7439 | { | |
7440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7441 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7442 | ||
7443 | wxPyEndAllowThreads(__tstate); | |
7444 | if (PyErr_Occurred()) SWIG_fail; | |
7445 | } | |
7446 | { | |
7447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7448 | } | |
7449 | { | |
7450 | if (temp2) | |
7451 | delete arg2; | |
7452 | } | |
7453 | return resultobj; | |
7454 | fail: | |
7455 | { | |
7456 | if (temp2) | |
7457 | delete arg2; | |
7458 | } | |
7459 | return NULL; | |
7460 | } | |
7461 | ||
7462 | ||
7463 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7464 | PyObject *resultobj; | |
7465 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7466 | wxString result; | |
7467 | PyObject * obj0 = 0 ; | |
7468 | char *kwnames[] = { | |
7469 | (char *) "self", NULL | |
7470 | }; | |
7471 | ||
7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
7473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7475 | { | |
7476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7477 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7478 | ||
7479 | wxPyEndAllowThreads(__tstate); | |
7480 | if (PyErr_Occurred()) SWIG_fail; | |
7481 | } | |
7482 | { | |
7483 | #if wxUSE_UNICODE | |
7484 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7485 | #else | |
7486 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7487 | #endif | |
7488 | } | |
7489 | return resultobj; | |
7490 | fail: | |
7491 | return NULL; | |
7492 | } | |
7493 | ||
7494 | ||
7495 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
7496 | PyObject *obj; | |
7497 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7498 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7499 | Py_INCREF(obj); | |
7500 | return Py_BuildValue((char *)""); | |
7501 | } | |
7502 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7503 | PyObject *resultobj; | |
7504 | int arg1 ; | |
7505 | wxNativeEncodingInfo *result; | |
7506 | PyObject * obj0 = 0 ; | |
7507 | char *kwnames[] = { | |
7508 | (char *) "encoding", NULL | |
7509 | }; | |
7510 | ||
7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; | |
7512 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7513 | if (PyErr_Occurred()) SWIG_fail; | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
7528 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject *resultobj; | |
7530 | wxNativeEncodingInfo *arg1 = 0 ; | |
7531 | bool result; | |
7532 | PyObject * obj0 = 0 ; | |
7533 | char *kwnames[] = { | |
7534 | (char *) "info", NULL | |
7535 | }; | |
7536 | ||
7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
7538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7540 | SWIG_fail; | |
7541 | if (arg1 == NULL) { | |
7542 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7543 | SWIG_fail; | |
7544 | } | |
7545 | { | |
7546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7547 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7548 | ||
7549 | wxPyEndAllowThreads(__tstate); | |
7550 | if (PyErr_Occurred()) SWIG_fail; | |
7551 | } | |
7552 | { | |
7553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7554 | } | |
7555 | return resultobj; | |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
7561 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7562 | PyObject *resultobj; | |
7563 | wxFontMapper *result; | |
7564 | char *kwnames[] = { | |
7565 | NULL | |
7566 | }; | |
7567 | ||
7568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7569 | { | |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | result = (wxFontMapper *)new wxFontMapper(); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
7576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); | |
7577 | return resultobj; | |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
7583 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7584 | PyObject *resultobj; | |
7585 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7586 | PyObject * obj0 = 0 ; | |
7587 | char *kwnames[] = { | |
7588 | (char *) "self", NULL | |
7589 | }; | |
7590 | ||
7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
7592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7594 | { | |
7595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7596 | delete arg1; | |
7597 | ||
7598 | wxPyEndAllowThreads(__tstate); | |
7599 | if (PyErr_Occurred()) SWIG_fail; | |
7600 | } | |
7601 | Py_INCREF(Py_None); resultobj = Py_None; | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
7608 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7609 | PyObject *resultobj; | |
7610 | wxFontMapper *result; | |
7611 | char *kwnames[] = { | |
7612 | NULL | |
7613 | }; | |
7614 | ||
7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7616 | { | |
7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7618 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7619 | ||
7620 | wxPyEndAllowThreads(__tstate); | |
7621 | if (PyErr_Occurred()) SWIG_fail; | |
7622 | } | |
7623 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7624 | return resultobj; | |
7625 | fail: | |
7626 | return NULL; | |
7627 | } | |
7628 | ||
7629 | ||
7630 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7631 | PyObject *resultobj; | |
7632 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7633 | wxFontMapper *result; | |
7634 | PyObject * obj0 = 0 ; | |
7635 | char *kwnames[] = { | |
7636 | (char *) "mapper", NULL | |
7637 | }; | |
7638 | ||
7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
7640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7642 | { | |
7643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7644 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7645 | ||
7646 | wxPyEndAllowThreads(__tstate); | |
7647 | if (PyErr_Occurred()) SWIG_fail; | |
7648 | } | |
7649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7650 | return resultobj; | |
7651 | fail: | |
7652 | return NULL; | |
7653 | } | |
7654 | ||
7655 | ||
7656 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7657 | PyObject *resultobj; | |
7658 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7659 | wxString *arg2 = 0 ; | |
7660 | bool arg3 = (bool) True ; | |
7661 | int result; | |
7662 | bool temp2 = False ; | |
7663 | PyObject * obj0 = 0 ; | |
7664 | PyObject * obj1 = 0 ; | |
7665 | PyObject * obj2 = 0 ; | |
7666 | char *kwnames[] = { | |
7667 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7668 | }; | |
7669 | ||
7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7673 | { | |
7674 | arg2 = wxString_in_helper(obj1); | |
7675 | if (arg2 == NULL) SWIG_fail; | |
7676 | temp2 = True; | |
7677 | } | |
7678 | if (obj2) { | |
7679 | arg3 = (bool) SWIG_AsBool(obj2); | |
7680 | if (PyErr_Occurred()) SWIG_fail; | |
7681 | } | |
7682 | { | |
7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7684 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7685 | ||
7686 | wxPyEndAllowThreads(__tstate); | |
7687 | if (PyErr_Occurred()) SWIG_fail; | |
7688 | } | |
7689 | resultobj = SWIG_FromInt((int)result); | |
7690 | { | |
7691 | if (temp2) | |
7692 | delete arg2; | |
7693 | } | |
7694 | return resultobj; | |
7695 | fail: | |
7696 | { | |
7697 | if (temp2) | |
7698 | delete arg2; | |
7699 | } | |
7700 | return NULL; | |
7701 | } | |
7702 | ||
7703 | ||
7704 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject *resultobj; | |
7706 | size_t result; | |
7707 | char *kwnames[] = { | |
7708 | NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7712 | { | |
7713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7714 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7715 | ||
7716 | wxPyEndAllowThreads(__tstate); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | } | |
7719 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7720 | return resultobj; | |
7721 | fail: | |
7722 | return NULL; | |
7723 | } | |
7724 | ||
7725 | ||
7726 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7727 | PyObject *resultobj; | |
7728 | size_t arg1 ; | |
7729 | int result; | |
7730 | PyObject * obj0 = 0 ; | |
7731 | char *kwnames[] = { | |
7732 | (char *) "n", NULL | |
7733 | }; | |
7734 | ||
7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
7736 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | { | |
7739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7740 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7741 | ||
7742 | wxPyEndAllowThreads(__tstate); | |
7743 | if (PyErr_Occurred()) SWIG_fail; | |
7744 | } | |
7745 | resultobj = SWIG_FromInt((int)result); | |
7746 | return resultobj; | |
7747 | fail: | |
7748 | return NULL; | |
7749 | } | |
7750 | ||
7751 | ||
7752 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7753 | PyObject *resultobj; | |
7754 | int arg1 ; | |
7755 | wxString result; | |
7756 | PyObject * obj0 = 0 ; | |
7757 | char *kwnames[] = { | |
7758 | (char *) "encoding", NULL | |
7759 | }; | |
7760 | ||
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; | |
7762 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7763 | if (PyErr_Occurred()) SWIG_fail; | |
7764 | { | |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7767 | ||
7768 | wxPyEndAllowThreads(__tstate); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | { | |
7772 | #if wxUSE_UNICODE | |
7773 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7774 | #else | |
7775 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7776 | #endif | |
7777 | } | |
7778 | return resultobj; | |
7779 | fail: | |
7780 | return NULL; | |
7781 | } | |
7782 | ||
7783 | ||
7784 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7785 | PyObject *resultobj; | |
7786 | int arg1 ; | |
7787 | wxString result; | |
7788 | PyObject * obj0 = 0 ; | |
7789 | char *kwnames[] = { | |
7790 | (char *) "encoding", NULL | |
7791 | }; | |
7792 | ||
7793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; | |
7794 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | { | |
7797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7798 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7799 | ||
7800 | wxPyEndAllowThreads(__tstate); | |
7801 | if (PyErr_Occurred()) SWIG_fail; | |
7802 | } | |
7803 | { | |
7804 | #if wxUSE_UNICODE | |
7805 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7806 | #else | |
7807 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7808 | #endif | |
7809 | } | |
7810 | return resultobj; | |
7811 | fail: | |
7812 | return NULL; | |
7813 | } | |
7814 | ||
7815 | ||
7816 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7817 | PyObject *resultobj; | |
7818 | wxString *arg1 = 0 ; | |
7819 | int result; | |
7820 | bool temp1 = False ; | |
7821 | PyObject * obj0 = 0 ; | |
7822 | char *kwnames[] = { | |
7823 | (char *) "name", NULL | |
7824 | }; | |
7825 | ||
7826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7827 | { | |
7828 | arg1 = wxString_in_helper(obj0); | |
7829 | if (arg1 == NULL) SWIG_fail; | |
7830 | temp1 = True; | |
7831 | } | |
7832 | { | |
7833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7834 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7835 | ||
7836 | wxPyEndAllowThreads(__tstate); | |
7837 | if (PyErr_Occurred()) SWIG_fail; | |
7838 | } | |
7839 | resultobj = SWIG_FromInt((int)result); | |
7840 | { | |
7841 | if (temp1) | |
7842 | delete arg1; | |
7843 | } | |
7844 | return resultobj; | |
7845 | fail: | |
7846 | { | |
7847 | if (temp1) | |
7848 | delete arg1; | |
7849 | } | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
7854 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7855 | PyObject *resultobj; | |
7856 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7857 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7858 | PyObject * obj0 = 0 ; | |
7859 | PyObject * obj1 = 0 ; | |
7860 | char *kwnames[] = { | |
7861 | (char *) "self",(char *) "config", NULL | |
7862 | }; | |
7863 | ||
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7869 | { | |
7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7871 | (arg1)->SetConfig(arg2); | |
7872 | ||
7873 | wxPyEndAllowThreads(__tstate); | |
7874 | if (PyErr_Occurred()) SWIG_fail; | |
7875 | } | |
7876 | Py_INCREF(Py_None); resultobj = Py_None; | |
7877 | return resultobj; | |
7878 | fail: | |
7879 | return NULL; | |
7880 | } | |
7881 | ||
7882 | ||
7883 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7884 | PyObject *resultobj; | |
7885 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7886 | wxString *arg2 = 0 ; | |
7887 | bool temp2 = False ; | |
7888 | PyObject * obj0 = 0 ; | |
7889 | PyObject * obj1 = 0 ; | |
7890 | char *kwnames[] = { | |
7891 | (char *) "self",(char *) "prefix", NULL | |
7892 | }; | |
7893 | ||
7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
7895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7897 | { | |
7898 | arg2 = wxString_in_helper(obj1); | |
7899 | if (arg2 == NULL) SWIG_fail; | |
7900 | temp2 = True; | |
7901 | } | |
7902 | { | |
7903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7904 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7905 | ||
7906 | wxPyEndAllowThreads(__tstate); | |
7907 | if (PyErr_Occurred()) SWIG_fail; | |
7908 | } | |
7909 | Py_INCREF(Py_None); resultobj = Py_None; | |
7910 | { | |
7911 | if (temp2) | |
7912 | delete arg2; | |
7913 | } | |
7914 | return resultobj; | |
7915 | fail: | |
7916 | { | |
7917 | if (temp2) | |
7918 | delete arg2; | |
7919 | } | |
7920 | return NULL; | |
7921 | } | |
7922 | ||
7923 | ||
7924 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7925 | PyObject *resultobj; | |
7926 | wxString result; | |
7927 | char *kwnames[] = { | |
7928 | NULL | |
7929 | }; | |
7930 | ||
7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7932 | { | |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | result = wxFontMapper::GetDefaultConfigPath(); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
7939 | { | |
7940 | #if wxUSE_UNICODE | |
7941 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7942 | #else | |
7943 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7944 | #endif | |
7945 | } | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | return NULL; | |
7949 | } | |
7950 | ||
7951 | ||
7952 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7953 | PyObject *resultobj; | |
7954 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7955 | int arg2 ; | |
7956 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7957 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7958 | bool arg4 = (bool) True ; | |
7959 | PyObject *result; | |
7960 | bool temp3 = False ; | |
7961 | PyObject * obj0 = 0 ; | |
7962 | PyObject * obj1 = 0 ; | |
7963 | PyObject * obj2 = 0 ; | |
7964 | PyObject * obj3 = 0 ; | |
7965 | char *kwnames[] = { | |
7966 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7967 | }; | |
7968 | ||
7969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7972 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7973 | if (PyErr_Occurred()) SWIG_fail; | |
7974 | if (obj2) { | |
7975 | { | |
7976 | arg3 = wxString_in_helper(obj2); | |
7977 | if (arg3 == NULL) SWIG_fail; | |
7978 | temp3 = True; | |
7979 | } | |
7980 | } | |
7981 | if (obj3) { | |
7982 | arg4 = (bool) SWIG_AsBool(obj3); | |
7983 | if (PyErr_Occurred()) SWIG_fail; | |
7984 | } | |
7985 | { | |
7986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7987 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7988 | ||
7989 | wxPyEndAllowThreads(__tstate); | |
7990 | if (PyErr_Occurred()) SWIG_fail; | |
7991 | } | |
7992 | resultobj = result; | |
7993 | { | |
7994 | if (temp3) | |
7995 | delete arg3; | |
7996 | } | |
7997 | return resultobj; | |
7998 | fail: | |
7999 | { | |
8000 | if (temp3) | |
8001 | delete arg3; | |
8002 | } | |
8003 | return NULL; | |
8004 | } | |
8005 | ||
8006 | ||
8007 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8008 | PyObject *resultobj; | |
8009 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8010 | int arg2 ; | |
8011 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8012 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8013 | bool result; | |
8014 | bool temp3 = False ; | |
8015 | PyObject * obj0 = 0 ; | |
8016 | PyObject * obj1 = 0 ; | |
8017 | PyObject * obj2 = 0 ; | |
8018 | char *kwnames[] = { | |
8019 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
8020 | }; | |
8021 | ||
8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8025 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8026 | if (PyErr_Occurred()) SWIG_fail; | |
8027 | if (obj2) { | |
8028 | { | |
8029 | arg3 = wxString_in_helper(obj2); | |
8030 | if (arg3 == NULL) SWIG_fail; | |
8031 | temp3 = True; | |
8032 | } | |
8033 | } | |
8034 | { | |
8035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8036 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
8037 | ||
8038 | wxPyEndAllowThreads(__tstate); | |
8039 | if (PyErr_Occurred()) SWIG_fail; | |
8040 | } | |
8041 | { | |
8042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8043 | } | |
8044 | { | |
8045 | if (temp3) | |
8046 | delete arg3; | |
8047 | } | |
8048 | return resultobj; | |
8049 | fail: | |
8050 | { | |
8051 | if (temp3) | |
8052 | delete arg3; | |
8053 | } | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8061 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8062 | PyObject * obj0 = 0 ; | |
8063 | PyObject * obj1 = 0 ; | |
8064 | char *kwnames[] = { | |
8065 | (char *) "self",(char *) "parent", NULL | |
8066 | }; | |
8067 | ||
8068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
8069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8073 | { | |
8074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8075 | (arg1)->SetDialogParent(arg2); | |
8076 | ||
8077 | wxPyEndAllowThreads(__tstate); | |
8078 | if (PyErr_Occurred()) SWIG_fail; | |
8079 | } | |
8080 | Py_INCREF(Py_None); resultobj = Py_None; | |
8081 | return resultobj; | |
8082 | fail: | |
8083 | return NULL; | |
8084 | } | |
8085 | ||
8086 | ||
8087 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8088 | PyObject *resultobj; | |
8089 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8090 | wxString *arg2 = 0 ; | |
8091 | bool temp2 = False ; | |
8092 | PyObject * obj0 = 0 ; | |
8093 | PyObject * obj1 = 0 ; | |
8094 | char *kwnames[] = { | |
8095 | (char *) "self",(char *) "title", NULL | |
8096 | }; | |
8097 | ||
8098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
8099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8101 | { | |
8102 | arg2 = wxString_in_helper(obj1); | |
8103 | if (arg2 == NULL) SWIG_fail; | |
8104 | temp2 = True; | |
8105 | } | |
8106 | { | |
8107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8108 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
8109 | ||
8110 | wxPyEndAllowThreads(__tstate); | |
8111 | if (PyErr_Occurred()) SWIG_fail; | |
8112 | } | |
8113 | Py_INCREF(Py_None); resultobj = Py_None; | |
8114 | { | |
8115 | if (temp2) | |
8116 | delete arg2; | |
8117 | } | |
8118 | return resultobj; | |
8119 | fail: | |
8120 | { | |
8121 | if (temp2) | |
8122 | delete arg2; | |
8123 | } | |
8124 | return NULL; | |
8125 | } | |
8126 | ||
8127 | ||
8128 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
8129 | PyObject *obj; | |
8130 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8131 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
8132 | Py_INCREF(obj); | |
8133 | return Py_BuildValue((char *)""); | |
8134 | } | |
8135 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8136 | PyObject *resultobj; | |
8137 | int arg1 ; | |
8138 | int arg2 ; | |
8139 | int arg3 ; | |
8140 | int arg4 ; | |
8141 | bool arg5 = (bool) False ; | |
8142 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
8143 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8144 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8145 | wxFont *result; | |
8146 | bool temp6 = False ; | |
8147 | PyObject * obj0 = 0 ; | |
8148 | PyObject * obj1 = 0 ; | |
8149 | PyObject * obj2 = 0 ; | |
8150 | PyObject * obj3 = 0 ; | |
8151 | PyObject * obj4 = 0 ; | |
8152 | PyObject * obj5 = 0 ; | |
8153 | PyObject * obj6 = 0 ; | |
8154 | char *kwnames[] = { | |
8155 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
8156 | }; | |
8157 | ||
8158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8159 | arg1 = (int) SWIG_AsInt(obj0); | |
8160 | if (PyErr_Occurred()) SWIG_fail; | |
8161 | arg2 = (int) SWIG_AsInt(obj1); | |
8162 | if (PyErr_Occurred()) SWIG_fail; | |
8163 | arg3 = (int) SWIG_AsInt(obj2); | |
8164 | if (PyErr_Occurred()) SWIG_fail; | |
8165 | arg4 = (int) SWIG_AsInt(obj3); | |
8166 | if (PyErr_Occurred()) SWIG_fail; | |
8167 | if (obj4) { | |
8168 | arg5 = (bool) SWIG_AsBool(obj4); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
8170 | } | |
8171 | if (obj5) { | |
8172 | { | |
8173 | arg6 = wxString_in_helper(obj5); | |
8174 | if (arg6 == NULL) SWIG_fail; | |
8175 | temp6 = True; | |
8176 | } | |
8177 | } | |
8178 | if (obj6) { | |
8179 | arg7 = (wxFontEncoding) SWIG_AsInt(obj6); | |
8180 | if (PyErr_Occurred()) SWIG_fail; | |
8181 | } | |
8182 | { | |
0439c23b | 8183 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8185 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8186 | ||
8187 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8188 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8189 | } |
8190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8191 | { | |
8192 | if (temp6) | |
8193 | delete arg6; | |
8194 | } | |
8195 | return resultobj; | |
8196 | fail: | |
8197 | { | |
8198 | if (temp6) | |
8199 | delete arg6; | |
8200 | } | |
8201 | return NULL; | |
8202 | } | |
8203 | ||
8204 | ||
8205 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8206 | PyObject *resultobj; | |
8207 | wxFont *arg1 = (wxFont *) 0 ; | |
8208 | PyObject * obj0 = 0 ; | |
8209 | char *kwnames[] = { | |
8210 | (char *) "self", NULL | |
8211 | }; | |
8212 | ||
8213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
8214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8216 | { | |
8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8218 | delete arg1; | |
8219 | ||
8220 | wxPyEndAllowThreads(__tstate); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
8223 | Py_INCREF(Py_None); resultobj = Py_None; | |
8224 | return resultobj; | |
8225 | fail: | |
8226 | return NULL; | |
8227 | } | |
8228 | ||
8229 | ||
8230 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8231 | PyObject *resultobj; | |
8232 | wxNativeFontInfo *arg1 = 0 ; | |
8233 | wxFont *result; | |
8234 | PyObject * obj0 = 0 ; | |
8235 | char *kwnames[] = { | |
8236 | (char *) "info", NULL | |
8237 | }; | |
8238 | ||
8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
8240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
8241 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8242 | SWIG_fail; | |
8243 | if (arg1 == NULL) { | |
8244 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8245 | SWIG_fail; | |
8246 | } | |
8247 | { | |
0439c23b | 8248 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8250 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
8251 | ||
8252 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8253 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8254 | } |
8255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8256 | return resultobj; | |
8257 | fail: | |
8258 | return NULL; | |
8259 | } | |
8260 | ||
8261 | ||
8262 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8263 | PyObject *resultobj; | |
8264 | wxString *arg1 = 0 ; | |
8265 | wxFont *result; | |
8266 | bool temp1 = False ; | |
8267 | PyObject * obj0 = 0 ; | |
8268 | char *kwnames[] = { | |
8269 | (char *) "info", NULL | |
8270 | }; | |
8271 | ||
8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
8273 | { | |
8274 | arg1 = wxString_in_helper(obj0); | |
8275 | if (arg1 == NULL) SWIG_fail; | |
8276 | temp1 = True; | |
8277 | } | |
8278 | { | |
0439c23b | 8279 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8281 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
8282 | ||
8283 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8284 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8285 | } |
8286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8287 | { | |
8288 | if (temp1) | |
8289 | delete arg1; | |
8290 | } | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | { | |
8294 | if (temp1) | |
8295 | delete arg1; | |
8296 | } | |
8297 | return NULL; | |
8298 | } | |
8299 | ||
8300 | ||
8301 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8302 | PyObject *resultobj; | |
8303 | int arg1 ; | |
8304 | int arg2 ; | |
8305 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
8306 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8307 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8308 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
8309 | wxFont *result; | |
8310 | bool temp4 = False ; | |
8311 | PyObject * obj0 = 0 ; | |
8312 | PyObject * obj1 = 0 ; | |
8313 | PyObject * obj2 = 0 ; | |
8314 | PyObject * obj3 = 0 ; | |
8315 | PyObject * obj4 = 0 ; | |
8316 | char *kwnames[] = { | |
8317 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
8318 | }; | |
8319 | ||
8320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8321 | arg1 = (int) SWIG_AsInt(obj0); | |
8322 | if (PyErr_Occurred()) SWIG_fail; | |
8323 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
8324 | if (PyErr_Occurred()) SWIG_fail; | |
8325 | if (obj2) { | |
8326 | arg3 = (int) SWIG_AsInt(obj2); | |
8327 | if (PyErr_Occurred()) SWIG_fail; | |
8328 | } | |
8329 | if (obj3) { | |
8330 | { | |
8331 | arg4 = wxString_in_helper(obj3); | |
8332 | if (arg4 == NULL) SWIG_fail; | |
8333 | temp4 = True; | |
8334 | } | |
8335 | } | |
8336 | if (obj4) { | |
8337 | arg5 = (wxFontEncoding) SWIG_AsInt(obj4); | |
8338 | if (PyErr_Occurred()) SWIG_fail; | |
8339 | } | |
8340 | { | |
0439c23b | 8341 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8343 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8344 | ||
8345 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8346 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8347 | } |
8348 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8349 | { | |
8350 | if (temp4) | |
8351 | delete arg4; | |
8352 | } | |
8353 | return resultobj; | |
8354 | fail: | |
8355 | { | |
8356 | if (temp4) | |
8357 | delete arg4; | |
8358 | } | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
8363 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxFont *arg1 = (wxFont *) 0 ; | |
8366 | bool result; | |
8367 | PyObject * obj0 = 0 ; | |
8368 | char *kwnames[] = { | |
8369 | (char *) "self", NULL | |
8370 | }; | |
8371 | ||
8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
8373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8375 | { | |
8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8377 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8378 | ||
8379 | wxPyEndAllowThreads(__tstate); | |
8380 | if (PyErr_Occurred()) SWIG_fail; | |
8381 | } | |
8382 | { | |
8383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8384 | } | |
8385 | return resultobj; | |
8386 | fail: | |
8387 | return NULL; | |
8388 | } | |
8389 | ||
8390 | ||
8391 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8392 | PyObject *resultobj; | |
8393 | wxFont *arg1 = (wxFont *) 0 ; | |
8394 | wxFont *arg2 = (wxFont *) 0 ; | |
8395 | bool result; | |
8396 | PyObject * obj0 = 0 ; | |
8397 | PyObject * obj1 = 0 ; | |
8398 | char *kwnames[] = { | |
8399 | (char *) "self",(char *) "other", NULL | |
8400 | }; | |
8401 | ||
8402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
8403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8407 | { | |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | { | |
8415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8416 | } | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj; | |
8425 | wxFont *arg1 = (wxFont *) 0 ; | |
8426 | wxFont *arg2 = (wxFont *) 0 ; | |
8427 | bool result; | |
8428 | PyObject * obj0 = 0 ; | |
8429 | PyObject * obj1 = 0 ; | |
8430 | char *kwnames[] = { | |
8431 | (char *) "self",(char *) "other", NULL | |
8432 | }; | |
8433 | ||
8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
8435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8439 | { | |
8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8441 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
8442 | ||
8443 | wxPyEndAllowThreads(__tstate); | |
8444 | if (PyErr_Occurred()) SWIG_fail; | |
8445 | } | |
8446 | { | |
8447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8448 | } | |
8449 | return resultobj; | |
8450 | fail: | |
8451 | return NULL; | |
8452 | } | |
8453 | ||
8454 | ||
8455 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8456 | PyObject *resultobj; | |
8457 | wxFont *arg1 = (wxFont *) 0 ; | |
8458 | int result; | |
8459 | PyObject * obj0 = 0 ; | |
8460 | char *kwnames[] = { | |
8461 | (char *) "self", NULL | |
8462 | }; | |
8463 | ||
8464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
8465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8467 | { | |
8468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8469 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8470 | ||
8471 | wxPyEndAllowThreads(__tstate); | |
8472 | if (PyErr_Occurred()) SWIG_fail; | |
8473 | } | |
8474 | resultobj = SWIG_FromInt((int)result); | |
8475 | return resultobj; | |
8476 | fail: | |
8477 | return NULL; | |
8478 | } | |
8479 | ||
8480 | ||
8481 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8482 | PyObject *resultobj; | |
8483 | wxFont *arg1 = (wxFont *) 0 ; | |
8484 | int result; | |
8485 | PyObject * obj0 = 0 ; | |
8486 | char *kwnames[] = { | |
8487 | (char *) "self", NULL | |
8488 | }; | |
8489 | ||
8490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
8491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8493 | { | |
8494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8495 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8496 | ||
8497 | wxPyEndAllowThreads(__tstate); | |
8498 | if (PyErr_Occurred()) SWIG_fail; | |
8499 | } | |
8500 | resultobj = SWIG_FromInt((int)result); | |
8501 | return resultobj; | |
8502 | fail: | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
8507 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject *resultobj; | |
8509 | wxFont *arg1 = (wxFont *) 0 ; | |
8510 | int result; | |
8511 | PyObject * obj0 = 0 ; | |
8512 | char *kwnames[] = { | |
8513 | (char *) "self", NULL | |
8514 | }; | |
8515 | ||
8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
8517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8519 | { | |
8520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8521 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8522 | ||
8523 | wxPyEndAllowThreads(__tstate); | |
8524 | if (PyErr_Occurred()) SWIG_fail; | |
8525 | } | |
8526 | resultobj = SWIG_FromInt((int)result); | |
8527 | return resultobj; | |
8528 | fail: | |
8529 | return NULL; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8534 | PyObject *resultobj; | |
8535 | wxFont *arg1 = (wxFont *) 0 ; | |
8536 | int result; | |
8537 | PyObject * obj0 = 0 ; | |
8538 | char *kwnames[] = { | |
8539 | (char *) "self", NULL | |
8540 | }; | |
8541 | ||
8542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
8543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8545 | { | |
8546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8547 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8548 | ||
8549 | wxPyEndAllowThreads(__tstate); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | resultobj = SWIG_FromInt((int)result); | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | return NULL; | |
8556 | } | |
8557 | ||
8558 | ||
8559 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8560 | PyObject *resultobj; | |
8561 | wxFont *arg1 = (wxFont *) 0 ; | |
8562 | bool result; | |
8563 | PyObject * obj0 = 0 ; | |
8564 | char *kwnames[] = { | |
8565 | (char *) "self", NULL | |
8566 | }; | |
8567 | ||
8568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
8569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8571 | { | |
8572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8573 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8574 | ||
8575 | wxPyEndAllowThreads(__tstate); | |
8576 | if (PyErr_Occurred()) SWIG_fail; | |
8577 | } | |
8578 | { | |
8579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8580 | } | |
8581 | return resultobj; | |
8582 | fail: | |
8583 | return NULL; | |
8584 | } | |
8585 | ||
8586 | ||
8587 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8588 | PyObject *resultobj; | |
8589 | wxFont *arg1 = (wxFont *) 0 ; | |
8590 | wxString result; | |
8591 | PyObject * obj0 = 0 ; | |
8592 | char *kwnames[] = { | |
8593 | (char *) "self", NULL | |
8594 | }; | |
8595 | ||
8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
8597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8599 | { | |
8600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8601 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8602 | ||
8603 | wxPyEndAllowThreads(__tstate); | |
8604 | if (PyErr_Occurred()) SWIG_fail; | |
8605 | } | |
8606 | { | |
8607 | #if wxUSE_UNICODE | |
8608 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8609 | #else | |
8610 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8611 | #endif | |
8612 | } | |
8613 | return resultobj; | |
8614 | fail: | |
8615 | return NULL; | |
8616 | } | |
8617 | ||
8618 | ||
8619 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8620 | PyObject *resultobj; | |
8621 | wxFont *arg1 = (wxFont *) 0 ; | |
8622 | int result; | |
8623 | PyObject * obj0 = 0 ; | |
8624 | char *kwnames[] = { | |
8625 | (char *) "self", NULL | |
8626 | }; | |
8627 | ||
8628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
8629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8634 | ||
8635 | wxPyEndAllowThreads(__tstate); | |
8636 | if (PyErr_Occurred()) SWIG_fail; | |
8637 | } | |
8638 | resultobj = SWIG_FromInt((int)result); | |
8639 | return resultobj; | |
8640 | fail: | |
8641 | return NULL; | |
8642 | } | |
8643 | ||
8644 | ||
8645 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject *resultobj; | |
8647 | wxFont *arg1 = (wxFont *) 0 ; | |
8648 | wxNativeFontInfo *result; | |
8649 | PyObject * obj0 = 0 ; | |
8650 | char *kwnames[] = { | |
8651 | (char *) "self", NULL | |
8652 | }; | |
8653 | ||
8654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
8655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8660 | ||
8661 | wxPyEndAllowThreads(__tstate); | |
8662 | if (PyErr_Occurred()) SWIG_fail; | |
8663 | } | |
8664 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); | |
8665 | return resultobj; | |
8666 | fail: | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
8671 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8672 | PyObject *resultobj; | |
8673 | wxFont *arg1 = (wxFont *) 0 ; | |
8674 | bool result; | |
8675 | PyObject * obj0 = 0 ; | |
8676 | char *kwnames[] = { | |
8677 | (char *) "self", NULL | |
8678 | }; | |
8679 | ||
8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
8681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8686 | ||
8687 | wxPyEndAllowThreads(__tstate); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
8689 | } | |
8690 | { | |
8691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8692 | } | |
8693 | return resultobj; | |
8694 | fail: | |
8695 | return NULL; | |
8696 | } | |
8697 | ||
8698 | ||
8699 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8700 | PyObject *resultobj; | |
8701 | wxFont *arg1 = (wxFont *) 0 ; | |
8702 | wxString result; | |
8703 | PyObject * obj0 = 0 ; | |
8704 | char *kwnames[] = { | |
8705 | (char *) "self", NULL | |
8706 | }; | |
8707 | ||
8708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
8709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8711 | { | |
8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8713 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8714 | ||
8715 | wxPyEndAllowThreads(__tstate); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | } | |
8718 | { | |
8719 | #if wxUSE_UNICODE | |
8720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8721 | #else | |
8722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8723 | #endif | |
8724 | } | |
8725 | return resultobj; | |
8726 | fail: | |
8727 | return NULL; | |
8728 | } | |
8729 | ||
8730 | ||
8731 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8732 | PyObject *resultobj; | |
8733 | wxFont *arg1 = (wxFont *) 0 ; | |
8734 | wxString result; | |
8735 | PyObject * obj0 = 0 ; | |
8736 | char *kwnames[] = { | |
8737 | (char *) "self", NULL | |
8738 | }; | |
8739 | ||
8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
8741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8743 | { | |
8744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8745 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8746 | ||
8747 | wxPyEndAllowThreads(__tstate); | |
8748 | if (PyErr_Occurred()) SWIG_fail; | |
8749 | } | |
8750 | { | |
8751 | #if wxUSE_UNICODE | |
8752 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8753 | #else | |
8754 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8755 | #endif | |
8756 | } | |
8757 | return resultobj; | |
8758 | fail: | |
8759 | return NULL; | |
8760 | } | |
8761 | ||
8762 | ||
8763 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject *resultobj; | |
8765 | wxFont *arg1 = (wxFont *) 0 ; | |
8766 | int arg2 ; | |
8767 | PyObject * obj0 = 0 ; | |
8768 | PyObject * obj1 = 0 ; | |
8769 | char *kwnames[] = { | |
8770 | (char *) "self",(char *) "pointSize", NULL | |
8771 | }; | |
8772 | ||
8773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
8774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8776 | arg2 = (int) SWIG_AsInt(obj1); | |
8777 | if (PyErr_Occurred()) SWIG_fail; | |
8778 | { | |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | (arg1)->SetPointSize(arg2); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
8785 | Py_INCREF(Py_None); resultobj = Py_None; | |
8786 | return resultobj; | |
8787 | fail: | |
8788 | return NULL; | |
8789 | } | |
8790 | ||
8791 | ||
8792 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject *resultobj; | |
8794 | wxFont *arg1 = (wxFont *) 0 ; | |
8795 | int arg2 ; | |
8796 | PyObject * obj0 = 0 ; | |
8797 | PyObject * obj1 = 0 ; | |
8798 | char *kwnames[] = { | |
8799 | (char *) "self",(char *) "family", NULL | |
8800 | }; | |
8801 | ||
8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
8803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8805 | arg2 = (int) SWIG_AsInt(obj1); | |
8806 | if (PyErr_Occurred()) SWIG_fail; | |
8807 | { | |
8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8809 | (arg1)->SetFamily(arg2); | |
8810 | ||
8811 | wxPyEndAllowThreads(__tstate); | |
8812 | if (PyErr_Occurred()) SWIG_fail; | |
8813 | } | |
8814 | Py_INCREF(Py_None); resultobj = Py_None; | |
8815 | return resultobj; | |
8816 | fail: | |
8817 | return NULL; | |
8818 | } | |
8819 | ||
8820 | ||
8821 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8822 | PyObject *resultobj; | |
8823 | wxFont *arg1 = (wxFont *) 0 ; | |
8824 | int arg2 ; | |
8825 | PyObject * obj0 = 0 ; | |
8826 | PyObject * obj1 = 0 ; | |
8827 | char *kwnames[] = { | |
8828 | (char *) "self",(char *) "style", NULL | |
8829 | }; | |
8830 | ||
8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
8832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8834 | arg2 = (int) SWIG_AsInt(obj1); | |
8835 | if (PyErr_Occurred()) SWIG_fail; | |
8836 | { | |
8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8838 | (arg1)->SetStyle(arg2); | |
8839 | ||
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
8843 | Py_INCREF(Py_None); resultobj = Py_None; | |
8844 | return resultobj; | |
8845 | fail: | |
8846 | return NULL; | |
8847 | } | |
8848 | ||
8849 | ||
8850 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8851 | PyObject *resultobj; | |
8852 | wxFont *arg1 = (wxFont *) 0 ; | |
8853 | int arg2 ; | |
8854 | PyObject * obj0 = 0 ; | |
8855 | PyObject * obj1 = 0 ; | |
8856 | char *kwnames[] = { | |
8857 | (char *) "self",(char *) "weight", NULL | |
8858 | }; | |
8859 | ||
8860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
8861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8863 | arg2 = (int) SWIG_AsInt(obj1); | |
8864 | if (PyErr_Occurred()) SWIG_fail; | |
8865 | { | |
8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8867 | (arg1)->SetWeight(arg2); | |
8868 | ||
8869 | wxPyEndAllowThreads(__tstate); | |
8870 | if (PyErr_Occurred()) SWIG_fail; | |
8871 | } | |
8872 | Py_INCREF(Py_None); resultobj = Py_None; | |
8873 | return resultobj; | |
8874 | fail: | |
8875 | return NULL; | |
8876 | } | |
8877 | ||
8878 | ||
8879 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8880 | PyObject *resultobj; | |
8881 | wxFont *arg1 = (wxFont *) 0 ; | |
8882 | wxString *arg2 = 0 ; | |
8883 | bool temp2 = False ; | |
8884 | PyObject * obj0 = 0 ; | |
8885 | PyObject * obj1 = 0 ; | |
8886 | char *kwnames[] = { | |
8887 | (char *) "self",(char *) "faceName", NULL | |
8888 | }; | |
8889 | ||
8890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
8891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8893 | { | |
8894 | arg2 = wxString_in_helper(obj1); | |
8895 | if (arg2 == NULL) SWIG_fail; | |
8896 | temp2 = True; | |
8897 | } | |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | Py_INCREF(Py_None); resultobj = Py_None; | |
8906 | { | |
8907 | if (temp2) | |
8908 | delete arg2; | |
8909 | } | |
8910 | return resultobj; | |
8911 | fail: | |
8912 | { | |
8913 | if (temp2) | |
8914 | delete arg2; | |
8915 | } | |
8916 | return NULL; | |
8917 | } | |
8918 | ||
8919 | ||
8920 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8921 | PyObject *resultobj; | |
8922 | wxFont *arg1 = (wxFont *) 0 ; | |
8923 | bool arg2 ; | |
8924 | PyObject * obj0 = 0 ; | |
8925 | PyObject * obj1 = 0 ; | |
8926 | char *kwnames[] = { | |
8927 | (char *) "self",(char *) "underlined", NULL | |
8928 | }; | |
8929 | ||
8930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8933 | arg2 = (bool) SWIG_AsBool(obj1); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | { | |
8936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8937 | (arg1)->SetUnderlined(arg2); | |
8938 | ||
8939 | wxPyEndAllowThreads(__tstate); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | } | |
8942 | Py_INCREF(Py_None); resultobj = Py_None; | |
8943 | return resultobj; | |
8944 | fail: | |
8945 | return NULL; | |
8946 | } | |
8947 | ||
8948 | ||
8949 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8950 | PyObject *resultobj; | |
8951 | wxFont *arg1 = (wxFont *) 0 ; | |
8952 | int arg2 ; | |
8953 | PyObject * obj0 = 0 ; | |
8954 | PyObject * obj1 = 0 ; | |
8955 | char *kwnames[] = { | |
8956 | (char *) "self",(char *) "encoding", NULL | |
8957 | }; | |
8958 | ||
8959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
8960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8962 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | { | |
8965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8966 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8967 | ||
8968 | wxPyEndAllowThreads(__tstate); | |
8969 | if (PyErr_Occurred()) SWIG_fail; | |
8970 | } | |
8971 | Py_INCREF(Py_None); resultobj = Py_None; | |
8972 | return resultobj; | |
8973 | fail: | |
8974 | return NULL; | |
8975 | } | |
8976 | ||
8977 | ||
8978 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8979 | PyObject *resultobj; | |
8980 | wxFont *arg1 = (wxFont *) 0 ; | |
8981 | wxNativeFontInfo *arg2 = 0 ; | |
8982 | PyObject * obj0 = 0 ; | |
8983 | PyObject * obj1 = 0 ; | |
8984 | char *kwnames[] = { | |
8985 | (char *) "self",(char *) "info", NULL | |
8986 | }; | |
8987 | ||
8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
8989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8992 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8993 | SWIG_fail; | |
8994 | if (arg2 == NULL) { | |
8995 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8996 | SWIG_fail; | |
8997 | } | |
8998 | { | |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
9005 | Py_INCREF(Py_None); resultobj = Py_None; | |
9006 | return resultobj; | |
9007 | fail: | |
9008 | return NULL; | |
9009 | } | |
9010 | ||
9011 | ||
9012 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9013 | PyObject *resultobj; | |
9014 | wxFont *arg1 = (wxFont *) 0 ; | |
9015 | wxString *arg2 = 0 ; | |
9016 | bool temp2 = False ; | |
9017 | PyObject * obj0 = 0 ; | |
9018 | PyObject * obj1 = 0 ; | |
9019 | char *kwnames[] = { | |
9020 | (char *) "self",(char *) "info", NULL | |
9021 | }; | |
9022 | ||
9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
9024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9026 | { | |
9027 | arg2 = wxString_in_helper(obj1); | |
9028 | if (arg2 == NULL) SWIG_fail; | |
9029 | temp2 = True; | |
9030 | } | |
9031 | { | |
9032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9033 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
9034 | ||
9035 | wxPyEndAllowThreads(__tstate); | |
9036 | if (PyErr_Occurred()) SWIG_fail; | |
9037 | } | |
9038 | Py_INCREF(Py_None); resultobj = Py_None; | |
9039 | { | |
9040 | if (temp2) | |
9041 | delete arg2; | |
9042 | } | |
9043 | return resultobj; | |
9044 | fail: | |
9045 | { | |
9046 | if (temp2) | |
9047 | delete arg2; | |
9048 | } | |
9049 | return NULL; | |
9050 | } | |
9051 | ||
9052 | ||
9053 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9054 | PyObject *resultobj; | |
9055 | wxFont *arg1 = (wxFont *) 0 ; | |
9056 | wxString *arg2 = 0 ; | |
9057 | bool temp2 = False ; | |
9058 | PyObject * obj0 = 0 ; | |
9059 | PyObject * obj1 = 0 ; | |
9060 | char *kwnames[] = { | |
9061 | (char *) "self",(char *) "info", NULL | |
9062 | }; | |
9063 | ||
9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
9065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9067 | { | |
9068 | arg2 = wxString_in_helper(obj1); | |
9069 | if (arg2 == NULL) SWIG_fail; | |
9070 | temp2 = True; | |
9071 | } | |
9072 | { | |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9074 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
9075 | ||
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | Py_INCREF(Py_None); resultobj = Py_None; | |
9080 | { | |
9081 | if (temp2) | |
9082 | delete arg2; | |
9083 | } | |
9084 | return resultobj; | |
9085 | fail: | |
9086 | { | |
9087 | if (temp2) | |
9088 | delete arg2; | |
9089 | } | |
9090 | return NULL; | |
9091 | } | |
9092 | ||
9093 | ||
9094 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9095 | PyObject *resultobj; | |
9096 | wxFont *arg1 = (wxFont *) 0 ; | |
9097 | wxString result; | |
9098 | PyObject * obj0 = 0 ; | |
9099 | char *kwnames[] = { | |
9100 | (char *) "self", NULL | |
9101 | }; | |
9102 | ||
9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
9104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9106 | { | |
9107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9108 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
9109 | ||
9110 | wxPyEndAllowThreads(__tstate); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | } | |
9113 | { | |
9114 | #if wxUSE_UNICODE | |
9115 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9116 | #else | |
9117 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9118 | #endif | |
9119 | } | |
9120 | return resultobj; | |
9121 | fail: | |
9122 | return NULL; | |
9123 | } | |
9124 | ||
9125 | ||
9126 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9127 | PyObject *resultobj; | |
9128 | wxFont *arg1 = (wxFont *) 0 ; | |
9129 | wxString result; | |
9130 | PyObject * obj0 = 0 ; | |
9131 | char *kwnames[] = { | |
9132 | (char *) "self", NULL | |
9133 | }; | |
9134 | ||
9135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
9136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9138 | { | |
9139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9140 | result = ((wxFont const *)arg1)->GetStyleString(); | |
9141 | ||
9142 | wxPyEndAllowThreads(__tstate); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
9145 | { | |
9146 | #if wxUSE_UNICODE | |
9147 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9148 | #else | |
9149 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9150 | #endif | |
9151 | } | |
9152 | return resultobj; | |
9153 | fail: | |
9154 | return NULL; | |
9155 | } | |
9156 | ||
9157 | ||
9158 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9159 | PyObject *resultobj; | |
9160 | wxFont *arg1 = (wxFont *) 0 ; | |
9161 | wxString result; | |
9162 | PyObject * obj0 = 0 ; | |
9163 | char *kwnames[] = { | |
9164 | (char *) "self", NULL | |
9165 | }; | |
9166 | ||
9167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
9168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9170 | { | |
9171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9172 | result = ((wxFont const *)arg1)->GetWeightString(); | |
9173 | ||
9174 | wxPyEndAllowThreads(__tstate); | |
9175 | if (PyErr_Occurred()) SWIG_fail; | |
9176 | } | |
9177 | { | |
9178 | #if wxUSE_UNICODE | |
9179 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9180 | #else | |
9181 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9182 | #endif | |
9183 | } | |
9184 | return resultobj; | |
9185 | fail: | |
9186 | return NULL; | |
9187 | } | |
9188 | ||
9189 | ||
9190 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9191 | PyObject *resultobj; | |
9192 | wxFont *arg1 = (wxFont *) 0 ; | |
9193 | bool arg2 = (bool) True ; | |
9194 | PyObject * obj0 = 0 ; | |
9195 | PyObject * obj1 = 0 ; | |
9196 | char *kwnames[] = { | |
9197 | (char *) "self",(char *) "no", NULL | |
9198 | }; | |
9199 | ||
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
9201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9203 | if (obj1) { | |
9204 | arg2 = (bool) SWIG_AsBool(obj1); | |
9205 | if (PyErr_Occurred()) SWIG_fail; | |
9206 | } | |
9207 | { | |
9208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9209 | (arg1)->SetNoAntiAliasing(arg2); | |
9210 | ||
9211 | wxPyEndAllowThreads(__tstate); | |
9212 | if (PyErr_Occurred()) SWIG_fail; | |
9213 | } | |
9214 | Py_INCREF(Py_None); resultobj = Py_None; | |
9215 | return resultobj; | |
9216 | fail: | |
9217 | return NULL; | |
9218 | } | |
9219 | ||
9220 | ||
9221 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9222 | PyObject *resultobj; | |
9223 | wxFont *arg1 = (wxFont *) 0 ; | |
9224 | bool result; | |
9225 | PyObject * obj0 = 0 ; | |
9226 | char *kwnames[] = { | |
9227 | (char *) "self", NULL | |
9228 | }; | |
9229 | ||
9230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
9231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9233 | { | |
9234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b0f7404b | 9235 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d55e5bfc RD |
9236 | |
9237 | wxPyEndAllowThreads(__tstate); | |
9238 | if (PyErr_Occurred()) SWIG_fail; | |
9239 | } | |
9240 | { | |
9241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9242 | } | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | return NULL; | |
9246 | } | |
9247 | ||
9248 | ||
9249 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9250 | PyObject *resultobj; | |
9251 | int result; | |
9252 | char *kwnames[] = { | |
9253 | NULL | |
9254 | }; | |
9255 | ||
9256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9257 | { | |
0439c23b | 9258 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9260 | result = (int)wxFont::GetDefaultEncoding(); | |
9261 | ||
9262 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9263 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9264 | } |
9265 | resultobj = SWIG_FromInt((int)result); | |
9266 | return resultobj; | |
9267 | fail: | |
9268 | return NULL; | |
9269 | } | |
9270 | ||
9271 | ||
9272 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9273 | PyObject *resultobj; | |
9274 | int arg1 ; | |
9275 | PyObject * obj0 = 0 ; | |
9276 | char *kwnames[] = { | |
9277 | (char *) "encoding", NULL | |
9278 | }; | |
9279 | ||
9280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; | |
9281 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | { | |
0439c23b | 9284 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9286 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9289 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9290 | } |
9291 | Py_INCREF(Py_None); resultobj = Py_None; | |
9292 | return resultobj; | |
9293 | fail: | |
9294 | return NULL; | |
9295 | } | |
9296 | ||
9297 | ||
9298 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
9299 | PyObject *obj; | |
9300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9301 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9302 | Py_INCREF(obj); | |
9303 | return Py_BuildValue((char *)""); | |
9304 | } | |
9305 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9306 | PyObject *resultobj; | |
9307 | wxPyFontEnumerator *result; | |
9308 | char *kwnames[] = { | |
9309 | NULL | |
9310 | }; | |
9311 | ||
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9313 | { | |
0439c23b | 9314 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9316 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9317 | ||
9318 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9319 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9320 | } |
9321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); | |
9322 | return resultobj; | |
9323 | fail: | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
9328 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject *resultobj; | |
9330 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9331 | PyObject * obj0 = 0 ; | |
9332 | char *kwnames[] = { | |
9333 | (char *) "self", NULL | |
9334 | }; | |
9335 | ||
9336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
9337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9339 | { | |
9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9341 | delete arg1; | |
9342 | ||
9343 | wxPyEndAllowThreads(__tstate); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | } | |
9346 | Py_INCREF(Py_None); resultobj = Py_None; | |
9347 | return resultobj; | |
9348 | fail: | |
9349 | return NULL; | |
9350 | } | |
9351 | ||
9352 | ||
9353 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9354 | PyObject *resultobj; | |
9355 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9356 | PyObject *arg2 = (PyObject *) 0 ; | |
9357 | PyObject *arg3 = (PyObject *) 0 ; | |
9358 | bool arg4 ; | |
9359 | PyObject * obj0 = 0 ; | |
9360 | PyObject * obj1 = 0 ; | |
9361 | PyObject * obj2 = 0 ; | |
9362 | PyObject * obj3 = 0 ; | |
9363 | char *kwnames[] = { | |
9364 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9365 | }; | |
9366 | ||
9367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9370 | arg2 = obj1; | |
9371 | arg3 = obj2; | |
9372 | arg4 = (bool) SWIG_AsBool(obj3); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | { | |
9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9376 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9377 | ||
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
9381 | Py_INCREF(Py_None); resultobj = Py_None; | |
9382 | return resultobj; | |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject *resultobj; | |
9390 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9391 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
9392 | bool arg3 = (bool) False ; | |
9393 | bool result; | |
9394 | PyObject * obj0 = 0 ; | |
9395 | PyObject * obj1 = 0 ; | |
9396 | PyObject * obj2 = 0 ; | |
9397 | char *kwnames[] = { | |
9398 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9399 | }; | |
9400 | ||
9401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9404 | if (obj1) { | |
9405 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | } | |
9408 | if (obj2) { | |
9409 | arg3 = (bool) SWIG_AsBool(obj2); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
9412 | { | |
9413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9414 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9415 | ||
9416 | wxPyEndAllowThreads(__tstate); | |
9417 | if (PyErr_Occurred()) SWIG_fail; | |
9418 | } | |
9419 | { | |
9420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9421 | } | |
9422 | return resultobj; | |
9423 | fail: | |
9424 | return NULL; | |
9425 | } | |
9426 | ||
9427 | ||
9428 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9429 | PyObject *resultobj; | |
9430 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9431 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9432 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9433 | bool result; | |
9434 | bool temp2 = False ; | |
9435 | PyObject * obj0 = 0 ; | |
9436 | PyObject * obj1 = 0 ; | |
9437 | char *kwnames[] = { | |
9438 | (char *) "self",(char *) "facename", NULL | |
9439 | }; | |
9440 | ||
9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
9442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9444 | if (obj1) { | |
9445 | { | |
9446 | arg2 = wxString_in_helper(obj1); | |
9447 | if (arg2 == NULL) SWIG_fail; | |
9448 | temp2 = True; | |
9449 | } | |
9450 | } | |
9451 | { | |
9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9453 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9454 | ||
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | { | |
9459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9460 | } | |
9461 | { | |
9462 | if (temp2) | |
9463 | delete arg2; | |
9464 | } | |
9465 | return resultobj; | |
9466 | fail: | |
9467 | { | |
9468 | if (temp2) | |
9469 | delete arg2; | |
9470 | } | |
9471 | return NULL; | |
9472 | } | |
9473 | ||
9474 | ||
9475 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9476 | PyObject *resultobj; | |
9477 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9478 | PyObject *result; | |
9479 | PyObject * obj0 = 0 ; | |
9480 | char *kwnames[] = { | |
9481 | (char *) "self", NULL | |
9482 | }; | |
9483 | ||
9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
9485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9487 | { | |
9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9489 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9490 | ||
9491 | wxPyEndAllowThreads(__tstate); | |
9492 | if (PyErr_Occurred()) SWIG_fail; | |
9493 | } | |
9494 | resultobj = result; | |
9495 | return resultobj; | |
9496 | fail: | |
9497 | return NULL; | |
9498 | } | |
9499 | ||
9500 | ||
9501 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9502 | PyObject *resultobj; | |
9503 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9504 | PyObject *result; | |
9505 | PyObject * obj0 = 0 ; | |
9506 | char *kwnames[] = { | |
9507 | (char *) "self", NULL | |
9508 | }; | |
9509 | ||
9510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
9511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9513 | { | |
9514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9515 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9516 | ||
9517 | wxPyEndAllowThreads(__tstate); | |
9518 | if (PyErr_Occurred()) SWIG_fail; | |
9519 | } | |
9520 | resultobj = result; | |
9521 | return resultobj; | |
9522 | fail: | |
9523 | return NULL; | |
9524 | } | |
9525 | ||
9526 | ||
9527 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
9528 | PyObject *obj; | |
9529 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9530 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9531 | Py_INCREF(obj); | |
9532 | return Py_BuildValue((char *)""); | |
9533 | } | |
9534 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9535 | PyObject *resultobj; | |
9536 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9537 | int arg2 ; | |
9538 | PyObject * obj0 = 0 ; | |
9539 | PyObject * obj1 = 0 ; | |
9540 | char *kwnames[] = { | |
9541 | (char *) "self",(char *) "Language", NULL | |
9542 | }; | |
9543 | ||
9544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
9545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9547 | arg2 = (int) SWIG_AsInt(obj1); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | if (arg1) (arg1)->Language = arg2; | |
9550 | ||
9551 | Py_INCREF(Py_None); resultobj = Py_None; | |
9552 | return resultobj; | |
9553 | fail: | |
9554 | return NULL; | |
9555 | } | |
9556 | ||
9557 | ||
9558 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9559 | PyObject *resultobj; | |
9560 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9561 | int result; | |
9562 | PyObject * obj0 = 0 ; | |
9563 | char *kwnames[] = { | |
9564 | (char *) "self", NULL | |
9565 | }; | |
9566 | ||
9567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
9568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9570 | result = (int) ((arg1)->Language); | |
9571 | ||
9572 | resultobj = SWIG_FromInt((int)result); | |
9573 | return resultobj; | |
9574 | fail: | |
9575 | return NULL; | |
9576 | } | |
9577 | ||
9578 | ||
9579 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9580 | PyObject *resultobj; | |
9581 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9582 | wxString *arg2 = (wxString *) 0 ; | |
9583 | bool temp2 = False ; | |
9584 | PyObject * obj0 = 0 ; | |
9585 | PyObject * obj1 = 0 ; | |
9586 | char *kwnames[] = { | |
9587 | (char *) "self",(char *) "CanonicalName", NULL | |
9588 | }; | |
9589 | ||
9590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
9591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9593 | { | |
9594 | arg2 = wxString_in_helper(obj1); | |
9595 | if (arg2 == NULL) SWIG_fail; | |
9596 | temp2 = True; | |
9597 | } | |
9598 | if (arg1) (arg1)->CanonicalName = *arg2; | |
9599 | ||
9600 | Py_INCREF(Py_None); resultobj = Py_None; | |
9601 | { | |
9602 | if (temp2) | |
9603 | delete arg2; | |
9604 | } | |
9605 | return resultobj; | |
9606 | fail: | |
9607 | { | |
9608 | if (temp2) | |
9609 | delete arg2; | |
9610 | } | |
9611 | return NULL; | |
9612 | } | |
9613 | ||
9614 | ||
9615 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9616 | PyObject *resultobj; | |
9617 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9618 | wxString *result; | |
9619 | PyObject * obj0 = 0 ; | |
9620 | char *kwnames[] = { | |
9621 | (char *) "self", NULL | |
9622 | }; | |
9623 | ||
9624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
9625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9627 | result = (wxString *)& ((arg1)->CanonicalName); | |
9628 | ||
9629 | { | |
9630 | #if wxUSE_UNICODE | |
9631 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9632 | #else | |
9633 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9634 | #endif | |
9635 | } | |
9636 | return resultobj; | |
9637 | fail: | |
9638 | return NULL; | |
9639 | } | |
9640 | ||
9641 | ||
9642 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9643 | PyObject *resultobj; | |
9644 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9645 | wxString *arg2 = (wxString *) 0 ; | |
9646 | bool temp2 = False ; | |
9647 | PyObject * obj0 = 0 ; | |
9648 | PyObject * obj1 = 0 ; | |
9649 | char *kwnames[] = { | |
9650 | (char *) "self",(char *) "Description", NULL | |
9651 | }; | |
9652 | ||
9653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
9654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9656 | { | |
9657 | arg2 = wxString_in_helper(obj1); | |
9658 | if (arg2 == NULL) SWIG_fail; | |
9659 | temp2 = True; | |
9660 | } | |
9661 | if (arg1) (arg1)->Description = *arg2; | |
9662 | ||
9663 | Py_INCREF(Py_None); resultobj = Py_None; | |
9664 | { | |
9665 | if (temp2) | |
9666 | delete arg2; | |
9667 | } | |
9668 | return resultobj; | |
9669 | fail: | |
9670 | { | |
9671 | if (temp2) | |
9672 | delete arg2; | |
9673 | } | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
9678 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9679 | PyObject *resultobj; | |
9680 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9681 | wxString *result; | |
9682 | PyObject * obj0 = 0 ; | |
9683 | char *kwnames[] = { | |
9684 | (char *) "self", NULL | |
9685 | }; | |
9686 | ||
9687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
9688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9690 | result = (wxString *)& ((arg1)->Description); | |
9691 | ||
9692 | { | |
9693 | #if wxUSE_UNICODE | |
9694 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9695 | #else | |
9696 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9697 | #endif | |
9698 | } | |
9699 | return resultobj; | |
9700 | fail: | |
9701 | return NULL; | |
9702 | } | |
9703 | ||
9704 | ||
9705 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
9706 | PyObject *obj; | |
9707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9708 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9709 | Py_INCREF(obj); | |
9710 | return Py_BuildValue((char *)""); | |
9711 | } | |
9712 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9713 | PyObject *resultobj; | |
79fccf9d | 9714 | int arg1 = (int) -1 ; |
d55e5bfc RD |
9715 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9716 | wxLocale *result; | |
9717 | PyObject * obj0 = 0 ; | |
9718 | PyObject * obj1 = 0 ; | |
9719 | char *kwnames[] = { | |
9720 | (char *) "language",(char *) "flags", NULL | |
9721 | }; | |
9722 | ||
9723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; | |
9724 | if (obj0) { | |
9725 | arg1 = (int) SWIG_AsInt(obj0); | |
9726 | if (PyErr_Occurred()) SWIG_fail; | |
9727 | } | |
9728 | if (obj1) { | |
9729 | arg2 = (int) SWIG_AsInt(obj1); | |
9730 | if (PyErr_Occurred()) SWIG_fail; | |
9731 | } | |
9732 | { | |
9733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 9734 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d55e5bfc RD |
9735 | |
9736 | wxPyEndAllowThreads(__tstate); | |
9737 | if (PyErr_Occurred()) SWIG_fail; | |
9738 | } | |
9739 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); | |
9740 | return resultobj; | |
9741 | fail: | |
9742 | return NULL; | |
9743 | } | |
9744 | ||
9745 | ||
9746 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9747 | PyObject *resultobj; | |
9748 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9749 | PyObject * obj0 = 0 ; | |
9750 | char *kwnames[] = { | |
9751 | (char *) "self", NULL | |
9752 | }; | |
9753 | ||
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
9755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9757 | { | |
9758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9759 | delete arg1; | |
9760 | ||
9761 | wxPyEndAllowThreads(__tstate); | |
9762 | if (PyErr_Occurred()) SWIG_fail; | |
9763 | } | |
9764 | Py_INCREF(Py_None); resultobj = Py_None; | |
9765 | return resultobj; | |
9766 | fail: | |
9767 | return NULL; | |
9768 | } | |
9769 | ||
9770 | ||
9771 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9772 | PyObject *resultobj; | |
9773 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9774 | wxString *arg2 = 0 ; | |
9775 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9776 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9777 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9778 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9779 | bool arg5 = (bool) True ; | |
9780 | bool arg6 = (bool) False ; | |
9781 | bool result; | |
9782 | bool temp2 = False ; | |
9783 | bool temp3 = False ; | |
9784 | bool temp4 = False ; | |
9785 | PyObject * obj0 = 0 ; | |
9786 | PyObject * obj1 = 0 ; | |
9787 | PyObject * obj2 = 0 ; | |
9788 | PyObject * obj3 = 0 ; | |
9789 | PyObject * obj4 = 0 ; | |
9790 | PyObject * obj5 = 0 ; | |
9791 | char *kwnames[] = { | |
9792 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9793 | }; | |
9794 | ||
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9798 | { | |
9799 | arg2 = wxString_in_helper(obj1); | |
9800 | if (arg2 == NULL) SWIG_fail; | |
9801 | temp2 = True; | |
9802 | } | |
9803 | if (obj2) { | |
9804 | { | |
9805 | arg3 = wxString_in_helper(obj2); | |
9806 | if (arg3 == NULL) SWIG_fail; | |
9807 | temp3 = True; | |
9808 | } | |
9809 | } | |
9810 | if (obj3) { | |
9811 | { | |
9812 | arg4 = wxString_in_helper(obj3); | |
9813 | if (arg4 == NULL) SWIG_fail; | |
9814 | temp4 = True; | |
9815 | } | |
9816 | } | |
9817 | if (obj4) { | |
9818 | arg5 = (bool) SWIG_AsBool(obj4); | |
9819 | if (PyErr_Occurred()) SWIG_fail; | |
9820 | } | |
9821 | if (obj5) { | |
9822 | arg6 = (bool) SWIG_AsBool(obj5); | |
9823 | if (PyErr_Occurred()) SWIG_fail; | |
9824 | } | |
9825 | { | |
9826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9827 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9828 | ||
9829 | wxPyEndAllowThreads(__tstate); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
9831 | } | |
9832 | { | |
9833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9834 | } | |
9835 | { | |
9836 | if (temp2) | |
9837 | delete arg2; | |
9838 | } | |
9839 | { | |
9840 | if (temp3) | |
9841 | delete arg3; | |
9842 | } | |
9843 | { | |
9844 | if (temp4) | |
9845 | delete arg4; | |
9846 | } | |
9847 | return resultobj; | |
9848 | fail: | |
9849 | { | |
9850 | if (temp2) | |
9851 | delete arg2; | |
9852 | } | |
9853 | { | |
9854 | if (temp3) | |
9855 | delete arg3; | |
9856 | } | |
9857 | { | |
9858 | if (temp4) | |
9859 | delete arg4; | |
9860 | } | |
9861 | return NULL; | |
9862 | } | |
9863 | ||
9864 | ||
9865 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9866 | PyObject *resultobj; | |
9867 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9868 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9869 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9870 | bool result; | |
9871 | PyObject * obj0 = 0 ; | |
9872 | PyObject * obj1 = 0 ; | |
9873 | PyObject * obj2 = 0 ; | |
9874 | char *kwnames[] = { | |
9875 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9876 | }; | |
9877 | ||
9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9881 | if (obj1) { | |
9882 | arg2 = (int) SWIG_AsInt(obj1); | |
9883 | if (PyErr_Occurred()) SWIG_fail; | |
9884 | } | |
9885 | if (obj2) { | |
9886 | arg3 = (int) SWIG_AsInt(obj2); | |
9887 | if (PyErr_Occurred()) SWIG_fail; | |
9888 | } | |
9889 | { | |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9891 | result = (bool)(arg1)->Init(arg2,arg3); | |
9892 | ||
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) SWIG_fail; | |
9895 | } | |
9896 | { | |
9897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9898 | } | |
9899 | return resultobj; | |
9900 | fail: | |
9901 | return NULL; | |
9902 | } | |
9903 | ||
9904 | ||
9905 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9906 | PyObject *resultobj; | |
9907 | int result; | |
9908 | char *kwnames[] = { | |
9909 | NULL | |
9910 | }; | |
9911 | ||
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9913 | { | |
9914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9915 | result = (int)wxLocale::GetSystemLanguage(); | |
9916 | ||
9917 | wxPyEndAllowThreads(__tstate); | |
9918 | if (PyErr_Occurred()) SWIG_fail; | |
9919 | } | |
9920 | resultobj = SWIG_FromInt((int)result); | |
9921 | return resultobj; | |
9922 | fail: | |
9923 | return NULL; | |
9924 | } | |
9925 | ||
9926 | ||
9927 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9928 | PyObject *resultobj; | |
9929 | int result; | |
9930 | char *kwnames[] = { | |
9931 | NULL | |
9932 | }; | |
9933 | ||
9934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9935 | { | |
9936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9937 | result = (int)wxLocale::GetSystemEncoding(); | |
9938 | ||
9939 | wxPyEndAllowThreads(__tstate); | |
9940 | if (PyErr_Occurred()) SWIG_fail; | |
9941 | } | |
9942 | resultobj = SWIG_FromInt((int)result); | |
9943 | return resultobj; | |
9944 | fail: | |
9945 | return NULL; | |
9946 | } | |
9947 | ||
9948 | ||
9949 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9950 | PyObject *resultobj; | |
9951 | wxString result; | |
9952 | char *kwnames[] = { | |
9953 | NULL | |
9954 | }; | |
9955 | ||
9956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9957 | { | |
9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9959 | result = wxLocale::GetSystemEncodingName(); | |
9960 | ||
9961 | wxPyEndAllowThreads(__tstate); | |
9962 | if (PyErr_Occurred()) SWIG_fail; | |
9963 | } | |
9964 | { | |
9965 | #if wxUSE_UNICODE | |
9966 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9967 | #else | |
9968 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9969 | #endif | |
9970 | } | |
9971 | return resultobj; | |
9972 | fail: | |
9973 | return NULL; | |
9974 | } | |
9975 | ||
9976 | ||
9977 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9978 | PyObject *resultobj; | |
9979 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9980 | bool result; | |
9981 | PyObject * obj0 = 0 ; | |
9982 | char *kwnames[] = { | |
9983 | (char *) "self", NULL | |
9984 | }; | |
9985 | ||
9986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | { | |
9997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9998 | } | |
9999 | return resultobj; | |
10000 | fail: | |
10001 | return NULL; | |
10002 | } | |
10003 | ||
10004 | ||
10005 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10006 | PyObject *resultobj; | |
10007 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10008 | wxString result; | |
10009 | PyObject * obj0 = 0 ; | |
10010 | char *kwnames[] = { | |
10011 | (char *) "self", NULL | |
10012 | }; | |
10013 | ||
10014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
10015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10017 | { | |
10018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10019 | result = ((wxLocale const *)arg1)->GetLocale(); | |
10020 | ||
10021 | wxPyEndAllowThreads(__tstate); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | } | |
10024 | { | |
10025 | #if wxUSE_UNICODE | |
10026 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10027 | #else | |
10028 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10029 | #endif | |
10030 | } | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject *resultobj; | |
10039 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10040 | int result; | |
10041 | PyObject * obj0 = 0 ; | |
10042 | char *kwnames[] = { | |
10043 | (char *) "self", NULL | |
10044 | }; | |
10045 | ||
10046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
10047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10049 | { | |
10050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10051 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
10052 | ||
10053 | wxPyEndAllowThreads(__tstate); | |
10054 | if (PyErr_Occurred()) SWIG_fail; | |
10055 | } | |
10056 | resultobj = SWIG_FromInt((int)result); | |
10057 | return resultobj; | |
10058 | fail: | |
10059 | return NULL; | |
10060 | } | |
10061 | ||
10062 | ||
10063 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10064 | PyObject *resultobj; | |
10065 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10066 | wxString result; | |
10067 | PyObject * obj0 = 0 ; | |
10068 | char *kwnames[] = { | |
10069 | (char *) "self", NULL | |
10070 | }; | |
10071 | ||
10072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
10073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10075 | { | |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10077 | result = ((wxLocale const *)arg1)->GetSysName(); | |
10078 | ||
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | } | |
10082 | { | |
10083 | #if wxUSE_UNICODE | |
10084 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10085 | #else | |
10086 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10087 | #endif | |
10088 | } | |
10089 | return resultobj; | |
10090 | fail: | |
10091 | return NULL; | |
10092 | } | |
10093 | ||
10094 | ||
10095 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10096 | PyObject *resultobj; | |
10097 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10098 | wxString result; | |
10099 | PyObject * obj0 = 0 ; | |
10100 | char *kwnames[] = { | |
10101 | (char *) "self", NULL | |
10102 | }; | |
10103 | ||
10104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
10105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10107 | { | |
10108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10109 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
10110 | ||
10111 | wxPyEndAllowThreads(__tstate); | |
10112 | if (PyErr_Occurred()) SWIG_fail; | |
10113 | } | |
10114 | { | |
10115 | #if wxUSE_UNICODE | |
10116 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10117 | #else | |
10118 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10119 | #endif | |
10120 | } | |
10121 | return resultobj; | |
10122 | fail: | |
10123 | return NULL; | |
10124 | } | |
10125 | ||
10126 | ||
10127 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10128 | PyObject *resultobj; | |
10129 | wxString *arg1 = 0 ; | |
10130 | bool temp1 = False ; | |
10131 | PyObject * obj0 = 0 ; | |
10132 | char *kwnames[] = { | |
10133 | (char *) "prefix", NULL | |
10134 | }; | |
10135 | ||
10136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
10137 | { | |
10138 | arg1 = wxString_in_helper(obj0); | |
10139 | if (arg1 == NULL) SWIG_fail; | |
10140 | temp1 = True; | |
10141 | } | |
10142 | { | |
10143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10144 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
10145 | ||
10146 | wxPyEndAllowThreads(__tstate); | |
10147 | if (PyErr_Occurred()) SWIG_fail; | |
10148 | } | |
10149 | Py_INCREF(Py_None); resultobj = Py_None; | |
10150 | { | |
10151 | if (temp1) | |
10152 | delete arg1; | |
10153 | } | |
10154 | return resultobj; | |
10155 | fail: | |
10156 | { | |
10157 | if (temp1) | |
10158 | delete arg1; | |
10159 | } | |
10160 | return NULL; | |
10161 | } | |
10162 | ||
10163 | ||
10164 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10165 | PyObject *resultobj; | |
10166 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10167 | wxString *arg2 = 0 ; | |
10168 | bool result; | |
10169 | bool temp2 = False ; | |
10170 | PyObject * obj0 = 0 ; | |
10171 | PyObject * obj1 = 0 ; | |
10172 | char *kwnames[] = { | |
10173 | (char *) "self",(char *) "szDomain", NULL | |
10174 | }; | |
10175 | ||
10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
10177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10179 | { | |
10180 | arg2 = wxString_in_helper(obj1); | |
10181 | if (arg2 == NULL) SWIG_fail; | |
10182 | temp2 = True; | |
10183 | } | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
10187 | ||
10188 | wxPyEndAllowThreads(__tstate); | |
10189 | if (PyErr_Occurred()) SWIG_fail; | |
10190 | } | |
10191 | { | |
10192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10193 | } | |
10194 | { | |
10195 | if (temp2) | |
10196 | delete arg2; | |
10197 | } | |
10198 | return resultobj; | |
10199 | fail: | |
10200 | { | |
10201 | if (temp2) | |
10202 | delete arg2; | |
10203 | } | |
10204 | return NULL; | |
10205 | } | |
10206 | ||
10207 | ||
10208 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10209 | PyObject *resultobj; | |
10210 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10211 | wxString *arg2 = 0 ; | |
10212 | bool result; | |
10213 | bool temp2 = False ; | |
10214 | PyObject * obj0 = 0 ; | |
10215 | PyObject * obj1 = 0 ; | |
10216 | char *kwnames[] = { | |
10217 | (char *) "self",(char *) "szDomain", NULL | |
10218 | }; | |
10219 | ||
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
10221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10223 | { | |
10224 | arg2 = wxString_in_helper(obj1); | |
10225 | if (arg2 == NULL) SWIG_fail; | |
10226 | temp2 = True; | |
10227 | } | |
10228 | { | |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10231 | ||
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
10235 | { | |
10236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10237 | } | |
10238 | { | |
10239 | if (temp2) | |
10240 | delete arg2; | |
10241 | } | |
10242 | return resultobj; | |
10243 | fail: | |
10244 | { | |
10245 | if (temp2) | |
10246 | delete arg2; | |
10247 | } | |
10248 | return NULL; | |
10249 | } | |
10250 | ||
10251 | ||
10252 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10253 | PyObject *resultobj; | |
10254 | int arg1 ; | |
10255 | wxLanguageInfo *result; | |
10256 | PyObject * obj0 = 0 ; | |
10257 | char *kwnames[] = { | |
10258 | (char *) "lang", NULL | |
10259 | }; | |
10260 | ||
10261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; | |
10262 | arg1 = (int) SWIG_AsInt(obj0); | |
10263 | if (PyErr_Occurred()) SWIG_fail; | |
10264 | { | |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10266 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10267 | ||
10268 | wxPyEndAllowThreads(__tstate); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
10271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10272 | return resultobj; | |
10273 | fail: | |
10274 | return NULL; | |
10275 | } | |
10276 | ||
10277 | ||
10278 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10279 | PyObject *resultobj; | |
10280 | int arg1 ; | |
10281 | wxString result; | |
10282 | PyObject * obj0 = 0 ; | |
10283 | char *kwnames[] = { | |
10284 | (char *) "lang", NULL | |
10285 | }; | |
10286 | ||
10287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; | |
10288 | arg1 = (int) SWIG_AsInt(obj0); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | { | |
10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10292 | result = wxLocale::GetLanguageName(arg1); | |
10293 | ||
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | { | |
10298 | #if wxUSE_UNICODE | |
10299 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10300 | #else | |
10301 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10302 | #endif | |
10303 | } | |
10304 | return resultobj; | |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj; | |
10312 | wxString *arg1 = 0 ; | |
10313 | wxLanguageInfo *result; | |
10314 | bool temp1 = False ; | |
10315 | PyObject * obj0 = 0 ; | |
10316 | char *kwnames[] = { | |
10317 | (char *) "locale", NULL | |
10318 | }; | |
10319 | ||
10320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10321 | { | |
10322 | arg1 = wxString_in_helper(obj0); | |
10323 | if (arg1 == NULL) SWIG_fail; | |
10324 | temp1 = True; | |
10325 | } | |
10326 | { | |
10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10328 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10329 | ||
10330 | wxPyEndAllowThreads(__tstate); | |
10331 | if (PyErr_Occurred()) SWIG_fail; | |
10332 | } | |
10333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10334 | { | |
10335 | if (temp1) | |
10336 | delete arg1; | |
10337 | } | |
10338 | return resultobj; | |
10339 | fail: | |
10340 | { | |
10341 | if (temp1) | |
10342 | delete arg1; | |
10343 | } | |
10344 | return NULL; | |
10345 | } | |
10346 | ||
10347 | ||
10348 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10349 | PyObject *resultobj; | |
10350 | wxLanguageInfo *arg1 = 0 ; | |
10351 | PyObject * obj0 = 0 ; | |
10352 | char *kwnames[] = { | |
10353 | (char *) "info", NULL | |
10354 | }; | |
10355 | ||
10356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
10357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10358 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10359 | SWIG_fail; | |
10360 | if (arg1 == NULL) { | |
10361 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10362 | SWIG_fail; | |
10363 | } | |
10364 | { | |
10365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10366 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10367 | ||
10368 | wxPyEndAllowThreads(__tstate); | |
10369 | if (PyErr_Occurred()) SWIG_fail; | |
10370 | } | |
10371 | Py_INCREF(Py_None); resultobj = Py_None; | |
10372 | return resultobj; | |
10373 | fail: | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
10378 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10379 | PyObject *resultobj; | |
10380 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10381 | wxString *arg2 = 0 ; | |
10382 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10383 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10384 | wxString result; | |
10385 | bool temp2 = False ; | |
10386 | bool temp3 = False ; | |
10387 | PyObject * obj0 = 0 ; | |
10388 | PyObject * obj1 = 0 ; | |
10389 | PyObject * obj2 = 0 ; | |
10390 | char *kwnames[] = { | |
10391 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10392 | }; | |
10393 | ||
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10397 | { | |
10398 | arg2 = wxString_in_helper(obj1); | |
10399 | if (arg2 == NULL) SWIG_fail; | |
10400 | temp2 = True; | |
10401 | } | |
10402 | if (obj2) { | |
10403 | { | |
10404 | arg3 = wxString_in_helper(obj2); | |
10405 | if (arg3 == NULL) SWIG_fail; | |
10406 | temp3 = True; | |
10407 | } | |
10408 | } | |
10409 | { | |
10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10411 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10412 | ||
10413 | wxPyEndAllowThreads(__tstate); | |
10414 | if (PyErr_Occurred()) SWIG_fail; | |
10415 | } | |
10416 | { | |
10417 | #if wxUSE_UNICODE | |
10418 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10419 | #else | |
10420 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10421 | #endif | |
10422 | } | |
10423 | { | |
10424 | if (temp2) | |
10425 | delete arg2; | |
10426 | } | |
10427 | { | |
10428 | if (temp3) | |
10429 | delete arg3; | |
10430 | } | |
10431 | return resultobj; | |
10432 | fail: | |
10433 | { | |
10434 | if (temp2) | |
10435 | delete arg2; | |
10436 | } | |
10437 | { | |
10438 | if (temp3) | |
10439 | delete arg3; | |
10440 | } | |
10441 | return NULL; | |
10442 | } | |
10443 | ||
10444 | ||
10445 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10446 | PyObject *resultobj; | |
10447 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10448 | wxString *result; | |
10449 | PyObject * obj0 = 0 ; | |
10450 | char *kwnames[] = { | |
10451 | (char *) "self", NULL | |
10452 | }; | |
10453 | ||
10454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
10455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10457 | { | |
10458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10459 | { | |
10460 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10461 | result = (wxString *) &_result_ref; | |
10462 | } | |
10463 | ||
10464 | wxPyEndAllowThreads(__tstate); | |
10465 | if (PyErr_Occurred()) SWIG_fail; | |
10466 | } | |
10467 | { | |
10468 | #if wxUSE_UNICODE | |
10469 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10470 | #else | |
10471 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10472 | #endif | |
10473 | } | |
10474 | return resultobj; | |
10475 | fail: | |
10476 | return NULL; | |
10477 | } | |
10478 | ||
10479 | ||
10480 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
10481 | PyObject *obj; | |
10482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10483 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10484 | Py_INCREF(obj); | |
10485 | return Py_BuildValue((char *)""); | |
10486 | } | |
10487 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10488 | PyObject *resultobj; | |
10489 | wxLocale *result; | |
10490 | char *kwnames[] = { | |
10491 | NULL | |
10492 | }; | |
10493 | ||
10494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10495 | { | |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10497 | result = (wxLocale *)wxGetLocale(); | |
10498 | ||
10499 | wxPyEndAllowThreads(__tstate); | |
10500 | if (PyErr_Occurred()) SWIG_fail; | |
10501 | } | |
10502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); | |
10503 | return resultobj; | |
10504 | fail: | |
10505 | return NULL; | |
10506 | } | |
10507 | ||
10508 | ||
10509 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
10510 | PyObject *resultobj; | |
10511 | wxString *arg1 = 0 ; | |
10512 | wxString result; | |
10513 | bool temp1 = False ; | |
10514 | PyObject * obj0 = 0 ; | |
10515 | ||
10516 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10517 | { | |
10518 | arg1 = wxString_in_helper(obj0); | |
10519 | if (arg1 == NULL) SWIG_fail; | |
10520 | temp1 = True; | |
10521 | } | |
10522 | { | |
10523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10524 | result = wxGetTranslation((wxString const &)*arg1); | |
10525 | ||
10526 | wxPyEndAllowThreads(__tstate); | |
10527 | if (PyErr_Occurred()) SWIG_fail; | |
10528 | } | |
10529 | { | |
10530 | #if wxUSE_UNICODE | |
10531 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10532 | #else | |
10533 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10534 | #endif | |
10535 | } | |
10536 | { | |
10537 | if (temp1) | |
10538 | delete arg1; | |
10539 | } | |
10540 | return resultobj; | |
10541 | fail: | |
10542 | { | |
10543 | if (temp1) | |
10544 | delete arg1; | |
10545 | } | |
10546 | return NULL; | |
10547 | } | |
10548 | ||
10549 | ||
10550 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
10551 | PyObject *resultobj; | |
10552 | wxString *arg1 = 0 ; | |
10553 | wxString *arg2 = 0 ; | |
10554 | size_t arg3 ; | |
10555 | wxString result; | |
10556 | bool temp1 = False ; | |
10557 | bool temp2 = False ; | |
10558 | PyObject * obj0 = 0 ; | |
10559 | PyObject * obj1 = 0 ; | |
10560 | PyObject * obj2 = 0 ; | |
10561 | ||
10562 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10563 | { | |
10564 | arg1 = wxString_in_helper(obj0); | |
10565 | if (arg1 == NULL) SWIG_fail; | |
10566 | temp1 = True; | |
10567 | } | |
10568 | { | |
10569 | arg2 = wxString_in_helper(obj1); | |
10570 | if (arg2 == NULL) SWIG_fail; | |
10571 | temp2 = True; | |
10572 | } | |
10573 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | { | |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10577 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10578 | ||
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
10582 | { | |
10583 | #if wxUSE_UNICODE | |
10584 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10585 | #else | |
10586 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10587 | #endif | |
10588 | } | |
10589 | { | |
10590 | if (temp1) | |
10591 | delete arg1; | |
10592 | } | |
10593 | { | |
10594 | if (temp2) | |
10595 | delete arg2; | |
10596 | } | |
10597 | return resultobj; | |
10598 | fail: | |
10599 | { | |
10600 | if (temp1) | |
10601 | delete arg1; | |
10602 | } | |
10603 | { | |
10604 | if (temp2) | |
10605 | delete arg2; | |
10606 | } | |
10607 | return NULL; | |
10608 | } | |
10609 | ||
10610 | ||
10611 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10612 | int argc; | |
10613 | PyObject *argv[4]; | |
10614 | int ii; | |
10615 | ||
10616 | argc = PyObject_Length(args); | |
10617 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10618 | argv[ii] = PyTuple_GetItem(args,ii); | |
10619 | } | |
10620 | if (argc == 1) { | |
10621 | int _v; | |
10622 | { | |
10623 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10624 | } | |
10625 | if (_v) { | |
10626 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10627 | } | |
10628 | } | |
10629 | if (argc == 3) { | |
10630 | int _v; | |
10631 | { | |
10632 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10633 | } | |
10634 | if (_v) { | |
10635 | { | |
10636 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
10637 | } | |
10638 | if (_v) { | |
10639 | _v = SWIG_CheckUnsignedLong(argv[2]); | |
10640 | if (_v) { | |
10641 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10642 | } | |
10643 | } | |
10644 | } | |
10645 | } | |
10646 | ||
10647 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10648 | return NULL; | |
10649 | } | |
10650 | ||
10651 | ||
10652 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10653 | PyObject *resultobj; | |
10654 | wxEncodingConverter *result; | |
10655 | char *kwnames[] = { | |
10656 | NULL | |
10657 | }; | |
10658 | ||
10659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10660 | { | |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj; | |
10676 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10677 | PyObject * obj0 = 0 ; | |
10678 | char *kwnames[] = { | |
10679 | (char *) "self", NULL | |
10680 | }; | |
10681 | ||
10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
10683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10685 | { | |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | delete arg1; | |
10688 | ||
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
10691 | } | |
10692 | Py_INCREF(Py_None); resultobj = Py_None; | |
10693 | return resultobj; | |
10694 | fail: | |
10695 | return NULL; | |
10696 | } | |
10697 | ||
10698 | ||
10699 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10700 | PyObject *resultobj; | |
10701 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10702 | int arg2 ; | |
10703 | int arg3 ; | |
10704 | int arg4 = (int) wxCONVERT_STRICT ; | |
10705 | bool result; | |
10706 | PyObject * obj0 = 0 ; | |
10707 | PyObject * obj1 = 0 ; | |
10708 | PyObject * obj2 = 0 ; | |
10709 | PyObject * obj3 = 0 ; | |
10710 | char *kwnames[] = { | |
10711 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10712 | }; | |
10713 | ||
10714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10717 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10718 | if (PyErr_Occurred()) SWIG_fail; | |
10719 | arg3 = (wxFontEncoding) SWIG_AsInt(obj2); | |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
10721 | if (obj3) { | |
10722 | arg4 = (int) SWIG_AsInt(obj3); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
10725 | { | |
10726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10727 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10728 | ||
10729 | wxPyEndAllowThreads(__tstate); | |
10730 | if (PyErr_Occurred()) SWIG_fail; | |
10731 | } | |
10732 | { | |
10733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10734 | } | |
10735 | return resultobj; | |
10736 | fail: | |
10737 | return NULL; | |
10738 | } | |
10739 | ||
10740 | ||
10741 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10742 | PyObject *resultobj; | |
10743 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10744 | wxString *arg2 = 0 ; | |
10745 | wxString result; | |
10746 | bool temp2 = False ; | |
10747 | PyObject * obj0 = 0 ; | |
10748 | PyObject * obj1 = 0 ; | |
10749 | char *kwnames[] = { | |
10750 | (char *) "self",(char *) "input", NULL | |
10751 | }; | |
10752 | ||
10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
10754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10756 | { | |
10757 | arg2 = wxString_in_helper(obj1); | |
10758 | if (arg2 == NULL) SWIG_fail; | |
10759 | temp2 = True; | |
10760 | } | |
10761 | { | |
10762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10763 | result = (arg1)->Convert((wxString const &)*arg2); | |
10764 | ||
10765 | wxPyEndAllowThreads(__tstate); | |
10766 | if (PyErr_Occurred()) SWIG_fail; | |
10767 | } | |
10768 | { | |
10769 | #if wxUSE_UNICODE | |
10770 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10771 | #else | |
10772 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10773 | #endif | |
10774 | } | |
10775 | { | |
10776 | if (temp2) | |
10777 | delete arg2; | |
10778 | } | |
10779 | return resultobj; | |
10780 | fail: | |
10781 | { | |
10782 | if (temp2) | |
10783 | delete arg2; | |
10784 | } | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
10789 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10790 | PyObject *resultobj; | |
10791 | int arg1 ; | |
10792 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10793 | wxFontEncodingArray result; | |
10794 | PyObject * obj0 = 0 ; | |
10795 | PyObject * obj1 = 0 ; | |
10796 | char *kwnames[] = { | |
10797 | (char *) "enc",(char *) "platform", NULL | |
10798 | }; | |
10799 | ||
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; | |
10801 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10802 | if (PyErr_Occurred()) SWIG_fail; | |
10803 | if (obj1) { | |
10804 | arg2 = (int) SWIG_AsInt(obj1); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | { | |
10808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10809 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10810 | ||
10811 | wxPyEndAllowThreads(__tstate); | |
10812 | if (PyErr_Occurred()) SWIG_fail; | |
10813 | } | |
10814 | { | |
10815 | resultobj = PyList_New(0); | |
10816 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10817 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10818 | PyList_Append(resultobj, number); | |
10819 | Py_DECREF(number); | |
10820 | } | |
10821 | } | |
10822 | return resultobj; | |
10823 | fail: | |
10824 | return NULL; | |
10825 | } | |
10826 | ||
10827 | ||
10828 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10829 | PyObject *resultobj; | |
10830 | int arg1 ; | |
10831 | wxFontEncodingArray result; | |
10832 | PyObject * obj0 = 0 ; | |
10833 | char *kwnames[] = { | |
10834 | (char *) "enc", NULL | |
10835 | }; | |
10836 | ||
10837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; | |
10838 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10839 | if (PyErr_Occurred()) SWIG_fail; | |
10840 | { | |
10841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10842 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10843 | ||
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | { | |
10848 | resultobj = PyList_New(0); | |
10849 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10850 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10851 | PyList_Append(resultobj, number); | |
10852 | Py_DECREF(number); | |
10853 | } | |
10854 | } | |
10855 | return resultobj; | |
10856 | fail: | |
10857 | return NULL; | |
10858 | } | |
10859 | ||
10860 | ||
10861 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10862 | PyObject *resultobj; | |
10863 | int arg1 ; | |
10864 | int arg2 ; | |
10865 | bool result; | |
10866 | PyObject * obj0 = 0 ; | |
10867 | PyObject * obj1 = 0 ; | |
10868 | char *kwnames[] = { | |
10869 | (char *) "encIn",(char *) "encOut", NULL | |
10870 | }; | |
10871 | ||
10872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; | |
10873 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | { | |
10878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10879 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10880 | ||
10881 | wxPyEndAllowThreads(__tstate); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | } | |
10884 | { | |
10885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10886 | } | |
10887 | return resultobj; | |
10888 | fail: | |
10889 | return NULL; | |
10890 | } | |
10891 | ||
10892 | ||
10893 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10894 | PyObject *obj; | |
10895 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10896 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10897 | Py_INCREF(obj); | |
10898 | return Py_BuildValue((char *)""); | |
10899 | } | |
10900 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10901 | PyObject *resultobj; | |
10902 | wxDC *arg1 = (wxDC *) 0 ; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self", NULL | |
10906 | }; | |
10907 | ||
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
10909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10911 | { | |
10912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10913 | delete arg1; | |
10914 | ||
10915 | wxPyEndAllowThreads(__tstate); | |
10916 | if (PyErr_Occurred()) SWIG_fail; | |
10917 | } | |
10918 | Py_INCREF(Py_None); resultobj = Py_None; | |
10919 | return resultobj; | |
10920 | fail: | |
10921 | return NULL; | |
10922 | } | |
10923 | ||
10924 | ||
10925 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10926 | PyObject *resultobj; | |
10927 | wxDC *arg1 = (wxDC *) 0 ; | |
10928 | PyObject * obj0 = 0 ; | |
10929 | char *kwnames[] = { | |
10930 | (char *) "self", NULL | |
10931 | }; | |
10932 | ||
10933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
10934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10936 | { | |
10937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10938 | (arg1)->BeginDrawing(); | |
10939 | ||
10940 | wxPyEndAllowThreads(__tstate); | |
10941 | if (PyErr_Occurred()) SWIG_fail; | |
10942 | } | |
10943 | Py_INCREF(Py_None); resultobj = Py_None; | |
10944 | return resultobj; | |
10945 | fail: | |
10946 | return NULL; | |
10947 | } | |
10948 | ||
10949 | ||
10950 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10951 | PyObject *resultobj; | |
10952 | wxDC *arg1 = (wxDC *) 0 ; | |
10953 | PyObject * obj0 = 0 ; | |
10954 | char *kwnames[] = { | |
10955 | (char *) "self", NULL | |
10956 | }; | |
10957 | ||
10958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10961 | { | |
10962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10963 | (arg1)->EndDrawing(); | |
10964 | ||
10965 | wxPyEndAllowThreads(__tstate); | |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
10967 | } | |
10968 | Py_INCREF(Py_None); resultobj = Py_None; | |
10969 | return resultobj; | |
10970 | fail: | |
10971 | return NULL; | |
10972 | } | |
10973 | ||
10974 | ||
c24da6d6 | 10975 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10976 | PyObject *resultobj; |
10977 | wxDC *arg1 = (wxDC *) 0 ; | |
10978 | int arg2 ; | |
10979 | int arg3 ; | |
10980 | wxColour *arg4 = 0 ; | |
10981 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10982 | bool result; | |
10983 | wxColour temp4 ; | |
10984 | PyObject * obj0 = 0 ; | |
10985 | PyObject * obj1 = 0 ; | |
10986 | PyObject * obj2 = 0 ; | |
10987 | PyObject * obj3 = 0 ; | |
10988 | PyObject * obj4 = 0 ; | |
10989 | char *kwnames[] = { | |
10990 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10991 | }; | |
10992 | ||
c24da6d6 | 10993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10996 | arg2 = (int) SWIG_AsInt(obj1); | |
10997 | if (PyErr_Occurred()) SWIG_fail; | |
10998 | arg3 = (int) SWIG_AsInt(obj2); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | { | |
11001 | arg4 = &temp4; | |
11002 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
11003 | } | |
11004 | if (obj4) { | |
11005 | arg5 = (int) SWIG_AsInt(obj4); | |
11006 | if (PyErr_Occurred()) SWIG_fail; | |
11007 | } | |
11008 | { | |
11009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11010 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
11011 | ||
11012 | wxPyEndAllowThreads(__tstate); | |
11013 | if (PyErr_Occurred()) SWIG_fail; | |
11014 | } | |
11015 | { | |
11016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11017 | } | |
11018 | return resultobj; | |
11019 | fail: | |
11020 | return NULL; | |
11021 | } | |
11022 | ||
11023 | ||
c24da6d6 | 11024 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11025 | PyObject *resultobj; |
11026 | wxDC *arg1 = (wxDC *) 0 ; | |
11027 | wxPoint *arg2 = 0 ; | |
11028 | wxColour *arg3 = 0 ; | |
11029 | int arg4 = (int) wxFLOOD_SURFACE ; | |
11030 | bool result; | |
11031 | wxPoint temp2 ; | |
11032 | wxColour temp3 ; | |
11033 | PyObject * obj0 = 0 ; | |
11034 | PyObject * obj1 = 0 ; | |
11035 | PyObject * obj2 = 0 ; | |
11036 | PyObject * obj3 = 0 ; | |
11037 | char *kwnames[] = { | |
11038 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
11039 | }; | |
11040 | ||
c24da6d6 | 11041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11044 | { | |
11045 | arg2 = &temp2; | |
11046 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11047 | } | |
11048 | { | |
11049 | arg3 = &temp3; | |
11050 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11051 | } | |
11052 | if (obj3) { | |
11053 | arg4 = (int) SWIG_AsInt(obj3); | |
11054 | if (PyErr_Occurred()) SWIG_fail; | |
11055 | } | |
11056 | { | |
11057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11058 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
11059 | ||
11060 | wxPyEndAllowThreads(__tstate); | |
11061 | if (PyErr_Occurred()) SWIG_fail; | |
11062 | } | |
11063 | { | |
11064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11065 | } | |
11066 | return resultobj; | |
11067 | fail: | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
c24da6d6 | 11072 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11073 | PyObject *resultobj; |
11074 | wxDC *arg1 = (wxDC *) 0 ; | |
11075 | int arg2 ; | |
11076 | int arg3 ; | |
11077 | wxColour result; | |
11078 | PyObject * obj0 = 0 ; | |
11079 | PyObject * obj1 = 0 ; | |
11080 | PyObject * obj2 = 0 ; | |
11081 | char *kwnames[] = { | |
11082 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11083 | }; | |
11084 | ||
c24da6d6 | 11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11088 | arg2 = (int) SWIG_AsInt(obj1); | |
11089 | if (PyErr_Occurred()) SWIG_fail; | |
11090 | arg3 = (int) SWIG_AsInt(obj2); | |
11091 | if (PyErr_Occurred()) SWIG_fail; | |
11092 | { | |
11093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11094 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d55e5bfc RD |
11095 | |
11096 | wxPyEndAllowThreads(__tstate); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | } | |
11099 | { | |
11100 | wxColour * resultptr; | |
11101 | resultptr = new wxColour((wxColour &) result); | |
11102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11103 | } | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | return NULL; | |
11107 | } | |
11108 | ||
11109 | ||
c24da6d6 | 11110 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11111 | PyObject *resultobj; |
11112 | wxDC *arg1 = (wxDC *) 0 ; | |
11113 | wxPoint *arg2 = 0 ; | |
11114 | wxColour result; | |
11115 | wxPoint temp2 ; | |
11116 | PyObject * obj0 = 0 ; | |
11117 | PyObject * obj1 = 0 ; | |
11118 | char *kwnames[] = { | |
11119 | (char *) "self",(char *) "pt", NULL | |
11120 | }; | |
11121 | ||
c24da6d6 | 11122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11125 | { | |
11126 | arg2 = &temp2; | |
11127 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11128 | } | |
11129 | { | |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11131 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
11132 | |
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | { | |
11137 | wxColour * resultptr; | |
11138 | resultptr = new wxColour((wxColour &) result); | |
11139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11140 | } | |
11141 | return resultobj; | |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
c24da6d6 | 11147 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11148 | PyObject *resultobj; |
11149 | wxDC *arg1 = (wxDC *) 0 ; | |
11150 | int arg2 ; | |
11151 | int arg3 ; | |
11152 | int arg4 ; | |
11153 | int arg5 ; | |
11154 | PyObject * obj0 = 0 ; | |
11155 | PyObject * obj1 = 0 ; | |
11156 | PyObject * obj2 = 0 ; | |
11157 | PyObject * obj3 = 0 ; | |
11158 | PyObject * obj4 = 0 ; | |
11159 | char *kwnames[] = { | |
11160 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
11161 | }; | |
11162 | ||
c24da6d6 | 11163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11166 | arg2 = (int) SWIG_AsInt(obj1); | |
11167 | if (PyErr_Occurred()) SWIG_fail; | |
11168 | arg3 = (int) SWIG_AsInt(obj2); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | arg4 = (int) SWIG_AsInt(obj3); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | arg5 = (int) SWIG_AsInt(obj4); | |
11173 | if (PyErr_Occurred()) SWIG_fail; | |
11174 | { | |
11175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11176 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
11177 | ||
11178 | wxPyEndAllowThreads(__tstate); | |
11179 | if (PyErr_Occurred()) SWIG_fail; | |
11180 | } | |
11181 | Py_INCREF(Py_None); resultobj = Py_None; | |
11182 | return resultobj; | |
11183 | fail: | |
11184 | return NULL; | |
11185 | } | |
11186 | ||
11187 | ||
c24da6d6 | 11188 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11189 | PyObject *resultobj; |
11190 | wxDC *arg1 = (wxDC *) 0 ; | |
11191 | wxPoint *arg2 = 0 ; | |
11192 | wxPoint *arg3 = 0 ; | |
11193 | wxPoint temp2 ; | |
11194 | wxPoint temp3 ; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | PyObject * obj1 = 0 ; | |
11197 | PyObject * obj2 = 0 ; | |
11198 | char *kwnames[] = { | |
11199 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
11200 | }; | |
11201 | ||
c24da6d6 | 11202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11205 | { | |
11206 | arg2 = &temp2; | |
11207 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11208 | } | |
11209 | { | |
11210 | arg3 = &temp3; | |
11211 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11212 | } | |
11213 | { | |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11216 | ||
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | Py_INCREF(Py_None); resultobj = Py_None; | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
c24da6d6 | 11227 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11228 | PyObject *resultobj; |
11229 | wxDC *arg1 = (wxDC *) 0 ; | |
11230 | int arg2 ; | |
11231 | int arg3 ; | |
11232 | PyObject * obj0 = 0 ; | |
11233 | PyObject * obj1 = 0 ; | |
11234 | PyObject * obj2 = 0 ; | |
11235 | char *kwnames[] = { | |
11236 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11237 | }; | |
11238 | ||
c24da6d6 | 11239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11242 | arg2 = (int) SWIG_AsInt(obj1); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | arg3 = (int) SWIG_AsInt(obj2); | |
11245 | if (PyErr_Occurred()) SWIG_fail; | |
11246 | { | |
11247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11248 | (arg1)->CrossHair(arg2,arg3); | |
11249 | ||
11250 | wxPyEndAllowThreads(__tstate); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | } | |
11253 | Py_INCREF(Py_None); resultobj = Py_None; | |
11254 | return resultobj; | |
11255 | fail: | |
11256 | return NULL; | |
11257 | } | |
11258 | ||
11259 | ||
c24da6d6 | 11260 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11261 | PyObject *resultobj; |
11262 | wxDC *arg1 = (wxDC *) 0 ; | |
11263 | wxPoint *arg2 = 0 ; | |
11264 | wxPoint temp2 ; | |
11265 | PyObject * obj0 = 0 ; | |
11266 | PyObject * obj1 = 0 ; | |
11267 | char *kwnames[] = { | |
11268 | (char *) "self",(char *) "pt", NULL | |
11269 | }; | |
11270 | ||
c24da6d6 | 11271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11274 | { | |
11275 | arg2 = &temp2; | |
11276 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11277 | } | |
11278 | { | |
11279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11280 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11281 | ||
11282 | wxPyEndAllowThreads(__tstate); | |
11283 | if (PyErr_Occurred()) SWIG_fail; | |
11284 | } | |
11285 | Py_INCREF(Py_None); resultobj = Py_None; | |
11286 | return resultobj; | |
11287 | fail: | |
11288 | return NULL; | |
11289 | } | |
11290 | ||
11291 | ||
c24da6d6 | 11292 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11293 | PyObject *resultobj; |
11294 | wxDC *arg1 = (wxDC *) 0 ; | |
11295 | int arg2 ; | |
11296 | int arg3 ; | |
11297 | int arg4 ; | |
11298 | int arg5 ; | |
11299 | int arg6 ; | |
11300 | int arg7 ; | |
11301 | PyObject * obj0 = 0 ; | |
11302 | PyObject * obj1 = 0 ; | |
11303 | PyObject * obj2 = 0 ; | |
11304 | PyObject * obj3 = 0 ; | |
11305 | PyObject * obj4 = 0 ; | |
11306 | PyObject * obj5 = 0 ; | |
11307 | PyObject * obj6 = 0 ; | |
11308 | char *kwnames[] = { | |
11309 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11310 | }; | |
11311 | ||
c24da6d6 | 11312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11315 | arg2 = (int) SWIG_AsInt(obj1); | |
11316 | if (PyErr_Occurred()) SWIG_fail; | |
11317 | arg3 = (int) SWIG_AsInt(obj2); | |
11318 | if (PyErr_Occurred()) SWIG_fail; | |
11319 | arg4 = (int) SWIG_AsInt(obj3); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | arg5 = (int) SWIG_AsInt(obj4); | |
11322 | if (PyErr_Occurred()) SWIG_fail; | |
11323 | arg6 = (int) SWIG_AsInt(obj5); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | arg7 = (int) SWIG_AsInt(obj6); | |
11326 | if (PyErr_Occurred()) SWIG_fail; | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | Py_INCREF(Py_None); resultobj = Py_None; | |
11335 | return resultobj; | |
11336 | fail: | |
11337 | return NULL; | |
11338 | } | |
11339 | ||
11340 | ||
c24da6d6 | 11341 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11342 | PyObject *resultobj; |
11343 | wxDC *arg1 = (wxDC *) 0 ; | |
11344 | wxPoint *arg2 = 0 ; | |
11345 | wxPoint *arg3 = 0 ; | |
11346 | wxPoint *arg4 = 0 ; | |
11347 | wxPoint temp2 ; | |
11348 | wxPoint temp3 ; | |
11349 | wxPoint temp4 ; | |
11350 | PyObject * obj0 = 0 ; | |
11351 | PyObject * obj1 = 0 ; | |
11352 | PyObject * obj2 = 0 ; | |
11353 | PyObject * obj3 = 0 ; | |
11354 | char *kwnames[] = { | |
f5b96ee1 | 11355 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d55e5bfc RD |
11356 | }; |
11357 | ||
c24da6d6 | 11358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11361 | { | |
11362 | arg2 = &temp2; | |
11363 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11364 | } | |
11365 | { | |
11366 | arg3 = &temp3; | |
11367 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11368 | } | |
11369 | { | |
11370 | arg4 = &temp4; | |
11371 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11372 | } | |
11373 | { | |
11374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11375 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11376 | ||
11377 | wxPyEndAllowThreads(__tstate); | |
11378 | if (PyErr_Occurred()) SWIG_fail; | |
11379 | } | |
11380 | Py_INCREF(Py_None); resultobj = Py_None; | |
11381 | return resultobj; | |
11382 | fail: | |
11383 | return NULL; | |
11384 | } | |
11385 | ||
11386 | ||
c24da6d6 | 11387 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11388 | PyObject *resultobj; |
11389 | wxDC *arg1 = (wxDC *) 0 ; | |
11390 | int arg2 ; | |
11391 | int arg3 ; | |
11392 | int arg4 ; | |
11393 | int arg5 ; | |
11394 | PyObject * obj0 = 0 ; | |
11395 | PyObject * obj1 = 0 ; | |
11396 | PyObject * obj2 = 0 ; | |
11397 | PyObject * obj3 = 0 ; | |
11398 | PyObject * obj4 = 0 ; | |
11399 | char *kwnames[] = { | |
11400 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11401 | }; | |
11402 | ||
c24da6d6 | 11403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11406 | arg2 = (int) SWIG_AsInt(obj1); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | arg3 = (int) SWIG_AsInt(obj2); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | arg4 = (int) SWIG_AsInt(obj3); | |
11411 | if (PyErr_Occurred()) SWIG_fail; | |
11412 | arg5 = (int) SWIG_AsInt(obj4); | |
11413 | if (PyErr_Occurred()) SWIG_fail; | |
11414 | { | |
11415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11416 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11417 | ||
11418 | wxPyEndAllowThreads(__tstate); | |
11419 | if (PyErr_Occurred()) SWIG_fail; | |
11420 | } | |
11421 | Py_INCREF(Py_None); resultobj = Py_None; | |
11422 | return resultobj; | |
11423 | fail: | |
11424 | return NULL; | |
11425 | } | |
11426 | ||
11427 | ||
c24da6d6 | 11428 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11429 | PyObject *resultobj; |
11430 | wxDC *arg1 = (wxDC *) 0 ; | |
11431 | wxRect *arg2 = 0 ; | |
11432 | wxRect temp2 ; | |
11433 | PyObject * obj0 = 0 ; | |
11434 | PyObject * obj1 = 0 ; | |
11435 | char *kwnames[] = { | |
11436 | (char *) "self",(char *) "rect", NULL | |
11437 | }; | |
11438 | ||
c24da6d6 | 11439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11442 | { | |
11443 | arg2 = &temp2; | |
11444 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11445 | } | |
11446 | { | |
11447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11448 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11449 | ||
11450 | wxPyEndAllowThreads(__tstate); | |
11451 | if (PyErr_Occurred()) SWIG_fail; | |
11452 | } | |
11453 | Py_INCREF(Py_None); resultobj = Py_None; | |
11454 | return resultobj; | |
11455 | fail: | |
11456 | return NULL; | |
11457 | } | |
11458 | ||
11459 | ||
c24da6d6 | 11460 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11461 | PyObject *resultobj; |
11462 | wxDC *arg1 = (wxDC *) 0 ; | |
11463 | int arg2 ; | |
11464 | int arg3 ; | |
11465 | int arg4 ; | |
11466 | int arg5 ; | |
11467 | double arg6 ; | |
11468 | double arg7 ; | |
11469 | PyObject * obj0 = 0 ; | |
11470 | PyObject * obj1 = 0 ; | |
11471 | PyObject * obj2 = 0 ; | |
11472 | PyObject * obj3 = 0 ; | |
11473 | PyObject * obj4 = 0 ; | |
11474 | PyObject * obj5 = 0 ; | |
11475 | PyObject * obj6 = 0 ; | |
11476 | char *kwnames[] = { | |
f5b96ee1 | 11477 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11478 | }; |
11479 | ||
c24da6d6 | 11480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11483 | arg2 = (int) SWIG_AsInt(obj1); | |
11484 | if (PyErr_Occurred()) SWIG_fail; | |
11485 | arg3 = (int) SWIG_AsInt(obj2); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | arg4 = (int) SWIG_AsInt(obj3); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | arg5 = (int) SWIG_AsInt(obj4); | |
11490 | if (PyErr_Occurred()) SWIG_fail; | |
11491 | arg6 = (double) SWIG_AsDouble(obj5); | |
11492 | if (PyErr_Occurred()) SWIG_fail; | |
11493 | arg7 = (double) SWIG_AsDouble(obj6); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
11495 | { | |
11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11497 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11498 | ||
11499 | wxPyEndAllowThreads(__tstate); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
11501 | } | |
11502 | Py_INCREF(Py_None); resultobj = Py_None; | |
11503 | return resultobj; | |
11504 | fail: | |
11505 | return NULL; | |
11506 | } | |
11507 | ||
11508 | ||
c24da6d6 | 11509 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11510 | PyObject *resultobj; |
11511 | wxDC *arg1 = (wxDC *) 0 ; | |
11512 | wxPoint *arg2 = 0 ; | |
11513 | wxSize *arg3 = 0 ; | |
11514 | double arg4 ; | |
11515 | double arg5 ; | |
11516 | wxPoint temp2 ; | |
11517 | wxSize temp3 ; | |
11518 | PyObject * obj0 = 0 ; | |
11519 | PyObject * obj1 = 0 ; | |
11520 | PyObject * obj2 = 0 ; | |
11521 | PyObject * obj3 = 0 ; | |
11522 | PyObject * obj4 = 0 ; | |
11523 | char *kwnames[] = { | |
f5b96ee1 | 11524 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11525 | }; |
11526 | ||
c24da6d6 | 11527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11530 | { | |
11531 | arg2 = &temp2; | |
11532 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11533 | } | |
11534 | { | |
11535 | arg3 = &temp3; | |
11536 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11537 | } | |
11538 | arg4 = (double) SWIG_AsDouble(obj3); | |
11539 | if (PyErr_Occurred()) SWIG_fail; | |
11540 | arg5 = (double) SWIG_AsDouble(obj4); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | { | |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11544 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11545 | ||
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
11549 | Py_INCREF(Py_None); resultobj = Py_None; | |
11550 | return resultobj; | |
11551 | fail: | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
c24da6d6 | 11556 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11557 | PyObject *resultobj; |
11558 | wxDC *arg1 = (wxDC *) 0 ; | |
11559 | int arg2 ; | |
11560 | int arg3 ; | |
11561 | PyObject * obj0 = 0 ; | |
11562 | PyObject * obj1 = 0 ; | |
11563 | PyObject * obj2 = 0 ; | |
11564 | char *kwnames[] = { | |
11565 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11566 | }; | |
11567 | ||
c24da6d6 | 11568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11571 | arg2 = (int) SWIG_AsInt(obj1); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | arg3 = (int) SWIG_AsInt(obj2); | |
11574 | if (PyErr_Occurred()) SWIG_fail; | |
11575 | { | |
11576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11577 | (arg1)->DrawPoint(arg2,arg3); | |
11578 | ||
11579 | wxPyEndAllowThreads(__tstate); | |
11580 | if (PyErr_Occurred()) SWIG_fail; | |
11581 | } | |
11582 | Py_INCREF(Py_None); resultobj = Py_None; | |
11583 | return resultobj; | |
11584 | fail: | |
11585 | return NULL; | |
11586 | } | |
11587 | ||
11588 | ||
c24da6d6 | 11589 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11590 | PyObject *resultobj; |
11591 | wxDC *arg1 = (wxDC *) 0 ; | |
11592 | wxPoint *arg2 = 0 ; | |
11593 | wxPoint temp2 ; | |
11594 | PyObject * obj0 = 0 ; | |
11595 | PyObject * obj1 = 0 ; | |
11596 | char *kwnames[] = { | |
11597 | (char *) "self",(char *) "pt", NULL | |
11598 | }; | |
11599 | ||
c24da6d6 | 11600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11603 | { | |
11604 | arg2 = &temp2; | |
11605 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11606 | } | |
11607 | { | |
11608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11609 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11610 | ||
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
11614 | Py_INCREF(Py_None); resultobj = Py_None; | |
11615 | return resultobj; | |
11616 | fail: | |
11617 | return NULL; | |
11618 | } | |
11619 | ||
11620 | ||
c24da6d6 | 11621 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11622 | PyObject *resultobj; |
11623 | wxDC *arg1 = (wxDC *) 0 ; | |
11624 | int arg2 ; | |
11625 | int arg3 ; | |
11626 | int arg4 ; | |
11627 | int arg5 ; | |
11628 | PyObject * obj0 = 0 ; | |
11629 | PyObject * obj1 = 0 ; | |
11630 | PyObject * obj2 = 0 ; | |
11631 | PyObject * obj3 = 0 ; | |
11632 | PyObject * obj4 = 0 ; | |
11633 | char *kwnames[] = { | |
11634 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11635 | }; | |
11636 | ||
c24da6d6 | 11637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11640 | arg2 = (int) SWIG_AsInt(obj1); | |
11641 | if (PyErr_Occurred()) SWIG_fail; | |
11642 | arg3 = (int) SWIG_AsInt(obj2); | |
11643 | if (PyErr_Occurred()) SWIG_fail; | |
11644 | arg4 = (int) SWIG_AsInt(obj3); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | arg5 = (int) SWIG_AsInt(obj4); | |
11647 | if (PyErr_Occurred()) SWIG_fail; | |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11651 | ||
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | Py_INCREF(Py_None); resultobj = Py_None; | |
11656 | return resultobj; | |
11657 | fail: | |
11658 | return NULL; | |
11659 | } | |
11660 | ||
11661 | ||
c24da6d6 | 11662 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11663 | PyObject *resultobj; |
11664 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11665 | wxRect *arg2 = 0 ; |
11666 | wxRect temp2 ; | |
d55e5bfc RD |
11667 | PyObject * obj0 = 0 ; |
11668 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11669 | char *kwnames[] = { |
c24da6d6 | 11670 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11671 | }; |
11672 | ||
c24da6d6 | 11673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11676 | { | |
11677 | arg2 = &temp2; | |
c24da6d6 | 11678 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11679 | } |
11680 | { | |
11681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11682 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d55e5bfc RD |
11683 | |
11684 | wxPyEndAllowThreads(__tstate); | |
11685 | if (PyErr_Occurred()) SWIG_fail; | |
11686 | } | |
11687 | Py_INCREF(Py_None); resultobj = Py_None; | |
11688 | return resultobj; | |
11689 | fail: | |
11690 | return NULL; | |
11691 | } | |
11692 | ||
11693 | ||
c24da6d6 | 11694 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11695 | PyObject *resultobj; |
11696 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11697 | wxPoint *arg2 = 0 ; |
11698 | wxSize *arg3 = 0 ; | |
11699 | wxPoint temp2 ; | |
11700 | wxSize temp3 ; | |
d55e5bfc RD |
11701 | PyObject * obj0 = 0 ; |
11702 | PyObject * obj1 = 0 ; | |
c24da6d6 | 11703 | PyObject * obj2 = 0 ; |
d55e5bfc | 11704 | char *kwnames[] = { |
c24da6d6 | 11705 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
11706 | }; |
11707 | ||
c24da6d6 | 11708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11711 | { | |
11712 | arg2 = &temp2; | |
c24da6d6 RD |
11713 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11714 | } | |
11715 | { | |
11716 | arg3 = &temp3; | |
11717 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
11718 | } |
11719 | { | |
11720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11721 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
11722 | |
11723 | wxPyEndAllowThreads(__tstate); | |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
11725 | } | |
11726 | Py_INCREF(Py_None); resultobj = Py_None; | |
11727 | return resultobj; | |
11728 | fail: | |
11729 | return NULL; | |
11730 | } | |
11731 | ||
11732 | ||
c24da6d6 | 11733 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11734 | PyObject *resultobj; |
11735 | wxDC *arg1 = (wxDC *) 0 ; | |
11736 | int arg2 ; | |
11737 | int arg3 ; | |
11738 | int arg4 ; | |
11739 | int arg5 ; | |
11740 | double arg6 ; | |
11741 | PyObject * obj0 = 0 ; | |
11742 | PyObject * obj1 = 0 ; | |
11743 | PyObject * obj2 = 0 ; | |
11744 | PyObject * obj3 = 0 ; | |
11745 | PyObject * obj4 = 0 ; | |
11746 | PyObject * obj5 = 0 ; | |
11747 | char *kwnames[] = { | |
11748 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11749 | }; | |
11750 | ||
c24da6d6 | 11751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
11752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11754 | arg2 = (int) SWIG_AsInt(obj1); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | arg3 = (int) SWIG_AsInt(obj2); | |
11757 | if (PyErr_Occurred()) SWIG_fail; | |
11758 | arg4 = (int) SWIG_AsInt(obj3); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | arg5 = (int) SWIG_AsInt(obj4); | |
11761 | if (PyErr_Occurred()) SWIG_fail; | |
11762 | arg6 = (double) SWIG_AsDouble(obj5); | |
11763 | if (PyErr_Occurred()) SWIG_fail; | |
11764 | { | |
11765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11766 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11767 | ||
11768 | wxPyEndAllowThreads(__tstate); | |
11769 | if (PyErr_Occurred()) SWIG_fail; | |
11770 | } | |
11771 | Py_INCREF(Py_None); resultobj = Py_None; | |
11772 | return resultobj; | |
11773 | fail: | |
11774 | return NULL; | |
11775 | } | |
11776 | ||
11777 | ||
c24da6d6 | 11778 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11779 | PyObject *resultobj; |
11780 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11781 | wxRect *arg2 = 0 ; |
11782 | double arg3 ; | |
11783 | wxRect temp2 ; | |
d55e5bfc RD |
11784 | PyObject * obj0 = 0 ; |
11785 | PyObject * obj1 = 0 ; | |
11786 | PyObject * obj2 = 0 ; | |
d55e5bfc | 11787 | char *kwnames[] = { |
c24da6d6 | 11788 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d55e5bfc RD |
11789 | }; |
11790 | ||
c24da6d6 | 11791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11794 | { | |
11795 | arg2 = &temp2; | |
c24da6d6 | 11796 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11797 | } |
c24da6d6 | 11798 | arg3 = (double) SWIG_AsDouble(obj2); |
d55e5bfc RD |
11799 | if (PyErr_Occurred()) SWIG_fail; |
11800 | { | |
11801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11802 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
11803 | |
11804 | wxPyEndAllowThreads(__tstate); | |
11805 | if (PyErr_Occurred()) SWIG_fail; | |
11806 | } | |
11807 | Py_INCREF(Py_None); resultobj = Py_None; | |
11808 | return resultobj; | |
11809 | fail: | |
11810 | return NULL; | |
11811 | } | |
11812 | ||
11813 | ||
c24da6d6 | 11814 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11815 | PyObject *resultobj; |
11816 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11817 | wxPoint *arg2 = 0 ; |
11818 | wxSize *arg3 = 0 ; | |
11819 | double arg4 ; | |
11820 | wxPoint temp2 ; | |
11821 | wxSize temp3 ; | |
d55e5bfc RD |
11822 | PyObject * obj0 = 0 ; |
11823 | PyObject * obj1 = 0 ; | |
11824 | PyObject * obj2 = 0 ; | |
c24da6d6 | 11825 | PyObject * obj3 = 0 ; |
d55e5bfc | 11826 | char *kwnames[] = { |
c24da6d6 | 11827 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d55e5bfc RD |
11828 | }; |
11829 | ||
c24da6d6 | 11830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11833 | { | |
11834 | arg2 = &temp2; | |
c24da6d6 | 11835 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11836 | } |
c24da6d6 RD |
11837 | { |
11838 | arg3 = &temp3; | |
11839 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11840 | } | |
11841 | arg4 = (double) SWIG_AsDouble(obj3); | |
d55e5bfc RD |
11842 | if (PyErr_Occurred()) SWIG_fail; |
11843 | { | |
11844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11845 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d55e5bfc RD |
11846 | |
11847 | wxPyEndAllowThreads(__tstate); | |
11848 | if (PyErr_Occurred()) SWIG_fail; | |
11849 | } | |
11850 | Py_INCREF(Py_None); resultobj = Py_None; | |
11851 | return resultobj; | |
11852 | fail: | |
11853 | return NULL; | |
11854 | } | |
11855 | ||
11856 | ||
c24da6d6 | 11857 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11858 | PyObject *resultobj; |
11859 | wxDC *arg1 = (wxDC *) 0 ; | |
11860 | int arg2 ; | |
11861 | int arg3 ; | |
11862 | int arg4 ; | |
11863 | PyObject * obj0 = 0 ; | |
11864 | PyObject * obj1 = 0 ; | |
11865 | PyObject * obj2 = 0 ; | |
11866 | PyObject * obj3 = 0 ; | |
11867 | char *kwnames[] = { | |
11868 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11869 | }; | |
11870 | ||
c24da6d6 | 11871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11874 | arg2 = (int) SWIG_AsInt(obj1); | |
11875 | if (PyErr_Occurred()) SWIG_fail; | |
11876 | arg3 = (int) SWIG_AsInt(obj2); | |
11877 | if (PyErr_Occurred()) SWIG_fail; | |
11878 | arg4 = (int) SWIG_AsInt(obj3); | |
11879 | if (PyErr_Occurred()) SWIG_fail; | |
11880 | { | |
11881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11882 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11883 | ||
11884 | wxPyEndAllowThreads(__tstate); | |
11885 | if (PyErr_Occurred()) SWIG_fail; | |
11886 | } | |
11887 | Py_INCREF(Py_None); resultobj = Py_None; | |
11888 | return resultobj; | |
11889 | fail: | |
11890 | return NULL; | |
11891 | } | |
11892 | ||
11893 | ||
c24da6d6 | 11894 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11895 | PyObject *resultobj; |
11896 | wxDC *arg1 = (wxDC *) 0 ; | |
11897 | wxPoint *arg2 = 0 ; | |
11898 | int arg3 ; | |
11899 | wxPoint temp2 ; | |
11900 | PyObject * obj0 = 0 ; | |
11901 | PyObject * obj1 = 0 ; | |
11902 | PyObject * obj2 = 0 ; | |
11903 | char *kwnames[] = { | |
11904 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11905 | }; | |
11906 | ||
c24da6d6 | 11907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11910 | { | |
11911 | arg2 = &temp2; | |
11912 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11913 | } | |
11914 | arg3 = (int) SWIG_AsInt(obj2); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | { | |
11917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11918 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11919 | ||
11920 | wxPyEndAllowThreads(__tstate); | |
11921 | if (PyErr_Occurred()) SWIG_fail; | |
11922 | } | |
11923 | Py_INCREF(Py_None); resultobj = Py_None; | |
11924 | return resultobj; | |
11925 | fail: | |
11926 | return NULL; | |
11927 | } | |
11928 | ||
11929 | ||
c24da6d6 | 11930 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11931 | PyObject *resultobj; |
11932 | wxDC *arg1 = (wxDC *) 0 ; | |
11933 | int arg2 ; | |
11934 | int arg3 ; | |
11935 | int arg4 ; | |
11936 | int arg5 ; | |
11937 | PyObject * obj0 = 0 ; | |
11938 | PyObject * obj1 = 0 ; | |
11939 | PyObject * obj2 = 0 ; | |
11940 | PyObject * obj3 = 0 ; | |
11941 | PyObject * obj4 = 0 ; | |
11942 | char *kwnames[] = { | |
11943 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11944 | }; | |
11945 | ||
c24da6d6 | 11946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11949 | arg2 = (int) SWIG_AsInt(obj1); | |
11950 | if (PyErr_Occurred()) SWIG_fail; | |
11951 | arg3 = (int) SWIG_AsInt(obj2); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | arg4 = (int) SWIG_AsInt(obj3); | |
11954 | if (PyErr_Occurred()) SWIG_fail; | |
11955 | arg5 = (int) SWIG_AsInt(obj4); | |
11956 | if (PyErr_Occurred()) SWIG_fail; | |
11957 | { | |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | Py_INCREF(Py_None); resultobj = Py_None; | |
11965 | return resultobj; | |
11966 | fail: | |
11967 | return NULL; | |
11968 | } | |
11969 | ||
11970 | ||
c24da6d6 | 11971 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11972 | PyObject *resultobj; |
11973 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11974 | wxRect *arg2 = 0 ; |
11975 | wxRect temp2 ; | |
d55e5bfc RD |
11976 | PyObject * obj0 = 0 ; |
11977 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11978 | char *kwnames[] = { |
c24da6d6 | 11979 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11980 | }; |
11981 | ||
c24da6d6 | 11982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11985 | { | |
11986 | arg2 = &temp2; | |
c24da6d6 | 11987 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11988 | } |
11989 | { | |
11990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11991 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d55e5bfc RD |
11992 | |
11993 | wxPyEndAllowThreads(__tstate); | |
11994 | if (PyErr_Occurred()) SWIG_fail; | |
11995 | } | |
11996 | Py_INCREF(Py_None); resultobj = Py_None; | |
11997 | return resultobj; | |
11998 | fail: | |
11999 | return NULL; | |
12000 | } | |
12001 | ||
12002 | ||
c24da6d6 | 12003 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12004 | PyObject *resultobj; |
12005 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
12006 | wxPoint *arg2 = 0 ; |
12007 | wxSize *arg3 = 0 ; | |
12008 | wxPoint temp2 ; | |
12009 | wxSize temp3 ; | |
d55e5bfc RD |
12010 | PyObject * obj0 = 0 ; |
12011 | PyObject * obj1 = 0 ; | |
c24da6d6 | 12012 | PyObject * obj2 = 0 ; |
d55e5bfc | 12013 | char *kwnames[] = { |
c24da6d6 | 12014 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
12015 | }; |
12016 | ||
c24da6d6 | 12017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12020 | { | |
12021 | arg2 = &temp2; | |
c24da6d6 RD |
12022 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
12023 | } | |
12024 | { | |
12025 | arg3 = &temp3; | |
12026 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
12027 | } |
12028 | { | |
12029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12030 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
12031 | |
12032 | wxPyEndAllowThreads(__tstate); | |
12033 | if (PyErr_Occurred()) SWIG_fail; | |
12034 | } | |
12035 | Py_INCREF(Py_None); resultobj = Py_None; | |
12036 | return resultobj; | |
12037 | fail: | |
12038 | return NULL; | |
12039 | } | |
12040 | ||
12041 | ||
c24da6d6 | 12042 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12043 | PyObject *resultobj; |
12044 | wxDC *arg1 = (wxDC *) 0 ; | |
12045 | wxIcon *arg2 = 0 ; | |
12046 | int arg3 ; | |
12047 | int arg4 ; | |
12048 | PyObject * obj0 = 0 ; | |
12049 | PyObject * obj1 = 0 ; | |
12050 | PyObject * obj2 = 0 ; | |
12051 | PyObject * obj3 = 0 ; | |
12052 | char *kwnames[] = { | |
12053 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
12054 | }; | |
12055 | ||
c24da6d6 | 12056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12060 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12061 | SWIG_fail; | |
12062 | if (arg2 == NULL) { | |
12063 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12064 | SWIG_fail; | |
12065 | } | |
12066 | arg3 = (int) SWIG_AsInt(obj2); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | arg4 = (int) SWIG_AsInt(obj3); | |
12069 | if (PyErr_Occurred()) SWIG_fail; | |
12070 | { | |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12072 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
12073 | ||
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | Py_INCREF(Py_None); resultobj = Py_None; | |
12078 | return resultobj; | |
12079 | fail: | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
c24da6d6 | 12084 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12085 | PyObject *resultobj; |
12086 | wxDC *arg1 = (wxDC *) 0 ; | |
12087 | wxIcon *arg2 = 0 ; | |
12088 | wxPoint *arg3 = 0 ; | |
12089 | wxPoint temp3 ; | |
12090 | PyObject * obj0 = 0 ; | |
12091 | PyObject * obj1 = 0 ; | |
12092 | PyObject * obj2 = 0 ; | |
12093 | char *kwnames[] = { | |
12094 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
12095 | }; | |
12096 | ||
c24da6d6 | 12097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12102 | SWIG_fail; | |
12103 | if (arg2 == NULL) { | |
12104 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12105 | SWIG_fail; | |
12106 | } | |
12107 | { | |
12108 | arg3 = &temp3; | |
12109 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12110 | } | |
12111 | { | |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
12114 | ||
12115 | wxPyEndAllowThreads(__tstate); | |
12116 | if (PyErr_Occurred()) SWIG_fail; | |
12117 | } | |
12118 | Py_INCREF(Py_None); resultobj = Py_None; | |
12119 | return resultobj; | |
12120 | fail: | |
12121 | return NULL; | |
12122 | } | |
12123 | ||
12124 | ||
c24da6d6 | 12125 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12126 | PyObject *resultobj; |
12127 | wxDC *arg1 = (wxDC *) 0 ; | |
12128 | wxBitmap *arg2 = 0 ; | |
12129 | int arg3 ; | |
12130 | int arg4 ; | |
12131 | bool arg5 = (bool) False ; | |
12132 | PyObject * obj0 = 0 ; | |
12133 | PyObject * obj1 = 0 ; | |
12134 | PyObject * obj2 = 0 ; | |
12135 | PyObject * obj3 = 0 ; | |
12136 | PyObject * obj4 = 0 ; | |
12137 | char *kwnames[] = { | |
12138 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
12139 | }; | |
12140 | ||
c24da6d6 | 12141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12144 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12145 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12146 | SWIG_fail; | |
12147 | if (arg2 == NULL) { | |
12148 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12149 | SWIG_fail; | |
12150 | } | |
12151 | arg3 = (int) SWIG_AsInt(obj2); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | arg4 = (int) SWIG_AsInt(obj3); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | if (obj4) { | |
12156 | arg5 = (bool) SWIG_AsBool(obj4); | |
12157 | if (PyErr_Occurred()) SWIG_fail; | |
12158 | } | |
12159 | { | |
12160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12161 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
12162 | ||
12163 | wxPyEndAllowThreads(__tstate); | |
12164 | if (PyErr_Occurred()) SWIG_fail; | |
12165 | } | |
12166 | Py_INCREF(Py_None); resultobj = Py_None; | |
12167 | return resultobj; | |
12168 | fail: | |
12169 | return NULL; | |
12170 | } | |
12171 | ||
12172 | ||
c24da6d6 | 12173 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12174 | PyObject *resultobj; |
12175 | wxDC *arg1 = (wxDC *) 0 ; | |
12176 | wxBitmap *arg2 = 0 ; | |
12177 | wxPoint *arg3 = 0 ; | |
12178 | bool arg4 = (bool) False ; | |
12179 | wxPoint temp3 ; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | PyObject * obj1 = 0 ; | |
12182 | PyObject * obj2 = 0 ; | |
12183 | PyObject * obj3 = 0 ; | |
12184 | char *kwnames[] = { | |
12185 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
12186 | }; | |
12187 | ||
c24da6d6 | 12188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12191 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12192 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12193 | SWIG_fail; | |
12194 | if (arg2 == NULL) { | |
12195 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12196 | SWIG_fail; | |
12197 | } | |
12198 | { | |
12199 | arg3 = &temp3; | |
12200 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12201 | } | |
12202 | if (obj3) { | |
12203 | arg4 = (bool) SWIG_AsBool(obj3); | |
12204 | if (PyErr_Occurred()) SWIG_fail; | |
12205 | } | |
12206 | { | |
12207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12208 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12209 | ||
12210 | wxPyEndAllowThreads(__tstate); | |
12211 | if (PyErr_Occurred()) SWIG_fail; | |
12212 | } | |
12213 | Py_INCREF(Py_None); resultobj = Py_None; | |
12214 | return resultobj; | |
12215 | fail: | |
12216 | return NULL; | |
12217 | } | |
12218 | ||
12219 | ||
c24da6d6 | 12220 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12221 | PyObject *resultobj; |
12222 | wxDC *arg1 = (wxDC *) 0 ; | |
12223 | wxString *arg2 = 0 ; | |
12224 | int arg3 ; | |
12225 | int arg4 ; | |
12226 | bool temp2 = False ; | |
12227 | PyObject * obj0 = 0 ; | |
12228 | PyObject * obj1 = 0 ; | |
12229 | PyObject * obj2 = 0 ; | |
12230 | PyObject * obj3 = 0 ; | |
12231 | char *kwnames[] = { | |
12232 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12233 | }; | |
12234 | ||
c24da6d6 | 12235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12238 | { | |
12239 | arg2 = wxString_in_helper(obj1); | |
12240 | if (arg2 == NULL) SWIG_fail; | |
12241 | temp2 = True; | |
12242 | } | |
12243 | arg3 = (int) SWIG_AsInt(obj2); | |
12244 | if (PyErr_Occurred()) SWIG_fail; | |
12245 | arg4 = (int) SWIG_AsInt(obj3); | |
12246 | if (PyErr_Occurred()) SWIG_fail; | |
12247 | { | |
12248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12249 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12250 | ||
12251 | wxPyEndAllowThreads(__tstate); | |
12252 | if (PyErr_Occurred()) SWIG_fail; | |
12253 | } | |
12254 | Py_INCREF(Py_None); resultobj = Py_None; | |
12255 | { | |
12256 | if (temp2) | |
12257 | delete arg2; | |
12258 | } | |
12259 | return resultobj; | |
12260 | fail: | |
12261 | { | |
12262 | if (temp2) | |
12263 | delete arg2; | |
12264 | } | |
12265 | return NULL; | |
12266 | } | |
12267 | ||
12268 | ||
c24da6d6 | 12269 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12270 | PyObject *resultobj; |
12271 | wxDC *arg1 = (wxDC *) 0 ; | |
12272 | wxString *arg2 = 0 ; | |
12273 | wxPoint *arg3 = 0 ; | |
12274 | bool temp2 = False ; | |
12275 | wxPoint temp3 ; | |
12276 | PyObject * obj0 = 0 ; | |
12277 | PyObject * obj1 = 0 ; | |
12278 | PyObject * obj2 = 0 ; | |
12279 | char *kwnames[] = { | |
12280 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12281 | }; | |
12282 | ||
c24da6d6 | 12283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12286 | { | |
12287 | arg2 = wxString_in_helper(obj1); | |
12288 | if (arg2 == NULL) SWIG_fail; | |
12289 | temp2 = True; | |
12290 | } | |
12291 | { | |
12292 | arg3 = &temp3; | |
12293 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12294 | } | |
12295 | { | |
12296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12297 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12298 | ||
12299 | wxPyEndAllowThreads(__tstate); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | Py_INCREF(Py_None); resultobj = Py_None; | |
12303 | { | |
12304 | if (temp2) | |
12305 | delete arg2; | |
12306 | } | |
12307 | return resultobj; | |
12308 | fail: | |
12309 | { | |
12310 | if (temp2) | |
12311 | delete arg2; | |
12312 | } | |
12313 | return NULL; | |
12314 | } | |
12315 | ||
12316 | ||
c24da6d6 | 12317 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12318 | PyObject *resultobj; |
12319 | wxDC *arg1 = (wxDC *) 0 ; | |
12320 | wxString *arg2 = 0 ; | |
12321 | int arg3 ; | |
12322 | int arg4 ; | |
12323 | double arg5 ; | |
12324 | bool temp2 = False ; | |
12325 | PyObject * obj0 = 0 ; | |
12326 | PyObject * obj1 = 0 ; | |
12327 | PyObject * obj2 = 0 ; | |
12328 | PyObject * obj3 = 0 ; | |
12329 | PyObject * obj4 = 0 ; | |
12330 | char *kwnames[] = { | |
12331 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12332 | }; | |
12333 | ||
c24da6d6 | 12334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12337 | { | |
12338 | arg2 = wxString_in_helper(obj1); | |
12339 | if (arg2 == NULL) SWIG_fail; | |
12340 | temp2 = True; | |
12341 | } | |
12342 | arg3 = (int) SWIG_AsInt(obj2); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | arg4 = (int) SWIG_AsInt(obj3); | |
12345 | if (PyErr_Occurred()) SWIG_fail; | |
12346 | arg5 = (double) SWIG_AsDouble(obj4); | |
12347 | if (PyErr_Occurred()) SWIG_fail; | |
12348 | { | |
12349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12350 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12351 | ||
12352 | wxPyEndAllowThreads(__tstate); | |
12353 | if (PyErr_Occurred()) SWIG_fail; | |
12354 | } | |
12355 | Py_INCREF(Py_None); resultobj = Py_None; | |
12356 | { | |
12357 | if (temp2) | |
12358 | delete arg2; | |
12359 | } | |
12360 | return resultobj; | |
12361 | fail: | |
12362 | { | |
12363 | if (temp2) | |
12364 | delete arg2; | |
12365 | } | |
12366 | return NULL; | |
12367 | } | |
12368 | ||
12369 | ||
c24da6d6 | 12370 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12371 | PyObject *resultobj; |
12372 | wxDC *arg1 = (wxDC *) 0 ; | |
12373 | wxString *arg2 = 0 ; | |
12374 | wxPoint *arg3 = 0 ; | |
12375 | double arg4 ; | |
12376 | bool temp2 = False ; | |
12377 | wxPoint temp3 ; | |
12378 | PyObject * obj0 = 0 ; | |
12379 | PyObject * obj1 = 0 ; | |
12380 | PyObject * obj2 = 0 ; | |
12381 | PyObject * obj3 = 0 ; | |
12382 | char *kwnames[] = { | |
12383 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12384 | }; | |
12385 | ||
c24da6d6 | 12386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12389 | { | |
12390 | arg2 = wxString_in_helper(obj1); | |
12391 | if (arg2 == NULL) SWIG_fail; | |
12392 | temp2 = True; | |
12393 | } | |
12394 | { | |
12395 | arg3 = &temp3; | |
12396 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12397 | } | |
12398 | arg4 = (double) SWIG_AsDouble(obj3); | |
12399 | if (PyErr_Occurred()) SWIG_fail; | |
12400 | { | |
12401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12402 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12403 | ||
12404 | wxPyEndAllowThreads(__tstate); | |
12405 | if (PyErr_Occurred()) SWIG_fail; | |
12406 | } | |
12407 | Py_INCREF(Py_None); resultobj = Py_None; | |
12408 | { | |
12409 | if (temp2) | |
12410 | delete arg2; | |
12411 | } | |
12412 | return resultobj; | |
12413 | fail: | |
12414 | { | |
12415 | if (temp2) | |
12416 | delete arg2; | |
12417 | } | |
12418 | return NULL; | |
12419 | } | |
12420 | ||
12421 | ||
c24da6d6 | 12422 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12423 | PyObject *resultobj; |
12424 | wxDC *arg1 = (wxDC *) 0 ; | |
12425 | int arg2 ; | |
12426 | int arg3 ; | |
12427 | int arg4 ; | |
12428 | int arg5 ; | |
12429 | wxDC *arg6 = (wxDC *) 0 ; | |
12430 | int arg7 ; | |
12431 | int arg8 ; | |
12432 | int arg9 = (int) wxCOPY ; | |
12433 | bool arg10 = (bool) False ; | |
12434 | int arg11 = (int) -1 ; | |
12435 | int arg12 = (int) -1 ; | |
12436 | bool result; | |
12437 | PyObject * obj0 = 0 ; | |
12438 | PyObject * obj1 = 0 ; | |
12439 | PyObject * obj2 = 0 ; | |
12440 | PyObject * obj3 = 0 ; | |
12441 | PyObject * obj4 = 0 ; | |
12442 | PyObject * obj5 = 0 ; | |
12443 | PyObject * obj6 = 0 ; | |
12444 | PyObject * obj7 = 0 ; | |
12445 | PyObject * obj8 = 0 ; | |
12446 | PyObject * obj9 = 0 ; | |
12447 | PyObject * obj10 = 0 ; | |
12448 | PyObject * obj11 = 0 ; | |
12449 | char *kwnames[] = { | |
12450 | (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 | |
12451 | }; | |
12452 | ||
c24da6d6 | 12453 | 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 |
12454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12456 | arg2 = (int) SWIG_AsInt(obj1); | |
12457 | if (PyErr_Occurred()) SWIG_fail; | |
12458 | arg3 = (int) SWIG_AsInt(obj2); | |
12459 | if (PyErr_Occurred()) SWIG_fail; | |
12460 | arg4 = (int) SWIG_AsInt(obj3); | |
12461 | if (PyErr_Occurred()) SWIG_fail; | |
12462 | arg5 = (int) SWIG_AsInt(obj4); | |
12463 | if (PyErr_Occurred()) SWIG_fail; | |
12464 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12466 | arg7 = (int) SWIG_AsInt(obj6); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | arg8 = (int) SWIG_AsInt(obj7); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | if (obj8) { | |
12471 | arg9 = (int) SWIG_AsInt(obj8); | |
12472 | if (PyErr_Occurred()) SWIG_fail; | |
12473 | } | |
12474 | if (obj9) { | |
12475 | arg10 = (bool) SWIG_AsBool(obj9); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | if (obj10) { | |
12479 | arg11 = (int) SWIG_AsInt(obj10); | |
12480 | if (PyErr_Occurred()) SWIG_fail; | |
12481 | } | |
12482 | if (obj11) { | |
12483 | arg12 = (int) SWIG_AsInt(obj11); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
12486 | { | |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12488 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12489 | ||
12490 | wxPyEndAllowThreads(__tstate); | |
12491 | if (PyErr_Occurred()) SWIG_fail; | |
12492 | } | |
12493 | { | |
12494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12495 | } | |
12496 | return resultobj; | |
12497 | fail: | |
12498 | return NULL; | |
12499 | } | |
12500 | ||
12501 | ||
c24da6d6 | 12502 | static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12503 | PyObject *resultobj; |
12504 | wxDC *arg1 = (wxDC *) 0 ; | |
12505 | wxPoint *arg2 = 0 ; | |
12506 | wxSize *arg3 = 0 ; | |
12507 | wxDC *arg4 = (wxDC *) 0 ; | |
12508 | wxPoint *arg5 = 0 ; | |
12509 | int arg6 = (int) wxCOPY ; | |
12510 | bool arg7 = (bool) False ; | |
12511 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
12512 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12513 | bool result; | |
12514 | wxPoint temp2 ; | |
12515 | wxSize temp3 ; | |
12516 | wxPoint temp5 ; | |
12517 | wxPoint temp8 ; | |
12518 | PyObject * obj0 = 0 ; | |
12519 | PyObject * obj1 = 0 ; | |
12520 | PyObject * obj2 = 0 ; | |
12521 | PyObject * obj3 = 0 ; | |
12522 | PyObject * obj4 = 0 ; | |
12523 | PyObject * obj5 = 0 ; | |
12524 | PyObject * obj6 = 0 ; | |
12525 | PyObject * obj7 = 0 ; | |
12526 | char *kwnames[] = { | |
12527 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12528 | }; | |
12529 | ||
c24da6d6 | 12530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12533 | { | |
12534 | arg2 = &temp2; | |
12535 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12536 | } | |
12537 | { | |
12538 | arg3 = &temp3; | |
12539 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12540 | } | |
12541 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
12542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12543 | { | |
12544 | arg5 = &temp5; | |
12545 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12546 | } | |
12547 | if (obj5) { | |
12548 | arg6 = (int) SWIG_AsInt(obj5); | |
12549 | if (PyErr_Occurred()) SWIG_fail; | |
12550 | } | |
12551 | if (obj6) { | |
12552 | arg7 = (bool) SWIG_AsBool(obj6); | |
12553 | if (PyErr_Occurred()) SWIG_fail; | |
12554 | } | |
12555 | if (obj7) { | |
12556 | { | |
12557 | arg8 = &temp8; | |
12558 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12559 | } | |
12560 | } | |
12561 | { | |
12562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 RD |
12563 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
12564 | ||
12565 | wxPyEndAllowThreads(__tstate); | |
12566 | if (PyErr_Occurred()) SWIG_fail; | |
12567 | } | |
12568 | { | |
12569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12570 | } | |
12571 | return resultobj; | |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
12577 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12578 | PyObject *resultobj; | |
12579 | wxDC *arg1 = (wxDC *) 0 ; | |
12580 | int arg2 ; | |
12581 | int arg3 ; | |
12582 | int arg4 ; | |
12583 | int arg5 ; | |
12584 | PyObject * obj0 = 0 ; | |
12585 | PyObject * obj1 = 0 ; | |
12586 | PyObject * obj2 = 0 ; | |
12587 | PyObject * obj3 = 0 ; | |
12588 | PyObject * obj4 = 0 ; | |
12589 | char *kwnames[] = { | |
12590 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12591 | }; | |
12592 | ||
12593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12596 | arg2 = (int) SWIG_AsInt(obj1); | |
12597 | if (PyErr_Occurred()) SWIG_fail; | |
12598 | arg3 = (int) SWIG_AsInt(obj2); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | arg4 = (int) SWIG_AsInt(obj3); | |
12601 | if (PyErr_Occurred()) SWIG_fail; | |
12602 | arg5 = (int) SWIG_AsInt(obj4); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | { | |
12605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12606 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12607 | ||
12608 | wxPyEndAllowThreads(__tstate); | |
12609 | if (PyErr_Occurred()) SWIG_fail; | |
12610 | } | |
12611 | Py_INCREF(Py_None); resultobj = Py_None; | |
12612 | return resultobj; | |
12613 | fail: | |
12614 | return NULL; | |
12615 | } | |
12616 | ||
12617 | ||
12618 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12619 | PyObject *resultobj; | |
12620 | wxDC *arg1 = (wxDC *) 0 ; | |
12621 | wxPoint *arg2 = 0 ; | |
12622 | wxSize *arg3 = 0 ; | |
12623 | wxPoint temp2 ; | |
12624 | wxSize temp3 ; | |
12625 | PyObject * obj0 = 0 ; | |
12626 | PyObject * obj1 = 0 ; | |
12627 | PyObject * obj2 = 0 ; | |
12628 | char *kwnames[] = { | |
12629 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12630 | }; | |
12631 | ||
12632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12635 | { | |
12636 | arg2 = &temp2; | |
12637 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12638 | } | |
12639 | { | |
12640 | arg3 = &temp3; | |
12641 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12642 | } | |
12643 | { | |
12644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12645 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12646 | ||
12647 | wxPyEndAllowThreads(__tstate); | |
12648 | if (PyErr_Occurred()) SWIG_fail; | |
12649 | } | |
12650 | Py_INCREF(Py_None); resultobj = Py_None; | |
12651 | return resultobj; | |
12652 | fail: | |
12653 | return NULL; | |
12654 | } | |
12655 | ||
12656 | ||
12657 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12658 | PyObject *resultobj; | |
12659 | wxDC *arg1 = (wxDC *) 0 ; | |
12660 | wxRegion *arg2 = 0 ; | |
12661 | PyObject * obj0 = 0 ; | |
12662 | PyObject * obj1 = 0 ; | |
12663 | char *kwnames[] = { | |
12664 | (char *) "self",(char *) "region", NULL | |
12665 | }; | |
12666 | ||
12667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12671 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12672 | SWIG_fail; | |
12673 | if (arg2 == NULL) { | |
12674 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12675 | SWIG_fail; | |
12676 | } | |
12677 | { | |
12678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12679 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12680 | ||
12681 | wxPyEndAllowThreads(__tstate); | |
12682 | if (PyErr_Occurred()) SWIG_fail; | |
12683 | } | |
12684 | Py_INCREF(Py_None); resultobj = Py_None; | |
12685 | return resultobj; | |
12686 | fail: | |
12687 | return NULL; | |
12688 | } | |
12689 | ||
12690 | ||
12691 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12692 | PyObject *resultobj; | |
12693 | wxDC *arg1 = (wxDC *) 0 ; | |
12694 | wxRect *arg2 = 0 ; | |
12695 | wxRect temp2 ; | |
12696 | PyObject * obj0 = 0 ; | |
12697 | PyObject * obj1 = 0 ; | |
12698 | char *kwnames[] = { | |
12699 | (char *) "self",(char *) "rect", NULL | |
12700 | }; | |
12701 | ||
12702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12705 | { | |
12706 | arg2 = &temp2; | |
12707 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12708 | } | |
12709 | { | |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12711 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
d55e5bfc RD |
12712 | |
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
c24da6d6 | 12716 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
12717 | return resultobj; |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
12723 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12724 | PyObject *resultobj; | |
12725 | wxDC *arg1 = (wxDC *) 0 ; | |
12726 | int arg2 ; | |
12727 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12728 | int arg4 = (int) 0 ; | |
12729 | int arg5 = (int) 0 ; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | PyObject * obj1 = 0 ; | |
12732 | PyObject * obj2 = 0 ; | |
12733 | PyObject * obj3 = 0 ; | |
12734 | char *kwnames[] = { | |
12735 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12736 | }; | |
12737 | ||
12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12741 | { | |
12742 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12743 | if (arg3 == NULL) SWIG_fail; | |
12744 | } | |
12745 | if (obj2) { | |
12746 | arg4 = (int) SWIG_AsInt(obj2); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
12749 | if (obj3) { | |
12750 | arg5 = (int) SWIG_AsInt(obj3); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
12753 | { | |
12754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12755 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12756 | ||
12757 | wxPyEndAllowThreads(__tstate); | |
12758 | if (PyErr_Occurred()) SWIG_fail; | |
12759 | } | |
12760 | Py_INCREF(Py_None); resultobj = Py_None; | |
12761 | { | |
12762 | if (arg3) delete [] arg3; | |
12763 | } | |
12764 | return resultobj; | |
12765 | fail: | |
12766 | { | |
12767 | if (arg3) delete [] arg3; | |
12768 | } | |
12769 | return NULL; | |
12770 | } | |
12771 | ||
12772 | ||
12773 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12774 | PyObject *resultobj; | |
12775 | wxDC *arg1 = (wxDC *) 0 ; | |
12776 | int arg2 ; | |
12777 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12778 | int arg4 = (int) 0 ; | |
12779 | int arg5 = (int) 0 ; | |
12780 | int arg6 = (int) wxODDEVEN_RULE ; | |
12781 | PyObject * obj0 = 0 ; | |
12782 | PyObject * obj1 = 0 ; | |
12783 | PyObject * obj2 = 0 ; | |
12784 | PyObject * obj3 = 0 ; | |
12785 | PyObject * obj4 = 0 ; | |
12786 | char *kwnames[] = { | |
12787 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12788 | }; | |
12789 | ||
12790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12793 | { | |
12794 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12795 | if (arg3 == NULL) SWIG_fail; | |
12796 | } | |
12797 | if (obj2) { | |
12798 | arg4 = (int) SWIG_AsInt(obj2); | |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
12800 | } | |
12801 | if (obj3) { | |
12802 | arg5 = (int) SWIG_AsInt(obj3); | |
12803 | if (PyErr_Occurred()) SWIG_fail; | |
12804 | } | |
12805 | if (obj4) { | |
12806 | arg6 = (int) SWIG_AsInt(obj4); | |
12807 | if (PyErr_Occurred()) SWIG_fail; | |
12808 | } | |
12809 | { | |
12810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12811 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12812 | ||
12813 | wxPyEndAllowThreads(__tstate); | |
12814 | if (PyErr_Occurred()) SWIG_fail; | |
12815 | } | |
12816 | Py_INCREF(Py_None); resultobj = Py_None; | |
12817 | { | |
12818 | if (arg3) delete [] arg3; | |
12819 | } | |
12820 | return resultobj; | |
12821 | fail: | |
12822 | { | |
12823 | if (arg3) delete [] arg3; | |
12824 | } | |
12825 | return NULL; | |
12826 | } | |
12827 | ||
12828 | ||
12829 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12830 | PyObject *resultobj; | |
12831 | wxDC *arg1 = (wxDC *) 0 ; | |
12832 | wxString *arg2 = 0 ; | |
12833 | wxRect *arg3 = 0 ; | |
12834 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12835 | int arg5 = (int) -1 ; | |
12836 | bool temp2 = False ; | |
12837 | wxRect temp3 ; | |
12838 | PyObject * obj0 = 0 ; | |
12839 | PyObject * obj1 = 0 ; | |
12840 | PyObject * obj2 = 0 ; | |
12841 | PyObject * obj3 = 0 ; | |
12842 | PyObject * obj4 = 0 ; | |
12843 | char *kwnames[] = { | |
12844 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12845 | }; | |
12846 | ||
12847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12850 | { | |
12851 | arg2 = wxString_in_helper(obj1); | |
12852 | if (arg2 == NULL) SWIG_fail; | |
12853 | temp2 = True; | |
12854 | } | |
12855 | { | |
12856 | arg3 = &temp3; | |
12857 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12858 | } | |
12859 | if (obj3) { | |
12860 | arg4 = (int) SWIG_AsInt(obj3); | |
12861 | if (PyErr_Occurred()) SWIG_fail; | |
12862 | } | |
12863 | if (obj4) { | |
12864 | arg5 = (int) SWIG_AsInt(obj4); | |
12865 | if (PyErr_Occurred()) SWIG_fail; | |
12866 | } | |
12867 | { | |
12868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12869 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
12870 | ||
12871 | wxPyEndAllowThreads(__tstate); | |
12872 | if (PyErr_Occurred()) SWIG_fail; | |
12873 | } | |
12874 | Py_INCREF(Py_None); resultobj = Py_None; | |
12875 | { | |
12876 | if (temp2) | |
12877 | delete arg2; | |
12878 | } | |
12879 | return resultobj; | |
12880 | fail: | |
12881 | { | |
12882 | if (temp2) | |
12883 | delete arg2; | |
12884 | } | |
12885 | return NULL; | |
12886 | } | |
12887 | ||
12888 | ||
12889 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12890 | PyObject *resultobj; | |
12891 | wxDC *arg1 = (wxDC *) 0 ; | |
12892 | wxString *arg2 = 0 ; | |
12893 | wxBitmap *arg3 = 0 ; | |
12894 | wxRect *arg4 = 0 ; | |
12895 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12896 | int arg6 = (int) -1 ; | |
12897 | wxRect result; | |
12898 | bool temp2 = False ; | |
12899 | wxRect temp4 ; | |
12900 | PyObject * obj0 = 0 ; | |
12901 | PyObject * obj1 = 0 ; | |
12902 | PyObject * obj2 = 0 ; | |
12903 | PyObject * obj3 = 0 ; | |
12904 | PyObject * obj4 = 0 ; | |
12905 | PyObject * obj5 = 0 ; | |
12906 | char *kwnames[] = { | |
12907 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12908 | }; | |
12909 | ||
12910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12913 | { | |
12914 | arg2 = wxString_in_helper(obj1); | |
12915 | if (arg2 == NULL) SWIG_fail; | |
12916 | temp2 = True; | |
12917 | } | |
12918 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
12919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12920 | SWIG_fail; | |
12921 | if (arg3 == NULL) { | |
12922 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12923 | SWIG_fail; | |
12924 | } | |
12925 | { | |
12926 | arg4 = &temp4; | |
12927 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12928 | } | |
12929 | if (obj4) { | |
12930 | arg5 = (int) SWIG_AsInt(obj4); | |
12931 | if (PyErr_Occurred()) SWIG_fail; | |
12932 | } | |
12933 | if (obj5) { | |
12934 | arg6 = (int) SWIG_AsInt(obj5); | |
12935 | if (PyErr_Occurred()) SWIG_fail; | |
12936 | } | |
12937 | { | |
12938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12939 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12940 | ||
12941 | wxPyEndAllowThreads(__tstate); | |
12942 | if (PyErr_Occurred()) SWIG_fail; | |
12943 | } | |
12944 | { | |
12945 | wxRect * resultptr; | |
12946 | resultptr = new wxRect((wxRect &) result); | |
12947 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
12948 | } | |
12949 | { | |
12950 | if (temp2) | |
12951 | delete arg2; | |
12952 | } | |
12953 | return resultobj; | |
12954 | fail: | |
12955 | { | |
12956 | if (temp2) | |
12957 | delete arg2; | |
12958 | } | |
12959 | return NULL; | |
12960 | } | |
12961 | ||
12962 | ||
12963 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12964 | PyObject *resultobj; | |
12965 | wxDC *arg1 = (wxDC *) 0 ; | |
12966 | int arg2 ; | |
12967 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12968 | PyObject * obj0 = 0 ; | |
12969 | PyObject * obj1 = 0 ; | |
12970 | char *kwnames[] = { | |
12971 | (char *) "self",(char *) "points", NULL | |
12972 | }; | |
12973 | ||
12974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
12975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12977 | { | |
12978 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12979 | if (arg3 == NULL) SWIG_fail; | |
12980 | } | |
12981 | { | |
12982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12983 | (arg1)->DrawSpline(arg2,arg3); | |
12984 | ||
12985 | wxPyEndAllowThreads(__tstate); | |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
12987 | } | |
12988 | Py_INCREF(Py_None); resultobj = Py_None; | |
12989 | { | |
12990 | if (arg3) delete [] arg3; | |
12991 | } | |
12992 | return resultobj; | |
12993 | fail: | |
12994 | { | |
12995 | if (arg3) delete [] arg3; | |
12996 | } | |
12997 | return NULL; | |
12998 | } | |
12999 | ||
13000 | ||
13001 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13002 | PyObject *resultobj; | |
13003 | wxDC *arg1 = (wxDC *) 0 ; | |
13004 | PyObject * obj0 = 0 ; | |
13005 | char *kwnames[] = { | |
13006 | (char *) "self", NULL | |
13007 | }; | |
13008 | ||
13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
13010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13012 | { | |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13014 | (arg1)->Clear(); | |
13015 | ||
13016 | wxPyEndAllowThreads(__tstate); | |
13017 | if (PyErr_Occurred()) SWIG_fail; | |
13018 | } | |
13019 | Py_INCREF(Py_None); resultobj = Py_None; | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | return NULL; | |
13023 | } | |
13024 | ||
13025 | ||
13026 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13027 | PyObject *resultobj; | |
13028 | wxDC *arg1 = (wxDC *) 0 ; | |
13029 | wxString *arg2 = 0 ; | |
13030 | bool result; | |
13031 | bool temp2 = False ; | |
13032 | PyObject * obj0 = 0 ; | |
13033 | PyObject * obj1 = 0 ; | |
13034 | char *kwnames[] = { | |
13035 | (char *) "self",(char *) "message", NULL | |
13036 | }; | |
13037 | ||
13038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
13039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13041 | { | |
13042 | arg2 = wxString_in_helper(obj1); | |
13043 | if (arg2 == NULL) SWIG_fail; | |
13044 | temp2 = True; | |
13045 | } | |
13046 | { | |
13047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13048 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
13049 | ||
13050 | wxPyEndAllowThreads(__tstate); | |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
13052 | } | |
13053 | { | |
13054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13055 | } | |
13056 | { | |
13057 | if (temp2) | |
13058 | delete arg2; | |
13059 | } | |
13060 | return resultobj; | |
13061 | fail: | |
13062 | { | |
13063 | if (temp2) | |
13064 | delete arg2; | |
13065 | } | |
13066 | return NULL; | |
13067 | } | |
13068 | ||
13069 | ||
13070 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13071 | PyObject *resultobj; | |
13072 | wxDC *arg1 = (wxDC *) 0 ; | |
13073 | PyObject * obj0 = 0 ; | |
13074 | char *kwnames[] = { | |
13075 | (char *) "self", NULL | |
13076 | }; | |
13077 | ||
13078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
13079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13081 | { | |
13082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13083 | (arg1)->EndDoc(); | |
13084 | ||
13085 | wxPyEndAllowThreads(__tstate); | |
13086 | if (PyErr_Occurred()) SWIG_fail; | |
13087 | } | |
13088 | Py_INCREF(Py_None); resultobj = Py_None; | |
13089 | return resultobj; | |
13090 | fail: | |
13091 | return NULL; | |
13092 | } | |
13093 | ||
13094 | ||
13095 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13096 | PyObject *resultobj; | |
13097 | wxDC *arg1 = (wxDC *) 0 ; | |
13098 | PyObject * obj0 = 0 ; | |
13099 | char *kwnames[] = { | |
13100 | (char *) "self", NULL | |
13101 | }; | |
13102 | ||
13103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
13104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13106 | { | |
13107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13108 | (arg1)->StartPage(); | |
13109 | ||
13110 | wxPyEndAllowThreads(__tstate); | |
13111 | if (PyErr_Occurred()) SWIG_fail; | |
13112 | } | |
13113 | Py_INCREF(Py_None); resultobj = Py_None; | |
13114 | return resultobj; | |
13115 | fail: | |
13116 | return NULL; | |
13117 | } | |
13118 | ||
13119 | ||
13120 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13121 | PyObject *resultobj; | |
13122 | wxDC *arg1 = (wxDC *) 0 ; | |
13123 | PyObject * obj0 = 0 ; | |
13124 | char *kwnames[] = { | |
13125 | (char *) "self", NULL | |
13126 | }; | |
13127 | ||
13128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
13129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13131 | { | |
13132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13133 | (arg1)->EndPage(); | |
13134 | ||
13135 | wxPyEndAllowThreads(__tstate); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
13138 | Py_INCREF(Py_None); resultobj = Py_None; | |
13139 | return resultobj; | |
13140 | fail: | |
13141 | return NULL; | |
13142 | } | |
13143 | ||
13144 | ||
13145 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13146 | PyObject *resultobj; | |
13147 | wxDC *arg1 = (wxDC *) 0 ; | |
13148 | wxFont *arg2 = 0 ; | |
13149 | PyObject * obj0 = 0 ; | |
13150 | PyObject * obj1 = 0 ; | |
13151 | char *kwnames[] = { | |
13152 | (char *) "self",(char *) "font", NULL | |
13153 | }; | |
13154 | ||
13155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
13156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13160 | SWIG_fail; | |
13161 | if (arg2 == NULL) { | |
13162 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13163 | SWIG_fail; | |
13164 | } | |
13165 | { | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | (arg1)->SetFont((wxFont const &)*arg2); | |
13168 | ||
13169 | wxPyEndAllowThreads(__tstate); | |
13170 | if (PyErr_Occurred()) SWIG_fail; | |
13171 | } | |
13172 | Py_INCREF(Py_None); resultobj = Py_None; | |
13173 | return resultobj; | |
13174 | fail: | |
13175 | return NULL; | |
13176 | } | |
13177 | ||
13178 | ||
13179 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13180 | PyObject *resultobj; | |
13181 | wxDC *arg1 = (wxDC *) 0 ; | |
13182 | wxPen *arg2 = 0 ; | |
13183 | PyObject * obj0 = 0 ; | |
13184 | PyObject * obj1 = 0 ; | |
13185 | char *kwnames[] = { | |
13186 | (char *) "self",(char *) "pen", NULL | |
13187 | }; | |
13188 | ||
13189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
13190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
13193 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13194 | SWIG_fail; | |
13195 | if (arg2 == NULL) { | |
13196 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13197 | SWIG_fail; | |
13198 | } | |
13199 | { | |
13200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13201 | (arg1)->SetPen((wxPen const &)*arg2); | |
13202 | ||
13203 | wxPyEndAllowThreads(__tstate); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
13206 | Py_INCREF(Py_None); resultobj = Py_None; | |
13207 | return resultobj; | |
13208 | fail: | |
13209 | return NULL; | |
13210 | } | |
13211 | ||
13212 | ||
13213 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13214 | PyObject *resultobj; | |
13215 | wxDC *arg1 = (wxDC *) 0 ; | |
13216 | wxBrush *arg2 = 0 ; | |
13217 | PyObject * obj0 = 0 ; | |
13218 | PyObject * obj1 = 0 ; | |
13219 | char *kwnames[] = { | |
13220 | (char *) "self",(char *) "brush", NULL | |
13221 | }; | |
13222 | ||
13223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
13224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13226 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13227 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13228 | SWIG_fail; | |
13229 | if (arg2 == NULL) { | |
13230 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13231 | SWIG_fail; | |
13232 | } | |
13233 | { | |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13235 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13236 | ||
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
13240 | Py_INCREF(Py_None); resultobj = Py_None; | |
13241 | return resultobj; | |
13242 | fail: | |
13243 | return NULL; | |
13244 | } | |
13245 | ||
13246 | ||
13247 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13248 | PyObject *resultobj; | |
13249 | wxDC *arg1 = (wxDC *) 0 ; | |
13250 | wxBrush *arg2 = 0 ; | |
13251 | PyObject * obj0 = 0 ; | |
13252 | PyObject * obj1 = 0 ; | |
13253 | char *kwnames[] = { | |
13254 | (char *) "self",(char *) "brush", NULL | |
13255 | }; | |
13256 | ||
13257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
13258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13260 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13261 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13262 | SWIG_fail; | |
13263 | if (arg2 == NULL) { | |
13264 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13265 | SWIG_fail; | |
13266 | } | |
13267 | { | |
13268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13269 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13270 | ||
13271 | wxPyEndAllowThreads(__tstate); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | } | |
13274 | Py_INCREF(Py_None); resultobj = Py_None; | |
13275 | return resultobj; | |
13276 | fail: | |
13277 | return NULL; | |
13278 | } | |
13279 | ||
13280 | ||
13281 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13282 | PyObject *resultobj; | |
13283 | wxDC *arg1 = (wxDC *) 0 ; | |
13284 | int arg2 ; | |
13285 | PyObject * obj0 = 0 ; | |
13286 | PyObject * obj1 = 0 ; | |
13287 | char *kwnames[] = { | |
13288 | (char *) "self",(char *) "mode", NULL | |
13289 | }; | |
13290 | ||
13291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
13292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13294 | arg2 = (int) SWIG_AsInt(obj1); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | { | |
13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13298 | (arg1)->SetBackgroundMode(arg2); | |
13299 | ||
13300 | wxPyEndAllowThreads(__tstate); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
13303 | Py_INCREF(Py_None); resultobj = Py_None; | |
13304 | return resultobj; | |
13305 | fail: | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
13310 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13311 | PyObject *resultobj; | |
13312 | wxDC *arg1 = (wxDC *) 0 ; | |
13313 | wxPalette *arg2 = 0 ; | |
13314 | PyObject * obj0 = 0 ; | |
13315 | PyObject * obj1 = 0 ; | |
13316 | char *kwnames[] = { | |
13317 | (char *) "self",(char *) "palette", NULL | |
13318 | }; | |
13319 | ||
13320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
13321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13324 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13325 | SWIG_fail; | |
13326 | if (arg2 == NULL) { | |
13327 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13328 | SWIG_fail; | |
13329 | } | |
13330 | { | |
13331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13332 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13333 | ||
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | Py_INCREF(Py_None); resultobj = Py_None; | |
13338 | return resultobj; | |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
d55e5bfc RD |
13344 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
13345 | PyObject *resultobj; | |
13346 | wxDC *arg1 = (wxDC *) 0 ; | |
13347 | PyObject * obj0 = 0 ; | |
13348 | char *kwnames[] = { | |
13349 | (char *) "self", NULL | |
13350 | }; | |
13351 | ||
13352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
13353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13355 | { | |
13356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13357 | (arg1)->DestroyClippingRegion(); | |
13358 | ||
13359 | wxPyEndAllowThreads(__tstate); | |
13360 | if (PyErr_Occurred()) SWIG_fail; | |
13361 | } | |
13362 | Py_INCREF(Py_None); resultobj = Py_None; | |
13363 | return resultobj; | |
13364 | fail: | |
13365 | return NULL; | |
13366 | } | |
13367 | ||
13368 | ||
13369 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13370 | PyObject *resultobj; | |
13371 | wxDC *arg1 = (wxDC *) 0 ; | |
13372 | int *arg2 = (int *) 0 ; | |
13373 | int *arg3 = (int *) 0 ; | |
13374 | int *arg4 = (int *) 0 ; | |
13375 | int *arg5 = (int *) 0 ; | |
13376 | int temp2 ; | |
13377 | int temp3 ; | |
13378 | int temp4 ; | |
13379 | int temp5 ; | |
13380 | PyObject * obj0 = 0 ; | |
13381 | char *kwnames[] = { | |
13382 | (char *) "self", NULL | |
13383 | }; | |
13384 | ||
13385 | arg2 = &temp2; | |
13386 | arg3 = &temp3; | |
13387 | arg4 = &temp4; | |
13388 | arg5 = &temp5; | |
13389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
13390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13392 | { | |
13393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13394 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13395 | ||
13396 | wxPyEndAllowThreads(__tstate); | |
13397 | if (PyErr_Occurred()) SWIG_fail; | |
13398 | } | |
13399 | Py_INCREF(Py_None); resultobj = Py_None; | |
13400 | { | |
13401 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13402 | resultobj = t_output_helper(resultobj,o); | |
13403 | } | |
13404 | { | |
13405 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13406 | resultobj = t_output_helper(resultobj,o); | |
13407 | } | |
13408 | { | |
13409 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13410 | resultobj = t_output_helper(resultobj,o); | |
13411 | } | |
13412 | { | |
13413 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13414 | resultobj = t_output_helper(resultobj,o); | |
13415 | } | |
13416 | return resultobj; | |
13417 | fail: | |
13418 | return NULL; | |
13419 | } | |
13420 | ||
13421 | ||
13422 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13423 | PyObject *resultobj; | |
13424 | wxDC *arg1 = (wxDC *) 0 ; | |
13425 | wxRect result; | |
13426 | PyObject * obj0 = 0 ; | |
13427 | char *kwnames[] = { | |
13428 | (char *) "self", NULL | |
13429 | }; | |
13430 | ||
13431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
13432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13434 | { | |
13435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13436 | result = wxDC_GetClippingRect(arg1); | |
13437 | ||
13438 | wxPyEndAllowThreads(__tstate); | |
13439 | if (PyErr_Occurred()) SWIG_fail; | |
13440 | } | |
13441 | { | |
13442 | wxRect * resultptr; | |
13443 | resultptr = new wxRect((wxRect &) result); | |
13444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13445 | } | |
13446 | return resultobj; | |
13447 | fail: | |
13448 | return NULL; | |
13449 | } | |
13450 | ||
13451 | ||
13452 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13453 | PyObject *resultobj; | |
13454 | wxDC *arg1 = (wxDC *) 0 ; | |
13455 | int result; | |
13456 | PyObject * obj0 = 0 ; | |
13457 | char *kwnames[] = { | |
13458 | (char *) "self", NULL | |
13459 | }; | |
13460 | ||
13461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
13462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13464 | { | |
13465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13466 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
13467 | ||
13468 | wxPyEndAllowThreads(__tstate); | |
13469 | if (PyErr_Occurred()) SWIG_fail; | |
13470 | } | |
13471 | resultobj = SWIG_FromInt((int)result); | |
13472 | return resultobj; | |
13473 | fail: | |
13474 | return NULL; | |
13475 | } | |
13476 | ||
13477 | ||
13478 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13479 | PyObject *resultobj; | |
13480 | wxDC *arg1 = (wxDC *) 0 ; | |
13481 | int result; | |
13482 | PyObject * obj0 = 0 ; | |
13483 | char *kwnames[] = { | |
13484 | (char *) "self", NULL | |
13485 | }; | |
13486 | ||
13487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
13488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
13497 | resultobj = SWIG_FromInt((int)result); | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
13504 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13505 | PyObject *resultobj; | |
13506 | wxDC *arg1 = (wxDC *) 0 ; | |
13507 | wxString *arg2 = 0 ; | |
13508 | int *arg3 = (int *) 0 ; | |
13509 | int *arg4 = (int *) 0 ; | |
13510 | bool temp2 = False ; | |
13511 | int temp3 ; | |
13512 | int temp4 ; | |
13513 | PyObject * obj0 = 0 ; | |
13514 | PyObject * obj1 = 0 ; | |
13515 | char *kwnames[] = { | |
13516 | (char *) "self",(char *) "string", NULL | |
13517 | }; | |
13518 | ||
13519 | arg3 = &temp3; | |
13520 | arg4 = &temp4; | |
13521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
13522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13524 | { | |
13525 | arg2 = wxString_in_helper(obj1); | |
13526 | if (arg2 == NULL) SWIG_fail; | |
13527 | temp2 = True; | |
13528 | } | |
13529 | { | |
13530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13531 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13532 | ||
13533 | wxPyEndAllowThreads(__tstate); | |
13534 | if (PyErr_Occurred()) SWIG_fail; | |
13535 | } | |
13536 | Py_INCREF(Py_None); resultobj = Py_None; | |
13537 | { | |
13538 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13539 | resultobj = t_output_helper(resultobj,o); | |
13540 | } | |
13541 | { | |
13542 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13543 | resultobj = t_output_helper(resultobj,o); | |
13544 | } | |
13545 | { | |
13546 | if (temp2) | |
13547 | delete arg2; | |
13548 | } | |
13549 | return resultobj; | |
13550 | fail: | |
13551 | { | |
13552 | if (temp2) | |
13553 | delete arg2; | |
13554 | } | |
13555 | return NULL; | |
13556 | } | |
13557 | ||
13558 | ||
13559 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13560 | PyObject *resultobj; | |
13561 | wxDC *arg1 = (wxDC *) 0 ; | |
13562 | wxString *arg2 = 0 ; | |
13563 | int *arg3 = (int *) 0 ; | |
13564 | int *arg4 = (int *) 0 ; | |
13565 | int *arg5 = (int *) 0 ; | |
13566 | int *arg6 = (int *) 0 ; | |
13567 | wxFont *arg7 = (wxFont *) NULL ; | |
13568 | bool temp2 = False ; | |
13569 | int temp3 ; | |
13570 | int temp4 ; | |
13571 | int temp5 ; | |
13572 | int temp6 ; | |
13573 | PyObject * obj0 = 0 ; | |
13574 | PyObject * obj1 = 0 ; | |
13575 | PyObject * obj2 = 0 ; | |
13576 | char *kwnames[] = { | |
13577 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13578 | }; | |
13579 | ||
13580 | arg3 = &temp3; | |
13581 | arg4 = &temp4; | |
13582 | arg5 = &temp5; | |
13583 | arg6 = &temp6; | |
13584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13587 | { | |
13588 | arg2 = wxString_in_helper(obj1); | |
13589 | if (arg2 == NULL) SWIG_fail; | |
13590 | temp2 = True; | |
13591 | } | |
13592 | if (obj2) { | |
13593 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
13594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13595 | } | |
13596 | { | |
13597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13598 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13599 | ||
13600 | wxPyEndAllowThreads(__tstate); | |
13601 | if (PyErr_Occurred()) SWIG_fail; | |
13602 | } | |
13603 | Py_INCREF(Py_None); resultobj = Py_None; | |
13604 | { | |
13605 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13606 | resultobj = t_output_helper(resultobj,o); | |
13607 | } | |
13608 | { | |
13609 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13610 | resultobj = t_output_helper(resultobj,o); | |
13611 | } | |
13612 | { | |
13613 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13614 | resultobj = t_output_helper(resultobj,o); | |
13615 | } | |
13616 | { | |
13617 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
13618 | resultobj = t_output_helper(resultobj,o); | |
13619 | } | |
13620 | { | |
13621 | if (temp2) | |
13622 | delete arg2; | |
13623 | } | |
13624 | return resultobj; | |
13625 | fail: | |
13626 | { | |
13627 | if (temp2) | |
13628 | delete arg2; | |
13629 | } | |
13630 | return NULL; | |
13631 | } | |
13632 | ||
13633 | ||
13634 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13635 | PyObject *resultobj; | |
13636 | wxDC *arg1 = (wxDC *) 0 ; | |
13637 | wxString *arg2 = 0 ; | |
13638 | int *arg3 = (int *) 0 ; | |
13639 | int *arg4 = (int *) 0 ; | |
13640 | int *arg5 = (int *) 0 ; | |
13641 | wxFont *arg6 = (wxFont *) NULL ; | |
13642 | bool temp2 = False ; | |
13643 | int temp3 ; | |
13644 | int temp4 ; | |
13645 | int temp5 ; | |
13646 | PyObject * obj0 = 0 ; | |
13647 | PyObject * obj1 = 0 ; | |
13648 | PyObject * obj2 = 0 ; | |
13649 | char *kwnames[] = { | |
13650 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13651 | }; | |
13652 | ||
13653 | arg3 = &temp3; | |
13654 | arg4 = &temp4; | |
13655 | arg5 = &temp5; | |
13656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13659 | { | |
13660 | arg2 = wxString_in_helper(obj1); | |
13661 | if (arg2 == NULL) SWIG_fail; | |
13662 | temp2 = True; | |
13663 | } | |
13664 | if (obj2) { | |
13665 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, | |
13666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13667 | } | |
13668 | { | |
13669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13670 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13671 | ||
13672 | wxPyEndAllowThreads(__tstate); | |
13673 | if (PyErr_Occurred()) SWIG_fail; | |
13674 | } | |
13675 | Py_INCREF(Py_None); resultobj = Py_None; | |
13676 | { | |
13677 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13678 | resultobj = t_output_helper(resultobj,o); | |
13679 | } | |
13680 | { | |
13681 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13682 | resultobj = t_output_helper(resultobj,o); | |
13683 | } | |
13684 | { | |
13685 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13686 | resultobj = t_output_helper(resultobj,o); | |
13687 | } | |
13688 | { | |
13689 | if (temp2) | |
13690 | delete arg2; | |
13691 | } | |
13692 | return resultobj; | |
13693 | fail: | |
13694 | { | |
13695 | if (temp2) | |
13696 | delete arg2; | |
13697 | } | |
13698 | return NULL; | |
13699 | } | |
13700 | ||
13701 | ||
13702 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13703 | PyObject *resultobj; | |
13704 | wxDC *arg1 = (wxDC *) 0 ; | |
13705 | wxString *arg2 = 0 ; | |
13706 | wxArrayInt result; | |
13707 | bool temp2 = False ; | |
13708 | PyObject * obj0 = 0 ; | |
13709 | PyObject * obj1 = 0 ; | |
13710 | char *kwnames[] = { | |
13711 | (char *) "self",(char *) "text", NULL | |
13712 | }; | |
13713 | ||
13714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
13715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13717 | { | |
13718 | arg2 = wxString_in_helper(obj1); | |
13719 | if (arg2 == NULL) SWIG_fail; | |
13720 | temp2 = True; | |
13721 | } | |
13722 | { | |
13723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13724 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13725 | ||
13726 | wxPyEndAllowThreads(__tstate); | |
13727 | if (PyErr_Occurred()) SWIG_fail; | |
13728 | } | |
13729 | { | |
13730 | resultobj = PyList_New(0); | |
13731 | size_t idx; | |
13732 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13733 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13734 | PyList_Append(resultobj, val); | |
13735 | Py_DECREF(val); | |
13736 | } | |
13737 | } | |
13738 | { | |
13739 | if (temp2) | |
13740 | delete arg2; | |
13741 | } | |
13742 | return resultobj; | |
13743 | fail: | |
13744 | { | |
13745 | if (temp2) | |
13746 | delete arg2; | |
13747 | } | |
13748 | return NULL; | |
13749 | } | |
13750 | ||
13751 | ||
13752 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13753 | PyObject *resultobj; | |
13754 | wxDC *arg1 = (wxDC *) 0 ; | |
13755 | wxSize result; | |
13756 | PyObject * obj0 = 0 ; | |
13757 | char *kwnames[] = { | |
13758 | (char *) "self", NULL | |
13759 | }; | |
13760 | ||
13761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
13762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13764 | { | |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13766 | result = (arg1)->GetSize(); | |
13767 | ||
13768 | wxPyEndAllowThreads(__tstate); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
13771 | { | |
13772 | wxSize * resultptr; | |
13773 | resultptr = new wxSize((wxSize &) result); | |
13774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13775 | } | |
13776 | return resultobj; | |
13777 | fail: | |
13778 | return NULL; | |
13779 | } | |
13780 | ||
13781 | ||
13782 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13783 | PyObject *resultobj; | |
13784 | wxDC *arg1 = (wxDC *) 0 ; | |
13785 | int *arg2 = (int *) 0 ; | |
13786 | int *arg3 = (int *) 0 ; | |
13787 | int temp2 ; | |
13788 | int temp3 ; | |
13789 | PyObject * obj0 = 0 ; | |
13790 | char *kwnames[] = { | |
13791 | (char *) "self", NULL | |
13792 | }; | |
13793 | ||
13794 | arg2 = &temp2; | |
13795 | arg3 = &temp3; | |
13796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
13797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13799 | { | |
13800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13801 | (arg1)->GetSize(arg2,arg3); | |
13802 | ||
13803 | wxPyEndAllowThreads(__tstate); | |
13804 | if (PyErr_Occurred()) SWIG_fail; | |
13805 | } | |
13806 | Py_INCREF(Py_None); resultobj = Py_None; | |
13807 | { | |
13808 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13809 | resultobj = t_output_helper(resultobj,o); | |
13810 | } | |
13811 | { | |
13812 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13813 | resultobj = t_output_helper(resultobj,o); | |
13814 | } | |
13815 | return resultobj; | |
13816 | fail: | |
13817 | return NULL; | |
13818 | } | |
13819 | ||
13820 | ||
13821 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13822 | PyObject *resultobj; | |
13823 | wxDC *arg1 = (wxDC *) 0 ; | |
13824 | wxSize result; | |
13825 | PyObject * obj0 = 0 ; | |
13826 | char *kwnames[] = { | |
13827 | (char *) "self", NULL | |
13828 | }; | |
13829 | ||
13830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
13831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13833 | { | |
13834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13835 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
13836 | ||
13837 | wxPyEndAllowThreads(__tstate); | |
13838 | if (PyErr_Occurred()) SWIG_fail; | |
13839 | } | |
13840 | { | |
13841 | wxSize * resultptr; | |
13842 | resultptr = new wxSize((wxSize &) result); | |
13843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13844 | } | |
13845 | return resultobj; | |
13846 | fail: | |
13847 | return NULL; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13852 | PyObject *resultobj; | |
13853 | wxDC *arg1 = (wxDC *) 0 ; | |
13854 | int *arg2 = (int *) 0 ; | |
13855 | int *arg3 = (int *) 0 ; | |
13856 | int temp2 ; | |
13857 | int temp3 ; | |
13858 | PyObject * obj0 = 0 ; | |
13859 | char *kwnames[] = { | |
13860 | (char *) "self", NULL | |
13861 | }; | |
13862 | ||
13863 | arg2 = &temp2; | |
13864 | arg3 = &temp3; | |
13865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
13866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13868 | { | |
13869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13870 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13871 | ||
13872 | wxPyEndAllowThreads(__tstate); | |
13873 | if (PyErr_Occurred()) SWIG_fail; | |
13874 | } | |
13875 | Py_INCREF(Py_None); resultobj = Py_None; | |
13876 | { | |
13877 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13878 | resultobj = t_output_helper(resultobj,o); | |
13879 | } | |
13880 | { | |
13881 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13882 | resultobj = t_output_helper(resultobj,o); | |
13883 | } | |
13884 | return resultobj; | |
13885 | fail: | |
13886 | return NULL; | |
13887 | } | |
13888 | ||
13889 | ||
13890 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13891 | PyObject *resultobj; | |
13892 | wxDC *arg1 = (wxDC *) 0 ; | |
13893 | int arg2 ; | |
13894 | int result; | |
13895 | PyObject * obj0 = 0 ; | |
13896 | PyObject * obj1 = 0 ; | |
13897 | char *kwnames[] = { | |
13898 | (char *) "self",(char *) "x", NULL | |
13899 | }; | |
13900 | ||
13901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; | |
13902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13904 | arg2 = (int) SWIG_AsInt(obj1); | |
13905 | if (PyErr_Occurred()) SWIG_fail; | |
13906 | { | |
13907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13908 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
13909 | ||
13910 | wxPyEndAllowThreads(__tstate); | |
13911 | if (PyErr_Occurred()) SWIG_fail; | |
13912 | } | |
13913 | resultobj = SWIG_FromInt((int)result); | |
13914 | return resultobj; | |
13915 | fail: | |
13916 | return NULL; | |
13917 | } | |
13918 | ||
13919 | ||
13920 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13921 | PyObject *resultobj; | |
13922 | wxDC *arg1 = (wxDC *) 0 ; | |
13923 | int arg2 ; | |
13924 | int result; | |
13925 | PyObject * obj0 = 0 ; | |
13926 | PyObject * obj1 = 0 ; | |
13927 | char *kwnames[] = { | |
13928 | (char *) "self",(char *) "y", NULL | |
13929 | }; | |
13930 | ||
13931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; | |
13932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13934 | arg2 = (int) SWIG_AsInt(obj1); | |
13935 | if (PyErr_Occurred()) SWIG_fail; | |
13936 | { | |
13937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13938 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
13939 | ||
13940 | wxPyEndAllowThreads(__tstate); | |
13941 | if (PyErr_Occurred()) SWIG_fail; | |
13942 | } | |
13943 | resultobj = SWIG_FromInt((int)result); | |
13944 | return resultobj; | |
13945 | fail: | |
13946 | return NULL; | |
13947 | } | |
13948 | ||
13949 | ||
13950 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13951 | PyObject *resultobj; | |
13952 | wxDC *arg1 = (wxDC *) 0 ; | |
13953 | int arg2 ; | |
13954 | int result; | |
13955 | PyObject * obj0 = 0 ; | |
13956 | PyObject * obj1 = 0 ; | |
13957 | char *kwnames[] = { | |
13958 | (char *) "self",(char *) "x", NULL | |
13959 | }; | |
13960 | ||
13961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; | |
13962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13964 | arg2 = (int) SWIG_AsInt(obj1); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | { | |
13967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13968 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
13969 | ||
13970 | wxPyEndAllowThreads(__tstate); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | resultobj = SWIG_FromInt((int)result); | |
13974 | return resultobj; | |
13975 | fail: | |
13976 | return NULL; | |
13977 | } | |
13978 | ||
13979 | ||
13980 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13981 | PyObject *resultobj; | |
13982 | wxDC *arg1 = (wxDC *) 0 ; | |
13983 | int arg2 ; | |
13984 | int result; | |
13985 | PyObject * obj0 = 0 ; | |
13986 | PyObject * obj1 = 0 ; | |
13987 | char *kwnames[] = { | |
13988 | (char *) "self",(char *) "y", NULL | |
13989 | }; | |
13990 | ||
13991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; | |
13992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13994 | arg2 = (int) SWIG_AsInt(obj1); | |
13995 | if (PyErr_Occurred()) SWIG_fail; | |
13996 | { | |
13997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13998 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
13999 | ||
14000 | wxPyEndAllowThreads(__tstate); | |
14001 | if (PyErr_Occurred()) SWIG_fail; | |
14002 | } | |
14003 | resultobj = SWIG_FromInt((int)result); | |
14004 | return resultobj; | |
14005 | fail: | |
14006 | return NULL; | |
14007 | } | |
14008 | ||
14009 | ||
14010 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14011 | PyObject *resultobj; | |
14012 | wxDC *arg1 = (wxDC *) 0 ; | |
14013 | int arg2 ; | |
14014 | int result; | |
14015 | PyObject * obj0 = 0 ; | |
14016 | PyObject * obj1 = 0 ; | |
14017 | char *kwnames[] = { | |
14018 | (char *) "self",(char *) "x", NULL | |
14019 | }; | |
14020 | ||
14021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; | |
14022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14024 | arg2 = (int) SWIG_AsInt(obj1); | |
14025 | if (PyErr_Occurred()) SWIG_fail; | |
14026 | { | |
14027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14028 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
14029 | ||
14030 | wxPyEndAllowThreads(__tstate); | |
14031 | if (PyErr_Occurred()) SWIG_fail; | |
14032 | } | |
14033 | resultobj = SWIG_FromInt((int)result); | |
14034 | return resultobj; | |
14035 | fail: | |
14036 | return NULL; | |
14037 | } | |
14038 | ||
14039 | ||
14040 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14041 | PyObject *resultobj; | |
14042 | wxDC *arg1 = (wxDC *) 0 ; | |
14043 | int arg2 ; | |
14044 | int result; | |
14045 | PyObject * obj0 = 0 ; | |
14046 | PyObject * obj1 = 0 ; | |
14047 | char *kwnames[] = { | |
14048 | (char *) "self",(char *) "y", NULL | |
14049 | }; | |
14050 | ||
14051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; | |
14052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14054 | arg2 = (int) SWIG_AsInt(obj1); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | { | |
14057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14058 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
14059 | ||
14060 | wxPyEndAllowThreads(__tstate); | |
14061 | if (PyErr_Occurred()) SWIG_fail; | |
14062 | } | |
14063 | resultobj = SWIG_FromInt((int)result); | |
14064 | return resultobj; | |
14065 | fail: | |
14066 | return NULL; | |
14067 | } | |
14068 | ||
14069 | ||
14070 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14071 | PyObject *resultobj; | |
14072 | wxDC *arg1 = (wxDC *) 0 ; | |
14073 | int arg2 ; | |
14074 | int result; | |
14075 | PyObject * obj0 = 0 ; | |
14076 | PyObject * obj1 = 0 ; | |
14077 | char *kwnames[] = { | |
14078 | (char *) "self",(char *) "x", NULL | |
14079 | }; | |
14080 | ||
14081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; | |
14082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14084 | arg2 = (int) SWIG_AsInt(obj1); | |
14085 | if (PyErr_Occurred()) SWIG_fail; | |
14086 | { | |
14087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14088 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
14089 | ||
14090 | wxPyEndAllowThreads(__tstate); | |
14091 | if (PyErr_Occurred()) SWIG_fail; | |
14092 | } | |
14093 | resultobj = SWIG_FromInt((int)result); | |
14094 | return resultobj; | |
14095 | fail: | |
14096 | return NULL; | |
14097 | } | |
14098 | ||
14099 | ||
14100 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14101 | PyObject *resultobj; | |
14102 | wxDC *arg1 = (wxDC *) 0 ; | |
14103 | int arg2 ; | |
14104 | int result; | |
14105 | PyObject * obj0 = 0 ; | |
14106 | PyObject * obj1 = 0 ; | |
14107 | char *kwnames[] = { | |
14108 | (char *) "self",(char *) "y", NULL | |
14109 | }; | |
14110 | ||
14111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; | |
14112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14114 | arg2 = (int) SWIG_AsInt(obj1); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | { | |
14117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14118 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
14119 | ||
14120 | wxPyEndAllowThreads(__tstate); | |
14121 | if (PyErr_Occurred()) SWIG_fail; | |
14122 | } | |
14123 | resultobj = SWIG_FromInt((int)result); | |
14124 | return resultobj; | |
14125 | fail: | |
14126 | return NULL; | |
14127 | } | |
14128 | ||
14129 | ||
14130 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14131 | PyObject *resultobj; | |
14132 | wxDC *arg1 = (wxDC *) 0 ; | |
14133 | bool result; | |
14134 | PyObject * obj0 = 0 ; | |
14135 | char *kwnames[] = { | |
14136 | (char *) "self", NULL | |
14137 | }; | |
14138 | ||
14139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
14140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14142 | { | |
14143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14144 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
14145 | ||
14146 | wxPyEndAllowThreads(__tstate); | |
14147 | if (PyErr_Occurred()) SWIG_fail; | |
14148 | } | |
14149 | { | |
14150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14151 | } | |
14152 | return resultobj; | |
14153 | fail: | |
14154 | return NULL; | |
14155 | } | |
14156 | ||
14157 | ||
14158 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14159 | PyObject *resultobj; | |
14160 | wxDC *arg1 = (wxDC *) 0 ; | |
14161 | bool result; | |
14162 | PyObject * obj0 = 0 ; | |
14163 | char *kwnames[] = { | |
14164 | (char *) "self", NULL | |
14165 | }; | |
14166 | ||
14167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
14168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14170 | { | |
14171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14172 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
14173 | ||
14174 | wxPyEndAllowThreads(__tstate); | |
14175 | if (PyErr_Occurred()) SWIG_fail; | |
14176 | } | |
14177 | { | |
14178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14179 | } | |
14180 | return resultobj; | |
14181 | fail: | |
14182 | return NULL; | |
14183 | } | |
14184 | ||
14185 | ||
14186 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14187 | PyObject *resultobj; | |
14188 | wxDC *arg1 = (wxDC *) 0 ; | |
14189 | int result; | |
14190 | PyObject * obj0 = 0 ; | |
14191 | char *kwnames[] = { | |
14192 | (char *) "self", NULL | |
14193 | }; | |
14194 | ||
14195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
14196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14198 | { | |
14199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14200 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
14201 | ||
14202 | wxPyEndAllowThreads(__tstate); | |
14203 | if (PyErr_Occurred()) SWIG_fail; | |
14204 | } | |
14205 | resultobj = SWIG_FromInt((int)result); | |
14206 | return resultobj; | |
14207 | fail: | |
14208 | return NULL; | |
14209 | } | |
14210 | ||
14211 | ||
14212 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14213 | PyObject *resultobj; | |
14214 | wxDC *arg1 = (wxDC *) 0 ; | |
14215 | wxSize result; | |
14216 | PyObject * obj0 = 0 ; | |
14217 | char *kwnames[] = { | |
14218 | (char *) "self", NULL | |
14219 | }; | |
14220 | ||
14221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
14222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14224 | { | |
14225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14226 | result = ((wxDC const *)arg1)->GetPPI(); | |
14227 | ||
14228 | wxPyEndAllowThreads(__tstate); | |
14229 | if (PyErr_Occurred()) SWIG_fail; | |
14230 | } | |
14231 | { | |
14232 | wxSize * resultptr; | |
14233 | resultptr = new wxSize((wxSize &) result); | |
14234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14235 | } | |
14236 | return resultobj; | |
14237 | fail: | |
14238 | return NULL; | |
14239 | } | |
14240 | ||
14241 | ||
14242 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14243 | PyObject *resultobj; | |
14244 | wxDC *arg1 = (wxDC *) 0 ; | |
14245 | bool result; | |
14246 | PyObject * obj0 = 0 ; | |
14247 | char *kwnames[] = { | |
14248 | (char *) "self", NULL | |
14249 | }; | |
14250 | ||
14251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
14252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14254 | { | |
14255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14256 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14257 | ||
14258 | wxPyEndAllowThreads(__tstate); | |
14259 | if (PyErr_Occurred()) SWIG_fail; | |
14260 | } | |
14261 | { | |
14262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14263 | } | |
14264 | return resultobj; | |
14265 | fail: | |
14266 | return NULL; | |
14267 | } | |
14268 | ||
14269 | ||
14270 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14271 | PyObject *resultobj; | |
14272 | wxDC *arg1 = (wxDC *) 0 ; | |
14273 | int result; | |
14274 | PyObject * obj0 = 0 ; | |
14275 | char *kwnames[] = { | |
14276 | (char *) "self", NULL | |
14277 | }; | |
14278 | ||
14279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
14280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14282 | { | |
14283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14284 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14285 | ||
14286 | wxPyEndAllowThreads(__tstate); | |
14287 | if (PyErr_Occurred()) SWIG_fail; | |
14288 | } | |
14289 | resultobj = SWIG_FromInt((int)result); | |
14290 | return resultobj; | |
14291 | fail: | |
14292 | return NULL; | |
14293 | } | |
14294 | ||
14295 | ||
14296 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14297 | PyObject *resultobj; | |
14298 | wxDC *arg1 = (wxDC *) 0 ; | |
14299 | wxBrush *result; | |
14300 | PyObject * obj0 = 0 ; | |
14301 | char *kwnames[] = { | |
14302 | (char *) "self", NULL | |
14303 | }; | |
14304 | ||
14305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
14306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14308 | { | |
14309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14310 | { | |
14311 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14312 | result = (wxBrush *) &_result_ref; | |
14313 | } | |
14314 | ||
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
14318 | { | |
14319 | wxBrush* resultptr = new wxBrush(*result); | |
14320 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14321 | } | |
14322 | return resultobj; | |
14323 | fail: | |
14324 | return NULL; | |
14325 | } | |
14326 | ||
14327 | ||
14328 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14329 | PyObject *resultobj; | |
14330 | wxDC *arg1 = (wxDC *) 0 ; | |
14331 | wxBrush *result; | |
14332 | PyObject * obj0 = 0 ; | |
14333 | char *kwnames[] = { | |
14334 | (char *) "self", NULL | |
14335 | }; | |
14336 | ||
14337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
14338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14340 | { | |
14341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14342 | { | |
14343 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14344 | result = (wxBrush *) &_result_ref; | |
14345 | } | |
14346 | ||
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
14350 | { | |
14351 | wxBrush* resultptr = new wxBrush(*result); | |
14352 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14353 | } | |
14354 | return resultobj; | |
14355 | fail: | |
14356 | return NULL; | |
14357 | } | |
14358 | ||
14359 | ||
14360 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14361 | PyObject *resultobj; | |
14362 | wxDC *arg1 = (wxDC *) 0 ; | |
14363 | wxFont *result; | |
14364 | PyObject * obj0 = 0 ; | |
14365 | char *kwnames[] = { | |
14366 | (char *) "self", NULL | |
14367 | }; | |
14368 | ||
14369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
14370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14372 | { | |
14373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14374 | { | |
14375 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14376 | result = (wxFont *) &_result_ref; | |
14377 | } | |
14378 | ||
14379 | wxPyEndAllowThreads(__tstate); | |
14380 | if (PyErr_Occurred()) SWIG_fail; | |
14381 | } | |
14382 | { | |
14383 | wxFont* resultptr = new wxFont(*result); | |
14384 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14385 | } | |
14386 | return resultobj; | |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxDC *arg1 = (wxDC *) 0 ; | |
14395 | wxPen *result; | |
14396 | PyObject * obj0 = 0 ; | |
14397 | char *kwnames[] = { | |
14398 | (char *) "self", NULL | |
14399 | }; | |
14400 | ||
14401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
14402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14404 | { | |
14405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14406 | { | |
14407 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14408 | result = (wxPen *) &_result_ref; | |
14409 | } | |
14410 | ||
14411 | wxPyEndAllowThreads(__tstate); | |
14412 | if (PyErr_Occurred()) SWIG_fail; | |
14413 | } | |
14414 | { | |
14415 | wxPen* resultptr = new wxPen(*result); | |
14416 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14417 | } | |
14418 | return resultobj; | |
14419 | fail: | |
14420 | return NULL; | |
14421 | } | |
14422 | ||
14423 | ||
14424 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14425 | PyObject *resultobj; | |
14426 | wxDC *arg1 = (wxDC *) 0 ; | |
14427 | wxColour *result; | |
14428 | PyObject * obj0 = 0 ; | |
14429 | char *kwnames[] = { | |
14430 | (char *) "self", NULL | |
14431 | }; | |
14432 | ||
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
14434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14436 | { | |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14438 | { | |
14439 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14440 | result = (wxColour *) &_result_ref; | |
14441 | } | |
14442 | ||
14443 | wxPyEndAllowThreads(__tstate); | |
14444 | if (PyErr_Occurred()) SWIG_fail; | |
14445 | } | |
14446 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14447 | return resultobj; | |
14448 | fail: | |
14449 | return NULL; | |
14450 | } | |
14451 | ||
14452 | ||
14453 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14454 | PyObject *resultobj; | |
14455 | wxDC *arg1 = (wxDC *) 0 ; | |
14456 | wxColour *result; | |
14457 | PyObject * obj0 = 0 ; | |
14458 | char *kwnames[] = { | |
14459 | (char *) "self", NULL | |
14460 | }; | |
14461 | ||
14462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
14463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14465 | { | |
14466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14467 | { | |
14468 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14469 | result = (wxColour *) &_result_ref; | |
14470 | } | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
14475 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxDC *arg1 = (wxDC *) 0 ; | |
14485 | wxColour *arg2 = 0 ; | |
14486 | wxColour temp2 ; | |
14487 | PyObject * obj0 = 0 ; | |
14488 | PyObject * obj1 = 0 ; | |
14489 | char *kwnames[] = { | |
14490 | (char *) "self",(char *) "colour", NULL | |
14491 | }; | |
14492 | ||
14493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
14494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14496 | { | |
14497 | arg2 = &temp2; | |
14498 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14499 | } | |
14500 | { | |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14503 | ||
14504 | wxPyEndAllowThreads(__tstate); | |
14505 | if (PyErr_Occurred()) SWIG_fail; | |
14506 | } | |
14507 | Py_INCREF(Py_None); resultobj = Py_None; | |
14508 | return resultobj; | |
14509 | fail: | |
14510 | return NULL; | |
14511 | } | |
14512 | ||
14513 | ||
14514 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14515 | PyObject *resultobj; | |
14516 | wxDC *arg1 = (wxDC *) 0 ; | |
14517 | wxColour *arg2 = 0 ; | |
14518 | wxColour temp2 ; | |
14519 | PyObject * obj0 = 0 ; | |
14520 | PyObject * obj1 = 0 ; | |
14521 | char *kwnames[] = { | |
14522 | (char *) "self",(char *) "colour", NULL | |
14523 | }; | |
14524 | ||
14525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
14526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14528 | { | |
14529 | arg2 = &temp2; | |
14530 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14531 | } | |
14532 | { | |
14533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14534 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14535 | ||
14536 | wxPyEndAllowThreads(__tstate); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
14539 | Py_INCREF(Py_None); resultobj = Py_None; | |
14540 | return resultobj; | |
14541 | fail: | |
14542 | return NULL; | |
14543 | } | |
14544 | ||
14545 | ||
14546 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14547 | PyObject *resultobj; | |
14548 | wxDC *arg1 = (wxDC *) 0 ; | |
14549 | int result; | |
14550 | PyObject * obj0 = 0 ; | |
14551 | char *kwnames[] = { | |
14552 | (char *) "self", NULL | |
14553 | }; | |
14554 | ||
14555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
14556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14558 | { | |
14559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14560 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14561 | ||
14562 | wxPyEndAllowThreads(__tstate); | |
14563 | if (PyErr_Occurred()) SWIG_fail; | |
14564 | } | |
14565 | resultobj = SWIG_FromInt((int)result); | |
14566 | return resultobj; | |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
14572 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14573 | PyObject *resultobj; | |
14574 | wxDC *arg1 = (wxDC *) 0 ; | |
14575 | int arg2 ; | |
14576 | PyObject * obj0 = 0 ; | |
14577 | PyObject * obj1 = 0 ; | |
14578 | char *kwnames[] = { | |
14579 | (char *) "self",(char *) "mode", NULL | |
14580 | }; | |
14581 | ||
14582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; | |
14583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14585 | arg2 = (int) SWIG_AsInt(obj1); | |
14586 | if (PyErr_Occurred()) SWIG_fail; | |
14587 | { | |
14588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14589 | (arg1)->SetMapMode(arg2); | |
14590 | ||
14591 | wxPyEndAllowThreads(__tstate); | |
14592 | if (PyErr_Occurred()) SWIG_fail; | |
14593 | } | |
14594 | Py_INCREF(Py_None); resultobj = Py_None; | |
14595 | return resultobj; | |
14596 | fail: | |
14597 | return NULL; | |
14598 | } | |
14599 | ||
14600 | ||
14601 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14602 | PyObject *resultobj; | |
14603 | wxDC *arg1 = (wxDC *) 0 ; | |
14604 | double *arg2 = (double *) 0 ; | |
14605 | double *arg3 = (double *) 0 ; | |
14606 | double temp2 ; | |
14607 | double temp3 ; | |
14608 | PyObject * obj0 = 0 ; | |
14609 | char *kwnames[] = { | |
14610 | (char *) "self", NULL | |
14611 | }; | |
14612 | ||
14613 | arg2 = &temp2; | |
14614 | arg3 = &temp3; | |
14615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
14616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14618 | { | |
14619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14620 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14621 | ||
14622 | wxPyEndAllowThreads(__tstate); | |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
14624 | } | |
14625 | Py_INCREF(Py_None); resultobj = Py_None; | |
14626 | { | |
14627 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14628 | resultobj = t_output_helper(resultobj,o); | |
14629 | } | |
14630 | { | |
14631 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14632 | resultobj = t_output_helper(resultobj,o); | |
14633 | } | |
14634 | return resultobj; | |
14635 | fail: | |
14636 | return NULL; | |
14637 | } | |
14638 | ||
14639 | ||
14640 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14641 | PyObject *resultobj; | |
14642 | wxDC *arg1 = (wxDC *) 0 ; | |
14643 | double arg2 ; | |
14644 | double arg3 ; | |
14645 | PyObject * obj0 = 0 ; | |
14646 | PyObject * obj1 = 0 ; | |
14647 | PyObject * obj2 = 0 ; | |
14648 | char *kwnames[] = { | |
14649 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14650 | }; | |
14651 | ||
14652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14655 | arg2 = (double) SWIG_AsDouble(obj1); | |
14656 | if (PyErr_Occurred()) SWIG_fail; | |
14657 | arg3 = (double) SWIG_AsDouble(obj2); | |
14658 | if (PyErr_Occurred()) SWIG_fail; | |
14659 | { | |
14660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14661 | (arg1)->SetUserScale(arg2,arg3); | |
14662 | ||
14663 | wxPyEndAllowThreads(__tstate); | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
14665 | } | |
14666 | Py_INCREF(Py_None); resultobj = Py_None; | |
14667 | return resultobj; | |
14668 | fail: | |
14669 | return NULL; | |
14670 | } | |
14671 | ||
14672 | ||
14673 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14674 | PyObject *resultobj; | |
14675 | wxDC *arg1 = (wxDC *) 0 ; | |
14676 | double *arg2 = (double *) 0 ; | |
14677 | double *arg3 = (double *) 0 ; | |
14678 | double temp2 ; | |
14679 | double temp3 ; | |
14680 | PyObject * obj0 = 0 ; | |
14681 | char *kwnames[] = { | |
14682 | (char *) "self", NULL | |
14683 | }; | |
14684 | ||
14685 | arg2 = &temp2; | |
14686 | arg3 = &temp3; | |
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
14688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14690 | { | |
14691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14692 | (arg1)->GetLogicalScale(arg2,arg3); | |
14693 | ||
14694 | wxPyEndAllowThreads(__tstate); | |
14695 | if (PyErr_Occurred()) SWIG_fail; | |
14696 | } | |
14697 | Py_INCREF(Py_None); resultobj = Py_None; | |
14698 | { | |
14699 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14700 | resultobj = t_output_helper(resultobj,o); | |
14701 | } | |
14702 | { | |
14703 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14704 | resultobj = t_output_helper(resultobj,o); | |
14705 | } | |
14706 | return resultobj; | |
14707 | fail: | |
14708 | return NULL; | |
14709 | } | |
14710 | ||
14711 | ||
14712 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14713 | PyObject *resultobj; | |
14714 | wxDC *arg1 = (wxDC *) 0 ; | |
14715 | double arg2 ; | |
14716 | double arg3 ; | |
14717 | PyObject * obj0 = 0 ; | |
14718 | PyObject * obj1 = 0 ; | |
14719 | PyObject * obj2 = 0 ; | |
14720 | char *kwnames[] = { | |
14721 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14722 | }; | |
14723 | ||
14724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14727 | arg2 = (double) SWIG_AsDouble(obj1); | |
14728 | if (PyErr_Occurred()) SWIG_fail; | |
14729 | arg3 = (double) SWIG_AsDouble(obj2); | |
14730 | if (PyErr_Occurred()) SWIG_fail; | |
14731 | { | |
14732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14733 | (arg1)->SetLogicalScale(arg2,arg3); | |
14734 | ||
14735 | wxPyEndAllowThreads(__tstate); | |
14736 | if (PyErr_Occurred()) SWIG_fail; | |
14737 | } | |
14738 | Py_INCREF(Py_None); resultobj = Py_None; | |
14739 | return resultobj; | |
14740 | fail: | |
14741 | return NULL; | |
14742 | } | |
14743 | ||
14744 | ||
14745 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14746 | PyObject *resultobj; | |
14747 | wxDC *arg1 = (wxDC *) 0 ; | |
14748 | wxPoint result; | |
14749 | PyObject * obj0 = 0 ; | |
14750 | char *kwnames[] = { | |
14751 | (char *) "self", NULL | |
14752 | }; | |
14753 | ||
14754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
14755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14757 | { | |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14759 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
14762 | if (PyErr_Occurred()) SWIG_fail; | |
14763 | } | |
14764 | { | |
14765 | wxPoint * resultptr; | |
14766 | resultptr = new wxPoint((wxPoint &) result); | |
14767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14768 | } | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14776 | PyObject *resultobj; | |
14777 | wxDC *arg1 = (wxDC *) 0 ; | |
14778 | int *arg2 = (int *) 0 ; | |
14779 | int *arg3 = (int *) 0 ; | |
14780 | int temp2 ; | |
14781 | int temp3 ; | |
14782 | PyObject * obj0 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "self", NULL | |
14785 | }; | |
14786 | ||
14787 | arg2 = &temp2; | |
14788 | arg3 = &temp3; | |
14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
14790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14792 | { | |
14793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14794 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
14795 | ||
14796 | wxPyEndAllowThreads(__tstate); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | } | |
14799 | Py_INCREF(Py_None); resultobj = Py_None; | |
14800 | { | |
14801 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14802 | resultobj = t_output_helper(resultobj,o); | |
14803 | } | |
14804 | { | |
14805 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14806 | resultobj = t_output_helper(resultobj,o); | |
14807 | } | |
14808 | return resultobj; | |
14809 | fail: | |
14810 | return NULL; | |
14811 | } | |
14812 | ||
14813 | ||
14814 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14815 | PyObject *resultobj; | |
14816 | wxDC *arg1 = (wxDC *) 0 ; | |
14817 | int arg2 ; | |
14818 | int arg3 ; | |
14819 | PyObject * obj0 = 0 ; | |
14820 | PyObject * obj1 = 0 ; | |
14821 | PyObject * obj2 = 0 ; | |
14822 | char *kwnames[] = { | |
14823 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14824 | }; | |
14825 | ||
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14829 | arg2 = (int) SWIG_AsInt(obj1); | |
14830 | if (PyErr_Occurred()) SWIG_fail; | |
14831 | arg3 = (int) SWIG_AsInt(obj2); | |
14832 | if (PyErr_Occurred()) SWIG_fail; | |
14833 | { | |
14834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14835 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14836 | ||
14837 | wxPyEndAllowThreads(__tstate); | |
14838 | if (PyErr_Occurred()) SWIG_fail; | |
14839 | } | |
14840 | Py_INCREF(Py_None); resultobj = Py_None; | |
14841 | return resultobj; | |
14842 | fail: | |
14843 | return NULL; | |
14844 | } | |
14845 | ||
14846 | ||
c24da6d6 RD |
14847 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14848 | PyObject *resultobj; | |
14849 | wxDC *arg1 = (wxDC *) 0 ; | |
14850 | wxPoint *arg2 = 0 ; | |
14851 | wxPoint temp2 ; | |
14852 | PyObject * obj0 = 0 ; | |
14853 | PyObject * obj1 = 0 ; | |
14854 | char *kwnames[] = { | |
14855 | (char *) "self",(char *) "point", NULL | |
14856 | }; | |
14857 | ||
14858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14861 | { | |
14862 | arg2 = &temp2; | |
14863 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14864 | } | |
14865 | { | |
14866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14867 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14868 | ||
14869 | wxPyEndAllowThreads(__tstate); | |
14870 | if (PyErr_Occurred()) SWIG_fail; | |
14871 | } | |
14872 | Py_INCREF(Py_None); resultobj = Py_None; | |
14873 | return resultobj; | |
14874 | fail: | |
14875 | return NULL; | |
14876 | } | |
14877 | ||
14878 | ||
d55e5bfc RD |
14879 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
14880 | PyObject *resultobj; | |
14881 | wxDC *arg1 = (wxDC *) 0 ; | |
14882 | wxPoint result; | |
14883 | PyObject * obj0 = 0 ; | |
14884 | char *kwnames[] = { | |
14885 | (char *) "self", NULL | |
14886 | }; | |
14887 | ||
14888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
14889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14891 | { | |
14892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14893 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
14894 | ||
14895 | wxPyEndAllowThreads(__tstate); | |
14896 | if (PyErr_Occurred()) SWIG_fail; | |
14897 | } | |
14898 | { | |
14899 | wxPoint * resultptr; | |
14900 | resultptr = new wxPoint((wxPoint &) result); | |
14901 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14902 | } | |
14903 | return resultobj; | |
14904 | fail: | |
14905 | return NULL; | |
14906 | } | |
14907 | ||
14908 | ||
14909 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14910 | PyObject *resultobj; | |
14911 | wxDC *arg1 = (wxDC *) 0 ; | |
14912 | int *arg2 = (int *) 0 ; | |
14913 | int *arg3 = (int *) 0 ; | |
14914 | int temp2 ; | |
14915 | int temp3 ; | |
14916 | PyObject * obj0 = 0 ; | |
14917 | char *kwnames[] = { | |
14918 | (char *) "self", NULL | |
14919 | }; | |
14920 | ||
14921 | arg2 = &temp2; | |
14922 | arg3 = &temp3; | |
14923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
14924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14926 | { | |
14927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14928 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
14929 | ||
14930 | wxPyEndAllowThreads(__tstate); | |
14931 | if (PyErr_Occurred()) SWIG_fail; | |
14932 | } | |
14933 | Py_INCREF(Py_None); resultobj = Py_None; | |
14934 | { | |
14935 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14936 | resultobj = t_output_helper(resultobj,o); | |
14937 | } | |
14938 | { | |
14939 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14940 | resultobj = t_output_helper(resultobj,o); | |
14941 | } | |
14942 | return resultobj; | |
14943 | fail: | |
14944 | return NULL; | |
14945 | } | |
14946 | ||
14947 | ||
14948 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14949 | PyObject *resultobj; | |
14950 | wxDC *arg1 = (wxDC *) 0 ; | |
14951 | int arg2 ; | |
14952 | int arg3 ; | |
14953 | PyObject * obj0 = 0 ; | |
14954 | PyObject * obj1 = 0 ; | |
14955 | PyObject * obj2 = 0 ; | |
14956 | char *kwnames[] = { | |
14957 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14958 | }; | |
14959 | ||
14960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14963 | arg2 = (int) SWIG_AsInt(obj1); | |
14964 | if (PyErr_Occurred()) SWIG_fail; | |
14965 | arg3 = (int) SWIG_AsInt(obj2); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
14967 | { | |
14968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14969 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14970 | ||
14971 | wxPyEndAllowThreads(__tstate); | |
14972 | if (PyErr_Occurred()) SWIG_fail; | |
14973 | } | |
14974 | Py_INCREF(Py_None); resultobj = Py_None; | |
14975 | return resultobj; | |
14976 | fail: | |
14977 | return NULL; | |
14978 | } | |
14979 | ||
14980 | ||
c24da6d6 RD |
14981 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14982 | PyObject *resultobj; | |
14983 | wxDC *arg1 = (wxDC *) 0 ; | |
14984 | wxPoint *arg2 = 0 ; | |
14985 | wxPoint temp2 ; | |
14986 | PyObject * obj0 = 0 ; | |
14987 | PyObject * obj1 = 0 ; | |
14988 | char *kwnames[] = { | |
14989 | (char *) "self",(char *) "point", NULL | |
14990 | }; | |
14991 | ||
14992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14995 | { | |
14996 | arg2 = &temp2; | |
14997 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14998 | } | |
14999 | { | |
15000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15001 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
15002 | ||
15003 | wxPyEndAllowThreads(__tstate); | |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | } | |
15006 | Py_INCREF(Py_None); resultobj = Py_None; | |
15007 | return resultobj; | |
15008 | fail: | |
15009 | return NULL; | |
15010 | } | |
15011 | ||
15012 | ||
d55e5bfc RD |
15013 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
15014 | PyObject *resultobj; | |
15015 | wxDC *arg1 = (wxDC *) 0 ; | |
15016 | bool arg2 ; | |
15017 | bool arg3 ; | |
15018 | PyObject * obj0 = 0 ; | |
15019 | PyObject * obj1 = 0 ; | |
15020 | PyObject * obj2 = 0 ; | |
15021 | char *kwnames[] = { | |
15022 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
15023 | }; | |
15024 | ||
15025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15028 | arg2 = (bool) SWIG_AsBool(obj1); | |
15029 | if (PyErr_Occurred()) SWIG_fail; | |
15030 | arg3 = (bool) SWIG_AsBool(obj2); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | { | |
15033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15034 | (arg1)->SetAxisOrientation(arg2,arg3); | |
15035 | ||
15036 | wxPyEndAllowThreads(__tstate); | |
15037 | if (PyErr_Occurred()) SWIG_fail; | |
15038 | } | |
15039 | Py_INCREF(Py_None); resultobj = Py_None; | |
15040 | return resultobj; | |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
15046 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15047 | PyObject *resultobj; | |
15048 | wxDC *arg1 = (wxDC *) 0 ; | |
15049 | int result; | |
15050 | PyObject * obj0 = 0 ; | |
15051 | char *kwnames[] = { | |
15052 | (char *) "self", NULL | |
15053 | }; | |
15054 | ||
15055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15058 | { | |
15059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15060 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
15061 | ||
15062 | wxPyEndAllowThreads(__tstate); | |
15063 | if (PyErr_Occurred()) SWIG_fail; | |
15064 | } | |
15065 | resultobj = SWIG_FromInt((int)result); | |
15066 | return resultobj; | |
15067 | fail: | |
15068 | return NULL; | |
15069 | } | |
15070 | ||
15071 | ||
15072 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15073 | PyObject *resultobj; | |
15074 | wxDC *arg1 = (wxDC *) 0 ; | |
15075 | int arg2 ; | |
15076 | PyObject * obj0 = 0 ; | |
15077 | PyObject * obj1 = 0 ; | |
15078 | char *kwnames[] = { | |
15079 | (char *) "self",(char *) "function", NULL | |
15080 | }; | |
15081 | ||
15082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; | |
15083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15085 | arg2 = (int) SWIG_AsInt(obj1); | |
15086 | if (PyErr_Occurred()) SWIG_fail; | |
15087 | { | |
15088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15089 | (arg1)->SetLogicalFunction(arg2); | |
15090 | ||
15091 | wxPyEndAllowThreads(__tstate); | |
15092 | if (PyErr_Occurred()) SWIG_fail; | |
15093 | } | |
15094 | Py_INCREF(Py_None); resultobj = Py_None; | |
15095 | return resultobj; | |
15096 | fail: | |
15097 | return NULL; | |
15098 | } | |
15099 | ||
15100 | ||
15101 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15102 | PyObject *resultobj; | |
15103 | wxDC *arg1 = (wxDC *) 0 ; | |
15104 | bool arg2 ; | |
15105 | PyObject * obj0 = 0 ; | |
15106 | PyObject * obj1 = 0 ; | |
15107 | char *kwnames[] = { | |
f5b96ee1 | 15108 | (char *) "self",(char *) "optimize", NULL |
d55e5bfc RD |
15109 | }; |
15110 | ||
15111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15114 | arg2 = (bool) SWIG_AsBool(obj1); | |
15115 | if (PyErr_Occurred()) SWIG_fail; | |
15116 | { | |
15117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15118 | (arg1)->SetOptimization(arg2); | |
15119 | ||
15120 | wxPyEndAllowThreads(__tstate); | |
15121 | if (PyErr_Occurred()) SWIG_fail; | |
15122 | } | |
15123 | Py_INCREF(Py_None); resultobj = Py_None; | |
15124 | return resultobj; | |
15125 | fail: | |
15126 | return NULL; | |
15127 | } | |
15128 | ||
15129 | ||
15130 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15131 | PyObject *resultobj; | |
15132 | wxDC *arg1 = (wxDC *) 0 ; | |
15133 | bool result; | |
15134 | PyObject * obj0 = 0 ; | |
15135 | char *kwnames[] = { | |
15136 | (char *) "self", NULL | |
15137 | }; | |
15138 | ||
15139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15142 | { | |
15143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15144 | result = (bool)(arg1)->GetOptimization(); | |
15145 | ||
15146 | wxPyEndAllowThreads(__tstate); | |
15147 | if (PyErr_Occurred()) SWIG_fail; | |
15148 | } | |
15149 | { | |
15150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15151 | } | |
15152 | return resultobj; | |
15153 | fail: | |
15154 | return NULL; | |
15155 | } | |
15156 | ||
15157 | ||
15158 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15159 | PyObject *resultobj; | |
15160 | wxDC *arg1 = (wxDC *) 0 ; | |
15161 | int arg2 ; | |
15162 | int arg3 ; | |
15163 | PyObject * obj0 = 0 ; | |
15164 | PyObject * obj1 = 0 ; | |
15165 | PyObject * obj2 = 0 ; | |
15166 | char *kwnames[] = { | |
15167 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15168 | }; | |
15169 | ||
15170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15173 | arg2 = (int) SWIG_AsInt(obj1); | |
15174 | if (PyErr_Occurred()) SWIG_fail; | |
15175 | arg3 = (int) SWIG_AsInt(obj2); | |
15176 | if (PyErr_Occurred()) SWIG_fail; | |
15177 | { | |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15179 | (arg1)->CalcBoundingBox(arg2,arg3); | |
15180 | ||
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
15184 | Py_INCREF(Py_None); resultobj = Py_None; | |
15185 | return resultobj; | |
15186 | fail: | |
15187 | return NULL; | |
15188 | } | |
15189 | ||
15190 | ||
c24da6d6 RD |
15191 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
15192 | PyObject *resultobj; | |
15193 | wxDC *arg1 = (wxDC *) 0 ; | |
15194 | wxPoint *arg2 = 0 ; | |
15195 | wxPoint temp2 ; | |
15196 | PyObject * obj0 = 0 ; | |
15197 | PyObject * obj1 = 0 ; | |
15198 | char *kwnames[] = { | |
15199 | (char *) "self",(char *) "point", NULL | |
15200 | }; | |
15201 | ||
15202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
15203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15205 | { | |
15206 | arg2 = &temp2; | |
15207 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15208 | } | |
15209 | { | |
15210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15211 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
15212 | ||
15213 | wxPyEndAllowThreads(__tstate); | |
15214 | if (PyErr_Occurred()) SWIG_fail; | |
15215 | } | |
15216 | Py_INCREF(Py_None); resultobj = Py_None; | |
15217 | return resultobj; | |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
d55e5bfc RD |
15223 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
15224 | PyObject *resultobj; | |
15225 | wxDC *arg1 = (wxDC *) 0 ; | |
15226 | PyObject * obj0 = 0 ; | |
15227 | char *kwnames[] = { | |
15228 | (char *) "self", NULL | |
15229 | }; | |
15230 | ||
15231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15234 | { | |
15235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15236 | (arg1)->ResetBoundingBox(); | |
15237 | ||
15238 | wxPyEndAllowThreads(__tstate); | |
15239 | if (PyErr_Occurred()) SWIG_fail; | |
15240 | } | |
15241 | Py_INCREF(Py_None); resultobj = Py_None; | |
15242 | return resultobj; | |
15243 | fail: | |
15244 | return NULL; | |
15245 | } | |
15246 | ||
15247 | ||
15248 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15249 | PyObject *resultobj; | |
15250 | wxDC *arg1 = (wxDC *) 0 ; | |
15251 | int result; | |
15252 | PyObject * obj0 = 0 ; | |
15253 | char *kwnames[] = { | |
15254 | (char *) "self", NULL | |
15255 | }; | |
15256 | ||
15257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15260 | { | |
15261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15262 | result = (int)((wxDC const *)arg1)->MinX(); | |
15263 | ||
15264 | wxPyEndAllowThreads(__tstate); | |
15265 | if (PyErr_Occurred()) SWIG_fail; | |
15266 | } | |
15267 | resultobj = SWIG_FromInt((int)result); | |
15268 | return resultobj; | |
15269 | fail: | |
15270 | return NULL; | |
15271 | } | |
15272 | ||
15273 | ||
15274 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15275 | PyObject *resultobj; | |
15276 | wxDC *arg1 = (wxDC *) 0 ; | |
15277 | int result; | |
15278 | PyObject * obj0 = 0 ; | |
15279 | char *kwnames[] = { | |
15280 | (char *) "self", NULL | |
15281 | }; | |
15282 | ||
15283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15286 | { | |
15287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15288 | result = (int)((wxDC const *)arg1)->MaxX(); | |
15289 | ||
15290 | wxPyEndAllowThreads(__tstate); | |
15291 | if (PyErr_Occurred()) SWIG_fail; | |
15292 | } | |
15293 | resultobj = SWIG_FromInt((int)result); | |
15294 | return resultobj; | |
15295 | fail: | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
15300 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15301 | PyObject *resultobj; | |
15302 | wxDC *arg1 = (wxDC *) 0 ; | |
15303 | int result; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15312 | { | |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | result = (int)((wxDC const *)arg1)->MinY(); | |
15315 | ||
15316 | wxPyEndAllowThreads(__tstate); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
15319 | resultobj = SWIG_FromInt((int)result); | |
15320 | return resultobj; | |
15321 | fail: | |
15322 | return NULL; | |
15323 | } | |
15324 | ||
15325 | ||
15326 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15327 | PyObject *resultobj; | |
15328 | wxDC *arg1 = (wxDC *) 0 ; | |
15329 | int result; | |
15330 | PyObject * obj0 = 0 ; | |
15331 | char *kwnames[] = { | |
15332 | (char *) "self", NULL | |
15333 | }; | |
15334 | ||
15335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (int)((wxDC const *)arg1)->MaxY(); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | resultobj = SWIG_FromInt((int)result); | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15353 | PyObject *resultobj; | |
15354 | wxDC *arg1 = (wxDC *) 0 ; | |
15355 | int *arg2 = (int *) 0 ; | |
15356 | int *arg3 = (int *) 0 ; | |
15357 | int *arg4 = (int *) 0 ; | |
15358 | int *arg5 = (int *) 0 ; | |
15359 | int temp2 ; | |
15360 | int temp3 ; | |
15361 | int temp4 ; | |
15362 | int temp5 ; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | char *kwnames[] = { | |
15365 | (char *) "self", NULL | |
15366 | }; | |
15367 | ||
15368 | arg2 = &temp2; | |
15369 | arg3 = &temp3; | |
15370 | arg4 = &temp4; | |
15371 | arg5 = &temp5; | |
15372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
15373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15375 | { | |
15376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15377 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15378 | ||
15379 | wxPyEndAllowThreads(__tstate); | |
15380 | if (PyErr_Occurred()) SWIG_fail; | |
15381 | } | |
15382 | Py_INCREF(Py_None); resultobj = Py_None; | |
15383 | { | |
15384 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15385 | resultobj = t_output_helper(resultobj,o); | |
15386 | } | |
15387 | { | |
15388 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15389 | resultobj = t_output_helper(resultobj,o); | |
15390 | } | |
15391 | { | |
15392 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15393 | resultobj = t_output_helper(resultobj,o); | |
15394 | } | |
15395 | { | |
15396 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
15397 | resultobj = t_output_helper(resultobj,o); | |
15398 | } | |
15399 | return resultobj; | |
15400 | fail: | |
15401 | return NULL; | |
15402 | } | |
15403 | ||
15404 | ||
0439c23b RD |
15405 | static PyObject *_wrap_DC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
15406 | PyObject *resultobj; | |
15407 | wxDC *arg1 = (wxDC *) 0 ; | |
15408 | long result; | |
15409 | PyObject * obj0 = 0 ; | |
15410 | char *kwnames[] = { | |
15411 | (char *) "self", NULL | |
15412 | }; | |
15413 | ||
15414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail; | |
15415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15417 | { | |
15418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15419 | result = (long)(arg1)->GetHDC(); | |
15420 | ||
15421 | wxPyEndAllowThreads(__tstate); | |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
15423 | } | |
15424 | resultobj = SWIG_FromLong((long)result); | |
15425 | return resultobj; | |
15426 | fail: | |
15427 | return NULL; | |
15428 | } | |
15429 | ||
15430 | ||
d55e5bfc RD |
15431 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { |
15432 | PyObject *resultobj; | |
15433 | wxDC *arg1 = (wxDC *) 0 ; | |
15434 | PyObject *arg2 = (PyObject *) 0 ; | |
15435 | PyObject *arg3 = (PyObject *) 0 ; | |
15436 | PyObject *arg4 = (PyObject *) 0 ; | |
15437 | PyObject *result; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | PyObject * obj1 = 0 ; | |
15440 | PyObject * obj2 = 0 ; | |
15441 | PyObject * obj3 = 0 ; | |
15442 | char *kwnames[] = { | |
15443 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15444 | }; | |
15445 | ||
15446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15449 | arg2 = obj1; | |
15450 | arg3 = obj2; | |
15451 | arg4 = obj3; | |
15452 | { | |
15453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15454 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15455 | ||
15456 | wxPyEndAllowThreads(__tstate); | |
15457 | if (PyErr_Occurred()) SWIG_fail; | |
15458 | } | |
15459 | resultobj = result; | |
15460 | return resultobj; | |
15461 | fail: | |
15462 | return NULL; | |
15463 | } | |
15464 | ||
15465 | ||
15466 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15467 | PyObject *resultobj; | |
15468 | wxDC *arg1 = (wxDC *) 0 ; | |
15469 | PyObject *arg2 = (PyObject *) 0 ; | |
15470 | PyObject *arg3 = (PyObject *) 0 ; | |
15471 | PyObject *arg4 = (PyObject *) 0 ; | |
15472 | PyObject *result; | |
15473 | PyObject * obj0 = 0 ; | |
15474 | PyObject * obj1 = 0 ; | |
15475 | PyObject * obj2 = 0 ; | |
15476 | PyObject * obj3 = 0 ; | |
15477 | char *kwnames[] = { | |
15478 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15479 | }; | |
15480 | ||
15481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15484 | arg2 = obj1; | |
15485 | arg3 = obj2; | |
15486 | arg4 = obj3; | |
15487 | { | |
15488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15489 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15490 | ||
15491 | wxPyEndAllowThreads(__tstate); | |
15492 | if (PyErr_Occurred()) SWIG_fail; | |
15493 | } | |
15494 | resultobj = result; | |
15495 | return resultobj; | |
15496 | fail: | |
15497 | return NULL; | |
15498 | } | |
15499 | ||
15500 | ||
15501 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15502 | PyObject *resultobj; | |
15503 | wxDC *arg1 = (wxDC *) 0 ; | |
15504 | PyObject *arg2 = (PyObject *) 0 ; | |
15505 | PyObject *arg3 = (PyObject *) 0 ; | |
15506 | PyObject *arg4 = (PyObject *) 0 ; | |
15507 | PyObject *result; | |
15508 | PyObject * obj0 = 0 ; | |
15509 | PyObject * obj1 = 0 ; | |
15510 | PyObject * obj2 = 0 ; | |
15511 | PyObject * obj3 = 0 ; | |
15512 | char *kwnames[] = { | |
15513 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15514 | }; | |
15515 | ||
15516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15519 | arg2 = obj1; | |
15520 | arg3 = obj2; | |
15521 | arg4 = obj3; | |
15522 | { | |
15523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15524 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15525 | ||
15526 | wxPyEndAllowThreads(__tstate); | |
15527 | if (PyErr_Occurred()) SWIG_fail; | |
15528 | } | |
15529 | resultobj = result; | |
15530 | return resultobj; | |
15531 | fail: | |
15532 | return NULL; | |
15533 | } | |
15534 | ||
15535 | ||
15536 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15537 | PyObject *resultobj; | |
15538 | wxDC *arg1 = (wxDC *) 0 ; | |
15539 | PyObject *arg2 = (PyObject *) 0 ; | |
15540 | PyObject *arg3 = (PyObject *) 0 ; | |
15541 | PyObject *arg4 = (PyObject *) 0 ; | |
15542 | PyObject *result; | |
15543 | PyObject * obj0 = 0 ; | |
15544 | PyObject * obj1 = 0 ; | |
15545 | PyObject * obj2 = 0 ; | |
15546 | PyObject * obj3 = 0 ; | |
15547 | char *kwnames[] = { | |
15548 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15549 | }; | |
15550 | ||
15551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15554 | arg2 = obj1; | |
15555 | arg3 = obj2; | |
15556 | arg4 = obj3; | |
15557 | { | |
15558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15559 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15560 | ||
15561 | wxPyEndAllowThreads(__tstate); | |
15562 | if (PyErr_Occurred()) SWIG_fail; | |
15563 | } | |
15564 | resultobj = result; | |
15565 | return resultobj; | |
15566 | fail: | |
15567 | return NULL; | |
15568 | } | |
15569 | ||
15570 | ||
15571 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15572 | PyObject *resultobj; | |
15573 | wxDC *arg1 = (wxDC *) 0 ; | |
15574 | PyObject *arg2 = (PyObject *) 0 ; | |
15575 | PyObject *arg3 = (PyObject *) 0 ; | |
15576 | PyObject *arg4 = (PyObject *) 0 ; | |
15577 | PyObject *result; | |
15578 | PyObject * obj0 = 0 ; | |
15579 | PyObject * obj1 = 0 ; | |
15580 | PyObject * obj2 = 0 ; | |
15581 | PyObject * obj3 = 0 ; | |
15582 | char *kwnames[] = { | |
15583 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15584 | }; | |
15585 | ||
15586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15589 | arg2 = obj1; | |
15590 | arg3 = obj2; | |
15591 | arg4 = obj3; | |
15592 | { | |
15593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15594 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15595 | ||
15596 | wxPyEndAllowThreads(__tstate); | |
15597 | if (PyErr_Occurred()) SWIG_fail; | |
15598 | } | |
15599 | resultobj = result; | |
15600 | return resultobj; | |
15601 | fail: | |
15602 | return NULL; | |
15603 | } | |
15604 | ||
15605 | ||
15606 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15607 | PyObject *resultobj; | |
15608 | wxDC *arg1 = (wxDC *) 0 ; | |
15609 | PyObject *arg2 = (PyObject *) 0 ; | |
15610 | PyObject *arg3 = (PyObject *) 0 ; | |
15611 | PyObject *arg4 = (PyObject *) 0 ; | |
15612 | PyObject *arg5 = (PyObject *) 0 ; | |
15613 | PyObject *result; | |
15614 | PyObject * obj0 = 0 ; | |
15615 | PyObject * obj1 = 0 ; | |
15616 | PyObject * obj2 = 0 ; | |
15617 | PyObject * obj3 = 0 ; | |
15618 | PyObject * obj4 = 0 ; | |
15619 | char *kwnames[] = { | |
15620 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15621 | }; | |
15622 | ||
15623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15626 | arg2 = obj1; | |
15627 | arg3 = obj2; | |
15628 | arg4 = obj3; | |
15629 | arg5 = obj4; | |
15630 | { | |
15631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15632 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15633 | ||
15634 | wxPyEndAllowThreads(__tstate); | |
15635 | if (PyErr_Occurred()) SWIG_fail; | |
15636 | } | |
15637 | resultobj = result; | |
15638 | return resultobj; | |
15639 | fail: | |
15640 | return NULL; | |
15641 | } | |
15642 | ||
15643 | ||
15644 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
15645 | PyObject *obj; | |
15646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15647 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15648 | Py_INCREF(obj); | |
15649 | return Py_BuildValue((char *)""); | |
15650 | } | |
15651 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15652 | PyObject *resultobj; | |
15653 | wxMemoryDC *result; | |
15654 | char *kwnames[] = { | |
15655 | NULL | |
15656 | }; | |
15657 | ||
15658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15659 | { | |
0439c23b | 15660 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15662 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15663 | ||
15664 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15665 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15666 | } |
15667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15668 | return resultobj; | |
15669 | fail: | |
15670 | return NULL; | |
15671 | } | |
15672 | ||
15673 | ||
15674 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15675 | PyObject *resultobj; | |
15676 | wxDC *arg1 = (wxDC *) 0 ; | |
15677 | wxMemoryDC *result; | |
15678 | PyObject * obj0 = 0 ; | |
15679 | char *kwnames[] = { | |
15680 | (char *) "oldDC", NULL | |
15681 | }; | |
15682 | ||
15683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15686 | { | |
0439c23b | 15687 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15689 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15690 | ||
15691 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15692 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15693 | } |
15694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15695 | return resultobj; | |
15696 | fail: | |
15697 | return NULL; | |
15698 | } | |
15699 | ||
15700 | ||
15701 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15702 | PyObject *resultobj; | |
15703 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15704 | wxBitmap *arg2 = 0 ; | |
15705 | PyObject * obj0 = 0 ; | |
15706 | PyObject * obj1 = 0 ; | |
15707 | char *kwnames[] = { | |
15708 | (char *) "self",(char *) "bitmap", NULL | |
15709 | }; | |
15710 | ||
15711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, | |
15713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15714 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15715 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15716 | SWIG_fail; | |
15717 | if (arg2 == NULL) { | |
15718 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15719 | SWIG_fail; | |
15720 | } | |
15721 | { | |
15722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15723 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15724 | ||
15725 | wxPyEndAllowThreads(__tstate); | |
15726 | if (PyErr_Occurred()) SWIG_fail; | |
15727 | } | |
15728 | Py_INCREF(Py_None); resultobj = Py_None; | |
15729 | return resultobj; | |
15730 | fail: | |
15731 | return NULL; | |
15732 | } | |
15733 | ||
15734 | ||
15735 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
15736 | PyObject *obj; | |
15737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15738 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15739 | Py_INCREF(obj); | |
15740 | return Py_BuildValue((char *)""); | |
15741 | } | |
15742 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { | |
15743 | PyObject *resultobj; | |
15744 | wxDC *arg1 = (wxDC *) 0 ; | |
15745 | wxBitmap *arg2 = 0 ; | |
15746 | wxBufferedDC *result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | PyObject * obj1 = 0 ; | |
15749 | ||
15750 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15755 | SWIG_fail; | |
15756 | if (arg2 == NULL) { | |
15757 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15758 | SWIG_fail; | |
15759 | } | |
15760 | { | |
0439c23b | 15761 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15763 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15764 | ||
15765 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15766 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15767 | } |
15768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15769 | return resultobj; | |
15770 | fail: | |
15771 | return NULL; | |
15772 | } | |
15773 | ||
15774 | ||
15775 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { | |
15776 | PyObject *resultobj; | |
15777 | wxDC *arg1 = (wxDC *) 0 ; | |
15778 | wxSize *arg2 = 0 ; | |
15779 | wxBufferedDC *result; | |
15780 | wxSize temp2 ; | |
15781 | PyObject * obj0 = 0 ; | |
15782 | PyObject * obj1 = 0 ; | |
15783 | ||
15784 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15787 | { | |
15788 | arg2 = &temp2; | |
15789 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15790 | } | |
15791 | { | |
0439c23b | 15792 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15794 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15795 | ||
15796 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15797 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15798 | } |
15799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15800 | return resultobj; | |
15801 | fail: | |
15802 | return NULL; | |
15803 | } | |
15804 | ||
15805 | ||
15806 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15807 | int argc; | |
15808 | PyObject *argv[3]; | |
15809 | int ii; | |
15810 | ||
15811 | argc = PyObject_Length(args); | |
15812 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
15813 | argv[ii] = PyTuple_GetItem(args,ii); | |
15814 | } | |
15815 | if (argc == 2) { | |
15816 | int _v; | |
15817 | { | |
15818 | void *ptr; | |
15819 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15820 | _v = 0; | |
15821 | PyErr_Clear(); | |
15822 | } else { | |
15823 | _v = 1; | |
15824 | } | |
15825 | } | |
15826 | if (_v) { | |
15827 | { | |
15828 | void *ptr; | |
15829 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
15830 | _v = 0; | |
15831 | PyErr_Clear(); | |
15832 | } else { | |
15833 | _v = 1; | |
15834 | } | |
15835 | } | |
15836 | if (_v) { | |
15837 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15838 | } | |
15839 | } | |
15840 | } | |
15841 | if (argc == 2) { | |
15842 | int _v; | |
15843 | { | |
15844 | void *ptr; | |
15845 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15846 | _v = 0; | |
15847 | PyErr_Clear(); | |
15848 | } else { | |
15849 | _v = 1; | |
15850 | } | |
15851 | } | |
15852 | if (_v) { | |
15853 | { | |
15854 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15855 | } | |
15856 | if (_v) { | |
15857 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
15858 | } | |
15859 | } | |
15860 | } | |
15861 | ||
15862 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15863 | return NULL; | |
15864 | } | |
15865 | ||
15866 | ||
d55e5bfc RD |
15867 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
15868 | PyObject *resultobj; | |
15869 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15870 | PyObject * obj0 = 0 ; | |
15871 | char *kwnames[] = { | |
15872 | (char *) "self", NULL | |
15873 | }; | |
15874 | ||
15875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
15876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15878 | { | |
15879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15880 | delete arg1; | |
15881 | ||
15882 | wxPyEndAllowThreads(__tstate); | |
15883 | if (PyErr_Occurred()) SWIG_fail; | |
15884 | } | |
15885 | Py_INCREF(Py_None); resultobj = Py_None; | |
15886 | return resultobj; | |
15887 | fail: | |
15888 | return NULL; | |
15889 | } | |
15890 | ||
15891 | ||
15892 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15893 | PyObject *resultobj; | |
15894 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15895 | PyObject * obj0 = 0 ; | |
15896 | char *kwnames[] = { | |
15897 | (char *) "self", NULL | |
15898 | }; | |
15899 | ||
15900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
15901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15903 | { | |
15904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15905 | (arg1)->UnMask(); | |
15906 | ||
15907 | wxPyEndAllowThreads(__tstate); | |
15908 | if (PyErr_Occurred()) SWIG_fail; | |
15909 | } | |
15910 | Py_INCREF(Py_None); resultobj = Py_None; | |
15911 | return resultobj; | |
15912 | fail: | |
15913 | return NULL; | |
15914 | } | |
15915 | ||
15916 | ||
15917 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
15918 | PyObject *obj; | |
15919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15920 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15921 | Py_INCREF(obj); | |
15922 | return Py_BuildValue((char *)""); | |
15923 | } | |
15924 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15925 | PyObject *resultobj; | |
15926 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15927 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
15928 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
15929 | wxBufferedPaintDC *result; | |
15930 | PyObject * obj0 = 0 ; | |
15931 | PyObject * obj1 = 0 ; | |
15932 | char *kwnames[] = { | |
15933 | (char *) "window",(char *) "buffer", NULL | |
15934 | }; | |
15935 | ||
15936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
15937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15939 | if (obj1) { | |
15940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15941 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15942 | SWIG_fail; | |
15943 | if (arg2 == NULL) { | |
15944 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15945 | SWIG_fail; | |
15946 | } | |
15947 | } | |
15948 | { | |
0439c23b | 15949 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15951 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
15952 | ||
15953 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15954 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15955 | } |
15956 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
15957 | return resultobj; | |
15958 | fail: | |
15959 | return NULL; | |
15960 | } | |
15961 | ||
15962 | ||
15963 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
15964 | PyObject *obj; | |
15965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15966 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15967 | Py_INCREF(obj); | |
15968 | return Py_BuildValue((char *)""); | |
15969 | } | |
15970 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15971 | PyObject *resultobj; | |
15972 | wxScreenDC *result; | |
15973 | char *kwnames[] = { | |
15974 | NULL | |
15975 | }; | |
15976 | ||
15977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15978 | { | |
0439c23b | 15979 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15981 | result = (wxScreenDC *)new wxScreenDC(); | |
15982 | ||
15983 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15984 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15985 | } |
15986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
15987 | return resultobj; | |
15988 | fail: | |
15989 | return NULL; | |
15990 | } | |
15991 | ||
15992 | ||
15993 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15994 | PyObject *resultobj; | |
15995 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15997 | bool result; | |
15998 | PyObject * obj0 = 0 ; | |
15999 | PyObject * obj1 = 0 ; | |
16000 | char *kwnames[] = { | |
16001 | (char *) "self",(char *) "window", NULL | |
16002 | }; | |
16003 | ||
16004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
16005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16009 | { | |
16010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16011 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16012 | ||
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
16016 | { | |
16017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16018 | } | |
16019 | return resultobj; | |
16020 | fail: | |
16021 | return NULL; | |
16022 | } | |
16023 | ||
16024 | ||
16025 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16026 | PyObject *resultobj; | |
16027 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16028 | wxRect *arg2 = (wxRect *) NULL ; | |
16029 | bool result; | |
16030 | PyObject * obj0 = 0 ; | |
16031 | PyObject * obj1 = 0 ; | |
16032 | char *kwnames[] = { | |
16033 | (char *) "self",(char *) "rect", NULL | |
16034 | }; | |
16035 | ||
16036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
16037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16039 | if (obj1) { | |
16040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16042 | } | |
16043 | { | |
16044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16045 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16046 | ||
16047 | wxPyEndAllowThreads(__tstate); | |
16048 | if (PyErr_Occurred()) SWIG_fail; | |
16049 | } | |
16050 | { | |
16051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16052 | } | |
16053 | return resultobj; | |
16054 | fail: | |
16055 | return NULL; | |
16056 | } | |
16057 | ||
16058 | ||
16059 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16060 | PyObject *resultobj; | |
16061 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16062 | bool result; | |
16063 | PyObject * obj0 = 0 ; | |
16064 | char *kwnames[] = { | |
16065 | (char *) "self", NULL | |
16066 | }; | |
16067 | ||
16068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
16069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16071 | { | |
16072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16073 | result = (bool)(arg1)->EndDrawingOnTop(); | |
16074 | ||
16075 | wxPyEndAllowThreads(__tstate); | |
16076 | if (PyErr_Occurred()) SWIG_fail; | |
16077 | } | |
16078 | { | |
16079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16080 | } | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
16087 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
16088 | PyObject *obj; | |
16089 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16090 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
16091 | Py_INCREF(obj); | |
16092 | return Py_BuildValue((char *)""); | |
16093 | } | |
16094 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16095 | PyObject *resultobj; | |
16096 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16097 | wxClientDC *result; | |
16098 | PyObject * obj0 = 0 ; | |
16099 | char *kwnames[] = { | |
16100 | (char *) "win", NULL | |
16101 | }; | |
16102 | ||
16103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
16104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16106 | { | |
0439c23b | 16107 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16109 | result = (wxClientDC *)new wxClientDC(arg1); | |
16110 | ||
16111 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16112 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16113 | } |
16114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | return NULL; | |
16118 | } | |
16119 | ||
16120 | ||
16121 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
16122 | PyObject *obj; | |
16123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16124 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
16125 | Py_INCREF(obj); | |
16126 | return Py_BuildValue((char *)""); | |
16127 | } | |
16128 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16129 | PyObject *resultobj; | |
16130 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16131 | wxPaintDC *result; | |
16132 | PyObject * obj0 = 0 ; | |
16133 | char *kwnames[] = { | |
16134 | (char *) "win", NULL | |
16135 | }; | |
16136 | ||
16137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
16138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16140 | { | |
0439c23b | 16141 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16143 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
16144 | ||
16145 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16146 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16147 | } |
16148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
16149 | return resultobj; | |
16150 | fail: | |
16151 | return NULL; | |
16152 | } | |
16153 | ||
16154 | ||
16155 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
16156 | PyObject *obj; | |
16157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16158 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
16159 | Py_INCREF(obj); | |
16160 | return Py_BuildValue((char *)""); | |
16161 | } | |
16162 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16163 | PyObject *resultobj; | |
16164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16165 | wxWindowDC *result; | |
16166 | PyObject * obj0 = 0 ; | |
16167 | char *kwnames[] = { | |
16168 | (char *) "win", NULL | |
16169 | }; | |
16170 | ||
16171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
16172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16174 | { | |
0439c23b | 16175 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16177 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
16178 | ||
16179 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16180 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16181 | } |
16182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
16183 | return resultobj; | |
16184 | fail: | |
16185 | return NULL; | |
16186 | } | |
16187 | ||
16188 | ||
16189 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
16190 | PyObject *obj; | |
16191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16192 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
16193 | Py_INCREF(obj); | |
16194 | return Py_BuildValue((char *)""); | |
16195 | } | |
16196 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16197 | PyObject *resultobj; | |
16198 | wxDC *arg1 = 0 ; | |
16199 | bool arg2 ; | |
16200 | wxMirrorDC *result; | |
16201 | PyObject * obj0 = 0 ; | |
16202 | PyObject * obj1 = 0 ; | |
16203 | char *kwnames[] = { | |
16204 | (char *) "dc",(char *) "mirror", NULL | |
16205 | }; | |
16206 | ||
16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
16208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16209 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16210 | SWIG_fail; | |
16211 | if (arg1 == NULL) { | |
16212 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16213 | SWIG_fail; | |
16214 | } | |
16215 | arg2 = (bool) SWIG_AsBool(obj1); | |
16216 | if (PyErr_Occurred()) SWIG_fail; | |
16217 | { | |
0439c23b | 16218 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16220 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
16221 | ||
16222 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16223 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16224 | } |
16225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
16226 | return resultobj; | |
16227 | fail: | |
16228 | return NULL; | |
16229 | } | |
16230 | ||
16231 | ||
16232 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
16233 | PyObject *obj; | |
16234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16235 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
16236 | Py_INCREF(obj); | |
16237 | return Py_BuildValue((char *)""); | |
16238 | } | |
16239 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16240 | PyObject *resultobj; | |
16241 | wxPrintData *arg1 = 0 ; | |
16242 | wxPostScriptDC *result; | |
16243 | PyObject * obj0 = 0 ; | |
16244 | char *kwnames[] = { | |
16245 | (char *) "printData", NULL | |
16246 | }; | |
16247 | ||
16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
16249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16250 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16251 | SWIG_fail; | |
16252 | if (arg1 == NULL) { | |
16253 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16254 | SWIG_fail; | |
16255 | } | |
16256 | { | |
0439c23b | 16257 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16259 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
16260 | ||
16261 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16262 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16263 | } |
16264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
16265 | return resultobj; | |
16266 | fail: | |
16267 | return NULL; | |
16268 | } | |
16269 | ||
16270 | ||
16271 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16272 | PyObject *resultobj; | |
16273 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16274 | wxPrintData *result; | |
16275 | PyObject * obj0 = 0 ; | |
16276 | char *kwnames[] = { | |
16277 | (char *) "self", NULL | |
16278 | }; | |
16279 | ||
16280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
16281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16283 | { | |
16284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16285 | { | |
16286 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16287 | result = (wxPrintData *) &_result_ref; | |
16288 | } | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
16293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
16294 | return resultobj; | |
16295 | fail: | |
16296 | return NULL; | |
16297 | } | |
16298 | ||
16299 | ||
16300 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16301 | PyObject *resultobj; | |
16302 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16303 | wxPrintData *arg2 = 0 ; | |
16304 | PyObject * obj0 = 0 ; | |
16305 | PyObject * obj1 = 0 ; | |
16306 | char *kwnames[] = { | |
16307 | (char *) "self",(char *) "data", NULL | |
16308 | }; | |
16309 | ||
16310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
16311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16313 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16314 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16315 | SWIG_fail; | |
16316 | if (arg2 == NULL) { | |
16317 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16318 | SWIG_fail; | |
16319 | } | |
16320 | { | |
16321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16322 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16323 | ||
16324 | wxPyEndAllowThreads(__tstate); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | } | |
16327 | Py_INCREF(Py_None); resultobj = Py_None; | |
16328 | return resultobj; | |
16329 | fail: | |
16330 | return NULL; | |
16331 | } | |
16332 | ||
16333 | ||
16334 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16335 | PyObject *resultobj; | |
16336 | int arg1 ; | |
16337 | PyObject * obj0 = 0 ; | |
16338 | char *kwnames[] = { | |
16339 | (char *) "ppi", NULL | |
16340 | }; | |
16341 | ||
16342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
16343 | arg1 = (int) SWIG_AsInt(obj0); | |
16344 | if (PyErr_Occurred()) SWIG_fail; | |
16345 | { | |
16346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16347 | wxPostScriptDC::SetResolution(arg1); | |
16348 | ||
16349 | wxPyEndAllowThreads(__tstate); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | } | |
16352 | Py_INCREF(Py_None); resultobj = Py_None; | |
16353 | return resultobj; | |
16354 | fail: | |
16355 | return NULL; | |
16356 | } | |
16357 | ||
16358 | ||
16359 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16360 | PyObject *resultobj; | |
16361 | int result; | |
16362 | char *kwnames[] = { | |
16363 | NULL | |
16364 | }; | |
16365 | ||
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | result = (int)wxPostScriptDC::GetResolution(); | |
16370 | ||
16371 | wxPyEndAllowThreads(__tstate); | |
16372 | if (PyErr_Occurred()) SWIG_fail; | |
16373 | } | |
16374 | resultobj = SWIG_FromInt((int)result); | |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
16381 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
16382 | PyObject *obj; | |
16383 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16384 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16385 | Py_INCREF(obj); | |
16386 | return Py_BuildValue((char *)""); | |
16387 | } | |
16388 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16389 | PyObject *resultobj; | |
16390 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16391 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16392 | wxMetaFile *result; | |
16393 | bool temp1 = False ; | |
16394 | PyObject * obj0 = 0 ; | |
16395 | char *kwnames[] = { | |
16396 | (char *) "filename", NULL | |
16397 | }; | |
16398 | ||
16399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16400 | if (obj0) { | |
16401 | { | |
16402 | arg1 = wxString_in_helper(obj0); | |
16403 | if (arg1 == NULL) SWIG_fail; | |
16404 | temp1 = True; | |
16405 | } | |
16406 | } | |
16407 | { | |
0439c23b | 16408 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16410 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16411 | ||
16412 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16413 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16414 | } |
16415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
16416 | { | |
16417 | if (temp1) | |
16418 | delete arg1; | |
16419 | } | |
16420 | return resultobj; | |
16421 | fail: | |
16422 | { | |
16423 | if (temp1) | |
16424 | delete arg1; | |
16425 | } | |
16426 | return NULL; | |
16427 | } | |
16428 | ||
16429 | ||
16430 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16431 | PyObject *resultobj; | |
16432 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16433 | PyObject * obj0 = 0 ; | |
16434 | char *kwnames[] = { | |
16435 | (char *) "self", NULL | |
16436 | }; | |
16437 | ||
16438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
16439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16441 | { | |
16442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16443 | delete arg1; | |
16444 | ||
16445 | wxPyEndAllowThreads(__tstate); | |
16446 | if (PyErr_Occurred()) SWIG_fail; | |
16447 | } | |
16448 | Py_INCREF(Py_None); resultobj = Py_None; | |
16449 | return resultobj; | |
16450 | fail: | |
16451 | return NULL; | |
16452 | } | |
16453 | ||
16454 | ||
16455 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16456 | PyObject *resultobj; | |
16457 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16458 | bool result; | |
16459 | PyObject * obj0 = 0 ; | |
16460 | char *kwnames[] = { | |
16461 | (char *) "self", NULL | |
16462 | }; | |
16463 | ||
16464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
16465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16467 | { | |
16468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16469 | result = (bool)(arg1)->Ok(); | |
16470 | ||
16471 | wxPyEndAllowThreads(__tstate); | |
16472 | if (PyErr_Occurred()) SWIG_fail; | |
16473 | } | |
16474 | { | |
16475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16476 | } | |
16477 | return resultobj; | |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
16483 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16484 | PyObject *resultobj; | |
16485 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16486 | int arg2 = (int) 0 ; | |
16487 | int arg3 = (int) 0 ; | |
16488 | bool result; | |
16489 | PyObject * obj0 = 0 ; | |
16490 | PyObject * obj1 = 0 ; | |
16491 | PyObject * obj2 = 0 ; | |
16492 | char *kwnames[] = { | |
16493 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16494 | }; | |
16495 | ||
16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16499 | if (obj1) { | |
16500 | arg2 = (int) SWIG_AsInt(obj1); | |
16501 | if (PyErr_Occurred()) SWIG_fail; | |
16502 | } | |
16503 | if (obj2) { | |
16504 | arg3 = (int) SWIG_AsInt(obj2); | |
16505 | if (PyErr_Occurred()) SWIG_fail; | |
16506 | } | |
16507 | { | |
16508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16509 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
16510 | ||
16511 | wxPyEndAllowThreads(__tstate); | |
16512 | if (PyErr_Occurred()) SWIG_fail; | |
16513 | } | |
16514 | { | |
16515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16516 | } | |
16517 | return resultobj; | |
16518 | fail: | |
16519 | return NULL; | |
16520 | } | |
16521 | ||
16522 | ||
16523 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16524 | PyObject *resultobj; | |
16525 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16526 | wxSize result; | |
16527 | PyObject * obj0 = 0 ; | |
16528 | char *kwnames[] = { | |
16529 | (char *) "self", NULL | |
16530 | }; | |
16531 | ||
16532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
16533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16535 | { | |
16536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16537 | result = (arg1)->GetSize(); | |
16538 | ||
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | { | |
16543 | wxSize * resultptr; | |
16544 | resultptr = new wxSize((wxSize &) result); | |
16545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16546 | } | |
16547 | return resultobj; | |
16548 | fail: | |
16549 | return NULL; | |
16550 | } | |
16551 | ||
16552 | ||
16553 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16554 | PyObject *resultobj; | |
16555 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16556 | int result; | |
16557 | PyObject * obj0 = 0 ; | |
16558 | char *kwnames[] = { | |
16559 | (char *) "self", NULL | |
16560 | }; | |
16561 | ||
16562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
16563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16565 | { | |
16566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16567 | result = (int)(arg1)->GetWidth(); | |
16568 | ||
16569 | wxPyEndAllowThreads(__tstate); | |
16570 | if (PyErr_Occurred()) SWIG_fail; | |
16571 | } | |
16572 | resultobj = SWIG_FromInt((int)result); | |
16573 | return resultobj; | |
16574 | fail: | |
16575 | return NULL; | |
16576 | } | |
16577 | ||
16578 | ||
16579 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16580 | PyObject *resultobj; | |
16581 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16582 | int result; | |
16583 | PyObject * obj0 = 0 ; | |
16584 | char *kwnames[] = { | |
16585 | (char *) "self", NULL | |
16586 | }; | |
16587 | ||
16588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
16589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16591 | { | |
16592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16593 | result = (int)(arg1)->GetHeight(); | |
16594 | ||
16595 | wxPyEndAllowThreads(__tstate); | |
16596 | if (PyErr_Occurred()) SWIG_fail; | |
16597 | } | |
16598 | resultobj = SWIG_FromInt((int)result); | |
16599 | return resultobj; | |
16600 | fail: | |
16601 | return NULL; | |
16602 | } | |
16603 | ||
16604 | ||
16605 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16606 | PyObject *resultobj; | |
16607 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16608 | wxString *result; | |
16609 | PyObject * obj0 = 0 ; | |
16610 | char *kwnames[] = { | |
16611 | (char *) "self", NULL | |
16612 | }; | |
16613 | ||
16614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
16615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16617 | { | |
16618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16619 | { | |
16620 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
16621 | result = (wxString *) &_result_ref; | |
16622 | } | |
16623 | ||
16624 | wxPyEndAllowThreads(__tstate); | |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | } | |
16627 | { | |
16628 | #if wxUSE_UNICODE | |
16629 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16630 | #else | |
16631 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16632 | #endif | |
16633 | } | |
16634 | return resultobj; | |
16635 | fail: | |
16636 | return NULL; | |
16637 | } | |
16638 | ||
16639 | ||
16640 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
16641 | PyObject *obj; | |
16642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16643 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16644 | Py_INCREF(obj); | |
16645 | return Py_BuildValue((char *)""); | |
16646 | } | |
16647 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16648 | PyObject *resultobj; | |
16649 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16650 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16651 | int arg2 = (int) 0 ; | |
16652 | int arg3 = (int) 0 ; | |
16653 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16654 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16655 | wxMetaFileDC *result; | |
16656 | bool temp1 = False ; | |
16657 | bool temp4 = False ; | |
16658 | PyObject * obj0 = 0 ; | |
16659 | PyObject * obj1 = 0 ; | |
16660 | PyObject * obj2 = 0 ; | |
16661 | PyObject * obj3 = 0 ; | |
16662 | char *kwnames[] = { | |
16663 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16664 | }; | |
16665 | ||
16666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16667 | if (obj0) { | |
16668 | { | |
16669 | arg1 = wxString_in_helper(obj0); | |
16670 | if (arg1 == NULL) SWIG_fail; | |
16671 | temp1 = True; | |
16672 | } | |
16673 | } | |
16674 | if (obj1) { | |
16675 | arg2 = (int) SWIG_AsInt(obj1); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | if (obj2) { | |
16679 | arg3 = (int) SWIG_AsInt(obj2); | |
16680 | if (PyErr_Occurred()) SWIG_fail; | |
16681 | } | |
16682 | if (obj3) { | |
16683 | { | |
16684 | arg4 = wxString_in_helper(obj3); | |
16685 | if (arg4 == NULL) SWIG_fail; | |
16686 | temp4 = True; | |
16687 | } | |
16688 | } | |
16689 | { | |
0439c23b | 16690 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16692 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16693 | ||
16694 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16695 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16696 | } |
16697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
16698 | { | |
16699 | if (temp1) | |
16700 | delete arg1; | |
16701 | } | |
16702 | { | |
16703 | if (temp4) | |
16704 | delete arg4; | |
16705 | } | |
16706 | return resultobj; | |
16707 | fail: | |
16708 | { | |
16709 | if (temp1) | |
16710 | delete arg1; | |
16711 | } | |
16712 | { | |
16713 | if (temp4) | |
16714 | delete arg4; | |
16715 | } | |
16716 | return NULL; | |
16717 | } | |
16718 | ||
16719 | ||
16720 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16721 | PyObject *resultobj; | |
16722 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
16723 | wxMetaFile *result; | |
16724 | PyObject * obj0 = 0 ; | |
16725 | char *kwnames[] = { | |
16726 | (char *) "self", NULL | |
16727 | }; | |
16728 | ||
16729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
16730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, | |
16731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16732 | { | |
16733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16734 | result = (wxMetaFile *)(arg1)->Close(); | |
16735 | ||
16736 | wxPyEndAllowThreads(__tstate); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
16739 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); | |
16740 | return resultobj; | |
16741 | fail: | |
16742 | return NULL; | |
16743 | } | |
16744 | ||
16745 | ||
16746 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
16747 | PyObject *obj; | |
16748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16749 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16750 | Py_INCREF(obj); | |
16751 | return Py_BuildValue((char *)""); | |
16752 | } | |
16753 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16754 | PyObject *resultobj; | |
16755 | wxPrintData *arg1 = 0 ; | |
16756 | wxPrinterDC *result; | |
16757 | PyObject * obj0 = 0 ; | |
16758 | char *kwnames[] = { | |
16759 | (char *) "printData", NULL | |
16760 | }; | |
16761 | ||
16762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
16763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16765 | SWIG_fail; | |
16766 | if (arg1 == NULL) { | |
16767 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16768 | SWIG_fail; | |
16769 | } | |
16770 | { | |
0439c23b | 16771 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16773 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16774 | ||
16775 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16776 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16777 | } |
16778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
16779 | return resultobj; | |
16780 | fail: | |
16781 | return NULL; | |
16782 | } | |
16783 | ||
16784 | ||
16785 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
16786 | PyObject *obj; | |
16787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16788 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16789 | Py_INCREF(obj); | |
16790 | return Py_BuildValue((char *)""); | |
16791 | } | |
16792 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16793 | PyObject *resultobj; | |
16794 | int arg1 ; | |
16795 | int arg2 ; | |
16796 | int arg3 = (int) True ; | |
16797 | int arg4 = (int) 1 ; | |
16798 | wxImageList *result; | |
16799 | PyObject * obj0 = 0 ; | |
16800 | PyObject * obj1 = 0 ; | |
16801 | PyObject * obj2 = 0 ; | |
16802 | PyObject * obj3 = 0 ; | |
16803 | char *kwnames[] = { | |
16804 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16805 | }; | |
16806 | ||
16807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16808 | arg1 = (int) SWIG_AsInt(obj0); | |
16809 | if (PyErr_Occurred()) SWIG_fail; | |
16810 | arg2 = (int) SWIG_AsInt(obj1); | |
16811 | if (PyErr_Occurred()) SWIG_fail; | |
16812 | if (obj2) { | |
16813 | arg3 = (int) SWIG_AsInt(obj2); | |
16814 | if (PyErr_Occurred()) SWIG_fail; | |
16815 | } | |
16816 | if (obj3) { | |
16817 | arg4 = (int) SWIG_AsInt(obj3); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
16820 | { | |
0439c23b | 16821 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16823 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16824 | ||
16825 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16826 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16827 | } |
16828 | { | |
412d302d | 16829 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
16830 | } |
16831 | return resultobj; | |
16832 | fail: | |
16833 | return NULL; | |
16834 | } | |
16835 | ||
16836 | ||
16837 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16838 | PyObject *resultobj; | |
16839 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16840 | PyObject * obj0 = 0 ; | |
16841 | char *kwnames[] = { | |
16842 | (char *) "self", NULL | |
16843 | }; | |
16844 | ||
16845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
16846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16848 | { | |
16849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16850 | delete arg1; | |
16851 | ||
16852 | wxPyEndAllowThreads(__tstate); | |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
16854 | } | |
16855 | Py_INCREF(Py_None); resultobj = Py_None; | |
16856 | return resultobj; | |
16857 | fail: | |
16858 | return NULL; | |
16859 | } | |
16860 | ||
16861 | ||
16862 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16863 | PyObject *resultobj; | |
16864 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16865 | wxBitmap *arg2 = 0 ; | |
16866 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16867 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16868 | int result; | |
16869 | PyObject * obj0 = 0 ; | |
16870 | PyObject * obj1 = 0 ; | |
16871 | PyObject * obj2 = 0 ; | |
16872 | char *kwnames[] = { | |
16873 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16874 | }; | |
16875 | ||
16876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16880 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16881 | SWIG_fail; | |
16882 | if (arg2 == NULL) { | |
16883 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16884 | SWIG_fail; | |
16885 | } | |
16886 | if (obj2) { | |
16887 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16888 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16889 | SWIG_fail; | |
16890 | if (arg3 == NULL) { | |
16891 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16892 | SWIG_fail; | |
16893 | } | |
16894 | } | |
16895 | { | |
16896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16897 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16898 | ||
16899 | wxPyEndAllowThreads(__tstate); | |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
16901 | } | |
16902 | resultobj = SWIG_FromInt((int)result); | |
16903 | return resultobj; | |
16904 | fail: | |
16905 | return NULL; | |
16906 | } | |
16907 | ||
16908 | ||
16909 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16910 | PyObject *resultobj; | |
16911 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16912 | wxBitmap *arg2 = 0 ; | |
16913 | wxColour *arg3 = 0 ; | |
16914 | int result; | |
16915 | wxColour temp3 ; | |
16916 | PyObject * obj0 = 0 ; | |
16917 | PyObject * obj1 = 0 ; | |
16918 | PyObject * obj2 = 0 ; | |
16919 | char *kwnames[] = { | |
16920 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16921 | }; | |
16922 | ||
16923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16928 | SWIG_fail; | |
16929 | if (arg2 == NULL) { | |
16930 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16931 | SWIG_fail; | |
16932 | } | |
16933 | { | |
16934 | arg3 = &temp3; | |
16935 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16936 | } | |
16937 | { | |
16938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16939 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16940 | ||
16941 | wxPyEndAllowThreads(__tstate); | |
16942 | if (PyErr_Occurred()) SWIG_fail; | |
16943 | } | |
16944 | resultobj = SWIG_FromInt((int)result); | |
16945 | return resultobj; | |
16946 | fail: | |
16947 | return NULL; | |
16948 | } | |
16949 | ||
16950 | ||
16951 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16952 | PyObject *resultobj; | |
16953 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16954 | wxIcon *arg2 = 0 ; | |
16955 | int result; | |
16956 | PyObject * obj0 = 0 ; | |
16957 | PyObject * obj1 = 0 ; | |
16958 | char *kwnames[] = { | |
16959 | (char *) "self",(char *) "icon", NULL | |
16960 | }; | |
16961 | ||
16962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
16963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16967 | SWIG_fail; | |
16968 | if (arg2 == NULL) { | |
16969 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16970 | SWIG_fail; | |
16971 | } | |
16972 | { | |
16973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16974 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16975 | ||
16976 | wxPyEndAllowThreads(__tstate); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
16979 | resultobj = SWIG_FromInt((int)result); | |
16980 | return resultobj; | |
16981 | fail: | |
16982 | return NULL; | |
16983 | } | |
16984 | ||
16985 | ||
16986 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16987 | PyObject *resultobj; | |
16988 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16989 | int arg2 ; | |
16990 | wxBitmap *arg3 = 0 ; | |
16991 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
16992 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
16993 | bool result; | |
16994 | PyObject * obj0 = 0 ; | |
16995 | PyObject * obj1 = 0 ; | |
16996 | PyObject * obj2 = 0 ; | |
16997 | PyObject * obj3 = 0 ; | |
16998 | char *kwnames[] = { | |
16999 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
17000 | }; | |
17001 | ||
17002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17005 | arg2 = (int) SWIG_AsInt(obj1); | |
17006 | if (PyErr_Occurred()) SWIG_fail; | |
17007 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
17008 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17009 | SWIG_fail; | |
17010 | if (arg3 == NULL) { | |
17011 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17012 | SWIG_fail; | |
17013 | } | |
17014 | if (obj3) { | |
17015 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
17016 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17017 | SWIG_fail; | |
17018 | if (arg4 == NULL) { | |
17019 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17020 | SWIG_fail; | |
17021 | } | |
17022 | } | |
17023 | { | |
17024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17025 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
17026 | ||
17027 | wxPyEndAllowThreads(__tstate); | |
17028 | if (PyErr_Occurred()) SWIG_fail; | |
17029 | } | |
17030 | { | |
17031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17032 | } | |
17033 | return resultobj; | |
17034 | fail: | |
17035 | return NULL; | |
17036 | } | |
17037 | ||
17038 | ||
17039 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17040 | PyObject *resultobj; | |
17041 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17042 | int arg2 ; | |
17043 | wxDC *arg3 = 0 ; | |
17044 | int arg4 ; | |
17045 | int arg5 ; | |
17046 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
17047 | bool arg7 = (bool) (bool)False ; | |
17048 | bool result; | |
17049 | PyObject * obj0 = 0 ; | |
17050 | PyObject * obj1 = 0 ; | |
17051 | PyObject * obj2 = 0 ; | |
17052 | PyObject * obj3 = 0 ; | |
17053 | PyObject * obj4 = 0 ; | |
17054 | PyObject * obj5 = 0 ; | |
17055 | PyObject * obj6 = 0 ; | |
17056 | char *kwnames[] = { | |
17057 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
17058 | }; | |
17059 | ||
17060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17063 | arg2 = (int) SWIG_AsInt(obj1); | |
17064 | if (PyErr_Occurred()) SWIG_fail; | |
17065 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
17066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17067 | SWIG_fail; | |
17068 | if (arg3 == NULL) { | |
17069 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17070 | SWIG_fail; | |
17071 | } | |
17072 | arg4 = (int) SWIG_AsInt(obj3); | |
17073 | if (PyErr_Occurred()) SWIG_fail; | |
17074 | arg5 = (int) SWIG_AsInt(obj4); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
17076 | if (obj5) { | |
17077 | arg6 = (int) SWIG_AsInt(obj5); | |
17078 | if (PyErr_Occurred()) SWIG_fail; | |
17079 | } | |
17080 | if (obj6) { | |
17081 | arg7 = (bool const) SWIG_AsBool(obj6); | |
17082 | if (PyErr_Occurred()) SWIG_fail; | |
17083 | } | |
17084 | { | |
17085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17086 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
17087 | ||
17088 | wxPyEndAllowThreads(__tstate); | |
17089 | if (PyErr_Occurred()) SWIG_fail; | |
17090 | } | |
17091 | { | |
17092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17093 | } | |
17094 | return resultobj; | |
17095 | fail: | |
17096 | return NULL; | |
17097 | } | |
17098 | ||
17099 | ||
17100 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17101 | PyObject *resultobj; | |
17102 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17103 | int result; | |
17104 | PyObject * obj0 = 0 ; | |
17105 | char *kwnames[] = { | |
17106 | (char *) "self", NULL | |
17107 | }; | |
17108 | ||
17109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
17110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17112 | { | |
17113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17114 | result = (int)(arg1)->GetImageCount(); | |
17115 | ||
17116 | wxPyEndAllowThreads(__tstate); | |
17117 | if (PyErr_Occurred()) SWIG_fail; | |
17118 | } | |
17119 | resultobj = SWIG_FromInt((int)result); | |
17120 | return resultobj; | |
17121 | fail: | |
17122 | return NULL; | |
17123 | } | |
17124 | ||
17125 | ||
17126 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17127 | PyObject *resultobj; | |
17128 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17129 | int arg2 ; | |
17130 | bool result; | |
17131 | PyObject * obj0 = 0 ; | |
17132 | PyObject * obj1 = 0 ; | |
17133 | char *kwnames[] = { | |
17134 | (char *) "self",(char *) "index", NULL | |
17135 | }; | |
17136 | ||
17137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
17138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17140 | arg2 = (int) SWIG_AsInt(obj1); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | { | |
17143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17144 | result = (bool)(arg1)->Remove(arg2); | |
17145 | ||
17146 | wxPyEndAllowThreads(__tstate); | |
17147 | if (PyErr_Occurred()) SWIG_fail; | |
17148 | } | |
17149 | { | |
17150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17151 | } | |
17152 | return resultobj; | |
17153 | fail: | |
17154 | return NULL; | |
17155 | } | |
17156 | ||
17157 | ||
17158 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17159 | PyObject *resultobj; | |
17160 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17161 | bool result; | |
17162 | PyObject * obj0 = 0 ; | |
17163 | char *kwnames[] = { | |
17164 | (char *) "self", NULL | |
17165 | }; | |
17166 | ||
17167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
17168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17170 | { | |
17171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17172 | result = (bool)(arg1)->RemoveAll(); | |
17173 | ||
17174 | wxPyEndAllowThreads(__tstate); | |
17175 | if (PyErr_Occurred()) SWIG_fail; | |
17176 | } | |
17177 | { | |
17178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17179 | } | |
17180 | return resultobj; | |
17181 | fail: | |
17182 | return NULL; | |
17183 | } | |
17184 | ||
17185 | ||
17186 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17187 | PyObject *resultobj; | |
17188 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17189 | int arg2 ; | |
17190 | int *arg3 = 0 ; | |
17191 | int *arg4 = 0 ; | |
17192 | int temp3 ; | |
17193 | int temp4 ; | |
17194 | PyObject * obj0 = 0 ; | |
17195 | PyObject * obj1 = 0 ; | |
17196 | char *kwnames[] = { | |
17197 | (char *) "self",(char *) "index", NULL | |
17198 | }; | |
17199 | ||
17200 | arg3 = &temp3; | |
17201 | arg4 = &temp4; | |
17202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
17203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17205 | arg2 = (int) SWIG_AsInt(obj1); | |
17206 | if (PyErr_Occurred()) SWIG_fail; | |
17207 | { | |
17208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17209 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
17210 | ||
17211 | wxPyEndAllowThreads(__tstate); | |
17212 | if (PyErr_Occurred()) SWIG_fail; | |
17213 | } | |
17214 | Py_INCREF(Py_None); resultobj = Py_None; | |
17215 | { | |
17216 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17217 | resultobj = t_output_helper(resultobj,o); | |
17218 | } | |
17219 | { | |
17220 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
17221 | resultobj = t_output_helper(resultobj,o); | |
17222 | } | |
17223 | return resultobj; | |
17224 | fail: | |
17225 | return NULL; | |
17226 | } | |
17227 | ||
17228 | ||
17229 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
17230 | PyObject *obj; | |
17231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17232 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
17233 | Py_INCREF(obj); | |
17234 | return Py_BuildValue((char *)""); | |
17235 | } | |
17236 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
17237 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
17238 | return 1; | |
17239 | } | |
17240 | ||
17241 | ||
17242 | static PyObject *_wrap_NORMAL_FONT_get() { | |
17243 | PyObject *pyobj; | |
17244 | ||
17245 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); | |
17246 | return pyobj; | |
17247 | } | |
17248 | ||
17249 | ||
17250 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
17251 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
17252 | return 1; | |
17253 | } | |
17254 | ||
17255 | ||
17256 | static PyObject *_wrap_SMALL_FONT_get() { | |
17257 | PyObject *pyobj; | |
17258 | ||
17259 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); | |
17260 | return pyobj; | |
17261 | } | |
17262 | ||
17263 | ||
17264 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
17265 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
17266 | return 1; | |
17267 | } | |
17268 | ||
17269 | ||
17270 | static PyObject *_wrap_ITALIC_FONT_get() { | |
17271 | PyObject *pyobj; | |
17272 | ||
17273 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); | |
17274 | return pyobj; | |
17275 | } | |
17276 | ||
17277 | ||
17278 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
17279 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
17280 | return 1; | |
17281 | } | |
17282 | ||
17283 | ||
17284 | static PyObject *_wrap_SWISS_FONT_get() { | |
17285 | PyObject *pyobj; | |
17286 | ||
17287 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); | |
17288 | return pyobj; | |
17289 | } | |
17290 | ||
17291 | ||
17292 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
17293 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
17294 | return 1; | |
17295 | } | |
17296 | ||
17297 | ||
17298 | static PyObject *_wrap_RED_PEN_get() { | |
17299 | PyObject *pyobj; | |
17300 | ||
17301 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); | |
17302 | return pyobj; | |
17303 | } | |
17304 | ||
17305 | ||
17306 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
17307 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
17308 | return 1; | |
17309 | } | |
17310 | ||
17311 | ||
17312 | static PyObject *_wrap_CYAN_PEN_get() { | |
17313 | PyObject *pyobj; | |
17314 | ||
17315 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); | |
17316 | return pyobj; | |
17317 | } | |
17318 | ||
17319 | ||
17320 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
17321 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
17322 | return 1; | |
17323 | } | |
17324 | ||
17325 | ||
17326 | static PyObject *_wrap_GREEN_PEN_get() { | |
17327 | PyObject *pyobj; | |
17328 | ||
17329 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); | |
17330 | return pyobj; | |
17331 | } | |
17332 | ||
17333 | ||
17334 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
17335 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
17336 | return 1; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | static PyObject *_wrap_BLACK_PEN_get() { | |
17341 | PyObject *pyobj; | |
17342 | ||
17343 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); | |
17344 | return pyobj; | |
17345 | } | |
17346 | ||
17347 | ||
17348 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
17349 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
17350 | return 1; | |
17351 | } | |
17352 | ||
17353 | ||
17354 | static PyObject *_wrap_WHITE_PEN_get() { | |
17355 | PyObject *pyobj; | |
17356 | ||
17357 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); | |
17358 | return pyobj; | |
17359 | } | |
17360 | ||
17361 | ||
17362 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
17363 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
17364 | return 1; | |
17365 | } | |
17366 | ||
17367 | ||
17368 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
17369 | PyObject *pyobj; | |
17370 | ||
17371 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); | |
17372 | return pyobj; | |
17373 | } | |
17374 | ||
17375 | ||
17376 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
17377 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
17378 | return 1; | |
17379 | } | |
17380 | ||
17381 | ||
17382 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
17383 | PyObject *pyobj; | |
17384 | ||
17385 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); | |
17386 | return pyobj; | |
17387 | } | |
17388 | ||
17389 | ||
17390 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
17391 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
17392 | return 1; | |
17393 | } | |
17394 | ||
17395 | ||
17396 | static PyObject *_wrap_GREY_PEN_get() { | |
17397 | PyObject *pyobj; | |
17398 | ||
17399 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17400 | return pyobj; | |
17401 | } | |
17402 | ||
17403 | ||
17404 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
17405 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
17406 | return 1; | |
17407 | } | |
17408 | ||
17409 | ||
17410 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
17411 | PyObject *pyobj; | |
17412 | ||
17413 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17414 | return pyobj; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
17419 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
17420 | return 1; | |
17421 | } | |
17422 | ||
17423 | ||
17424 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
17425 | PyObject *pyobj; | |
17426 | ||
17427 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17428 | return pyobj; | |
17429 | } | |
17430 | ||
17431 | ||
17432 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
17433 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
17434 | return 1; | |
17435 | } | |
17436 | ||
17437 | ||
17438 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
17439 | PyObject *pyobj; | |
17440 | ||
17441 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17442 | return pyobj; | |
17443 | } | |
17444 | ||
17445 | ||
17446 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
17447 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
17448 | return 1; | |
17449 | } | |
17450 | ||
17451 | ||
17452 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
17453 | PyObject *pyobj; | |
17454 | ||
17455 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17456 | return pyobj; | |
17457 | } | |
17458 | ||
17459 | ||
17460 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
17461 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
17462 | return 1; | |
17463 | } | |
17464 | ||
17465 | ||
17466 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
17467 | PyObject *pyobj; | |
17468 | ||
17469 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17470 | return pyobj; | |
17471 | } | |
17472 | ||
17473 | ||
17474 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
17475 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
17476 | return 1; | |
17477 | } | |
17478 | ||
17479 | ||
17480 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
17481 | PyObject *pyobj; | |
17482 | ||
17483 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17484 | return pyobj; | |
17485 | } | |
17486 | ||
17487 | ||
17488 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
17489 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
17490 | return 1; | |
17491 | } | |
17492 | ||
17493 | ||
17494 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
17495 | PyObject *pyobj; | |
17496 | ||
17497 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17498 | return pyobj; | |
17499 | } | |
17500 | ||
17501 | ||
17502 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
17503 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
17504 | return 1; | |
17505 | } | |
17506 | ||
17507 | ||
17508 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
17509 | PyObject *pyobj; | |
17510 | ||
17511 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17512 | return pyobj; | |
17513 | } | |
17514 | ||
17515 | ||
17516 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
17517 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
17518 | return 1; | |
17519 | } | |
17520 | ||
17521 | ||
17522 | static PyObject *_wrap_RED_BRUSH_get() { | |
17523 | PyObject *pyobj; | |
17524 | ||
17525 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17526 | return pyobj; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
17531 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
17532 | return 1; | |
17533 | } | |
17534 | ||
17535 | ||
17536 | static PyObject *_wrap_GREY_BRUSH_get() { | |
17537 | PyObject *pyobj; | |
17538 | ||
17539 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17540 | return pyobj; | |
17541 | } | |
17542 | ||
17543 | ||
17544 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
17545 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
17546 | return 1; | |
17547 | } | |
17548 | ||
17549 | ||
17550 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
17551 | PyObject *pyobj; | |
17552 | ||
17553 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17554 | return pyobj; | |
17555 | } | |
17556 | ||
17557 | ||
17558 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
17559 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
17560 | return 1; | |
17561 | } | |
17562 | ||
17563 | ||
17564 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
17565 | PyObject *pyobj; | |
17566 | ||
17567 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17568 | return pyobj; | |
17569 | } | |
17570 | ||
17571 | ||
17572 | static int _wrap_BLACK_set(PyObject *_val) { | |
17573 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
17574 | return 1; | |
17575 | } | |
17576 | ||
17577 | ||
17578 | static PyObject *_wrap_BLACK_get() { | |
17579 | PyObject *pyobj; | |
17580 | ||
17581 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
17582 | return pyobj; | |
17583 | } | |
17584 | ||
17585 | ||
17586 | static int _wrap_WHITE_set(PyObject *_val) { | |
17587 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
17588 | return 1; | |
17589 | } | |
17590 | ||
17591 | ||
17592 | static PyObject *_wrap_WHITE_get() { | |
17593 | PyObject *pyobj; | |
17594 | ||
17595 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
17596 | return pyobj; | |
17597 | } | |
17598 | ||
17599 | ||
17600 | static int _wrap_RED_set(PyObject *_val) { | |
17601 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
17602 | return 1; | |
17603 | } | |
17604 | ||
17605 | ||
17606 | static PyObject *_wrap_RED_get() { | |
17607 | PyObject *pyobj; | |
17608 | ||
17609 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
17610 | return pyobj; | |
17611 | } | |
17612 | ||
17613 | ||
17614 | static int _wrap_BLUE_set(PyObject *_val) { | |
17615 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
17616 | return 1; | |
17617 | } | |
17618 | ||
17619 | ||
17620 | static PyObject *_wrap_BLUE_get() { | |
17621 | PyObject *pyobj; | |
17622 | ||
17623 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
17624 | return pyobj; | |
17625 | } | |
17626 | ||
17627 | ||
17628 | static int _wrap_GREEN_set(PyObject *_val) { | |
17629 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
17630 | return 1; | |
17631 | } | |
17632 | ||
17633 | ||
17634 | static PyObject *_wrap_GREEN_get() { | |
17635 | PyObject *pyobj; | |
17636 | ||
17637 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
17638 | return pyobj; | |
17639 | } | |
17640 | ||
17641 | ||
17642 | static int _wrap_CYAN_set(PyObject *_val) { | |
17643 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
17644 | return 1; | |
17645 | } | |
17646 | ||
17647 | ||
17648 | static PyObject *_wrap_CYAN_get() { | |
17649 | PyObject *pyobj; | |
17650 | ||
17651 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
17652 | return pyobj; | |
17653 | } | |
17654 | ||
17655 | ||
17656 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
17657 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
17658 | return 1; | |
17659 | } | |
17660 | ||
17661 | ||
17662 | static PyObject *_wrap_LIGHT_GREY_get() { | |
17663 | PyObject *pyobj; | |
17664 | ||
17665 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
17666 | return pyobj; | |
17667 | } | |
17668 | ||
17669 | ||
17670 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
17671 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
17672 | return 1; | |
17673 | } | |
17674 | ||
17675 | ||
17676 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
17677 | PyObject *pyobj; | |
17678 | ||
17679 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17680 | return pyobj; | |
17681 | } | |
17682 | ||
17683 | ||
17684 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
17685 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
17686 | return 1; | |
17687 | } | |
17688 | ||
17689 | ||
17690 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
17691 | PyObject *pyobj; | |
17692 | ||
17693 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17694 | return pyobj; | |
17695 | } | |
17696 | ||
17697 | ||
17698 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
17699 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
17700 | return 1; | |
17701 | } | |
17702 | ||
17703 | ||
17704 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
17705 | PyObject *pyobj; | |
17706 | ||
17707 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17708 | return pyobj; | |
17709 | } | |
17710 | ||
17711 | ||
17712 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
17713 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
17714 | return 1; | |
17715 | } | |
17716 | ||
17717 | ||
17718 | static PyObject *_wrap_NullBitmap_get() { | |
17719 | PyObject *pyobj; | |
17720 | ||
17721 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
17722 | return pyobj; | |
17723 | } | |
17724 | ||
17725 | ||
17726 | static int _wrap_NullIcon_set(PyObject *_val) { | |
17727 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
17728 | return 1; | |
17729 | } | |
17730 | ||
17731 | ||
17732 | static PyObject *_wrap_NullIcon_get() { | |
17733 | PyObject *pyobj; | |
17734 | ||
17735 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
17736 | return pyobj; | |
17737 | } | |
17738 | ||
17739 | ||
17740 | static int _wrap_NullCursor_set(PyObject *_val) { | |
17741 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
17742 | return 1; | |
17743 | } | |
17744 | ||
17745 | ||
17746 | static PyObject *_wrap_NullCursor_get() { | |
17747 | PyObject *pyobj; | |
17748 | ||
17749 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
17750 | return pyobj; | |
17751 | } | |
17752 | ||
17753 | ||
17754 | static int _wrap_NullPen_set(PyObject *_val) { | |
17755 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
17756 | return 1; | |
17757 | } | |
17758 | ||
17759 | ||
17760 | static PyObject *_wrap_NullPen_get() { | |
17761 | PyObject *pyobj; | |
17762 | ||
17763 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
17764 | return pyobj; | |
17765 | } | |
17766 | ||
17767 | ||
17768 | static int _wrap_NullBrush_set(PyObject *_val) { | |
17769 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
17770 | return 1; | |
17771 | } | |
17772 | ||
17773 | ||
17774 | static PyObject *_wrap_NullBrush_get() { | |
17775 | PyObject *pyobj; | |
17776 | ||
17777 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
17778 | return pyobj; | |
17779 | } | |
17780 | ||
17781 | ||
17782 | static int _wrap_NullPalette_set(PyObject *_val) { | |
17783 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
17784 | return 1; | |
17785 | } | |
17786 | ||
17787 | ||
17788 | static PyObject *_wrap_NullPalette_get() { | |
17789 | PyObject *pyobj; | |
17790 | ||
17791 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
17792 | return pyobj; | |
17793 | } | |
17794 | ||
17795 | ||
17796 | static int _wrap_NullFont_set(PyObject *_val) { | |
17797 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
17798 | return 1; | |
17799 | } | |
17800 | ||
17801 | ||
17802 | static PyObject *_wrap_NullFont_get() { | |
17803 | PyObject *pyobj; | |
17804 | ||
17805 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
17806 | return pyobj; | |
17807 | } | |
17808 | ||
17809 | ||
17810 | static int _wrap_NullColour_set(PyObject *_val) { | |
17811 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
17812 | return 1; | |
17813 | } | |
17814 | ||
17815 | ||
17816 | static PyObject *_wrap_NullColour_get() { | |
17817 | PyObject *pyobj; | |
17818 | ||
17819 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
17820 | return pyobj; | |
17821 | } | |
17822 | ||
17823 | ||
17824 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17825 | PyObject *resultobj; | |
17826 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17827 | wxPen *arg2 = (wxPen *) 0 ; | |
17828 | PyObject * obj0 = 0 ; | |
17829 | PyObject * obj1 = 0 ; | |
17830 | char *kwnames[] = { | |
17831 | (char *) "self",(char *) "pen", NULL | |
17832 | }; | |
17833 | ||
17834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
17835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17839 | { | |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | (arg1)->AddPen(arg2); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
17846 | Py_INCREF(Py_None); resultobj = Py_None; | |
17847 | return resultobj; | |
17848 | fail: | |
17849 | return NULL; | |
17850 | } | |
17851 | ||
17852 | ||
17853 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17854 | PyObject *resultobj; | |
17855 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17856 | wxColour *arg2 = 0 ; | |
17857 | int arg3 ; | |
17858 | int arg4 ; | |
17859 | wxPen *result; | |
17860 | wxColour temp2 ; | |
17861 | PyObject * obj0 = 0 ; | |
17862 | PyObject * obj1 = 0 ; | |
17863 | PyObject * obj2 = 0 ; | |
17864 | PyObject * obj3 = 0 ; | |
17865 | char *kwnames[] = { | |
17866 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17867 | }; | |
17868 | ||
17869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17872 | { | |
17873 | arg2 = &temp2; | |
17874 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17875 | } | |
17876 | arg3 = (int) SWIG_AsInt(obj2); | |
17877 | if (PyErr_Occurred()) SWIG_fail; | |
17878 | arg4 = (int) SWIG_AsInt(obj3); | |
17879 | if (PyErr_Occurred()) SWIG_fail; | |
17880 | { | |
17881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17882 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17883 | ||
17884 | wxPyEndAllowThreads(__tstate); | |
17885 | if (PyErr_Occurred()) SWIG_fail; | |
17886 | } | |
17887 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
17888 | return resultobj; | |
17889 | fail: | |
17890 | return NULL; | |
17891 | } | |
17892 | ||
17893 | ||
17894 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17895 | PyObject *resultobj; | |
17896 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17897 | wxPen *arg2 = (wxPen *) 0 ; | |
17898 | PyObject * obj0 = 0 ; | |
17899 | PyObject * obj1 = 0 ; | |
17900 | char *kwnames[] = { | |
17901 | (char *) "self",(char *) "pen", NULL | |
17902 | }; | |
17903 | ||
17904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
17905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17909 | { | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | (arg1)->RemovePen(arg2); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | Py_INCREF(Py_None); resultobj = Py_None; | |
17917 | return resultobj; | |
17918 | fail: | |
17919 | return NULL; | |
17920 | } | |
17921 | ||
17922 | ||
17923 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17924 | PyObject *resultobj; | |
17925 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17926 | int result; | |
17927 | PyObject * obj0 = 0 ; | |
17928 | char *kwnames[] = { | |
17929 | (char *) "self", NULL | |
17930 | }; | |
17931 | ||
17932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
17933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17935 | { | |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | result = (int)(arg1)->GetCount(); | |
17938 | ||
17939 | wxPyEndAllowThreads(__tstate); | |
17940 | if (PyErr_Occurred()) SWIG_fail; | |
17941 | } | |
17942 | resultobj = SWIG_FromInt((int)result); | |
17943 | return resultobj; | |
17944 | fail: | |
17945 | return NULL; | |
17946 | } | |
17947 | ||
17948 | ||
17949 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
17950 | PyObject *obj; | |
17951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17952 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17953 | Py_INCREF(obj); | |
17954 | return Py_BuildValue((char *)""); | |
17955 | } | |
17956 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17957 | PyObject *resultobj; | |
17958 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17959 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17960 | PyObject * obj0 = 0 ; | |
17961 | PyObject * obj1 = 0 ; | |
17962 | char *kwnames[] = { | |
17963 | (char *) "self",(char *) "brush", NULL | |
17964 | }; | |
17965 | ||
17966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
17967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17969 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17971 | { | |
17972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17973 | (arg1)->AddBrush(arg2); | |
17974 | ||
17975 | wxPyEndAllowThreads(__tstate); | |
17976 | if (PyErr_Occurred()) SWIG_fail; | |
17977 | } | |
17978 | Py_INCREF(Py_None); resultobj = Py_None; | |
17979 | return resultobj; | |
17980 | fail: | |
17981 | return NULL; | |
17982 | } | |
17983 | ||
17984 | ||
17985 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17986 | PyObject *resultobj; | |
17987 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17988 | wxColour *arg2 = 0 ; | |
17989 | int arg3 ; | |
17990 | wxBrush *result; | |
17991 | wxColour temp2 ; | |
17992 | PyObject * obj0 = 0 ; | |
17993 | PyObject * obj1 = 0 ; | |
17994 | PyObject * obj2 = 0 ; | |
17995 | char *kwnames[] = { | |
17996 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17997 | }; | |
17998 | ||
17999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18002 | { | |
18003 | arg2 = &temp2; | |
18004 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18005 | } | |
18006 | arg3 = (int) SWIG_AsInt(obj2); | |
18007 | if (PyErr_Occurred()) SWIG_fail; | |
18008 | { | |
18009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18010 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
18011 | ||
18012 | wxPyEndAllowThreads(__tstate); | |
18013 | if (PyErr_Occurred()) SWIG_fail; | |
18014 | } | |
18015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
18016 | return resultobj; | |
18017 | fail: | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18023 | PyObject *resultobj; | |
18024 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18025 | wxBrush *arg2 = (wxBrush *) 0 ; | |
18026 | PyObject * obj0 = 0 ; | |
18027 | PyObject * obj1 = 0 ; | |
18028 | char *kwnames[] = { | |
18029 | (char *) "self",(char *) "brush", NULL | |
18030 | }; | |
18031 | ||
18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
18033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
18036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18037 | { | |
18038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18039 | (arg1)->RemoveBrush(arg2); | |
18040 | ||
18041 | wxPyEndAllowThreads(__tstate); | |
18042 | if (PyErr_Occurred()) SWIG_fail; | |
18043 | } | |
18044 | Py_INCREF(Py_None); resultobj = Py_None; | |
18045 | return resultobj; | |
18046 | fail: | |
18047 | return NULL; | |
18048 | } | |
18049 | ||
18050 | ||
18051 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18052 | PyObject *resultobj; | |
18053 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18054 | int result; | |
18055 | PyObject * obj0 = 0 ; | |
18056 | char *kwnames[] = { | |
18057 | (char *) "self", NULL | |
18058 | }; | |
18059 | ||
18060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
18061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18063 | { | |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | result = (int)(arg1)->GetCount(); | |
18066 | ||
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | resultobj = SWIG_FromInt((int)result); | |
18071 | return resultobj; | |
18072 | fail: | |
18073 | return NULL; | |
18074 | } | |
18075 | ||
18076 | ||
18077 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
18078 | PyObject *obj; | |
18079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18080 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
18081 | Py_INCREF(obj); | |
18082 | return Py_BuildValue((char *)""); | |
18083 | } | |
18084 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18085 | PyObject *resultobj; | |
18086 | wxColourDatabase *result; | |
18087 | char *kwnames[] = { | |
18088 | NULL | |
18089 | }; | |
18090 | ||
18091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
18092 | { | |
0439c23b | 18093 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18095 | result = (wxColourDatabase *)new wxColourDatabase(); | |
18096 | ||
18097 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18098 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18099 | } |
18100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
18101 | return resultobj; | |
18102 | fail: | |
18103 | return NULL; | |
18104 | } | |
18105 | ||
18106 | ||
18107 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18108 | PyObject *resultobj; | |
18109 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18110 | PyObject * obj0 = 0 ; | |
18111 | char *kwnames[] = { | |
18112 | (char *) "self", NULL | |
18113 | }; | |
18114 | ||
18115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
18116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18118 | { | |
18119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18120 | delete arg1; | |
18121 | ||
18122 | wxPyEndAllowThreads(__tstate); | |
18123 | if (PyErr_Occurred()) SWIG_fail; | |
18124 | } | |
18125 | Py_INCREF(Py_None); resultobj = Py_None; | |
18126 | return resultobj; | |
18127 | fail: | |
18128 | return NULL; | |
18129 | } | |
18130 | ||
18131 | ||
18132 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18133 | PyObject *resultobj; | |
18134 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18135 | wxString *arg2 = 0 ; | |
18136 | wxColour result; | |
18137 | bool temp2 = False ; | |
18138 | PyObject * obj0 = 0 ; | |
18139 | PyObject * obj1 = 0 ; | |
18140 | char *kwnames[] = { | |
18141 | (char *) "self",(char *) "name", NULL | |
18142 | }; | |
18143 | ||
18144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
18145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18147 | { | |
18148 | arg2 = wxString_in_helper(obj1); | |
18149 | if (arg2 == NULL) SWIG_fail; | |
18150 | temp2 = True; | |
18151 | } | |
18152 | { | |
18153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18154 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
18155 | ||
18156 | wxPyEndAllowThreads(__tstate); | |
18157 | if (PyErr_Occurred()) SWIG_fail; | |
18158 | } | |
18159 | { | |
18160 | wxColour * resultptr; | |
18161 | resultptr = new wxColour((wxColour &) result); | |
18162 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18163 | } | |
18164 | { | |
18165 | if (temp2) | |
18166 | delete arg2; | |
18167 | } | |
18168 | return resultobj; | |
18169 | fail: | |
18170 | { | |
18171 | if (temp2) | |
18172 | delete arg2; | |
18173 | } | |
18174 | return NULL; | |
18175 | } | |
18176 | ||
18177 | ||
18178 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18179 | PyObject *resultobj; | |
18180 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18181 | wxColour *arg2 = 0 ; | |
18182 | wxString result; | |
18183 | wxColour temp2 ; | |
18184 | PyObject * obj0 = 0 ; | |
18185 | PyObject * obj1 = 0 ; | |
18186 | char *kwnames[] = { | |
18187 | (char *) "self",(char *) "colour", NULL | |
18188 | }; | |
18189 | ||
18190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
18191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18193 | { | |
18194 | arg2 = &temp2; | |
18195 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18196 | } | |
18197 | { | |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
18200 | ||
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
18204 | { | |
18205 | #if wxUSE_UNICODE | |
18206 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18207 | #else | |
18208 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18209 | #endif | |
18210 | } | |
18211 | return resultobj; | |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
18217 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18218 | PyObject *resultobj; | |
18219 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18220 | wxString *arg2 = 0 ; | |
18221 | wxColour *arg3 = 0 ; | |
18222 | bool temp2 = False ; | |
18223 | wxColour temp3 ; | |
18224 | PyObject * obj0 = 0 ; | |
18225 | PyObject * obj1 = 0 ; | |
18226 | PyObject * obj2 = 0 ; | |
18227 | char *kwnames[] = { | |
18228 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
18229 | }; | |
18230 | ||
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18234 | { | |
18235 | arg2 = wxString_in_helper(obj1); | |
18236 | if (arg2 == NULL) SWIG_fail; | |
18237 | temp2 = True; | |
18238 | } | |
18239 | { | |
18240 | arg3 = &temp3; | |
18241 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18242 | } | |
18243 | { | |
18244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18245 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
18246 | ||
18247 | wxPyEndAllowThreads(__tstate); | |
18248 | if (PyErr_Occurred()) SWIG_fail; | |
18249 | } | |
18250 | Py_INCREF(Py_None); resultobj = Py_None; | |
18251 | { | |
18252 | if (temp2) | |
18253 | delete arg2; | |
18254 | } | |
18255 | return resultobj; | |
18256 | fail: | |
18257 | { | |
18258 | if (temp2) | |
18259 | delete arg2; | |
18260 | } | |
18261 | return NULL; | |
18262 | } | |
18263 | ||
18264 | ||
18265 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18266 | PyObject *resultobj; | |
18267 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18268 | wxString *arg2 = 0 ; | |
18269 | int arg3 ; | |
18270 | int arg4 ; | |
18271 | int arg5 ; | |
18272 | bool temp2 = False ; | |
18273 | PyObject * obj0 = 0 ; | |
18274 | PyObject * obj1 = 0 ; | |
18275 | PyObject * obj2 = 0 ; | |
18276 | PyObject * obj3 = 0 ; | |
18277 | PyObject * obj4 = 0 ; | |
18278 | char *kwnames[] = { | |
18279 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
18280 | }; | |
18281 | ||
18282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18285 | { | |
18286 | arg2 = wxString_in_helper(obj1); | |
18287 | if (arg2 == NULL) SWIG_fail; | |
18288 | temp2 = True; | |
18289 | } | |
18290 | arg3 = (int) SWIG_AsInt(obj2); | |
18291 | if (PyErr_Occurred()) SWIG_fail; | |
18292 | arg4 = (int) SWIG_AsInt(obj3); | |
18293 | if (PyErr_Occurred()) SWIG_fail; | |
18294 | arg5 = (int) SWIG_AsInt(obj4); | |
18295 | if (PyErr_Occurred()) SWIG_fail; | |
18296 | { | |
18297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18298 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18299 | ||
18300 | wxPyEndAllowThreads(__tstate); | |
18301 | if (PyErr_Occurred()) SWIG_fail; | |
18302 | } | |
18303 | Py_INCREF(Py_None); resultobj = Py_None; | |
18304 | { | |
18305 | if (temp2) | |
18306 | delete arg2; | |
18307 | } | |
18308 | return resultobj; | |
18309 | fail: | |
18310 | { | |
18311 | if (temp2) | |
18312 | delete arg2; | |
18313 | } | |
18314 | return NULL; | |
18315 | } | |
18316 | ||
18317 | ||
18318 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
18319 | PyObject *obj; | |
18320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18321 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
18322 | Py_INCREF(obj); | |
18323 | return Py_BuildValue((char *)""); | |
18324 | } | |
18325 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18326 | PyObject *resultobj; | |
18327 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18328 | wxFont *arg2 = (wxFont *) 0 ; | |
18329 | PyObject * obj0 = 0 ; | |
18330 | PyObject * obj1 = 0 ; | |
18331 | char *kwnames[] = { | |
18332 | (char *) "self",(char *) "font", NULL | |
18333 | }; | |
18334 | ||
18335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
18336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18338 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18340 | { | |
18341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18342 | (arg1)->AddFont(arg2); | |
18343 | ||
18344 | wxPyEndAllowThreads(__tstate); | |
18345 | if (PyErr_Occurred()) SWIG_fail; | |
18346 | } | |
18347 | Py_INCREF(Py_None); resultobj = Py_None; | |
18348 | return resultobj; | |
18349 | fail: | |
18350 | return NULL; | |
18351 | } | |
18352 | ||
18353 | ||
18354 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18355 | PyObject *resultobj; | |
18356 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18357 | int arg2 ; | |
18358 | int arg3 ; | |
18359 | int arg4 ; | |
18360 | int arg5 ; | |
18361 | bool arg6 = (bool) False ; | |
18362 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18363 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18364 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
18365 | wxFont *result; | |
18366 | bool temp7 = False ; | |
18367 | PyObject * obj0 = 0 ; | |
18368 | PyObject * obj1 = 0 ; | |
18369 | PyObject * obj2 = 0 ; | |
18370 | PyObject * obj3 = 0 ; | |
18371 | PyObject * obj4 = 0 ; | |
18372 | PyObject * obj5 = 0 ; | |
18373 | PyObject * obj6 = 0 ; | |
18374 | PyObject * obj7 = 0 ; | |
18375 | char *kwnames[] = { | |
18376 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
18377 | }; | |
18378 | ||
18379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18382 | arg2 = (int) SWIG_AsInt(obj1); | |
18383 | if (PyErr_Occurred()) SWIG_fail; | |
18384 | arg3 = (int) SWIG_AsInt(obj2); | |
18385 | if (PyErr_Occurred()) SWIG_fail; | |
18386 | arg4 = (int) SWIG_AsInt(obj3); | |
18387 | if (PyErr_Occurred()) SWIG_fail; | |
18388 | arg5 = (int) SWIG_AsInt(obj4); | |
18389 | if (PyErr_Occurred()) SWIG_fail; | |
18390 | if (obj5) { | |
18391 | arg6 = (bool) SWIG_AsBool(obj5); | |
18392 | if (PyErr_Occurred()) SWIG_fail; | |
18393 | } | |
18394 | if (obj6) { | |
18395 | { | |
18396 | arg7 = wxString_in_helper(obj6); | |
18397 | if (arg7 == NULL) SWIG_fail; | |
18398 | temp7 = True; | |
18399 | } | |
18400 | } | |
18401 | if (obj7) { | |
18402 | arg8 = (wxFontEncoding) SWIG_AsInt(obj7); | |
18403 | if (PyErr_Occurred()) SWIG_fail; | |
18404 | } | |
18405 | { | |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
18413 | { | |
18414 | if (temp7) | |
18415 | delete arg7; | |
18416 | } | |
18417 | return resultobj; | |
18418 | fail: | |
18419 | { | |
18420 | if (temp7) | |
18421 | delete arg7; | |
18422 | } | |
18423 | return NULL; | |
18424 | } | |
18425 | ||
18426 | ||
18427 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18428 | PyObject *resultobj; | |
18429 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18430 | wxFont *arg2 = (wxFont *) 0 ; | |
18431 | PyObject * obj0 = 0 ; | |
18432 | PyObject * obj1 = 0 ; | |
18433 | char *kwnames[] = { | |
18434 | (char *) "self",(char *) "font", NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
18438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18442 | { | |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | (arg1)->RemoveFont(arg2); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | Py_INCREF(Py_None); resultobj = Py_None; | |
18450 | return resultobj; | |
18451 | fail: | |
18452 | return NULL; | |
18453 | } | |
18454 | ||
18455 | ||
18456 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18457 | PyObject *resultobj; | |
18458 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18459 | int result; | |
18460 | PyObject * obj0 = 0 ; | |
18461 | char *kwnames[] = { | |
18462 | (char *) "self", NULL | |
18463 | }; | |
18464 | ||
18465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
18466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18468 | { | |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18470 | result = (int)(arg1)->GetCount(); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
18475 | resultobj = SWIG_FromInt((int)result); | |
18476 | return resultobj; | |
18477 | fail: | |
18478 | return NULL; | |
18479 | } | |
18480 | ||
18481 | ||
18482 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
18483 | PyObject *obj; | |
18484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18485 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
18486 | Py_INCREF(obj); | |
18487 | return Py_BuildValue((char *)""); | |
18488 | } | |
18489 | static int _wrap_TheFontList_set(PyObject *_val) { | |
18490 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
18491 | return 1; | |
18492 | } | |
18493 | ||
18494 | ||
18495 | static PyObject *_wrap_TheFontList_get() { | |
18496 | PyObject *pyobj; | |
18497 | ||
18498 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
18499 | return pyobj; | |
18500 | } | |
18501 | ||
18502 | ||
18503 | static int _wrap_ThePenList_set(PyObject *_val) { | |
18504 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
18505 | return 1; | |
18506 | } | |
18507 | ||
18508 | ||
18509 | static PyObject *_wrap_ThePenList_get() { | |
18510 | PyObject *pyobj; | |
18511 | ||
18512 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
18513 | return pyobj; | |
18514 | } | |
18515 | ||
18516 | ||
18517 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
18518 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
18519 | return 1; | |
18520 | } | |
18521 | ||
18522 | ||
18523 | static PyObject *_wrap_TheBrushList_get() { | |
18524 | PyObject *pyobj; | |
18525 | ||
18526 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
18527 | return pyobj; | |
18528 | } | |
18529 | ||
18530 | ||
18531 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
18532 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
18533 | return 1; | |
18534 | } | |
18535 | ||
18536 | ||
18537 | static PyObject *_wrap_TheColourDatabase_get() { | |
18538 | PyObject *pyobj; | |
18539 | ||
18540 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
18541 | return pyobj; | |
18542 | } | |
18543 | ||
18544 | ||
18545 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18546 | PyObject *resultobj; | |
18547 | wxEffects *result; | |
18548 | char *kwnames[] = { | |
18549 | NULL | |
18550 | }; | |
18551 | ||
18552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
18553 | { | |
18554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18555 | result = (wxEffects *)new wxEffects(); | |
18556 | ||
18557 | wxPyEndAllowThreads(__tstate); | |
18558 | if (PyErr_Occurred()) SWIG_fail; | |
18559 | } | |
18560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
18561 | return resultobj; | |
18562 | fail: | |
18563 | return NULL; | |
18564 | } | |
18565 | ||
18566 | ||
18567 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18568 | PyObject *resultobj; | |
18569 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18570 | wxColour result; | |
18571 | PyObject * obj0 = 0 ; | |
18572 | char *kwnames[] = { | |
18573 | (char *) "self", NULL | |
18574 | }; | |
18575 | ||
18576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
18577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18579 | { | |
18580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18581 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
18582 | ||
18583 | wxPyEndAllowThreads(__tstate); | |
18584 | if (PyErr_Occurred()) SWIG_fail; | |
18585 | } | |
18586 | { | |
18587 | wxColour * resultptr; | |
18588 | resultptr = new wxColour((wxColour &) result); | |
18589 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18590 | } | |
18591 | return resultobj; | |
18592 | fail: | |
18593 | return NULL; | |
18594 | } | |
18595 | ||
18596 | ||
18597 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18598 | PyObject *resultobj; | |
18599 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18600 | wxColour result; | |
18601 | PyObject * obj0 = 0 ; | |
18602 | char *kwnames[] = { | |
18603 | (char *) "self", NULL | |
18604 | }; | |
18605 | ||
18606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
18607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18609 | { | |
18610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18611 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
18612 | ||
18613 | wxPyEndAllowThreads(__tstate); | |
18614 | if (PyErr_Occurred()) SWIG_fail; | |
18615 | } | |
18616 | { | |
18617 | wxColour * resultptr; | |
18618 | resultptr = new wxColour((wxColour &) result); | |
18619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18620 | } | |
18621 | return resultobj; | |
18622 | fail: | |
18623 | return NULL; | |
18624 | } | |
18625 | ||
18626 | ||
18627 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18628 | PyObject *resultobj; | |
18629 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18630 | wxColour result; | |
18631 | PyObject * obj0 = 0 ; | |
18632 | char *kwnames[] = { | |
18633 | (char *) "self", NULL | |
18634 | }; | |
18635 | ||
18636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
18637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18639 | { | |
18640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18641 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
18642 | ||
18643 | wxPyEndAllowThreads(__tstate); | |
18644 | if (PyErr_Occurred()) SWIG_fail; | |
18645 | } | |
18646 | { | |
18647 | wxColour * resultptr; | |
18648 | resultptr = new wxColour((wxColour &) result); | |
18649 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18650 | } | |
18651 | return resultobj; | |
18652 | fail: | |
18653 | return NULL; | |
18654 | } | |
18655 | ||
18656 | ||
18657 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18658 | PyObject *resultobj; | |
18659 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18660 | wxColour result; | |
18661 | PyObject * obj0 = 0 ; | |
18662 | char *kwnames[] = { | |
18663 | (char *) "self", NULL | |
18664 | }; | |
18665 | ||
18666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
18667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18669 | { | |
18670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18671 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18672 | ||
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
18676 | { | |
18677 | wxColour * resultptr; | |
18678 | resultptr = new wxColour((wxColour &) result); | |
18679 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18680 | } | |
18681 | return resultobj; | |
18682 | fail: | |
18683 | return NULL; | |
18684 | } | |
18685 | ||
18686 | ||
18687 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18688 | PyObject *resultobj; | |
18689 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18690 | wxColour result; | |
18691 | PyObject * obj0 = 0 ; | |
18692 | char *kwnames[] = { | |
18693 | (char *) "self", NULL | |
18694 | }; | |
18695 | ||
18696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
18697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18699 | { | |
18700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18701 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18702 | ||
18703 | wxPyEndAllowThreads(__tstate); | |
18704 | if (PyErr_Occurred()) SWIG_fail; | |
18705 | } | |
18706 | { | |
18707 | wxColour * resultptr; | |
18708 | resultptr = new wxColour((wxColour &) result); | |
18709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18710 | } | |
18711 | return resultobj; | |
18712 | fail: | |
18713 | return NULL; | |
18714 | } | |
18715 | ||
18716 | ||
18717 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18718 | PyObject *resultobj; | |
18719 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18720 | wxColour *arg2 = 0 ; | |
18721 | wxColour temp2 ; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | PyObject * obj1 = 0 ; | |
18724 | char *kwnames[] = { | |
18725 | (char *) "self",(char *) "c", NULL | |
18726 | }; | |
18727 | ||
18728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
18729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18731 | { | |
18732 | arg2 = &temp2; | |
18733 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18734 | } | |
18735 | { | |
18736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18737 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18738 | ||
18739 | wxPyEndAllowThreads(__tstate); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
18742 | Py_INCREF(Py_None); resultobj = Py_None; | |
18743 | return resultobj; | |
18744 | fail: | |
18745 | return NULL; | |
18746 | } | |
18747 | ||
18748 | ||
18749 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18750 | PyObject *resultobj; | |
18751 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18752 | wxColour *arg2 = 0 ; | |
18753 | wxColour temp2 ; | |
18754 | PyObject * obj0 = 0 ; | |
18755 | PyObject * obj1 = 0 ; | |
18756 | char *kwnames[] = { | |
18757 | (char *) "self",(char *) "c", NULL | |
18758 | }; | |
18759 | ||
18760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
18761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18763 | { | |
18764 | arg2 = &temp2; | |
18765 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18766 | } | |
18767 | { | |
18768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18769 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18770 | ||
18771 | wxPyEndAllowThreads(__tstate); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | } | |
18774 | Py_INCREF(Py_None); resultobj = Py_None; | |
18775 | return resultobj; | |
18776 | fail: | |
18777 | return NULL; | |
18778 | } | |
18779 | ||
18780 | ||
18781 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18782 | PyObject *resultobj; | |
18783 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18784 | wxColour *arg2 = 0 ; | |
18785 | wxColour temp2 ; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | PyObject * obj1 = 0 ; | |
18788 | char *kwnames[] = { | |
18789 | (char *) "self",(char *) "c", NULL | |
18790 | }; | |
18791 | ||
18792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
18793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18795 | { | |
18796 | arg2 = &temp2; | |
18797 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18798 | } | |
18799 | { | |
18800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18801 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18802 | ||
18803 | wxPyEndAllowThreads(__tstate); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
18806 | Py_INCREF(Py_None); resultobj = Py_None; | |
18807 | return resultobj; | |
18808 | fail: | |
18809 | return NULL; | |
18810 | } | |
18811 | ||
18812 | ||
18813 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18814 | PyObject *resultobj; | |
18815 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18816 | wxColour *arg2 = 0 ; | |
18817 | wxColour temp2 ; | |
18818 | PyObject * obj0 = 0 ; | |
18819 | PyObject * obj1 = 0 ; | |
18820 | char *kwnames[] = { | |
18821 | (char *) "self",(char *) "c", NULL | |
18822 | }; | |
18823 | ||
18824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
18825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18827 | { | |
18828 | arg2 = &temp2; | |
18829 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18830 | } | |
18831 | { | |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18834 | ||
18835 | wxPyEndAllowThreads(__tstate); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
18838 | Py_INCREF(Py_None); resultobj = Py_None; | |
18839 | return resultobj; | |
18840 | fail: | |
18841 | return NULL; | |
18842 | } | |
18843 | ||
18844 | ||
18845 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18846 | PyObject *resultobj; | |
18847 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18848 | wxColour *arg2 = 0 ; | |
18849 | wxColour temp2 ; | |
18850 | PyObject * obj0 = 0 ; | |
18851 | PyObject * obj1 = 0 ; | |
18852 | char *kwnames[] = { | |
18853 | (char *) "self",(char *) "c", NULL | |
18854 | }; | |
18855 | ||
18856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
18857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18859 | { | |
18860 | arg2 = &temp2; | |
18861 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18862 | } | |
18863 | { | |
18864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18865 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18866 | ||
18867 | wxPyEndAllowThreads(__tstate); | |
18868 | if (PyErr_Occurred()) SWIG_fail; | |
18869 | } | |
18870 | Py_INCREF(Py_None); resultobj = Py_None; | |
18871 | return resultobj; | |
18872 | fail: | |
18873 | return NULL; | |
18874 | } | |
18875 | ||
18876 | ||
18877 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18878 | PyObject *resultobj; | |
18879 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18880 | wxColour *arg2 = 0 ; | |
18881 | wxColour *arg3 = 0 ; | |
18882 | wxColour *arg4 = 0 ; | |
18883 | wxColour *arg5 = 0 ; | |
18884 | wxColour *arg6 = 0 ; | |
18885 | wxColour temp2 ; | |
18886 | wxColour temp3 ; | |
18887 | wxColour temp4 ; | |
18888 | wxColour temp5 ; | |
18889 | wxColour temp6 ; | |
18890 | PyObject * obj0 = 0 ; | |
18891 | PyObject * obj1 = 0 ; | |
18892 | PyObject * obj2 = 0 ; | |
18893 | PyObject * obj3 = 0 ; | |
18894 | PyObject * obj4 = 0 ; | |
18895 | PyObject * obj5 = 0 ; | |
18896 | char *kwnames[] = { | |
18897 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18898 | }; | |
18899 | ||
18900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18903 | { | |
18904 | arg2 = &temp2; | |
18905 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18906 | } | |
18907 | { | |
18908 | arg3 = &temp3; | |
18909 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18910 | } | |
18911 | { | |
18912 | arg4 = &temp4; | |
18913 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18914 | } | |
18915 | { | |
18916 | arg5 = &temp5; | |
18917 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18918 | } | |
18919 | { | |
18920 | arg6 = &temp6; | |
18921 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18922 | } | |
18923 | { | |
18924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18925 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18926 | ||
18927 | wxPyEndAllowThreads(__tstate); | |
18928 | if (PyErr_Occurred()) SWIG_fail; | |
18929 | } | |
18930 | Py_INCREF(Py_None); resultobj = Py_None; | |
18931 | return resultobj; | |
18932 | fail: | |
18933 | return NULL; | |
18934 | } | |
18935 | ||
18936 | ||
18937 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18938 | PyObject *resultobj; | |
18939 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18940 | wxDC *arg2 = 0 ; | |
18941 | wxRect *arg3 = 0 ; | |
18942 | int arg4 = (int) 1 ; | |
18943 | wxRect temp3 ; | |
18944 | PyObject * obj0 = 0 ; | |
18945 | PyObject * obj1 = 0 ; | |
18946 | PyObject * obj2 = 0 ; | |
18947 | PyObject * obj3 = 0 ; | |
18948 | char *kwnames[] = { | |
18949 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18950 | }; | |
18951 | ||
18952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18955 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18956 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18957 | SWIG_fail; | |
18958 | if (arg2 == NULL) { | |
18959 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18960 | SWIG_fail; | |
18961 | } | |
18962 | { | |
18963 | arg3 = &temp3; | |
18964 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18965 | } | |
18966 | if (obj3) { | |
18967 | arg4 = (int) SWIG_AsInt(obj3); | |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
18970 | { | |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
18977 | Py_INCREF(Py_None); resultobj = Py_None; | |
18978 | return resultobj; | |
18979 | fail: | |
18980 | return NULL; | |
18981 | } | |
18982 | ||
18983 | ||
18984 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18985 | PyObject *resultobj; | |
18986 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18987 | wxRect *arg2 = 0 ; | |
18988 | wxDC *arg3 = 0 ; | |
18989 | wxBitmap *arg4 = 0 ; | |
18990 | bool result; | |
18991 | wxRect temp2 ; | |
18992 | PyObject * obj0 = 0 ; | |
18993 | PyObject * obj1 = 0 ; | |
18994 | PyObject * obj2 = 0 ; | |
18995 | PyObject * obj3 = 0 ; | |
18996 | char *kwnames[] = { | |
18997 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18998 | }; | |
18999 | ||
19000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19003 | { | |
19004 | arg2 = &temp2; | |
19005 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19006 | } | |
19007 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
19008 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19009 | SWIG_fail; | |
19010 | if (arg3 == NULL) { | |
19011 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19012 | SWIG_fail; | |
19013 | } | |
19014 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
19015 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19016 | SWIG_fail; | |
19017 | if (arg4 == NULL) { | |
19018 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19019 | SWIG_fail; | |
19020 | } | |
19021 | { | |
19022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19023 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
19024 | ||
19025 | wxPyEndAllowThreads(__tstate); | |
19026 | if (PyErr_Occurred()) SWIG_fail; | |
19027 | } | |
19028 | { | |
19029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19030 | } | |
19031 | return resultobj; | |
19032 | fail: | |
19033 | return NULL; | |
19034 | } | |
19035 | ||
19036 | ||
19037 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
19038 | PyObject *obj; | |
19039 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19040 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
19041 | Py_INCREF(obj); | |
19042 | return Py_BuildValue((char *)""); | |
19043 | } | |
19044 | static PyMethodDef SwigMethods[] = { | |
19045 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
19046 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
19047 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
19048 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
19049 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
19050 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
19051 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
19052 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
19053 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
19054 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
19055 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
19056 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
19057 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
19058 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19059 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
19060 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
19061 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, | |
19062 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
19063 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
19064 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
19065 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
19066 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
19067 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
19068 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
19069 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
19070 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
19071 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
19072 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19073 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
19074 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
19075 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
19076 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
19077 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
19078 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
19079 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19080 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19081 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19082 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
19083 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
19084 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
19085 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19086 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19087 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
19088 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19089 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19090 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
19091 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
19092 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 RD |
19093 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
19094 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 19095 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
d55e5bfc RD |
19096 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, |
19097 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
19098 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
19099 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19100 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
19101 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
19102 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19103 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
19104 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19105 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
19106 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
19107 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19108 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19109 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
19110 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
19111 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
19112 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
19113 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
19114 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19115 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19116 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19117 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19118 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19119 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19120 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19121 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
19122 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
19123 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
19124 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
19125 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19126 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
19127 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
19128 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
19129 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19130 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19131 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19132 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
19133 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
19134 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
19135 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
19136 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, | |
19137 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, | |
19138 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
19139 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
19140 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
19141 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
19142 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
19143 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
19144 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
19145 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19146 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
19147 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
19148 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19149 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19150 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19151 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19152 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19153 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19154 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19155 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19156 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19157 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
19158 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19159 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
19160 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
19161 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
19162 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
19163 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19164 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19165 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
19166 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
19167 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
19168 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
19169 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
19170 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
19171 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
19172 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
19173 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
19174 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
19175 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
19176 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
19177 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
19178 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
19179 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
19180 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19181 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19182 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19183 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19184 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19185 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19186 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19187 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19188 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19189 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
19190 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
19191 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
19192 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
a2569024 | 19193 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19194 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, |
19195 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
19196 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
19197 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
19198 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
19199 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
19200 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
19201 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
19202 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
19203 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
19204 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
19205 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
19206 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
19207 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
19208 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
19209 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
19210 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
19211 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
19212 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
19213 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
19214 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
19215 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
19216 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19217 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
a2569024 | 19218 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19219 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, |
19220 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
19221 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
19222 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
19223 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
19224 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
19225 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19226 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
19227 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19228 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
19229 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
19230 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
19231 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
19232 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
19233 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
19234 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19235 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19236 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
19237 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
19238 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19239 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19240 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19241 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19242 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19243 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19244 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19245 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19246 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19247 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19248 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19249 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19250 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19251 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19252 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
19253 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
19254 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
19255 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
19256 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
19257 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
19258 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
19259 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
19260 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
19261 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
19262 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
19263 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
19264 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
19265 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
19266 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
19267 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19268 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19269 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
19270 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
19271 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
19272 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
19273 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19274 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
19275 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19276 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
19277 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
19278 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS }, | |
19279 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
19280 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
19281 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
19282 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19283 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
19284 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
19285 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
19286 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
19287 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
19288 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
19289 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
19290 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
19291 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
19292 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19293 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
19294 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
19295 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19296 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19297 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19298 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19299 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19300 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19301 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19302 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19303 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
19304 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
19305 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
19306 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19307 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19308 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19309 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19310 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19311 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19312 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19313 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19314 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
19315 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
19316 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
19317 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
19318 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
19319 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
19320 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
19321 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19322 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19323 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
19324 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
19325 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
19326 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
19327 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
19328 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
19329 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
19330 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
19331 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
19332 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
19333 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
19334 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
19335 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
19336 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
19337 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
19338 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
19339 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
19340 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
19341 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
19342 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
19343 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19344 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19345 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
19346 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
19347 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
19348 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19349 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
19350 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
19351 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
19352 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
19353 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
19354 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
19355 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
19356 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
19357 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19358 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
19359 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
19360 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
19361 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
19362 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
19363 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
19364 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
19365 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
19366 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
19367 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
19368 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
19369 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
19370 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
19371 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
19372 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
19373 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 19374 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19375 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19376 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19377 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19378 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19379 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19380 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19381 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19382 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19383 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19384 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19385 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19386 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19387 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19388 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19389 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19390 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
19391 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19392 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19393 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, |
19394 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19395 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19396 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19397 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19398 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, |
19399 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19400 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19401 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19402 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19403 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19404 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19405 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19406 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19407 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19408 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19409 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 RD |
19410 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS }, |
19411 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
19412 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19413 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
19414 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
19415 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, |
19416 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
19417 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
19418 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
19419 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
19420 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
19421 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
19422 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
19423 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
19424 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
19425 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
19426 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
19427 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
19428 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
19429 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
19430 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
19431 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
19432 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
19433 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
19434 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
19435 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
19436 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19437 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19438 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19439 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, | |
19440 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19441 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
19442 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
19443 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, | |
19444 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
19445 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
19446 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
19447 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
19448 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
19449 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
19450 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
19451 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
19452 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19453 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19454 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19455 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
19456 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19457 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
19458 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
19459 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
19460 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
19461 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
19462 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
19463 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
19464 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
19465 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
19466 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
19467 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
19468 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
19469 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
19470 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
19471 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
19472 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
19473 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
19474 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19475 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19476 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
19477 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
19478 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19479 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19480 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
19481 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
19482 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
19483 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
19484 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
19485 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19486 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19487 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
19488 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
19489 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
19490 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
19491 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
19492 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
0439c23b | 19493 | { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19494 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, |
19495 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
19496 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
19497 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
19498 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
19499 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
19500 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
19501 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
19502 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
19503 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
19504 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
19505 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, | |
d55e5bfc RD |
19506 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, |
19507 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
19508 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
19509 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
19510 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
19511 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
19512 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
19513 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19514 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19515 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
19516 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
19517 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
19518 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
19519 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
19520 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
19521 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
19522 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
19523 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
19524 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
19525 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19526 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19527 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19528 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19529 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
19530 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19531 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19532 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19533 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
19534 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19535 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19536 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19537 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19538 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
19539 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
19540 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
19541 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
19542 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
19543 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
19544 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19545 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19546 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
19547 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
19548 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
19549 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
19550 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
19551 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
19552 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
19553 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
19554 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19555 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
19556 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
19557 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
19558 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
19559 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19560 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
19561 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
19562 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
19563 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
19564 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19565 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
19566 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19567 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19568 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
19569 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
19570 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
19571 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
19572 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
19573 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
19574 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
19575 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
19576 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19577 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
19578 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, | |
19579 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19580 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19581 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19582 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19583 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19584 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19585 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19586 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19587 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19588 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19589 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
19590 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
19591 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19592 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
19593 | { NULL, NULL } | |
19594 | }; | |
19595 | ||
19596 | ||
19597 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19598 | ||
19599 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
19600 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19601 | } | |
19602 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19603 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19604 | } | |
19605 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19606 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19607 | } | |
19608 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
19609 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19610 | } | |
19611 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19612 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19613 | } | |
19614 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
19615 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19616 | } | |
19617 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19618 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19619 | } | |
19620 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19621 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19622 | } | |
19623 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19624 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19625 | } | |
19626 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19627 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19628 | } | |
19629 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19630 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19631 | } | |
19632 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19633 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19634 | } | |
19635 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19636 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19637 | } | |
19638 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19639 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19640 | } | |
19641 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19642 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19643 | } | |
19644 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19645 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19646 | } | |
19647 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19648 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19649 | } | |
19650 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19651 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19652 | } | |
19653 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19654 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19655 | } | |
19656 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19657 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19658 | } | |
19659 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19660 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19661 | } | |
19662 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19663 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19664 | } | |
19665 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19666 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19667 | } | |
19668 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19669 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19670 | } | |
19671 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19672 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19673 | } | |
19674 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19675 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19676 | } | |
19677 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19678 | return (void *)((wxObject *) ((wxDC *) x)); | |
19679 | } | |
19680 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19681 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19682 | } | |
19683 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19684 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19685 | } | |
19686 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19687 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19688 | } | |
19689 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19690 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19691 | } | |
19692 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19693 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19694 | } | |
19695 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19696 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19697 | } | |
19698 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19699 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19700 | } | |
19701 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19702 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19703 | } | |
19704 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19705 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19706 | } | |
19707 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19708 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19709 | } | |
19710 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19711 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19712 | } | |
19713 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19714 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19715 | } | |
19716 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19717 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19718 | } | |
19719 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19720 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19721 | } | |
19722 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19723 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19724 | } | |
19725 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19726 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19727 | } | |
19728 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19729 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19730 | } | |
19731 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19732 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19733 | } | |
19734 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19735 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19736 | } | |
19737 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19738 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19739 | } | |
19740 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19741 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19742 | } | |
19743 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19744 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19745 | } | |
19746 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19747 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19748 | } | |
19749 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19750 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19751 | } | |
19752 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19753 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19754 | } | |
19755 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19756 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19757 | } | |
19758 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19759 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19760 | } | |
19761 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19762 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19763 | } | |
19764 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19765 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19766 | } | |
19767 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19768 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19769 | } | |
19770 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19771 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19772 | } | |
19773 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19774 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19775 | } | |
19776 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19777 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19778 | } | |
19779 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19780 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19781 | } | |
19782 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19783 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19784 | } | |
19785 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19786 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19787 | } | |
19788 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19789 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19790 | } | |
19791 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19792 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19793 | } | |
19794 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19795 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19796 | } | |
19797 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19798 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19799 | } | |
19800 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19801 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19802 | } | |
19803 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19804 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19805 | } | |
19806 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19807 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19808 | } | |
19809 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19810 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19811 | } | |
19812 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
19813 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19814 | } | |
19815 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
19816 | return (void *)((wxObject *) ((wxImage *) x)); | |
19817 | } | |
19818 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19819 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19820 | } | |
19821 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
19822 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19823 | } | |
19824 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19825 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19826 | } | |
19827 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19828 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19829 | } | |
19830 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19831 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19832 | } | |
19833 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19834 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19835 | } | |
19836 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19837 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19838 | } | |
19839 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19840 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19841 | } | |
19842 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19843 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19844 | } | |
19845 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19846 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19847 | } | |
19848 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19849 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19850 | } | |
19851 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19852 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19853 | } | |
19854 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19855 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19856 | } | |
19857 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19858 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19859 | } | |
19860 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19861 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19862 | } | |
d55e5bfc RD |
19863 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
19864 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19865 | } | |
19866 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19867 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19868 | } | |
19869 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19870 | return (void *)((wxObject *) ((wxMask *) x)); | |
19871 | } | |
19872 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19873 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19874 | } | |
19875 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19876 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19877 | } | |
19878 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19879 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19880 | } | |
19881 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19882 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19883 | } | |
19884 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19885 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19886 | } | |
19887 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19888 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19889 | } | |
19890 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19891 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19892 | } | |
19893 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19894 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19895 | } | |
19896 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19897 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19898 | } | |
19899 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19900 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19901 | } | |
19902 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19903 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19904 | } | |
19905 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19906 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19907 | } | |
19908 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19909 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19910 | } | |
19911 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19912 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19913 | } | |
19914 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19915 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19916 | } | |
19917 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19918 | return (void *)((wxObject *) ((wxColour *) x)); | |
19919 | } | |
19920 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19921 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19922 | } | |
19923 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19924 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19925 | } | |
19926 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19927 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19928 | } | |
19929 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
19930 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19931 | } | |
19932 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
19933 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
19934 | } | |
19935 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
19936 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19937 | } | |
19938 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19939 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19940 | } | |
19941 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19942 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19943 | } | |
19944 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19945 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19946 | } | |
19947 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19948 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19949 | } | |
19950 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19951 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19952 | } | |
19953 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19954 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19955 | } | |
19956 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19957 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19958 | } | |
19959 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19960 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19961 | } | |
19962 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19963 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19964 | } | |
d55e5bfc RD |
19965 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
19966 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19967 | } | |
19968 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19969 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19970 | } | |
19971 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19972 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19973 | } | |
19974 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19975 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19976 | } | |
19977 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19978 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19979 | } | |
19980 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19981 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19982 | } | |
19983 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19984 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19985 | } | |
19986 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19987 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19988 | } | |
d55e5bfc RD |
19989 | 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}}; |
19990 | 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}}; | |
19991 | 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}}; | |
19992 | 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}}; | |
19993 | 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}}; | |
19994 | 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}}; | |
19995 | 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}}; | |
19996 | 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}}; | |
19997 | 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}}; | |
19998 | 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}}; | |
19999 | 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}}; | |
20000 | 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}}; | |
20001 | 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}}; | |
20002 | 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}}; | |
20003 | 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}}; | |
20004 | 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}}; | |
20005 | 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}}; | |
20006 | 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}}; | |
20007 | 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}}; | |
20008 | 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}}; | |
20009 | 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}}; | |
20010 | 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 | 20011 | 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 |
20012 | 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}}; |
20013 | 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}}; | |
20014 | 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}}; | |
20015 | 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}}; | |
20016 | 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}}; | |
20017 | 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}}; | |
20018 | 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}}; | |
20019 | 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}}; | |
20020 | 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}}; | |
20021 | 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}}; | |
20022 | 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}}; | |
20023 | 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}}; | |
20024 | 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 | 20025 | 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 |
20026 | 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}}; |
20027 | 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}}; | |
20028 | 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 | 20029 | 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 | 20030 | 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 |
20031 | 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}}; |
20032 | 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}}; | |
20033 | 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}}; | |
20034 | 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 | 20035 | 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 |
20036 | 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}}; |
20037 | 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}}; | |
20038 | 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 |
20039 | 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}}; |
20040 | 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}}; | |
20041 | 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}}; | |
20042 | 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}}; | |
20043 | 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}}; | |
20044 | ||
20045 | static swig_type_info *swig_types_initial[] = { | |
20046 | _swigt__p_wxPostScriptDC, | |
20047 | _swigt__p_wxBrush, | |
20048 | _swigt__p_wxColour, | |
20049 | _swigt__p_wxDC, | |
20050 | _swigt__p_wxMirrorDC, | |
20051 | _swigt__p_byte, | |
20052 | _swigt__p_wxPyFontEnumerator, | |
20053 | _swigt__p_char, | |
20054 | _swigt__p_wxIconLocation, | |
20055 | _swigt__p_wxImage, | |
20056 | _swigt__p_wxMetaFileDC, | |
20057 | _swigt__p_wxMask, | |
20058 | _swigt__p_wxSize, | |
20059 | _swigt__p_wxFont, | |
20060 | _swigt__p_wxWindow, | |
20061 | _swigt__p_double, | |
20062 | _swigt__p_wxMemoryDC, | |
20063 | _swigt__p_wxFontMapper, | |
20064 | _swigt__p_wxEffects, | |
20065 | _swigt__p_wxNativeEncodingInfo, | |
20066 | _swigt__p_wxPalette, | |
20067 | _swigt__p_wxBitmap, | |
20068 | _swigt__p_wxObject, | |
20069 | _swigt__p_wxRegionIterator, | |
20070 | _swigt__p_wxRect, | |
20071 | _swigt__p_wxString, | |
20072 | _swigt__p_wxPrinterDC, | |
20073 | _swigt__p_wxIconBundle, | |
20074 | _swigt__p_wxPoint, | |
20075 | _swigt__p_wxDash, | |
20076 | _swigt__p_wxScreenDC, | |
20077 | _swigt__p_wxCursor, | |
20078 | _swigt__p_wxClientDC, | |
20079 | _swigt__p_wxBufferedDC, | |
20080 | _swigt__p_wxImageList, | |
20081 | _swigt__p_unsigned_char, | |
20082 | _swigt__p_wxGDIObject, | |
20083 | _swigt__p_wxIcon, | |
20084 | _swigt__p_wxLocale, | |
20085 | _swigt__p_wxRegion, | |
d55e5bfc | 20086 | _swigt__p_wxLanguageInfo, |
c24da6d6 | 20087 | _swigt__p_wxConfigBase, |
d55e5bfc RD |
20088 | _swigt__p_wxWindowDC, |
20089 | _swigt__p_wxPrintData, | |
20090 | _swigt__p_wxBrushList, | |
20091 | _swigt__p_wxFontList, | |
20092 | _swigt__p_wxPen, | |
20093 | _swigt__p_wxBufferedPaintDC, | |
20094 | _swigt__p_wxPaintDC, | |
20095 | _swigt__p_wxPenList, | |
d55e5bfc RD |
20096 | _swigt__p_int, |
20097 | _swigt__p_wxMetaFile, | |
20098 | _swigt__p_wxNativeFontInfo, | |
20099 | _swigt__p_wxEncodingConverter, | |
20100 | _swigt__p_wxColourDatabase, | |
20101 | 0 | |
20102 | }; | |
20103 | ||
20104 | ||
20105 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
20106 | ||
20107 | static swig_const_info swig_const_table[] = { | |
20108 | {0}}; | |
20109 | ||
20110 | #ifdef __cplusplus | |
20111 | } | |
20112 | #endif | |
20113 | ||
20114 | #ifdef __cplusplus | |
20115 | extern "C" | |
20116 | #endif | |
20117 | SWIGEXPORT(void) SWIG_init(void) { | |
20118 | static PyObject *SWIG_globals = 0; | |
20119 | static int typeinit = 0; | |
20120 | PyObject *m, *d; | |
20121 | int i; | |
20122 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
20123 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
20124 | d = PyModule_GetDict(m); | |
20125 | ||
20126 | if (!typeinit) { | |
20127 | for (i = 0; swig_types_initial[i]; i++) { | |
20128 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
20129 | } | |
20130 | typeinit = 1; | |
20131 | } | |
20132 | SWIG_InstallConstants(d,swig_const_table); | |
20133 | ||
20134 | PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); | |
20135 | PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); | |
20136 | PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); | |
20137 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
20138 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
20139 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); | |
20140 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
20141 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); | |
20142 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); | |
20143 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
20144 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); | |
20145 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
20146 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); | |
20147 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); | |
20148 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); | |
20149 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); | |
20150 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
20151 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
20152 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); | |
20153 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); | |
20154 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); | |
20155 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); | |
20156 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); | |
20157 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); | |
20158 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); | |
20159 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
20160 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
20161 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
20162 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
20163 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); | |
20164 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); | |
20165 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); | |
20166 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
20167 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
20168 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
20169 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
20170 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
20171 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
20172 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
20173 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
20174 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
20175 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
20176 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
20177 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
20178 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
20179 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
20180 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
20181 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
20182 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); | |
20183 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U)); | |
20184 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
20185 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
20186 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); | |
20187 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); | |
20188 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); | |
20189 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); | |
20190 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); | |
20191 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); | |
20192 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); | |
20193 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); | |
20194 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); | |
20195 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); | |
20196 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); | |
20197 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); | |
20198 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); | |
20199 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); | |
20200 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); | |
20201 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); | |
20202 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); | |
20203 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); | |
20204 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
20205 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); | |
20206 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); | |
20207 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); | |
20208 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); | |
20209 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); | |
20210 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); | |
20211 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); | |
20212 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); | |
20213 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
20214 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
20215 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
20216 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); | |
20217 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
20218 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); | |
20219 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
20220 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
20221 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
20222 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
20223 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); | |
20224 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
20225 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
20226 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
20227 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
20228 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
20229 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
20230 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
20231 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); | |
20232 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); | |
20233 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
20234 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
20235 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
20236 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
20237 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
20238 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
20239 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
20240 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
20241 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
20242 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
20243 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
20244 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
20245 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
20246 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
20247 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
20248 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
20249 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
20250 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
20251 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
20252 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); | |
20253 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); | |
20254 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); | |
20255 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); | |
20256 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); | |
20257 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); | |
20258 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); | |
20259 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); | |
20260 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
20261 | ||
20262 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
20263 | ||
20264 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); | |
20265 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
20266 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
20267 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); | |
20268 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
20269 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
20270 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); | |
20271 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); | |
20272 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
20273 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
20274 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
20275 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
20276 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
20277 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
20278 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
20279 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
20280 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
20281 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
20282 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
20283 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
20284 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
20285 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
20286 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
20287 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
20288 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
20289 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
20290 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
20291 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); | |
20292 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); | |
20293 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
20294 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
20295 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); | |
20296 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); | |
20297 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
20298 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); | |
20299 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); | |
20300 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); | |
20301 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); | |
20302 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); | |
20303 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
20304 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); | |
20305 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
20306 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); | |
20307 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); | |
20308 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
20309 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
20310 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
20311 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
20312 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
20313 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
20314 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); | |
20315 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); | |
20316 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); | |
20317 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); | |
20318 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); | |
20319 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
20320 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); | |
20321 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
20322 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
20323 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
20324 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
20325 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
20326 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
20327 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
20328 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
20329 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
20330 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
20331 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
20332 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
20333 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
20334 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
20335 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
20336 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
20337 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
20338 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); | |
20339 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); | |
20340 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); | |
20341 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); | |
20342 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); | |
20343 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
20344 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
20345 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
20346 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
20347 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
20348 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); | |
20349 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); | |
20350 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
20351 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); | |
20352 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
20353 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
20354 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
20355 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
20356 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
20357 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); | |
20358 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
20359 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); | |
20360 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); | |
20361 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); | |
20362 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); | |
20363 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); | |
20364 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
20365 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
20366 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
20367 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
20368 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
20369 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
20370 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); | |
20371 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); | |
20372 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); | |
20373 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
20374 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); | |
20375 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); | |
20376 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); | |
20377 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
20378 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
20379 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); | |
20380 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
20381 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
20382 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
20383 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
20384 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); | |
20385 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); | |
20386 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); | |
20387 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
20388 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); | |
20389 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); | |
20390 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); | |
20391 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
20392 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
20393 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); | |
20394 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); | |
20395 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
20396 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
20397 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
20398 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); | |
20399 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); | |
20400 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); | |
20401 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); | |
20402 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
20403 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
20404 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); | |
20405 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); | |
20406 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
20407 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
20408 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
20409 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); | |
20410 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); | |
20411 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); | |
20412 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); | |
20413 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); | |
20414 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
20415 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
20416 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); | |
20417 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); | |
20418 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
20419 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
20420 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
20421 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
20422 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); | |
20423 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); | |
20424 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
20425 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
20426 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); | |
20427 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
20428 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
20429 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
20430 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); | |
20431 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); | |
20432 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); | |
20433 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); | |
20434 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); | |
20435 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); | |
20436 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); | |
20437 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
20438 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); | |
20439 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); | |
20440 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
20441 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
20442 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
20443 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
20444 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
20445 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
20446 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
20447 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
20448 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
20449 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
20450 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
20451 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
20452 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
20453 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
20454 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
20455 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
20456 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
20457 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
20458 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
20459 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
20460 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
20461 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); | |
20462 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); | |
20463 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
20464 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); | |
20465 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); | |
20466 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); | |
20467 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); | |
20468 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); | |
20469 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); | |
20470 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); | |
20471 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
20472 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); | |
20473 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); | |
20474 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); | |
20475 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); | |
20476 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); | |
20477 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); | |
20478 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
20479 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); | |
20480 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
20481 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
20482 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); | |
20483 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
20484 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
20485 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
20486 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
20487 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); | |
20488 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); | |
20489 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); | |
20490 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); | |
20491 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); | |
20492 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); | |
20493 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); | |
20494 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
20495 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
20496 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); | |
20497 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); | |
20498 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); | |
20499 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
20500 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
20501 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
20502 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
20503 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); | |
20504 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
20505 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); | |
20506 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); | |
20507 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); | |
20508 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); | |
20509 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); | |
20510 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
20511 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
20512 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
20513 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
20514 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
20515 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); | |
20516 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); | |
20517 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
20518 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20519 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20520 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20521 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20522 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20523 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20524 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20525 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20526 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20527 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20528 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20529 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20530 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20531 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20532 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20533 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20534 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20535 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20536 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20537 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20538 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20539 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20540 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20541 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20542 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20543 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20544 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20545 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20546 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20547 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20548 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20549 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20550 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20551 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20552 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20553 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20554 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20555 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20556 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20557 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20558 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20559 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20560 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20561 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20562 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20563 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
20564 | ||
20565 | // Work around a chicken/egg problem in drawlist.cpp | |
20566 | wxPyDrawList_SetAPIPtr(); | |
20567 | ||
20568 | } | |
20569 |