]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
0f774bef RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
0f774bef | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2dbef272 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
0f774bef RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
8edf1c75 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
423f194a | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
423f194a RD |
234 | #define SWIGTYPE_p_wxBrush swig_types[1] |
235 | #define SWIGTYPE_p_wxColour swig_types[2] | |
236 | #define SWIGTYPE_p_wxDC swig_types[3] | |
237 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
238 | #define SWIGTYPE_p_byte swig_types[5] | |
239 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
8edf1c75 RD |
240 | #define SWIGTYPE_p_char swig_types[7] |
241 | #define SWIGTYPE_p_wxIconLocation swig_types[8] | |
242 | #define SWIGTYPE_p_wxImage swig_types[9] | |
243 | #define SWIGTYPE_p_wxMetaFileDC swig_types[10] | |
244 | #define SWIGTYPE_p_wxMask swig_types[11] | |
245 | #define SWIGTYPE_p_wxFont swig_types[12] | |
246 | #define SWIGTYPE_p_wxWindow swig_types[13] | |
247 | #define SWIGTYPE_p_wxSize swig_types[14] | |
248 | #define SWIGTYPE_p_double swig_types[15] | |
249 | #define SWIGTYPE_p_wxMemoryDC swig_types[16] | |
250 | #define SWIGTYPE_p_wxFontMapper swig_types[17] | |
251 | #define SWIGTYPE_p_wxEffects swig_types[18] | |
252 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] | |
253 | #define SWIGTYPE_p_wxPalette swig_types[20] | |
254 | #define SWIGTYPE_p_wxBitmap swig_types[21] | |
255 | #define SWIGTYPE_p_wxObject swig_types[22] | |
256 | #define SWIGTYPE_p_wxRegionIterator swig_types[23] | |
257 | #define SWIGTYPE_p_wxRect swig_types[24] | |
258 | #define SWIGTYPE_p_wxString swig_types[25] | |
259 | #define SWIGTYPE_p_wxPrinterDC swig_types[26] | |
260 | #define SWIGTYPE_p_wxIconBundle swig_types[27] | |
261 | #define SWIGTYPE_p_wxPoint swig_types[28] | |
262 | #define SWIGTYPE_p_wxDash swig_types[29] | |
263 | #define SWIGTYPE_p_wxScreenDC swig_types[30] | |
264 | #define SWIGTYPE_p_wxCursor swig_types[31] | |
265 | #define SWIGTYPE_p_wxClientDC swig_types[32] | |
266 | #define SWIGTYPE_p_wxBufferedDC swig_types[33] | |
267 | #define SWIGTYPE_p_wxImageList swig_types[34] | |
268 | #define SWIGTYPE_p_unsigned_char swig_types[35] | |
269 | #define SWIGTYPE_p_wxGDIObject swig_types[36] | |
423f194a | 270 | #define SWIGTYPE_p_wxIcon swig_types[37] |
8edf1c75 RD |
271 | #define SWIGTYPE_p_wxLocale swig_types[38] |
272 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
273 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] | |
274 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
275 | #define SWIGTYPE_p_wxWindowDC swig_types[42] | |
276 | #define SWIGTYPE_p_wxPrintData swig_types[43] | |
277 | #define SWIGTYPE_p_wxBrushList swig_types[44] | |
278 | #define SWIGTYPE_p_wxFontList swig_types[45] | |
279 | #define SWIGTYPE_p_wxPen swig_types[46] | |
280 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47] | |
281 | #define SWIGTYPE_p_wxPaintDC swig_types[48] | |
282 | #define SWIGTYPE_p_wxPenList swig_types[49] | |
283 | #define SWIGTYPE_p_wxPyPen swig_types[50] | |
284 | #define SWIGTYPE_p_int swig_types[51] | |
285 | #define SWIGTYPE_p_wxMetaFile swig_types[52] | |
286 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[53] | |
287 | #define SWIGTYPE_p_wxEncodingConverter swig_types[54] | |
288 | #define SWIGTYPE_p_wxColourDatabase swig_types[55] | |
289 | static swig_type_info *swig_types[57]; | |
d14a1e28 RD |
290 | |
291 | /* -------- TYPES TABLE (END) -------- */ | |
292 | ||
293 | ||
294 | /*----------------------------------------------- | |
295 | @(target):= _gdi.so | |
296 | ------------------------------------------------*/ | |
297 | #define SWIG_init init_gdi | |
298 | ||
299 | #define SWIG_name "_gdi" | |
300 | ||
8edf1c75 RD |
301 | #include <limits.h> |
302 | #include <float.h> | |
303 | #include <string.h> | |
304 | ||
305 | #ifndef SWIGSTATIC | |
306 | #ifdef __cplusplus | |
307 | #define SWIGSTATIC(a) static inline a | |
308 | #else | |
309 | #define SWIGSTATIC(a) static a | |
310 | #endif | |
311 | #endif | |
312 | ||
313 | #ifndef numeric_cast | |
314 | #ifdef __cplusplus | |
315 | #ifdef HAVE_NUMERIC_CAST | |
316 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
317 | #else | |
318 | #define numeric_cast(type,a) static_cast<type>(a) | |
319 | #endif | |
320 | #else | |
321 | #define numeric_cast(type,a) (type)(a) | |
322 | #endif | |
323 | #endif | |
324 | ||
325 | ||
326 | ||
327 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
328 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
329 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
330 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
331 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
332 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
333 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
334 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
335 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
336 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
337 | ||
338 | ||
d14a1e28 RD |
339 | #include "wx/wxPython/wxPython.h" |
340 | #include "wx/wxPython/pyclasses.h" | |
341 | ||
d14a1e28 | 342 | |
cbd72d4f | 343 | static const wxString wxPyEmptyString(wxEmptyString); |
8edf1c75 | 344 | |
8edf1c75 RD |
345 | SWIGSTATIC(bool) |
346 | SWIG_PyObj_AsBool(PyObject *obj) | |
347 | { | |
348 | return PyObject_IsTrue(obj) ? true : false; | |
349 | } | |
350 | ||
351 | ||
352 | SWIGSTATIC(unsigned char) | |
353 | SWIG_PyObj_AsUnsignedChar(PyObject *obj) | |
354 | { | |
355 | return numeric_cast(unsigned char, | |
356 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX)); | |
357 | } | |
358 | ||
d14a1e28 RD |
359 | PyObject *wxColour_Get(wxColour *self){ |
360 | PyObject* rv = PyTuple_New(3); | |
361 | int red = -1; | |
362 | int green = -1; | |
363 | int blue = -1; | |
364 | if (self->Ok()) { | |
365 | red = self->Red(); | |
366 | green = self->Green(); | |
367 | blue = self->Blue(); | |
368 | } | |
369 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
370 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
371 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
372 | return rv; | |
373 | } | |
38f59159 RD |
374 | unsigned long wxColour_GetRGB(wxColour *self){ |
375 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
376 | } | |
377 | ||
378 | SWIGSTATIC(PyObject* ) | |
379 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
380 | { | |
381 | return (value > (unsigned long)(LONG_MAX)) ? | |
382 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
383 | } | |
384 | ||
d14a1e28 | 385 | |
8edf1c75 RD |
386 | SWIGSTATIC(int) |
387 | SWIG_PyObj_AsInt(PyObject *obj) | |
388 | { | |
389 | return numeric_cast(int, | |
390 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
391 | } | |
392 | ||
393 | ||
d14a1e28 RD |
394 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
395 | PyObject* o2; | |
396 | PyObject* o3; | |
397 | ||
398 | if (!target) { | |
399 | target = o; | |
400 | } else if (target == Py_None) { | |
401 | Py_DECREF(Py_None); | |
402 | target = o; | |
403 | } else { | |
404 | if (!PyTuple_Check(target)) { | |
405 | o2 = target; | |
406 | target = PyTuple_New(1); | |
407 | PyTuple_SetItem(target, 0, o2); | |
408 | } | |
409 | o3 = PyTuple_New(1); | |
410 | PyTuple_SetItem(o3, 0, o); | |
411 | ||
412 | o2 = target; | |
413 | target = PySequence_Concat(o2, o3); | |
414 | Py_DECREF(o2); | |
415 | Py_DECREF(o3); | |
416 | } | |
417 | return target; | |
418 | } | |
419 | ||
420 | PyObject *wxPen_GetDashes(wxPen *self){ | |
421 | wxDash* dashes; | |
422 | int count = self->GetDashes(&dashes); | |
423 | wxPyBeginBlockThreads(); | |
424 | PyObject* retval = PyList_New(0); | |
425 | for (int x=0; x<count; x++) | |
426 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
427 | wxPyEndBlockThreads(); | |
428 | return retval; | |
429 | } | |
38f59159 RD |
430 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; } |
431 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
432 | |
433 | wxPyPen::~wxPyPen() | |
434 | { | |
435 | if (m_dash) | |
436 | delete [] m_dash; | |
437 | } | |
438 | ||
439 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
440 | { | |
441 | if (m_dash) | |
442 | delete [] m_dash; | |
443 | m_dash = new wxDash[nb_dashes]; | |
444 | for (int i=0; i<nb_dashes; i++) { | |
445 | m_dash[i] = dash[i]; | |
446 | } | |
447 | wxPen::SetDashes(nb_dashes, m_dash); | |
448 | } | |
449 | ||
450 | ||
8edf1c75 RD |
451 | SWIGSTATIC(short) |
452 | SWIG_PyObj_AsShort(PyObject *obj) | |
453 | { | |
454 | return numeric_cast(short, | |
455 | SWIG_PyObj_AsLongInRange(obj, "short", SHRT_MIN, SHRT_MAX)); | |
456 | } | |
457 | ||
458 | ||
d14a1e28 RD |
459 | #include <wx/image.h> |
460 | ||
461 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
462 | char** cArray = NULL; | |
463 | int count; | |
464 | ||
465 | if (!PyList_Check(listOfStrings)) { | |
466 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
467 | return NULL; | |
468 | } | |
469 | count = PyList_Size(listOfStrings); | |
470 | cArray = new char*[count]; | |
471 | ||
472 | for(int x=0; x<count; x++) { | |
473 | // TODO: Need some validation and error checking here | |
474 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
475 | } | |
476 | return cArray; | |
477 | } | |
478 | ||
479 | ||
480 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
481 | char** cArray = NULL; | |
482 | wxBitmap* bmp; | |
483 | ||
484 | cArray = ConvertListOfStrings(listOfStrings); | |
485 | if (! cArray) | |
486 | return NULL; | |
487 | bmp = new wxBitmap(cArray); | |
488 | delete [] cArray; | |
489 | return bmp; | |
490 | } | |
491 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
492 | char* buf; | |
493 | int length; | |
494 | PyString_AsStringAndSize(bits, &buf, &length); | |
495 | return new wxBitmap(buf, width, height, depth); | |
496 | } | |
497 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
498 | wxMask *mask = new wxMask(*self, colour); | |
499 | self->SetMask(mask); | |
500 | } | |
0ffb2aa6 RD |
501 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
502 | if ( !colour.Ok() ) | |
503 | return new wxMask(bitmap, *wxBLACK); | |
504 | else | |
505 | return new wxMask(bitmap, colour); | |
506 | } | |
d14a1e28 RD |
507 | |
508 | #include <wx/iconbndl.h> | |
509 | ||
510 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
511 | wxIcon* icon = new wxIcon(); | |
512 | icon->CopyFromBitmap(bmp); | |
513 | return icon; | |
514 | } | |
515 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
516 | char** cArray = NULL; | |
517 | wxIcon* icon; | |
518 | ||
519 | cArray = ConvertListOfStrings(listOfStrings); | |
520 | if (! cArray) | |
521 | return NULL; | |
522 | icon = new wxIcon(cArray); | |
523 | delete [] cArray; | |
524 | return icon; | |
525 | } | |
526 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
527 | ||
528 | ||
529 | ||
530 | return new wxIconLocation(*filename); | |
531 | ||
532 | } | |
533 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
534 | ||
535 | ||
536 | ||
537 | // do nothing | |
538 | ||
539 | } | |
540 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
541 | ||
542 | ||
543 | ||
544 | return -1; | |
545 | ||
546 | } | |
8edf1c75 RD |
547 | |
548 | SWIGSTATIC(long) | |
549 | SWIG_PyObj_AsLong(PyObject * obj) | |
550 | { | |
551 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
552 | } | |
553 | ||
d14a1e28 RD |
554 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ |
555 | ||
556 | ||
557 | ||
558 | ||
559 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
560 | ||
561 | } | |
562 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
563 | char* bitsbuf; | |
564 | char* maskbuf = NULL; | |
565 | int length; | |
566 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
567 | if (maskBits) | |
568 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
569 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
570 | } | |
571 | ||
572 | ||
573 | wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){ | |
cbd72d4f | 574 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
575 | return NULL; |
576 | } | |
577 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
578 | (*self) ++; | |
579 | } | |
580 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
581 | return self->operator bool(); | |
582 | } | |
583 | ||
584 | #include <wx/fontutil.h> | |
585 | #include <wx/fontmap.h> | |
586 | #include <wx/fontenum.h> | |
587 | ||
588 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
589 | return self->ToString(); | |
590 | } | |
591 | ||
592 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
593 | static wxNativeEncodingInfo info; | |
594 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
595 | return &info; | |
596 | else | |
597 | return NULL; | |
598 | } | |
599 | ||
600 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
601 | wxFontEncoding alt_enc; | |
602 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
603 | return PyInt_FromLong(alt_enc); | |
604 | else { | |
605 | Py_INCREF(Py_None); | |
606 | return Py_None; | |
607 | } | |
608 | } | |
609 | wxFont *new_wxFont(wxString const &info){ | |
610 | wxNativeFontInfo nfi; | |
611 | nfi.FromString(info); | |
612 | return new wxFont(nfi); | |
613 | } | |
614 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
615 | return wxFont::New(pointSize, family, flags, face, encoding); | |
616 | } | |
38f59159 RD |
617 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
618 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
619 | |
620 | class wxPyFontEnumerator : public wxFontEnumerator { | |
621 | public: | |
622 | wxPyFontEnumerator() {} | |
623 | ~wxPyFontEnumerator() {} | |
624 | ||
625 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
626 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
627 | ||
628 | PYPRIVATE; | |
629 | }; | |
630 | ||
631 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
632 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
633 | ||
634 | ||
635 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
636 | wxArrayString* arr = self->GetEncodings(); | |
637 | return wxArrayString2PyList_helper(*arr); | |
638 | } | |
639 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
640 | wxArrayString* arr = self->GetFacenames(); | |
641 | return wxArrayString2PyList_helper(*arr); | |
642 | } | |
643 | ||
644 | ||
645 | ||
646 | #include "wx/wxPython/pydrawxxx.h" | |
647 | ||
423f194a | 648 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
649 | wxColour col; |
650 | self->GetPixel(x, y, &col); | |
651 | return col; | |
652 | } | |
653 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
654 | wxColour col; | |
655 | self->GetPixel(pt, &col); | |
656 | return col; | |
657 | } | |
8edf1c75 RD |
658 | |
659 | SWIGSTATIC(double) | |
660 | SWIG_PyObj_AsDouble(PyObject *obj) | |
661 | { | |
662 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
663 | #if HAVE_LONG_LONG | |
664 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
665 | #else | |
666 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
667 | #endif | |
668 | if (PyErr_Occurred()) { | |
669 | PyErr_Clear(); | |
670 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
671 | } | |
672 | } | |
673 | ||
d14a1e28 RD |
674 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
675 | wxRect rv; | |
676 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
677 | return rv; | |
678 | } | |
679 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
680 | wxRect rect; | |
681 | self->GetClippingBox(rect); | |
682 | return rect; | |
683 | } | |
0ffb2aa6 RD |
684 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
685 | wxArrayInt widths; | |
686 | self->GetPartialTextExtents(text, widths); | |
687 | return widths; | |
688 | } | |
d14a1e28 RD |
689 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
690 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
691 | } | |
692 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
693 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
694 | } | |
695 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
696 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
697 | } | |
698 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
699 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
700 | } | |
701 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
702 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
703 | } | |
704 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
705 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
706 | } | |
707 | ||
708 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
709 | *x1 = dc->MinX(); | |
710 | *y1 = dc->MinY(); | |
711 | *x2 = dc->MaxX(); | |
712 | *y2 = dc->MaxY(); | |
713 | } | |
714 | ||
715 | ||
38f59159 RD |
716 | //-=-=-=-=-=-=-=-=-=-=- |
717 | #if 0 | |
718 | #include <wx/dcbuffer.h> | |
719 | #else | |
720 | ||
721 | ||
722 | // Temporarily put a set of classes here similar to the old buffered DC | |
723 | // classes until the real ones can be fixed to work "correctly" again. | |
724 | ||
725 | class wxBufferedDC : public wxMemoryDC | |
726 | { | |
727 | private: | |
728 | wxDC *m_dc; | |
729 | wxBitmap m_buffer; | |
730 | ||
731 | public: | |
732 | ||
733 | wxBufferedDC() : m_dc( 0 ) {} | |
734 | ||
735 | wxBufferedDC( wxDC *dc, const wxBitmap &buffer ) | |
736 | : m_dc( dc ), m_buffer( buffer ) | |
737 | { | |
738 | SelectObject( m_buffer ); | |
739 | } | |
740 | ||
741 | wxBufferedDC( wxDC *dc, const wxSize &area ) | |
742 | : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() ) | |
743 | { | |
744 | SelectObject( m_buffer ); | |
745 | } | |
746 | ||
747 | ~wxBufferedDC() { | |
748 | if( m_dc != 0 ) | |
749 | UnMask(); | |
750 | } | |
751 | ||
752 | ||
753 | void Init( wxDC *dc, const wxBitmap &buffer ) { | |
754 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
755 | _T("wxBufferedDC already initialised") ); | |
756 | m_dc = dc; | |
757 | m_buffer = buffer; | |
758 | SelectObject( m_buffer ); | |
759 | } | |
760 | ||
761 | void Init( wxDC *dc, const wxSize &area ) { | |
762 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
763 | _T("wxBufferedDC already initialised") ); | |
764 | m_dc = dc; | |
765 | m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() ); | |
766 | SelectObject( m_buffer ); | |
767 | } | |
768 | ||
769 | void UnMask() { | |
770 | wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") ); | |
771 | m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 ); | |
772 | m_dc = 0; | |
773 | } | |
774 | }; | |
775 | ||
776 | ||
777 | class wxBufferedPaintDC : public wxBufferedDC | |
778 | { | |
779 | private: | |
780 | wxPaintDC m_paintdc; | |
781 | ||
782 | public: | |
783 | wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap ) | |
784 | : m_paintdc( window ) | |
785 | { | |
786 | window->PrepareDC( m_paintdc ); | |
787 | ||
788 | if( buffer != wxNullBitmap ) | |
789 | Init( &m_paintdc, buffer ); | |
790 | else | |
791 | Init( &m_paintdc, window->GetClientSize() ); | |
792 | } | |
793 | ||
794 | ~wxBufferedPaintDC() { | |
795 | UnMask(); | |
796 | } | |
797 | }; | |
798 | ||
799 | #endif | |
800 | //-=-=-=-=-=-=-=-=-=-=- | |
801 | ||
802 | ||
d14a1e28 RD |
803 | #include <wx/dcps.h> |
804 | ||
805 | ||
806 | class wxMetaFile : public wxObject { | |
807 | public: | |
808 | wxMetaFile(const wxString&) | |
cbd72d4f | 809 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
810 | }; |
811 | ||
812 | class wxMetaFileDC : public wxClientDC { | |
813 | public: | |
814 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
cbd72d4f | 815 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
816 | }; |
817 | ||
818 | ||
819 | ||
820 | ||
821 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
822 | self->AddColour(name, wxColour(red, green, blue)); | |
823 | } | |
824 | ||
d14a1e28 RD |
825 | #include <wx/effects.h> |
826 | ||
827 | #ifdef __cplusplus | |
828 | extern "C" { | |
829 | #endif | |
830 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
831 | PyObject *resultobj; | |
832 | wxGDIObject *result; | |
833 | char *kwnames[] = { | |
834 | NULL | |
835 | }; | |
836 | ||
837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
838 | { | |
839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
840 | result = (wxGDIObject *)new wxGDIObject(); | |
841 | ||
842 | wxPyEndAllowThreads(__tstate); | |
843 | if (PyErr_Occurred()) SWIG_fail; | |
844 | } | |
845 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
846 | return resultobj; | |
847 | fail: | |
848 | return NULL; | |
849 | } | |
850 | ||
851 | ||
852 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
853 | PyObject *resultobj; | |
854 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
855 | PyObject * obj0 = 0 ; | |
856 | char *kwnames[] = { | |
857 | (char *) "self", NULL | |
858 | }; | |
859 | ||
860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
862 | { | |
863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
864 | delete arg1; | |
865 | ||
866 | wxPyEndAllowThreads(__tstate); | |
867 | if (PyErr_Occurred()) SWIG_fail; | |
868 | } | |
869 | Py_INCREF(Py_None); resultobj = Py_None; | |
870 | return resultobj; | |
871 | fail: | |
872 | return NULL; | |
873 | } | |
874 | ||
875 | ||
876 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
877 | PyObject *resultobj; | |
878 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
879 | bool result; | |
880 | PyObject * obj0 = 0 ; | |
881 | char *kwnames[] = { | |
882 | (char *) "self", NULL | |
883 | }; | |
884 | ||
885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
887 | { | |
888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
889 | result = (bool)(arg1)->GetVisible(); | |
890 | ||
891 | wxPyEndAllowThreads(__tstate); | |
892 | if (PyErr_Occurred()) SWIG_fail; | |
893 | } | |
02a34c4c | 894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
895 | return resultobj; |
896 | fail: | |
897 | return NULL; | |
898 | } | |
899 | ||
900 | ||
901 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
902 | PyObject *resultobj; | |
903 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
904 | bool arg2 ; | |
905 | PyObject * obj0 = 0 ; | |
906 | PyObject * obj1 = 0 ; | |
907 | char *kwnames[] = { | |
908 | (char *) "self",(char *) "visible", NULL | |
909 | }; | |
910 | ||
911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 913 | { |
8edf1c75 | 914 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
915 | if (PyErr_Occurred()) SWIG_fail; |
916 | } | |
d14a1e28 RD |
917 | { |
918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
919 | (arg1)->SetVisible(arg2); | |
920 | ||
921 | wxPyEndAllowThreads(__tstate); | |
922 | if (PyErr_Occurred()) SWIG_fail; | |
923 | } | |
924 | Py_INCREF(Py_None); resultobj = Py_None; | |
925 | return resultobj; | |
926 | fail: | |
927 | return NULL; | |
928 | } | |
929 | ||
930 | ||
931 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
932 | PyObject *resultobj; | |
933 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
934 | bool result; | |
935 | PyObject * obj0 = 0 ; | |
936 | char *kwnames[] = { | |
937 | (char *) "self", NULL | |
938 | }; | |
939 | ||
940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
942 | { | |
943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
944 | result = (bool)(arg1)->IsNull(); | |
945 | ||
946 | wxPyEndAllowThreads(__tstate); | |
947 | if (PyErr_Occurred()) SWIG_fail; | |
948 | } | |
02a34c4c | 949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
950 | return resultobj; |
951 | fail: | |
952 | return NULL; | |
953 | } | |
954 | ||
955 | ||
956 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
957 | PyObject *obj; | |
958 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
959 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
960 | Py_INCREF(obj); | |
961 | return Py_BuildValue((char *)""); | |
962 | } | |
963 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
964 | PyObject *resultobj; | |
965 | unsigned char arg1 = (unsigned char) 0 ; | |
966 | unsigned char arg2 = (unsigned char) 0 ; | |
967 | unsigned char arg3 = (unsigned char) 0 ; | |
968 | wxColour *result; | |
969 | PyObject * obj0 = 0 ; | |
970 | PyObject * obj1 = 0 ; | |
971 | PyObject * obj2 = 0 ; | |
972 | char *kwnames[] = { | |
973 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
974 | }; | |
975 | ||
976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
977 | if (obj0) { | |
2dbef272 | 978 | { |
8edf1c75 | 979 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
2dbef272 RD |
980 | if (PyErr_Occurred()) SWIG_fail; |
981 | } | |
d14a1e28 RD |
982 | } |
983 | if (obj1) { | |
2dbef272 | 984 | { |
8edf1c75 | 985 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
2dbef272 RD |
986 | if (PyErr_Occurred()) SWIG_fail; |
987 | } | |
d14a1e28 RD |
988 | } |
989 | if (obj2) { | |
2dbef272 | 990 | { |
8edf1c75 | 991 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
2dbef272 RD |
992 | if (PyErr_Occurred()) SWIG_fail; |
993 | } | |
d14a1e28 RD |
994 | } |
995 | { | |
996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
997 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
998 | ||
999 | wxPyEndAllowThreads(__tstate); | |
1000 | if (PyErr_Occurred()) SWIG_fail; | |
1001 | } | |
1002 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1003 | return resultobj; | |
1004 | fail: | |
1005 | return NULL; | |
1006 | } | |
1007 | ||
1008 | ||
d14a1e28 RD |
1009 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1010 | PyObject *resultobj; | |
1011 | wxString *arg1 = 0 ; | |
1012 | wxColour *result; | |
423f194a | 1013 | bool temp1 = False ; |
d14a1e28 RD |
1014 | PyObject * obj0 = 0 ; |
1015 | char *kwnames[] = { | |
1016 | (char *) "colorName", NULL | |
1017 | }; | |
1018 | ||
1019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1020 | { | |
1021 | arg1 = wxString_in_helper(obj0); | |
1022 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1023 | temp1 = True; |
d14a1e28 RD |
1024 | } |
1025 | { | |
1026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1027 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1028 | ||
1029 | wxPyEndAllowThreads(__tstate); | |
1030 | if (PyErr_Occurred()) SWIG_fail; | |
1031 | } | |
1032 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1033 | { | |
1034 | if (temp1) | |
1035 | delete arg1; | |
1036 | } | |
1037 | return resultobj; | |
1038 | fail: | |
1039 | { | |
1040 | if (temp1) | |
1041 | delete arg1; | |
1042 | } | |
1043 | return NULL; | |
1044 | } | |
1045 | ||
1046 | ||
1047 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1048 | PyObject *resultobj; | |
1049 | unsigned long arg1 ; | |
1050 | wxColour *result; | |
1051 | PyObject * obj0 = 0 ; | |
1052 | char *kwnames[] = { | |
1053 | (char *) "colRGB", NULL | |
1054 | }; | |
1055 | ||
1056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
2dbef272 | 1057 | { |
8edf1c75 | 1058 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
1059 | if (PyErr_Occurred()) SWIG_fail; |
1060 | } | |
d14a1e28 RD |
1061 | { |
1062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1063 | result = (wxColour *)new wxColour(arg1); | |
1064 | ||
1065 | wxPyEndAllowThreads(__tstate); | |
1066 | if (PyErr_Occurred()) SWIG_fail; | |
1067 | } | |
1068 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1069 | return resultobj; | |
1070 | fail: | |
1071 | return NULL; | |
1072 | } | |
1073 | ||
1074 | ||
38f59159 RD |
1075 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1076 | PyObject *resultobj; | |
1077 | wxColour *arg1 = (wxColour *) 0 ; | |
1078 | PyObject * obj0 = 0 ; | |
1079 | char *kwnames[] = { | |
1080 | (char *) "self", NULL | |
1081 | }; | |
1082 | ||
1083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1085 | { | |
1086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1087 | delete arg1; | |
1088 | ||
1089 | wxPyEndAllowThreads(__tstate); | |
1090 | if (PyErr_Occurred()) SWIG_fail; | |
1091 | } | |
1092 | Py_INCREF(Py_None); resultobj = Py_None; | |
1093 | return resultobj; | |
1094 | fail: | |
1095 | return NULL; | |
1096 | } | |
1097 | ||
1098 | ||
d14a1e28 RD |
1099 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
1100 | PyObject *resultobj; | |
1101 | wxColour *arg1 = (wxColour *) 0 ; | |
1102 | unsigned char result; | |
1103 | PyObject * obj0 = 0 ; | |
1104 | char *kwnames[] = { | |
1105 | (char *) "self", NULL | |
1106 | }; | |
1107 | ||
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1110 | { | |
1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1112 | result = (unsigned char)(arg1)->Red(); | |
1113 | ||
1114 | wxPyEndAllowThreads(__tstate); | |
1115 | if (PyErr_Occurred()) SWIG_fail; | |
1116 | } | |
8edf1c75 | 1117 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1118 | return resultobj; |
1119 | fail: | |
1120 | return NULL; | |
1121 | } | |
1122 | ||
1123 | ||
1124 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1125 | PyObject *resultobj; | |
1126 | wxColour *arg1 = (wxColour *) 0 ; | |
1127 | unsigned char result; | |
1128 | PyObject * obj0 = 0 ; | |
1129 | char *kwnames[] = { | |
1130 | (char *) "self", NULL | |
1131 | }; | |
1132 | ||
1133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1135 | { | |
1136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1137 | result = (unsigned char)(arg1)->Green(); | |
1138 | ||
1139 | wxPyEndAllowThreads(__tstate); | |
1140 | if (PyErr_Occurred()) SWIG_fail; | |
1141 | } | |
8edf1c75 | 1142 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1143 | return resultobj; |
1144 | fail: | |
1145 | return NULL; | |
1146 | } | |
1147 | ||
1148 | ||
1149 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1150 | PyObject *resultobj; | |
1151 | wxColour *arg1 = (wxColour *) 0 ; | |
1152 | unsigned char result; | |
1153 | PyObject * obj0 = 0 ; | |
1154 | char *kwnames[] = { | |
1155 | (char *) "self", NULL | |
1156 | }; | |
1157 | ||
1158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1160 | { | |
1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1162 | result = (unsigned char)(arg1)->Blue(); | |
1163 | ||
1164 | wxPyEndAllowThreads(__tstate); | |
1165 | if (PyErr_Occurred()) SWIG_fail; | |
1166 | } | |
8edf1c75 | 1167 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1168 | return resultobj; |
1169 | fail: | |
1170 | return NULL; | |
1171 | } | |
1172 | ||
1173 | ||
1174 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1175 | PyObject *resultobj; | |
1176 | wxColour *arg1 = (wxColour *) 0 ; | |
1177 | bool result; | |
1178 | PyObject * obj0 = 0 ; | |
1179 | char *kwnames[] = { | |
1180 | (char *) "self", NULL | |
1181 | }; | |
1182 | ||
1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1185 | { | |
1186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1187 | result = (bool)(arg1)->Ok(); | |
1188 | ||
1189 | wxPyEndAllowThreads(__tstate); | |
1190 | if (PyErr_Occurred()) SWIG_fail; | |
1191 | } | |
02a34c4c | 1192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1193 | return resultobj; |
1194 | fail: | |
1195 | return NULL; | |
1196 | } | |
1197 | ||
1198 | ||
1199 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1200 | PyObject *resultobj; | |
1201 | wxColour *arg1 = (wxColour *) 0 ; | |
1202 | unsigned char arg2 ; | |
1203 | unsigned char arg3 ; | |
1204 | unsigned char arg4 ; | |
1205 | PyObject * obj0 = 0 ; | |
1206 | PyObject * obj1 = 0 ; | |
1207 | PyObject * obj2 = 0 ; | |
1208 | PyObject * obj3 = 0 ; | |
1209 | char *kwnames[] = { | |
1210 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1211 | }; | |
1212 | ||
1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 1215 | { |
8edf1c75 | 1216 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
2dbef272 RD |
1217 | if (PyErr_Occurred()) SWIG_fail; |
1218 | } | |
1219 | { | |
8edf1c75 | 1220 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
2dbef272 RD |
1221 | if (PyErr_Occurred()) SWIG_fail; |
1222 | } | |
1223 | { | |
8edf1c75 | 1224 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
2dbef272 RD |
1225 | if (PyErr_Occurred()) SWIG_fail; |
1226 | } | |
d14a1e28 RD |
1227 | { |
1228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1229 | (arg1)->Set(arg2,arg3,arg4); | |
1230 | ||
1231 | wxPyEndAllowThreads(__tstate); | |
1232 | if (PyErr_Occurred()) SWIG_fail; | |
1233 | } | |
1234 | Py_INCREF(Py_None); resultobj = Py_None; | |
1235 | return resultobj; | |
1236 | fail: | |
1237 | return NULL; | |
1238 | } | |
1239 | ||
1240 | ||
9fd4be55 | 1241 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1242 | PyObject *resultobj; |
1243 | wxColour *arg1 = (wxColour *) 0 ; | |
1244 | unsigned long arg2 ; | |
1245 | PyObject * obj0 = 0 ; | |
1246 | PyObject * obj1 = 0 ; | |
1247 | char *kwnames[] = { | |
1248 | (char *) "self",(char *) "colRGB", NULL | |
1249 | }; | |
1250 | ||
9fd4be55 | 1251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 1253 | { |
8edf1c75 | 1254 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
1255 | if (PyErr_Occurred()) SWIG_fail; |
1256 | } | |
d14a1e28 RD |
1257 | { |
1258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1259 | (arg1)->Set(arg2); | |
1260 | ||
1261 | wxPyEndAllowThreads(__tstate); | |
1262 | if (PyErr_Occurred()) SWIG_fail; | |
1263 | } | |
1264 | Py_INCREF(Py_None); resultobj = Py_None; | |
1265 | return resultobj; | |
1266 | fail: | |
1267 | return NULL; | |
1268 | } | |
1269 | ||
1270 | ||
38f59159 RD |
1271 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1272 | PyObject *resultobj; | |
1273 | wxColour *arg1 = (wxColour *) 0 ; | |
1274 | wxString *arg2 = 0 ; | |
1275 | bool temp2 = False ; | |
1276 | PyObject * obj0 = 0 ; | |
1277 | PyObject * obj1 = 0 ; | |
1278 | char *kwnames[] = { | |
1279 | (char *) "self",(char *) "colourName", NULL | |
1280 | }; | |
1281 | ||
1282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1284 | { | |
1285 | arg2 = wxString_in_helper(obj1); | |
1286 | if (arg2 == NULL) SWIG_fail; | |
1287 | temp2 = True; | |
1288 | } | |
1289 | { | |
1290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1291 | (arg1)->InitFromName((wxString const &)*arg2); | |
1292 | ||
1293 | wxPyEndAllowThreads(__tstate); | |
1294 | if (PyErr_Occurred()) SWIG_fail; | |
1295 | } | |
1296 | Py_INCREF(Py_None); resultobj = Py_None; | |
1297 | { | |
1298 | if (temp2) | |
1299 | delete arg2; | |
1300 | } | |
1301 | return resultobj; | |
1302 | fail: | |
1303 | { | |
1304 | if (temp2) | |
1305 | delete arg2; | |
1306 | } | |
1307 | return NULL; | |
1308 | } | |
1309 | ||
1310 | ||
1311 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1312 | PyObject *resultobj; | |
1313 | wxColour *arg1 = (wxColour *) 0 ; | |
1314 | long result; | |
1315 | PyObject * obj0 = 0 ; | |
1316 | char *kwnames[] = { | |
1317 | (char *) "self", NULL | |
1318 | }; | |
1319 | ||
1320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1322 | { | |
1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1324 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1325 | ||
1326 | wxPyEndAllowThreads(__tstate); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
1329 | resultobj = SWIG_PyObj_FromLong((long)result); | |
1330 | return resultobj; | |
1331 | fail: | |
1332 | return NULL; | |
1333 | } | |
1334 | ||
1335 | ||
d14a1e28 RD |
1336 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1337 | PyObject *resultobj; | |
1338 | wxColour *arg1 = (wxColour *) 0 ; | |
1339 | wxColour *arg2 = 0 ; | |
1340 | bool result; | |
1341 | wxColour temp2 ; | |
1342 | PyObject * obj0 = 0 ; | |
1343 | PyObject * obj1 = 0 ; | |
1344 | char *kwnames[] = { | |
1345 | (char *) "self",(char *) "colour", NULL | |
1346 | }; | |
1347 | ||
1348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1350 | { | |
1351 | arg2 = &temp2; | |
1352 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1353 | } | |
1354 | { | |
1355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1356 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1357 | ||
1358 | wxPyEndAllowThreads(__tstate); | |
1359 | if (PyErr_Occurred()) SWIG_fail; | |
1360 | } | |
02a34c4c | 1361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1362 | return resultobj; |
1363 | fail: | |
1364 | return NULL; | |
1365 | } | |
1366 | ||
1367 | ||
1368 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1369 | PyObject *resultobj; | |
1370 | wxColour *arg1 = (wxColour *) 0 ; | |
1371 | wxColour *arg2 = 0 ; | |
1372 | bool result; | |
1373 | wxColour temp2 ; | |
1374 | PyObject * obj0 = 0 ; | |
1375 | PyObject * obj1 = 0 ; | |
1376 | char *kwnames[] = { | |
1377 | (char *) "self",(char *) "colour", NULL | |
1378 | }; | |
1379 | ||
1380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1382 | { | |
1383 | arg2 = &temp2; | |
1384 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1385 | } | |
1386 | { | |
1387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1388 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1389 | ||
1390 | wxPyEndAllowThreads(__tstate); | |
1391 | if (PyErr_Occurred()) SWIG_fail; | |
1392 | } | |
02a34c4c | 1393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1394 | return resultobj; |
1395 | fail: | |
1396 | return NULL; | |
1397 | } | |
1398 | ||
1399 | ||
38f59159 | 1400 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
1401 | PyObject *resultobj; |
1402 | wxColour *arg1 = (wxColour *) 0 ; | |
38f59159 | 1403 | PyObject *result; |
9fd4be55 | 1404 | PyObject * obj0 = 0 ; |
9fd4be55 | 1405 | char *kwnames[] = { |
38f59159 | 1406 | (char *) "self", NULL |
9fd4be55 RD |
1407 | }; |
1408 | ||
38f59159 | 1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
9fd4be55 | 1410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9fd4be55 RD |
1411 | { |
1412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 1413 | result = (PyObject *)wxColour_Get(arg1); |
9fd4be55 RD |
1414 | |
1415 | wxPyEndAllowThreads(__tstate); | |
1416 | if (PyErr_Occurred()) SWIG_fail; | |
1417 | } | |
38f59159 | 1418 | resultobj = result; |
9fd4be55 RD |
1419 | return resultobj; |
1420 | fail: | |
9fd4be55 RD |
1421 | return NULL; |
1422 | } | |
1423 | ||
1424 | ||
38f59159 | 1425 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1426 | PyObject *resultobj; |
1427 | wxColour *arg1 = (wxColour *) 0 ; | |
38f59159 | 1428 | unsigned long result; |
d14a1e28 RD |
1429 | PyObject * obj0 = 0 ; |
1430 | char *kwnames[] = { | |
1431 | (char *) "self", NULL | |
1432 | }; | |
1433 | ||
38f59159 | 1434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
1435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1436 | { | |
1437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 1438 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1439 | |
1440 | wxPyEndAllowThreads(__tstate); | |
1441 | if (PyErr_Occurred()) SWIG_fail; | |
1442 | } | |
38f59159 | 1443 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
1444 | return resultobj; |
1445 | fail: | |
1446 | return NULL; | |
1447 | } | |
1448 | ||
1449 | ||
1450 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1451 | PyObject *obj; | |
1452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1453 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1454 | Py_INCREF(obj); | |
1455 | return Py_BuildValue((char *)""); | |
1456 | } | |
1457 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject *resultobj; | |
1459 | int arg1 ; | |
1460 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1461 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1462 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1463 | wxPalette *result; | |
8edf1c75 | 1464 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1465 | PyObject * obj1 = 0 ; |
1466 | PyObject * obj2 = 0 ; | |
1467 | PyObject * obj3 = 0 ; | |
1468 | char *kwnames[] = { | |
1469 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1470 | }; | |
1471 | ||
8edf1c75 RD |
1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
1473 | { | |
1474 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1475 | if (PyErr_Occurred()) SWIG_fail; | |
1476 | } | |
d14a1e28 RD |
1477 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1478 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1479 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1480 | { | |
1481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1482 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1483 | ||
1484 | wxPyEndAllowThreads(__tstate); | |
1485 | if (PyErr_Occurred()) SWIG_fail; | |
1486 | } | |
1487 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1488 | return resultobj; | |
1489 | fail: | |
1490 | return NULL; | |
1491 | } | |
1492 | ||
1493 | ||
1494 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1495 | PyObject *resultobj; | |
1496 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1497 | PyObject * obj0 = 0 ; | |
1498 | char *kwnames[] = { | |
1499 | (char *) "self", NULL | |
1500 | }; | |
1501 | ||
1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1504 | { | |
1505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1506 | delete arg1; | |
1507 | ||
1508 | wxPyEndAllowThreads(__tstate); | |
1509 | if (PyErr_Occurred()) SWIG_fail; | |
1510 | } | |
1511 | Py_INCREF(Py_None); resultobj = Py_None; | |
1512 | return resultobj; | |
1513 | fail: | |
1514 | return NULL; | |
1515 | } | |
1516 | ||
1517 | ||
1518 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1519 | PyObject *resultobj; | |
1520 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1521 | byte arg2 ; | |
1522 | byte arg3 ; | |
1523 | byte arg4 ; | |
1524 | int result; | |
1525 | PyObject * obj0 = 0 ; | |
1526 | PyObject * obj1 = 0 ; | |
1527 | PyObject * obj2 = 0 ; | |
1528 | PyObject * obj3 = 0 ; | |
1529 | char *kwnames[] = { | |
1530 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1531 | }; | |
1532 | ||
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 1535 | { |
8edf1c75 | 1536 | arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
2dbef272 RD |
1537 | if (PyErr_Occurred()) SWIG_fail; |
1538 | } | |
1539 | { | |
8edf1c75 | 1540 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
2dbef272 RD |
1541 | if (PyErr_Occurred()) SWIG_fail; |
1542 | } | |
1543 | { | |
8edf1c75 | 1544 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
2dbef272 RD |
1545 | if (PyErr_Occurred()) SWIG_fail; |
1546 | } | |
d14a1e28 RD |
1547 | { |
1548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1549 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1550 | ||
1551 | wxPyEndAllowThreads(__tstate); | |
1552 | if (PyErr_Occurred()) SWIG_fail; | |
1553 | } | |
8edf1c75 | 1554 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1555 | return resultobj; |
1556 | fail: | |
1557 | return NULL; | |
1558 | } | |
1559 | ||
1560 | ||
1561 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1562 | PyObject *resultobj; | |
1563 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1564 | int arg2 ; | |
1565 | byte *arg3 = (byte *) 0 ; | |
1566 | byte *arg4 = (byte *) 0 ; | |
1567 | byte *arg5 = (byte *) 0 ; | |
1568 | bool result; | |
1569 | byte temp3 ; | |
1570 | byte temp4 ; | |
1571 | byte temp5 ; | |
1572 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1573 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1574 | char *kwnames[] = { |
1575 | (char *) "self",(char *) "pixel", NULL | |
1576 | }; | |
1577 | ||
1578 | arg3 = &temp3; | |
1579 | arg4 = &temp4; | |
1580 | arg5 = &temp5; | |
8edf1c75 | 1581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1583 | { |
1584 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1585 | if (PyErr_Occurred()) SWIG_fail; | |
1586 | } | |
d14a1e28 RD |
1587 | { |
1588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1589 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1590 | ||
1591 | wxPyEndAllowThreads(__tstate); | |
1592 | if (PyErr_Occurred()) SWIG_fail; | |
1593 | } | |
02a34c4c | 1594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1595 | { |
1596 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1597 | resultobj = t_output_helper(resultobj,o); | |
1598 | } | |
1599 | { | |
1600 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1601 | resultobj = t_output_helper(resultobj,o); | |
1602 | } | |
1603 | { | |
1604 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1605 | resultobj = t_output_helper(resultobj,o); | |
1606 | } | |
1607 | return resultobj; | |
1608 | fail: | |
1609 | return NULL; | |
1610 | } | |
1611 | ||
1612 | ||
1613 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject *resultobj; | |
1615 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1616 | bool result; | |
1617 | PyObject * obj0 = 0 ; | |
1618 | char *kwnames[] = { | |
1619 | (char *) "self", NULL | |
1620 | }; | |
1621 | ||
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1624 | { | |
1625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1626 | result = (bool)(arg1)->Ok(); | |
1627 | ||
1628 | wxPyEndAllowThreads(__tstate); | |
1629 | if (PyErr_Occurred()) SWIG_fail; | |
1630 | } | |
02a34c4c | 1631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1632 | return resultobj; |
1633 | fail: | |
1634 | return NULL; | |
1635 | } | |
1636 | ||
1637 | ||
1638 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1639 | PyObject *obj; | |
1640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1641 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1642 | Py_INCREF(obj); | |
1643 | return Py_BuildValue((char *)""); | |
1644 | } | |
1645 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1646 | PyObject *resultobj; | |
1647 | wxColour *arg1 = 0 ; | |
1648 | int arg2 = (int) 1 ; | |
1649 | int arg3 = (int) wxSOLID ; | |
1650 | wxPen *result; | |
1651 | wxColour temp1 ; | |
1652 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1653 | PyObject * obj1 = 0 ; |
1654 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1655 | char *kwnames[] = { |
1656 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1657 | }; | |
1658 | ||
8edf1c75 | 1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1660 | { |
1661 | arg1 = &temp1; | |
1662 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1663 | } | |
8edf1c75 RD |
1664 | if (obj1) { |
1665 | { | |
1666 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1667 | if (PyErr_Occurred()) SWIG_fail; | |
1668 | } | |
1669 | } | |
1670 | if (obj2) { | |
1671 | { | |
1672 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1673 | if (PyErr_Occurred()) SWIG_fail; | |
1674 | } | |
1675 | } | |
d14a1e28 RD |
1676 | { |
1677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1678 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1679 | ||
1680 | wxPyEndAllowThreads(__tstate); | |
1681 | if (PyErr_Occurred()) SWIG_fail; | |
1682 | } | |
1683 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1684 | return resultobj; | |
1685 | fail: | |
1686 | return NULL; | |
1687 | } | |
1688 | ||
1689 | ||
1690 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1691 | PyObject *resultobj; | |
1692 | wxPen *arg1 = (wxPen *) 0 ; | |
1693 | PyObject * obj0 = 0 ; | |
1694 | char *kwnames[] = { | |
1695 | (char *) "self", NULL | |
1696 | }; | |
1697 | ||
1698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1700 | { | |
1701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1702 | delete arg1; | |
1703 | ||
1704 | wxPyEndAllowThreads(__tstate); | |
1705 | if (PyErr_Occurred()) SWIG_fail; | |
1706 | } | |
1707 | Py_INCREF(Py_None); resultobj = Py_None; | |
1708 | return resultobj; | |
1709 | fail: | |
1710 | return NULL; | |
1711 | } | |
1712 | ||
1713 | ||
1714 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1715 | PyObject *resultobj; | |
1716 | wxPen *arg1 = (wxPen *) 0 ; | |
1717 | int result; | |
1718 | PyObject * obj0 = 0 ; | |
1719 | char *kwnames[] = { | |
1720 | (char *) "self", NULL | |
1721 | }; | |
1722 | ||
1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1725 | { | |
1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1727 | result = (int)(arg1)->GetCap(); | |
1728 | ||
1729 | wxPyEndAllowThreads(__tstate); | |
1730 | if (PyErr_Occurred()) SWIG_fail; | |
1731 | } | |
8edf1c75 | 1732 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1733 | return resultobj; |
1734 | fail: | |
1735 | return NULL; | |
1736 | } | |
1737 | ||
1738 | ||
1739 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1740 | PyObject *resultobj; | |
1741 | wxPen *arg1 = (wxPen *) 0 ; | |
1742 | wxColour result; | |
1743 | PyObject * obj0 = 0 ; | |
1744 | char *kwnames[] = { | |
1745 | (char *) "self", NULL | |
1746 | }; | |
1747 | ||
1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1750 | { | |
1751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1752 | result = (arg1)->GetColour(); | |
1753 | ||
1754 | wxPyEndAllowThreads(__tstate); | |
1755 | if (PyErr_Occurred()) SWIG_fail; | |
1756 | } | |
1757 | { | |
1758 | wxColour * resultptr; | |
1759 | resultptr = new wxColour((wxColour &) result); | |
1760 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1761 | } | |
1762 | return resultobj; | |
1763 | fail: | |
1764 | return NULL; | |
1765 | } | |
1766 | ||
1767 | ||
1768 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1769 | PyObject *resultobj; | |
1770 | wxPen *arg1 = (wxPen *) 0 ; | |
1771 | int result; | |
1772 | PyObject * obj0 = 0 ; | |
1773 | char *kwnames[] = { | |
1774 | (char *) "self", NULL | |
1775 | }; | |
1776 | ||
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1779 | { | |
1780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1781 | result = (int)(arg1)->GetJoin(); | |
1782 | ||
1783 | wxPyEndAllowThreads(__tstate); | |
1784 | if (PyErr_Occurred()) SWIG_fail; | |
1785 | } | |
8edf1c75 | 1786 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1787 | return resultobj; |
1788 | fail: | |
1789 | return NULL; | |
1790 | } | |
1791 | ||
1792 | ||
1793 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject *resultobj; | |
1795 | wxPen *arg1 = (wxPen *) 0 ; | |
1796 | int result; | |
1797 | PyObject * obj0 = 0 ; | |
1798 | char *kwnames[] = { | |
1799 | (char *) "self", NULL | |
1800 | }; | |
1801 | ||
1802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1804 | { | |
1805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1806 | result = (int)(arg1)->GetStyle(); | |
1807 | ||
1808 | wxPyEndAllowThreads(__tstate); | |
1809 | if (PyErr_Occurred()) SWIG_fail; | |
1810 | } | |
8edf1c75 | 1811 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1812 | return resultobj; |
1813 | fail: | |
1814 | return NULL; | |
1815 | } | |
1816 | ||
1817 | ||
1818 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject *resultobj; | |
1820 | wxPen *arg1 = (wxPen *) 0 ; | |
1821 | int result; | |
1822 | PyObject * obj0 = 0 ; | |
1823 | char *kwnames[] = { | |
1824 | (char *) "self", NULL | |
1825 | }; | |
1826 | ||
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1829 | { | |
1830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1831 | result = (int)(arg1)->GetWidth(); | |
1832 | ||
1833 | wxPyEndAllowThreads(__tstate); | |
1834 | if (PyErr_Occurred()) SWIG_fail; | |
1835 | } | |
8edf1c75 | 1836 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1837 | return resultobj; |
1838 | fail: | |
1839 | return NULL; | |
1840 | } | |
1841 | ||
1842 | ||
1843 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject *resultobj; | |
1845 | wxPen *arg1 = (wxPen *) 0 ; | |
1846 | bool result; | |
1847 | PyObject * obj0 = 0 ; | |
1848 | char *kwnames[] = { | |
1849 | (char *) "self", NULL | |
1850 | }; | |
1851 | ||
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1854 | { | |
1855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1856 | result = (bool)(arg1)->Ok(); | |
1857 | ||
1858 | wxPyEndAllowThreads(__tstate); | |
1859 | if (PyErr_Occurred()) SWIG_fail; | |
1860 | } | |
02a34c4c | 1861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1862 | return resultobj; |
1863 | fail: | |
1864 | return NULL; | |
1865 | } | |
1866 | ||
1867 | ||
1868 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject *resultobj; | |
1870 | wxPen *arg1 = (wxPen *) 0 ; | |
1871 | int arg2 ; | |
1872 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1874 | char *kwnames[] = { |
1875 | (char *) "self",(char *) "cap_style", NULL | |
1876 | }; | |
1877 | ||
8edf1c75 | 1878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1880 | { |
1881 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1882 | if (PyErr_Occurred()) SWIG_fail; | |
1883 | } | |
d14a1e28 RD |
1884 | { |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1886 | (arg1)->SetCap(arg2); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | } | |
1891 | Py_INCREF(Py_None); resultobj = Py_None; | |
1892 | return resultobj; | |
1893 | fail: | |
1894 | return NULL; | |
1895 | } | |
1896 | ||
1897 | ||
1898 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1899 | PyObject *resultobj; | |
1900 | wxPen *arg1 = (wxPen *) 0 ; | |
1901 | wxColour *arg2 = 0 ; | |
1902 | wxColour temp2 ; | |
1903 | PyObject * obj0 = 0 ; | |
1904 | PyObject * obj1 = 0 ; | |
1905 | char *kwnames[] = { | |
1906 | (char *) "self",(char *) "colour", NULL | |
1907 | }; | |
1908 | ||
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1911 | { | |
1912 | arg2 = &temp2; | |
1913 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1914 | } | |
1915 | { | |
1916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1917 | (arg1)->SetColour(*arg2); | |
1918 | ||
1919 | wxPyEndAllowThreads(__tstate); | |
1920 | if (PyErr_Occurred()) SWIG_fail; | |
1921 | } | |
1922 | Py_INCREF(Py_None); resultobj = Py_None; | |
1923 | return resultobj; | |
1924 | fail: | |
1925 | return NULL; | |
1926 | } | |
1927 | ||
1928 | ||
1929 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject *resultobj; | |
1931 | wxPen *arg1 = (wxPen *) 0 ; | |
1932 | int arg2 ; | |
1933 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1935 | char *kwnames[] = { |
1936 | (char *) "self",(char *) "join_style", NULL | |
1937 | }; | |
1938 | ||
8edf1c75 | 1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1941 | { |
1942 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
1944 | } | |
d14a1e28 RD |
1945 | { |
1946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1947 | (arg1)->SetJoin(arg2); | |
1948 | ||
1949 | wxPyEndAllowThreads(__tstate); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | } | |
1952 | Py_INCREF(Py_None); resultobj = Py_None; | |
1953 | return resultobj; | |
1954 | fail: | |
1955 | return NULL; | |
1956 | } | |
1957 | ||
1958 | ||
1959 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1960 | PyObject *resultobj; | |
1961 | wxPen *arg1 = (wxPen *) 0 ; | |
1962 | int arg2 ; | |
1963 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1964 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1965 | char *kwnames[] = { |
1966 | (char *) "self",(char *) "style", NULL | |
1967 | }; | |
1968 | ||
8edf1c75 | 1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1971 | { |
1972 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1973 | if (PyErr_Occurred()) SWIG_fail; | |
1974 | } | |
d14a1e28 RD |
1975 | { |
1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1977 | (arg1)->SetStyle(arg2); | |
1978 | ||
1979 | wxPyEndAllowThreads(__tstate); | |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
1981 | } | |
1982 | Py_INCREF(Py_None); resultobj = Py_None; | |
1983 | return resultobj; | |
1984 | fail: | |
1985 | return NULL; | |
1986 | } | |
1987 | ||
1988 | ||
1989 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1990 | PyObject *resultobj; | |
1991 | wxPen *arg1 = (wxPen *) 0 ; | |
1992 | int arg2 ; | |
1993 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1994 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1995 | char *kwnames[] = { |
1996 | (char *) "self",(char *) "width", NULL | |
1997 | }; | |
1998 | ||
8edf1c75 | 1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2001 | { |
2002 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2003 | if (PyErr_Occurred()) SWIG_fail; | |
2004 | } | |
d14a1e28 RD |
2005 | { |
2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2007 | (arg1)->SetWidth(arg2); | |
2008 | ||
2009 | wxPyEndAllowThreads(__tstate); | |
2010 | if (PyErr_Occurred()) SWIG_fail; | |
2011 | } | |
2012 | Py_INCREF(Py_None); resultobj = Py_None; | |
2013 | return resultobj; | |
2014 | fail: | |
2015 | return NULL; | |
2016 | } | |
2017 | ||
2018 | ||
2019 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2020 | PyObject *resultobj; | |
2021 | wxPen *arg1 = (wxPen *) 0 ; | |
2022 | int arg2 ; | |
2023 | wxDash *arg3 = (wxDash *) 0 ; | |
2024 | PyObject * obj0 = 0 ; | |
2025 | PyObject * obj1 = 0 ; | |
2026 | char *kwnames[] = { | |
2027 | (char *) "self",(char *) "dashes", NULL | |
2028 | }; | |
2029 | ||
2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2032 | { | |
2033 | arg2 = PyList_Size(obj1); | |
2034 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2035 | if (arg3 == NULL) SWIG_fail; | |
2036 | } | |
2037 | { | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | (arg1)->SetDashes(arg2,arg3); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | } | |
2044 | Py_INCREF(Py_None); resultobj = Py_None; | |
2045 | { | |
2046 | if (arg3) delete [] arg3; | |
2047 | } | |
2048 | return resultobj; | |
2049 | fail: | |
2050 | { | |
2051 | if (arg3) delete [] arg3; | |
2052 | } | |
2053 | return NULL; | |
2054 | } | |
2055 | ||
2056 | ||
2057 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2058 | PyObject *resultobj; | |
2059 | wxPen *arg1 = (wxPen *) 0 ; | |
2060 | PyObject *result; | |
2061 | PyObject * obj0 = 0 ; | |
2062 | char *kwnames[] = { | |
2063 | (char *) "self", NULL | |
2064 | }; | |
2065 | ||
2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2068 | { | |
2069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2070 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2071 | ||
2072 | wxPyEndAllowThreads(__tstate); | |
2073 | if (PyErr_Occurred()) SWIG_fail; | |
2074 | } | |
2075 | resultobj = result; | |
2076 | return resultobj; | |
2077 | fail: | |
2078 | return NULL; | |
2079 | } | |
2080 | ||
2081 | ||
0ffb2aa6 RD |
2082 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
2083 | PyObject *resultobj; | |
2084 | wxPen *arg1 = (wxPen *) 0 ; | |
38f59159 | 2085 | wxPen *arg2 = (wxPen *) 0 ; |
0ffb2aa6 RD |
2086 | bool result; |
2087 | PyObject * obj0 = 0 ; | |
2088 | PyObject * obj1 = 0 ; | |
2089 | char *kwnames[] = { | |
38f59159 | 2090 | (char *) "self",(char *) "other", NULL |
0ffb2aa6 RD |
2091 | }; |
2092 | ||
2093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2095 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38f59159 RD |
2096 | { |
2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2098 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
2099 | ||
2100 | wxPyEndAllowThreads(__tstate); | |
2101 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 | 2102 | } |
38f59159 RD |
2103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
2104 | return resultobj; | |
2105 | fail: | |
2106 | return NULL; | |
2107 | } | |
2108 | ||
2109 | ||
2110 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2111 | PyObject *resultobj; | |
2112 | wxPen *arg1 = (wxPen *) 0 ; | |
2113 | wxPen *arg2 = (wxPen *) 0 ; | |
2114 | bool result; | |
2115 | PyObject * obj0 = 0 ; | |
2116 | PyObject * obj1 = 0 ; | |
2117 | char *kwnames[] = { | |
2118 | (char *) "self",(char *) "other", NULL | |
2119 | }; | |
2120 | ||
2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2123 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
0ffb2aa6 RD |
2124 | { |
2125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 2126 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
0ffb2aa6 RD |
2127 | |
2128 | wxPyEndAllowThreads(__tstate); | |
2129 | if (PyErr_Occurred()) SWIG_fail; | |
2130 | } | |
2131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2132 | return resultobj; | |
2133 | fail: | |
2134 | return NULL; | |
2135 | } | |
2136 | ||
2137 | ||
d14a1e28 RD |
2138 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
2139 | PyObject *obj; | |
2140 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2141 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2142 | Py_INCREF(obj); | |
2143 | return Py_BuildValue((char *)""); | |
2144 | } | |
2145 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2146 | PyObject *resultobj; | |
2147 | wxColour *arg1 = 0 ; | |
2148 | int arg2 = (int) 1 ; | |
2149 | int arg3 = (int) wxSOLID ; | |
2150 | wxPyPen *result; | |
2151 | wxColour temp1 ; | |
2152 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2153 | PyObject * obj1 = 0 ; |
2154 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2155 | char *kwnames[] = { |
2156 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2157 | }; | |
2158 | ||
8edf1c75 | 2159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2160 | { |
2161 | arg1 = &temp1; | |
2162 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2163 | } | |
8edf1c75 RD |
2164 | if (obj1) { |
2165 | { | |
2166 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2167 | if (PyErr_Occurred()) SWIG_fail; | |
2168 | } | |
2169 | } | |
2170 | if (obj2) { | |
2171 | { | |
2172 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2173 | if (PyErr_Occurred()) SWIG_fail; | |
2174 | } | |
2175 | } | |
d14a1e28 RD |
2176 | { |
2177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2178 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2179 | ||
2180 | wxPyEndAllowThreads(__tstate); | |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
2182 | } | |
2183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
2184 | return resultobj; | |
2185 | fail: | |
2186 | return NULL; | |
2187 | } | |
2188 | ||
2189 | ||
2190 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2191 | PyObject *resultobj; | |
2192 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2193 | PyObject * obj0 = 0 ; | |
2194 | char *kwnames[] = { | |
2195 | (char *) "self", NULL | |
2196 | }; | |
2197 | ||
2198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2200 | { | |
2201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2202 | delete arg1; | |
2203 | ||
2204 | wxPyEndAllowThreads(__tstate); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | } | |
2207 | Py_INCREF(Py_None); resultobj = Py_None; | |
2208 | return resultobj; | |
2209 | fail: | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
2214 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject *resultobj; | |
2216 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2217 | int arg2 ; | |
2218 | wxDash *arg3 = (wxDash *) 0 ; | |
2219 | PyObject * obj0 = 0 ; | |
2220 | PyObject * obj1 = 0 ; | |
2221 | char *kwnames[] = { | |
2222 | (char *) "self",(char *) "dashes", NULL | |
2223 | }; | |
2224 | ||
2225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2227 | { | |
2228 | arg2 = PyList_Size(obj1); | |
2229 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2230 | if (arg3 == NULL) SWIG_fail; | |
2231 | } | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | (arg1)->SetDashes(arg2,arg3); | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) SWIG_fail; | |
2238 | } | |
2239 | Py_INCREF(Py_None); resultobj = Py_None; | |
2240 | { | |
2241 | if (arg3) delete [] arg3; | |
2242 | } | |
2243 | return resultobj; | |
2244 | fail: | |
2245 | { | |
2246 | if (arg3) delete [] arg3; | |
2247 | } | |
2248 | return NULL; | |
2249 | } | |
2250 | ||
2251 | ||
2252 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2253 | PyObject *obj; | |
2254 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2255 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2256 | Py_INCREF(obj); | |
2257 | return Py_BuildValue((char *)""); | |
2258 | } | |
2259 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2260 | PyObject *resultobj; | |
2261 | wxColour *arg1 = 0 ; | |
2262 | int arg2 = (int) wxSOLID ; | |
2263 | wxBrush *result; | |
2264 | wxColour temp1 ; | |
2265 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2267 | char *kwnames[] = { |
2268 | (char *) "colour",(char *) "style", NULL | |
2269 | }; | |
2270 | ||
8edf1c75 | 2271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2272 | { |
2273 | arg1 = &temp1; | |
2274 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2275 | } | |
8edf1c75 RD |
2276 | if (obj1) { |
2277 | { | |
2278 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
2281 | } | |
d14a1e28 RD |
2282 | { |
2283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2284 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2285 | ||
2286 | wxPyEndAllowThreads(__tstate); | |
2287 | if (PyErr_Occurred()) SWIG_fail; | |
2288 | } | |
2289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
2290 | return resultobj; | |
2291 | fail: | |
2292 | return NULL; | |
2293 | } | |
2294 | ||
2295 | ||
2296 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2297 | PyObject *resultobj; | |
2298 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2299 | PyObject * obj0 = 0 ; | |
2300 | char *kwnames[] = { | |
2301 | (char *) "self", NULL | |
2302 | }; | |
2303 | ||
2304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2306 | { | |
2307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2308 | delete arg1; | |
2309 | ||
2310 | wxPyEndAllowThreads(__tstate); | |
2311 | if (PyErr_Occurred()) SWIG_fail; | |
2312 | } | |
2313 | Py_INCREF(Py_None); resultobj = Py_None; | |
2314 | return resultobj; | |
2315 | fail: | |
2316 | return NULL; | |
2317 | } | |
2318 | ||
2319 | ||
2320 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2321 | PyObject *resultobj; | |
2322 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2323 | wxColour *arg2 = 0 ; | |
2324 | wxColour temp2 ; | |
2325 | PyObject * obj0 = 0 ; | |
2326 | PyObject * obj1 = 0 ; | |
2327 | char *kwnames[] = { | |
2328 | (char *) "self",(char *) "col", NULL | |
2329 | }; | |
2330 | ||
2331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2333 | { | |
2334 | arg2 = &temp2; | |
2335 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2336 | } | |
2337 | { | |
2338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2339 | (arg1)->SetColour((wxColour const &)*arg2); | |
2340 | ||
2341 | wxPyEndAllowThreads(__tstate); | |
2342 | if (PyErr_Occurred()) SWIG_fail; | |
2343 | } | |
2344 | Py_INCREF(Py_None); resultobj = Py_None; | |
2345 | return resultobj; | |
2346 | fail: | |
2347 | return NULL; | |
2348 | } | |
2349 | ||
2350 | ||
2351 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2352 | PyObject *resultobj; | |
2353 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2354 | int arg2 ; | |
2355 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2357 | char *kwnames[] = { |
2358 | (char *) "self",(char *) "style", NULL | |
2359 | }; | |
2360 | ||
8edf1c75 | 2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2363 | { |
2364 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2365 | if (PyErr_Occurred()) SWIG_fail; | |
2366 | } | |
d14a1e28 RD |
2367 | { |
2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2369 | (arg1)->SetStyle(arg2); | |
2370 | ||
2371 | wxPyEndAllowThreads(__tstate); | |
2372 | if (PyErr_Occurred()) SWIG_fail; | |
2373 | } | |
2374 | Py_INCREF(Py_None); resultobj = Py_None; | |
2375 | return resultobj; | |
2376 | fail: | |
2377 | return NULL; | |
2378 | } | |
2379 | ||
2380 | ||
2381 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2382 | PyObject *resultobj; | |
2383 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2384 | wxBitmap *arg2 = 0 ; | |
2385 | PyObject * obj0 = 0 ; | |
2386 | PyObject * obj1 = 0 ; | |
2387 | char *kwnames[] = { | |
2388 | (char *) "self",(char *) "stipple", NULL | |
2389 | }; | |
2390 | ||
2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2393 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2394 | if (arg2 == NULL) { | |
2395 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2396 | } | |
2397 | { | |
2398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2399 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2400 | ||
2401 | wxPyEndAllowThreads(__tstate); | |
2402 | if (PyErr_Occurred()) SWIG_fail; | |
2403 | } | |
2404 | Py_INCREF(Py_None); resultobj = Py_None; | |
2405 | return resultobj; | |
2406 | fail: | |
2407 | return NULL; | |
2408 | } | |
2409 | ||
2410 | ||
2411 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2412 | PyObject *resultobj; | |
2413 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2414 | wxColour result; | |
2415 | PyObject * obj0 = 0 ; | |
2416 | char *kwnames[] = { | |
2417 | (char *) "self", NULL | |
2418 | }; | |
2419 | ||
2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2422 | { | |
2423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2424 | result = ((wxBrush const *)arg1)->GetColour(); | |
2425 | ||
2426 | wxPyEndAllowThreads(__tstate); | |
2427 | if (PyErr_Occurred()) SWIG_fail; | |
2428 | } | |
2429 | { | |
2430 | wxColour * resultptr; | |
2431 | resultptr = new wxColour((wxColour &) result); | |
2432 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2433 | } | |
2434 | return resultobj; | |
2435 | fail: | |
2436 | return NULL; | |
2437 | } | |
2438 | ||
2439 | ||
2440 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject *resultobj; | |
2442 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2443 | int result; | |
2444 | PyObject * obj0 = 0 ; | |
2445 | char *kwnames[] = { | |
2446 | (char *) "self", NULL | |
2447 | }; | |
2448 | ||
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2451 | { | |
2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2453 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2454 | ||
2455 | wxPyEndAllowThreads(__tstate); | |
2456 | if (PyErr_Occurred()) SWIG_fail; | |
2457 | } | |
8edf1c75 | 2458 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2459 | return resultobj; |
2460 | fail: | |
2461 | return NULL; | |
2462 | } | |
2463 | ||
2464 | ||
2465 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2466 | PyObject *resultobj; | |
2467 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2468 | wxBitmap *result; | |
2469 | PyObject * obj0 = 0 ; | |
2470 | char *kwnames[] = { | |
2471 | (char *) "self", NULL | |
2472 | }; | |
2473 | ||
2474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2476 | { | |
2477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2478 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2479 | ||
2480 | wxPyEndAllowThreads(__tstate); | |
2481 | if (PyErr_Occurred()) SWIG_fail; | |
2482 | } | |
2483 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2484 | return resultobj; | |
2485 | fail: | |
2486 | return NULL; | |
2487 | } | |
2488 | ||
2489 | ||
2490 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2491 | PyObject *resultobj; | |
2492 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2493 | bool result; | |
2494 | PyObject * obj0 = 0 ; | |
2495 | char *kwnames[] = { | |
2496 | (char *) "self", NULL | |
2497 | }; | |
2498 | ||
2499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2501 | { | |
2502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2503 | result = (bool)(arg1)->Ok(); | |
2504 | ||
2505 | wxPyEndAllowThreads(__tstate); | |
2506 | if (PyErr_Occurred()) SWIG_fail; | |
2507 | } | |
02a34c4c | 2508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2509 | return resultobj; |
2510 | fail: | |
2511 | return NULL; | |
2512 | } | |
2513 | ||
2514 | ||
2515 | static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2516 | PyObject *resultobj; | |
2517 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2518 | short result; | |
2519 | PyObject * obj0 = 0 ; | |
2520 | char *kwnames[] = { | |
2521 | (char *) "self", NULL | |
2522 | }; | |
2523 | ||
2524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail; | |
2525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2526 | { | |
2527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2528 | result = (short)(arg1)->GetMacTheme(); | |
2529 | ||
2530 | wxPyEndAllowThreads(__tstate); | |
2531 | if (PyErr_Occurred()) SWIG_fail; | |
2532 | } | |
8edf1c75 | 2533 | resultobj = SWIG_PyObj_FromShort((short)result); |
d14a1e28 RD |
2534 | return resultobj; |
2535 | fail: | |
2536 | return NULL; | |
2537 | } | |
2538 | ||
2539 | ||
2540 | static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject *resultobj; | |
2542 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2543 | short arg2 ; | |
2544 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2546 | char *kwnames[] = { |
2547 | (char *) "self",(char *) "macThemeBrush", NULL | |
2548 | }; | |
2549 | ||
8edf1c75 | 2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetMacTheme",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2552 | { |
2553 | arg2 = (short) SWIG_PyObj_AsShort(obj1); | |
2554 | if (PyErr_Occurred()) SWIG_fail; | |
2555 | } | |
d14a1e28 RD |
2556 | { |
2557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2558 | (arg1)->SetMacTheme(arg2); | |
2559 | ||
2560 | wxPyEndAllowThreads(__tstate); | |
2561 | if (PyErr_Occurred()) SWIG_fail; | |
2562 | } | |
2563 | Py_INCREF(Py_None); resultobj = Py_None; | |
2564 | return resultobj; | |
2565 | fail: | |
2566 | return NULL; | |
2567 | } | |
2568 | ||
2569 | ||
2570 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2571 | PyObject *obj; | |
2572 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2573 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2574 | Py_INCREF(obj); | |
2575 | return Py_BuildValue((char *)""); | |
2576 | } | |
2577 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2578 | PyObject *resultobj; | |
2579 | wxString *arg1 = 0 ; | |
2580 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2581 | wxBitmap *result; | |
423f194a | 2582 | bool temp1 = False ; |
d14a1e28 | 2583 | PyObject * obj0 = 0 ; |
8edf1c75 | 2584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2585 | char *kwnames[] = { |
2586 | (char *) "name",(char *) "type", NULL | |
2587 | }; | |
2588 | ||
8edf1c75 | 2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2590 | { |
2591 | arg1 = wxString_in_helper(obj0); | |
2592 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2593 | temp1 = True; |
d14a1e28 | 2594 | } |
8edf1c75 RD |
2595 | if (obj1) { |
2596 | { | |
2597 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); | |
2598 | if (PyErr_Occurred()) SWIG_fail; | |
2599 | } | |
2600 | } | |
d14a1e28 RD |
2601 | { |
2602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2603 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2604 | ||
2605 | wxPyEndAllowThreads(__tstate); | |
2606 | if (PyErr_Occurred()) SWIG_fail; | |
2607 | } | |
2608 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2609 | { | |
2610 | if (temp1) | |
2611 | delete arg1; | |
2612 | } | |
2613 | return resultobj; | |
2614 | fail: | |
2615 | { | |
2616 | if (temp1) | |
2617 | delete arg1; | |
2618 | } | |
2619 | return NULL; | |
2620 | } | |
2621 | ||
2622 | ||
2623 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2624 | PyObject *resultobj; | |
2625 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2626 | PyObject * obj0 = 0 ; | |
2627 | char *kwnames[] = { | |
2628 | (char *) "self", NULL | |
2629 | }; | |
2630 | ||
2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2633 | { | |
2634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2635 | delete arg1; | |
2636 | ||
2637 | wxPyEndAllowThreads(__tstate); | |
2638 | if (PyErr_Occurred()) SWIG_fail; | |
2639 | } | |
2640 | Py_INCREF(Py_None); resultobj = Py_None; | |
2641 | return resultobj; | |
2642 | fail: | |
2643 | return NULL; | |
2644 | } | |
2645 | ||
2646 | ||
2647 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2648 | PyObject *resultobj; | |
2649 | int arg1 ; | |
2650 | int arg2 ; | |
2651 | int arg3 = (int) -1 ; | |
2652 | wxBitmap *result; | |
8edf1c75 RD |
2653 | PyObject * obj0 = 0 ; |
2654 | PyObject * obj1 = 0 ; | |
2655 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2656 | char *kwnames[] = { |
2657 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2658 | }; | |
2659 | ||
8edf1c75 RD |
2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2661 | { | |
2662 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2663 | if (PyErr_Occurred()) SWIG_fail; | |
2664 | } | |
2665 | { | |
2666 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2667 | if (PyErr_Occurred()) SWIG_fail; | |
2668 | } | |
2669 | if (obj2) { | |
2670 | { | |
2671 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2672 | if (PyErr_Occurred()) SWIG_fail; | |
2673 | } | |
2674 | } | |
d14a1e28 RD |
2675 | { |
2676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2677 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2678 | ||
2679 | wxPyEndAllowThreads(__tstate); | |
2680 | if (PyErr_Occurred()) SWIG_fail; | |
2681 | } | |
2682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2683 | return resultobj; | |
2684 | fail: | |
2685 | return NULL; | |
2686 | } | |
2687 | ||
2688 | ||
2689 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2690 | PyObject *resultobj; | |
2691 | wxIcon *arg1 = 0 ; | |
2692 | wxBitmap *result; | |
2693 | PyObject * obj0 = 0 ; | |
2694 | char *kwnames[] = { | |
2695 | (char *) "icon", NULL | |
2696 | }; | |
2697 | ||
2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2700 | if (arg1 == NULL) { | |
2701 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2702 | } | |
2703 | { | |
2704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2705 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2706 | ||
2707 | wxPyEndAllowThreads(__tstate); | |
2708 | if (PyErr_Occurred()) SWIG_fail; | |
2709 | } | |
2710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2711 | return resultobj; | |
2712 | fail: | |
2713 | return NULL; | |
2714 | } | |
2715 | ||
2716 | ||
2717 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2718 | PyObject *resultobj; | |
2719 | wxImage *arg1 = 0 ; | |
2720 | int arg2 = (int) -1 ; | |
2721 | wxBitmap *result; | |
2722 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2723 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2724 | char *kwnames[] = { |
2725 | (char *) "image",(char *) "depth", NULL | |
2726 | }; | |
2727 | ||
8edf1c75 | 2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2730 | if (arg1 == NULL) { | |
2731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2732 | } | |
8edf1c75 RD |
2733 | if (obj1) { |
2734 | { | |
2735 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | } | |
d14a1e28 RD |
2739 | { |
2740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2741 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2742 | ||
2743 | wxPyEndAllowThreads(__tstate); | |
2744 | if (PyErr_Occurred()) SWIG_fail; | |
2745 | } | |
2746 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2747 | return resultobj; | |
2748 | fail: | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
2753 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2754 | PyObject *resultobj; | |
2755 | PyObject *arg1 = (PyObject *) 0 ; | |
2756 | wxBitmap *result; | |
2757 | PyObject * obj0 = 0 ; | |
2758 | char *kwnames[] = { | |
2759 | (char *) "listOfStrings", NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2763 | arg1 = obj0; | |
2764 | { | |
2765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2766 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2767 | ||
2768 | wxPyEndAllowThreads(__tstate); | |
2769 | if (PyErr_Occurred()) SWIG_fail; | |
2770 | } | |
2771 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2772 | return resultobj; | |
2773 | fail: | |
2774 | return NULL; | |
2775 | } | |
2776 | ||
2777 | ||
2778 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2779 | PyObject *resultobj; | |
2780 | PyObject *arg1 = (PyObject *) 0 ; | |
2781 | int arg2 ; | |
2782 | int arg3 ; | |
2783 | int arg4 = (int) 1 ; | |
2784 | wxBitmap *result; | |
2785 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2786 | PyObject * obj1 = 0 ; |
2787 | PyObject * obj2 = 0 ; | |
2788 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2789 | char *kwnames[] = { |
2790 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2791 | }; | |
2792 | ||
8edf1c75 | 2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2794 | arg1 = obj0; |
8edf1c75 RD |
2795 | { |
2796 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2797 | if (PyErr_Occurred()) SWIG_fail; | |
2798 | } | |
2799 | { | |
2800 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2801 | if (PyErr_Occurred()) SWIG_fail; | |
2802 | } | |
2803 | if (obj3) { | |
2804 | { | |
2805 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2806 | if (PyErr_Occurred()) SWIG_fail; | |
2807 | } | |
2808 | } | |
d14a1e28 RD |
2809 | { |
2810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2811 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2812 | ||
2813 | wxPyEndAllowThreads(__tstate); | |
2814 | if (PyErr_Occurred()) SWIG_fail; | |
2815 | } | |
2816 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2817 | return resultobj; | |
2818 | fail: | |
2819 | return NULL; | |
2820 | } | |
2821 | ||
2822 | ||
2823 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2824 | PyObject *resultobj; | |
2825 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2826 | bool result; | |
2827 | PyObject * obj0 = 0 ; | |
2828 | char *kwnames[] = { | |
2829 | (char *) "self", NULL | |
2830 | }; | |
2831 | ||
2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2834 | { | |
2835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2836 | result = (bool)(arg1)->Ok(); | |
2837 | ||
2838 | wxPyEndAllowThreads(__tstate); | |
2839 | if (PyErr_Occurred()) SWIG_fail; | |
2840 | } | |
02a34c4c | 2841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2842 | return resultobj; |
2843 | fail: | |
2844 | return NULL; | |
2845 | } | |
2846 | ||
2847 | ||
2848 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2849 | PyObject *resultobj; | |
2850 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2851 | int result; | |
2852 | PyObject * obj0 = 0 ; | |
2853 | char *kwnames[] = { | |
2854 | (char *) "self", NULL | |
2855 | }; | |
2856 | ||
2857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2859 | { | |
2860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2861 | result = (int)(arg1)->GetWidth(); | |
2862 | ||
2863 | wxPyEndAllowThreads(__tstate); | |
2864 | if (PyErr_Occurred()) SWIG_fail; | |
2865 | } | |
8edf1c75 | 2866 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2867 | return resultobj; |
2868 | fail: | |
2869 | return NULL; | |
2870 | } | |
2871 | ||
2872 | ||
2873 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject *resultobj; | |
2875 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2876 | int result; | |
2877 | PyObject * obj0 = 0 ; | |
2878 | char *kwnames[] = { | |
2879 | (char *) "self", NULL | |
2880 | }; | |
2881 | ||
2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2884 | { | |
2885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2886 | result = (int)(arg1)->GetHeight(); | |
2887 | ||
2888 | wxPyEndAllowThreads(__tstate); | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | } | |
8edf1c75 | 2891 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2892 | return resultobj; |
2893 | fail: | |
2894 | return NULL; | |
2895 | } | |
2896 | ||
2897 | ||
2898 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2899 | PyObject *resultobj; | |
2900 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2901 | int result; | |
2902 | PyObject * obj0 = 0 ; | |
2903 | char *kwnames[] = { | |
2904 | (char *) "self", NULL | |
2905 | }; | |
2906 | ||
2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2909 | { | |
2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2911 | result = (int)(arg1)->GetDepth(); | |
2912 | ||
2913 | wxPyEndAllowThreads(__tstate); | |
2914 | if (PyErr_Occurred()) SWIG_fail; | |
2915 | } | |
8edf1c75 | 2916 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2917 | return resultobj; |
2918 | fail: | |
2919 | return NULL; | |
2920 | } | |
2921 | ||
2922 | ||
2923 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2924 | PyObject *resultobj; | |
2925 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2926 | SwigValueWrapper< wxImage > result; | |
2927 | PyObject * obj0 = 0 ; | |
2928 | char *kwnames[] = { | |
2929 | (char *) "self", NULL | |
2930 | }; | |
2931 | ||
2932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2934 | { | |
2935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2936 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2937 | ||
2938 | wxPyEndAllowThreads(__tstate); | |
2939 | if (PyErr_Occurred()) SWIG_fail; | |
2940 | } | |
2941 | { | |
2942 | wxImage * resultptr; | |
2943 | resultptr = new wxImage((wxImage &) result); | |
2944 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2945 | } | |
2946 | return resultobj; | |
2947 | fail: | |
2948 | return NULL; | |
2949 | } | |
2950 | ||
2951 | ||
2952 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2953 | PyObject *resultobj; | |
2954 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2955 | wxMask *result; | |
2956 | PyObject * obj0 = 0 ; | |
2957 | char *kwnames[] = { | |
2958 | (char *) "self", NULL | |
2959 | }; | |
2960 | ||
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2963 | { | |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2965 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2966 | ||
2967 | wxPyEndAllowThreads(__tstate); | |
2968 | if (PyErr_Occurred()) SWIG_fail; | |
2969 | } | |
2970 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2971 | return resultobj; | |
2972 | fail: | |
2973 | return NULL; | |
2974 | } | |
2975 | ||
2976 | ||
2977 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2978 | PyObject *resultobj; | |
2979 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2980 | wxMask *arg2 = (wxMask *) 0 ; | |
2981 | PyObject * obj0 = 0 ; | |
2982 | PyObject * obj1 = 0 ; | |
2983 | char *kwnames[] = { | |
2984 | (char *) "self",(char *) "mask", NULL | |
2985 | }; | |
2986 | ||
2987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2989 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | (arg1)->SetMask(arg2); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) SWIG_fail; | |
2996 | } | |
2997 | Py_INCREF(Py_None); resultobj = Py_None; | |
2998 | return resultobj; | |
2999 | fail: | |
3000 | return NULL; | |
3001 | } | |
3002 | ||
3003 | ||
3004 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3005 | PyObject *resultobj; | |
3006 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3007 | wxColour *arg2 = 0 ; | |
3008 | wxColour temp2 ; | |
3009 | PyObject * obj0 = 0 ; | |
3010 | PyObject * obj1 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self",(char *) "colour", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3017 | { | |
3018 | arg2 = &temp2; | |
3019 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3020 | } | |
3021 | { | |
3022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3023 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3024 | ||
3025 | wxPyEndAllowThreads(__tstate); | |
3026 | if (PyErr_Occurred()) SWIG_fail; | |
3027 | } | |
3028 | Py_INCREF(Py_None); resultobj = Py_None; | |
3029 | return resultobj; | |
3030 | fail: | |
3031 | return NULL; | |
3032 | } | |
3033 | ||
3034 | ||
3035 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3036 | PyObject *resultobj; | |
3037 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3038 | wxRect *arg2 = 0 ; | |
3039 | SwigValueWrapper< wxBitmap > result; | |
3040 | wxRect temp2 ; | |
3041 | PyObject * obj0 = 0 ; | |
3042 | PyObject * obj1 = 0 ; | |
3043 | char *kwnames[] = { | |
3044 | (char *) "self",(char *) "rect", NULL | |
3045 | }; | |
3046 | ||
3047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3049 | { | |
3050 | arg2 = &temp2; | |
3051 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3052 | } | |
3053 | { | |
3054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3055 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3056 | ||
3057 | wxPyEndAllowThreads(__tstate); | |
3058 | if (PyErr_Occurred()) SWIG_fail; | |
3059 | } | |
3060 | { | |
3061 | wxBitmap * resultptr; | |
3062 | resultptr = new wxBitmap((wxBitmap &) result); | |
3063 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
3064 | } | |
3065 | return resultobj; | |
3066 | fail: | |
3067 | return NULL; | |
3068 | } | |
3069 | ||
3070 | ||
3071 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject *resultobj; | |
3073 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3074 | wxString *arg2 = 0 ; | |
3075 | int arg3 ; | |
3076 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
3077 | bool result; | |
423f194a | 3078 | bool temp2 = False ; |
d14a1e28 RD |
3079 | PyObject * obj0 = 0 ; |
3080 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3081 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3082 | PyObject * obj3 = 0 ; |
3083 | char *kwnames[] = { | |
3084 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3085 | }; | |
3086 | ||
8edf1c75 | 3087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3089 | { | |
3090 | arg2 = wxString_in_helper(obj1); | |
3091 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3092 | temp2 = True; |
d14a1e28 | 3093 | } |
8edf1c75 RD |
3094 | { |
3095 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3096 | if (PyErr_Occurred()) SWIG_fail; | |
3097 | } | |
d14a1e28 RD |
3098 | if (obj3) { |
3099 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3100 | } | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
02a34c4c | 3108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3109 | { |
3110 | if (temp2) | |
3111 | delete arg2; | |
3112 | } | |
3113 | return resultobj; | |
3114 | fail: | |
3115 | { | |
3116 | if (temp2) | |
3117 | delete arg2; | |
3118 | } | |
3119 | return NULL; | |
3120 | } | |
3121 | ||
3122 | ||
3123 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3124 | PyObject *resultobj; | |
3125 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3126 | wxString *arg2 = 0 ; | |
3127 | int arg3 ; | |
3128 | bool result; | |
423f194a | 3129 | bool temp2 = False ; |
d14a1e28 RD |
3130 | PyObject * obj0 = 0 ; |
3131 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3132 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3133 | char *kwnames[] = { |
3134 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3135 | }; | |
3136 | ||
8edf1c75 | 3137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3139 | { | |
3140 | arg2 = wxString_in_helper(obj1); | |
3141 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3142 | temp2 = True; |
d14a1e28 | 3143 | } |
8edf1c75 RD |
3144 | { |
3145 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3146 | if (PyErr_Occurred()) SWIG_fail; | |
3147 | } | |
d14a1e28 RD |
3148 | { |
3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3150 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3151 | ||
3152 | wxPyEndAllowThreads(__tstate); | |
3153 | if (PyErr_Occurred()) SWIG_fail; | |
3154 | } | |
02a34c4c | 3155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3156 | { |
3157 | if (temp2) | |
3158 | delete arg2; | |
3159 | } | |
3160 | return resultobj; | |
3161 | fail: | |
3162 | { | |
3163 | if (temp2) | |
3164 | delete arg2; | |
3165 | } | |
3166 | return NULL; | |
3167 | } | |
3168 | ||
3169 | ||
3170 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3171 | PyObject *resultobj; | |
3172 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3173 | wxIcon *arg2 = 0 ; | |
3174 | bool result; | |
3175 | PyObject * obj0 = 0 ; | |
3176 | PyObject * obj1 = 0 ; | |
3177 | char *kwnames[] = { | |
3178 | (char *) "self",(char *) "icon", NULL | |
3179 | }; | |
3180 | ||
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3183 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3184 | if (arg2 == NULL) { | |
3185 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3186 | } | |
3187 | { | |
3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3189 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3190 | ||
3191 | wxPyEndAllowThreads(__tstate); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
02a34c4c | 3194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3195 | return resultobj; |
3196 | fail: | |
3197 | return NULL; | |
3198 | } | |
3199 | ||
3200 | ||
3201 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3202 | PyObject *resultobj; | |
3203 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3204 | int arg2 ; | |
3205 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3206 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3207 | char *kwnames[] = { |
3208 | (char *) "self",(char *) "height", NULL | |
3209 | }; | |
3210 | ||
8edf1c75 | 3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3213 | { |
3214 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3215 | if (PyErr_Occurred()) SWIG_fail; | |
3216 | } | |
d14a1e28 RD |
3217 | { |
3218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3219 | (arg1)->SetHeight(arg2); | |
3220 | ||
3221 | wxPyEndAllowThreads(__tstate); | |
3222 | if (PyErr_Occurred()) SWIG_fail; | |
3223 | } | |
3224 | Py_INCREF(Py_None); resultobj = Py_None; | |
3225 | return resultobj; | |
3226 | fail: | |
3227 | return NULL; | |
3228 | } | |
3229 | ||
3230 | ||
3231 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3232 | PyObject *resultobj; | |
3233 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3234 | int arg2 ; | |
3235 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3237 | char *kwnames[] = { |
3238 | (char *) "self",(char *) "width", NULL | |
3239 | }; | |
3240 | ||
8edf1c75 | 3241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3243 | { |
3244 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3245 | if (PyErr_Occurred()) SWIG_fail; | |
3246 | } | |
d14a1e28 RD |
3247 | { |
3248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3249 | (arg1)->SetWidth(arg2); | |
3250 | ||
3251 | wxPyEndAllowThreads(__tstate); | |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
3253 | } | |
3254 | Py_INCREF(Py_None); resultobj = Py_None; | |
3255 | return resultobj; | |
3256 | fail: | |
3257 | return NULL; | |
3258 | } | |
3259 | ||
3260 | ||
3261 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3262 | PyObject *resultobj; | |
3263 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3264 | int arg2 ; | |
3265 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3267 | char *kwnames[] = { |
3268 | (char *) "self",(char *) "depth", NULL | |
3269 | }; | |
3270 | ||
8edf1c75 | 3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3273 | { |
3274 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3275 | if (PyErr_Occurred()) SWIG_fail; | |
3276 | } | |
d14a1e28 RD |
3277 | { |
3278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3279 | (arg1)->SetDepth(arg2); | |
3280 | ||
3281 | wxPyEndAllowThreads(__tstate); | |
3282 | if (PyErr_Occurred()) SWIG_fail; | |
3283 | } | |
3284 | Py_INCREF(Py_None); resultobj = Py_None; | |
3285 | return resultobj; | |
3286 | fail: | |
3287 | return NULL; | |
3288 | } | |
3289 | ||
3290 | ||
3291 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3292 | PyObject *obj; | |
3293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3294 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3295 | Py_INCREF(obj); | |
3296 | return Py_BuildValue((char *)""); | |
3297 | } | |
3298 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3299 | PyObject *resultobj; | |
3300 | wxBitmap *arg1 = 0 ; | |
0ffb2aa6 RD |
3301 | wxColour const &arg2_defvalue = wxNullColour ; |
3302 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3303 | wxMask *result; |
3304 | wxColour temp2 ; | |
3305 | PyObject * obj0 = 0 ; | |
3306 | PyObject * obj1 = 0 ; | |
3307 | char *kwnames[] = { | |
3308 | (char *) "bitmap",(char *) "colour", NULL | |
3309 | }; | |
3310 | ||
0ffb2aa6 | 3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3313 | if (arg1 == NULL) { | |
3314 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3315 | } | |
0ffb2aa6 RD |
3316 | if (obj1) { |
3317 | { | |
3318 | arg2 = &temp2; | |
3319 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3320 | } | |
d14a1e28 RD |
3321 | } |
3322 | { | |
3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 3324 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3325 | |
3326 | wxPyEndAllowThreads(__tstate); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | } | |
3329 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3330 | return resultobj; | |
3331 | fail: | |
3332 | return NULL; | |
3333 | } | |
3334 | ||
3335 | ||
3336 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3337 | PyObject *obj; | |
3338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3339 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3340 | Py_INCREF(obj); | |
3341 | return Py_BuildValue((char *)""); | |
3342 | } | |
3343 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3344 | PyObject *resultobj; | |
3345 | wxString *arg1 = 0 ; | |
d896a793 | 3346 | int arg2 ; |
d14a1e28 RD |
3347 | int arg3 = (int) -1 ; |
3348 | int arg4 = (int) -1 ; | |
3349 | wxIcon *result; | |
423f194a | 3350 | bool temp1 = False ; |
d14a1e28 | 3351 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3352 | PyObject * obj1 = 0 ; |
3353 | PyObject * obj2 = 0 ; | |
3354 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3355 | char *kwnames[] = { |
d896a793 | 3356 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3357 | }; |
3358 | ||
8edf1c75 | 3359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3360 | { |
3361 | arg1 = wxString_in_helper(obj0); | |
3362 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3363 | temp1 = True; |
d14a1e28 | 3364 | } |
8edf1c75 RD |
3365 | { |
3366 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); | |
3367 | if (PyErr_Occurred()) SWIG_fail; | |
3368 | } | |
3369 | if (obj2) { | |
3370 | { | |
3371 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3372 | if (PyErr_Occurred()) SWIG_fail; | |
3373 | } | |
3374 | } | |
3375 | if (obj3) { | |
3376 | { | |
3377 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3378 | if (PyErr_Occurred()) SWIG_fail; | |
3379 | } | |
3380 | } | |
d14a1e28 RD |
3381 | { |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d896a793 | 3383 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); |
d14a1e28 RD |
3384 | |
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
3388 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3389 | { | |
3390 | if (temp1) | |
3391 | delete arg1; | |
3392 | } | |
3393 | return resultobj; | |
3394 | fail: | |
3395 | { | |
3396 | if (temp1) | |
3397 | delete arg1; | |
3398 | } | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj; | |
3405 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3406 | PyObject * obj0 = 0 ; | |
3407 | char *kwnames[] = { | |
3408 | (char *) "self", NULL | |
3409 | }; | |
3410 | ||
3411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3413 | { | |
3414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3415 | delete arg1; | |
3416 | ||
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | } | |
3420 | Py_INCREF(Py_None); resultobj = Py_None; | |
3421 | return resultobj; | |
3422 | fail: | |
3423 | return NULL; | |
3424 | } | |
3425 | ||
3426 | ||
3427 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3428 | PyObject *resultobj; | |
3429 | wxIcon *result; | |
3430 | char *kwnames[] = { | |
3431 | NULL | |
3432 | }; | |
3433 | ||
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | result = (wxIcon *)new wxIcon(); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3443 | return resultobj; | |
3444 | fail: | |
3445 | return NULL; | |
3446 | } | |
3447 | ||
3448 | ||
3449 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3450 | PyObject *resultobj; | |
3451 | wxIconLocation *arg1 = 0 ; | |
3452 | wxIcon *result; | |
3453 | PyObject * obj0 = 0 ; | |
3454 | char *kwnames[] = { | |
3455 | (char *) "loc", NULL | |
3456 | }; | |
3457 | ||
3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3460 | if (arg1 == NULL) { | |
3461 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3462 | } | |
3463 | { | |
3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3465 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3466 | ||
3467 | wxPyEndAllowThreads(__tstate); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
3470 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3471 | return resultobj; | |
3472 | fail: | |
3473 | return NULL; | |
3474 | } | |
3475 | ||
3476 | ||
3477 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject *resultobj; | |
3479 | wxBitmap *arg1 = 0 ; | |
3480 | wxIcon *result; | |
3481 | PyObject * obj0 = 0 ; | |
3482 | char *kwnames[] = { | |
3483 | (char *) "bmp", NULL | |
3484 | }; | |
3485 | ||
3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3488 | if (arg1 == NULL) { | |
3489 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3490 | } | |
3491 | { | |
3492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3493 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3494 | ||
3495 | wxPyEndAllowThreads(__tstate); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
3497 | } | |
3498 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3499 | return resultobj; | |
3500 | fail: | |
3501 | return NULL; | |
3502 | } | |
3503 | ||
3504 | ||
3505 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject *resultobj; | |
3507 | PyObject *arg1 = (PyObject *) 0 ; | |
3508 | wxIcon *result; | |
3509 | PyObject * obj0 = 0 ; | |
3510 | char *kwnames[] = { | |
3511 | (char *) "listOfStrings", NULL | |
3512 | }; | |
3513 | ||
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3515 | arg1 = obj0; | |
3516 | { | |
3517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3518 | result = (wxIcon *)new_wxIcon(arg1); | |
3519 | ||
3520 | wxPyEndAllowThreads(__tstate); | |
3521 | if (PyErr_Occurred()) SWIG_fail; | |
3522 | } | |
3523 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3524 | return resultobj; | |
3525 | fail: | |
3526 | return NULL; | |
3527 | } | |
3528 | ||
3529 | ||
3530 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3531 | PyObject *resultobj; | |
3532 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3533 | bool result; | |
3534 | PyObject * obj0 = 0 ; | |
3535 | char *kwnames[] = { | |
3536 | (char *) "self", NULL | |
3537 | }; | |
3538 | ||
3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | result = (bool)(arg1)->Ok(); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
02a34c4c | 3548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3549 | return resultobj; |
3550 | fail: | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
3555 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject *resultobj; | |
3557 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3558 | int result; | |
3559 | PyObject * obj0 = 0 ; | |
3560 | char *kwnames[] = { | |
3561 | (char *) "self", NULL | |
3562 | }; | |
3563 | ||
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3566 | { | |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3568 | result = (int)(arg1)->GetWidth(); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
8edf1c75 | 3573 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3574 | return resultobj; |
3575 | fail: | |
3576 | return NULL; | |
3577 | } | |
3578 | ||
3579 | ||
3580 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3581 | PyObject *resultobj; | |
3582 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3583 | int result; | |
3584 | PyObject * obj0 = 0 ; | |
3585 | char *kwnames[] = { | |
3586 | (char *) "self", NULL | |
3587 | }; | |
3588 | ||
3589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3591 | { | |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3593 | result = (int)(arg1)->GetHeight(); | |
3594 | ||
3595 | wxPyEndAllowThreads(__tstate); | |
3596 | if (PyErr_Occurred()) SWIG_fail; | |
3597 | } | |
8edf1c75 | 3598 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3599 | return resultobj; |
3600 | fail: | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj; | |
3607 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3608 | int result; | |
3609 | PyObject * obj0 = 0 ; | |
3610 | char *kwnames[] = { | |
3611 | (char *) "self", NULL | |
3612 | }; | |
3613 | ||
3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | result = (int)(arg1)->GetDepth(); | |
3619 | ||
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
8edf1c75 | 3623 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3624 | return resultobj; |
3625 | fail: | |
3626 | return NULL; | |
3627 | } | |
3628 | ||
3629 | ||
3630 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3631 | PyObject *resultobj; | |
3632 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3633 | int arg2 ; | |
3634 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3636 | char *kwnames[] = { |
3637 | (char *) "self",(char *) "w", NULL | |
3638 | }; | |
3639 | ||
8edf1c75 | 3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3642 | { |
3643 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | } | |
d14a1e28 RD |
3646 | { |
3647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3648 | (arg1)->SetWidth(arg2); | |
3649 | ||
3650 | wxPyEndAllowThreads(__tstate); | |
3651 | if (PyErr_Occurred()) SWIG_fail; | |
3652 | } | |
3653 | Py_INCREF(Py_None); resultobj = Py_None; | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
3660 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3661 | PyObject *resultobj; | |
3662 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3663 | int arg2 ; | |
3664 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3665 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3666 | char *kwnames[] = { |
3667 | (char *) "self",(char *) "h", NULL | |
3668 | }; | |
3669 | ||
8edf1c75 | 3670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3672 | { |
3673 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3674 | if (PyErr_Occurred()) SWIG_fail; | |
3675 | } | |
d14a1e28 RD |
3676 | { |
3677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3678 | (arg1)->SetHeight(arg2); | |
3679 | ||
3680 | wxPyEndAllowThreads(__tstate); | |
3681 | if (PyErr_Occurred()) SWIG_fail; | |
3682 | } | |
3683 | Py_INCREF(Py_None); resultobj = Py_None; | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
3690 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3691 | PyObject *resultobj; | |
3692 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3693 | int arg2 ; | |
3694 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3695 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3696 | char *kwnames[] = { |
3697 | (char *) "self",(char *) "d", NULL | |
3698 | }; | |
3699 | ||
8edf1c75 | 3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3702 | { |
3703 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3704 | if (PyErr_Occurred()) SWIG_fail; | |
3705 | } | |
d14a1e28 RD |
3706 | { |
3707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3708 | (arg1)->SetDepth(arg2); | |
3709 | ||
3710 | wxPyEndAllowThreads(__tstate); | |
3711 | if (PyErr_Occurred()) SWIG_fail; | |
3712 | } | |
3713 | Py_INCREF(Py_None); resultobj = Py_None; | |
3714 | return resultobj; | |
3715 | fail: | |
3716 | return NULL; | |
3717 | } | |
3718 | ||
3719 | ||
3720 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3721 | PyObject *resultobj; | |
3722 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3723 | wxBitmap *arg2 = 0 ; | |
3724 | PyObject * obj0 = 0 ; | |
3725 | PyObject * obj1 = 0 ; | |
3726 | char *kwnames[] = { | |
3727 | (char *) "self",(char *) "bmp", NULL | |
3728 | }; | |
3729 | ||
3730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3732 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3733 | if (arg2 == NULL) { | |
3734 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3735 | } | |
3736 | { | |
3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3738 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | Py_INCREF(Py_None); resultobj = Py_None; | |
3744 | return resultobj; | |
3745 | fail: | |
3746 | return NULL; | |
3747 | } | |
3748 | ||
3749 | ||
3750 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3751 | PyObject *obj; | |
3752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3753 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3754 | Py_INCREF(obj); | |
3755 | return Py_BuildValue((char *)""); | |
3756 | } | |
3757 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3758 | PyObject *resultobj; | |
3759 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3760 | int arg2 = (int) 0 ; | |
3761 | wxIconLocation *result; | |
dae0faa6 | 3762 | bool temp1 = False ; |
d14a1e28 | 3763 | PyObject * obj0 = 0 ; |
8edf1c75 | 3764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3765 | char *kwnames[] = { |
3766 | (char *) "filename",(char *) "num", NULL | |
3767 | }; | |
3768 | ||
8edf1c75 | 3769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3770 | if (obj0) { |
dae0faa6 RD |
3771 | { |
3772 | arg1 = wxString_in_helper(obj0); | |
3773 | if (arg1 == NULL) SWIG_fail; | |
3774 | temp1 = True; | |
3775 | } | |
d14a1e28 | 3776 | } |
8edf1c75 RD |
3777 | if (obj1) { |
3778 | { | |
3779 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3780 | if (PyErr_Occurred()) SWIG_fail; | |
3781 | } | |
3782 | } | |
d14a1e28 RD |
3783 | { |
3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3785 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3786 | ||
3787 | wxPyEndAllowThreads(__tstate); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | } | |
3790 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
dae0faa6 RD |
3791 | { |
3792 | if (temp1) | |
3793 | delete arg1; | |
3794 | } | |
d14a1e28 RD |
3795 | return resultobj; |
3796 | fail: | |
dae0faa6 RD |
3797 | { |
3798 | if (temp1) | |
3799 | delete arg1; | |
3800 | } | |
d14a1e28 RD |
3801 | return NULL; |
3802 | } | |
3803 | ||
3804 | ||
3805 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject *resultobj; | |
3807 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3808 | PyObject * obj0 = 0 ; | |
3809 | char *kwnames[] = { | |
3810 | (char *) "self", NULL | |
3811 | }; | |
3812 | ||
3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3815 | { | |
3816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3817 | delete arg1; | |
3818 | ||
3819 | wxPyEndAllowThreads(__tstate); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | } | |
3822 | Py_INCREF(Py_None); resultobj = Py_None; | |
3823 | return resultobj; | |
3824 | fail: | |
3825 | return NULL; | |
3826 | } | |
3827 | ||
3828 | ||
3829 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3830 | PyObject *resultobj; | |
3831 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3832 | bool result; | |
3833 | PyObject * obj0 = 0 ; | |
3834 | char *kwnames[] = { | |
3835 | (char *) "self", NULL | |
3836 | }; | |
3837 | ||
3838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3840 | { | |
3841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3842 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3843 | ||
3844 | wxPyEndAllowThreads(__tstate); | |
3845 | if (PyErr_Occurred()) SWIG_fail; | |
3846 | } | |
02a34c4c | 3847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3848 | return resultobj; |
3849 | fail: | |
3850 | return NULL; | |
3851 | } | |
3852 | ||
3853 | ||
3854 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3855 | PyObject *resultobj; | |
3856 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3857 | wxString *arg2 = 0 ; | |
423f194a | 3858 | bool temp2 = False ; |
d14a1e28 RD |
3859 | PyObject * obj0 = 0 ; |
3860 | PyObject * obj1 = 0 ; | |
3861 | char *kwnames[] = { | |
3862 | (char *) "self",(char *) "filename", NULL | |
3863 | }; | |
3864 | ||
3865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3867 | { | |
3868 | arg2 = wxString_in_helper(obj1); | |
3869 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3870 | temp2 = True; |
d14a1e28 RD |
3871 | } |
3872 | { | |
3873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3874 | (arg1)->SetFileName((wxString const &)*arg2); | |
3875 | ||
3876 | wxPyEndAllowThreads(__tstate); | |
3877 | if (PyErr_Occurred()) SWIG_fail; | |
3878 | } | |
3879 | Py_INCREF(Py_None); resultobj = Py_None; | |
3880 | { | |
3881 | if (temp2) | |
3882 | delete arg2; | |
3883 | } | |
3884 | return resultobj; | |
3885 | fail: | |
3886 | { | |
3887 | if (temp2) | |
3888 | delete arg2; | |
3889 | } | |
3890 | return NULL; | |
3891 | } | |
3892 | ||
3893 | ||
3894 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject *resultobj; | |
3896 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3897 | wxString *result; | |
3898 | PyObject * obj0 = 0 ; | |
3899 | char *kwnames[] = { | |
3900 | (char *) "self", NULL | |
3901 | }; | |
3902 | ||
3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3905 | { | |
3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3907 | { | |
3908 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3909 | result = (wxString *) &_result_ref; | |
3910 | } | |
3911 | ||
3912 | wxPyEndAllowThreads(__tstate); | |
3913 | if (PyErr_Occurred()) SWIG_fail; | |
3914 | } | |
0f774bef RD |
3915 | { |
3916 | #if wxUSE_UNICODE | |
3917 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3918 | #else | |
3919 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3920 | #endif | |
3921 | } | |
d14a1e28 RD |
3922 | return resultobj; |
3923 | fail: | |
3924 | return NULL; | |
3925 | } | |
3926 | ||
3927 | ||
3928 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3929 | PyObject *resultobj; | |
3930 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3931 | int arg2 ; | |
3932 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3934 | char *kwnames[] = { |
3935 | (char *) "self",(char *) "num", NULL | |
3936 | }; | |
3937 | ||
8edf1c75 | 3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3940 | { |
3941 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3942 | if (PyErr_Occurred()) SWIG_fail; | |
3943 | } | |
d14a1e28 RD |
3944 | { |
3945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3946 | wxIconLocation_SetIndex(arg1,arg2); | |
3947 | ||
3948 | wxPyEndAllowThreads(__tstate); | |
3949 | if (PyErr_Occurred()) SWIG_fail; | |
3950 | } | |
3951 | Py_INCREF(Py_None); resultobj = Py_None; | |
3952 | return resultobj; | |
3953 | fail: | |
3954 | return NULL; | |
3955 | } | |
3956 | ||
3957 | ||
3958 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3959 | PyObject *resultobj; | |
3960 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3961 | int result; | |
3962 | PyObject * obj0 = 0 ; | |
3963 | char *kwnames[] = { | |
3964 | (char *) "self", NULL | |
3965 | }; | |
3966 | ||
3967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3969 | { | |
3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3971 | result = (int)wxIconLocation_GetIndex(arg1); | |
3972 | ||
3973 | wxPyEndAllowThreads(__tstate); | |
3974 | if (PyErr_Occurred()) SWIG_fail; | |
3975 | } | |
8edf1c75 | 3976 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3977 | return resultobj; |
3978 | fail: | |
3979 | return NULL; | |
3980 | } | |
3981 | ||
3982 | ||
3983 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3984 | PyObject *obj; | |
3985 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3986 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3987 | Py_INCREF(obj); | |
3988 | return Py_BuildValue((char *)""); | |
3989 | } | |
3990 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3991 | PyObject *resultobj; | |
3992 | wxIconBundle *result; | |
3993 | char *kwnames[] = { | |
3994 | NULL | |
3995 | }; | |
3996 | ||
3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3998 | { | |
3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4000 | result = (wxIconBundle *)new wxIconBundle(); | |
4001 | ||
4002 | wxPyEndAllowThreads(__tstate); | |
4003 | if (PyErr_Occurred()) SWIG_fail; | |
4004 | } | |
4005 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4006 | return resultobj; | |
4007 | fail: | |
4008 | return NULL; | |
4009 | } | |
4010 | ||
4011 | ||
4012 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4013 | PyObject *resultobj; | |
4014 | wxString *arg1 = 0 ; | |
4015 | long arg2 ; | |
4016 | wxIconBundle *result; | |
423f194a | 4017 | bool temp1 = False ; |
d14a1e28 | 4018 | PyObject * obj0 = 0 ; |
8edf1c75 | 4019 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4020 | char *kwnames[] = { |
4021 | (char *) "file",(char *) "type", NULL | |
4022 | }; | |
4023 | ||
8edf1c75 | 4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4025 | { |
4026 | arg1 = wxString_in_helper(obj0); | |
4027 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4028 | temp1 = True; |
d14a1e28 | 4029 | } |
8edf1c75 RD |
4030 | { |
4031 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4032 | if (PyErr_Occurred()) SWIG_fail; | |
4033 | } | |
d14a1e28 RD |
4034 | { |
4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4036 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4037 | ||
4038 | wxPyEndAllowThreads(__tstate); | |
4039 | if (PyErr_Occurred()) SWIG_fail; | |
4040 | } | |
4041 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4042 | { | |
4043 | if (temp1) | |
4044 | delete arg1; | |
4045 | } | |
4046 | return resultobj; | |
4047 | fail: | |
4048 | { | |
4049 | if (temp1) | |
4050 | delete arg1; | |
4051 | } | |
4052 | return NULL; | |
4053 | } | |
4054 | ||
4055 | ||
4056 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4057 | PyObject *resultobj; | |
4058 | wxIcon *arg1 = 0 ; | |
4059 | wxIconBundle *result; | |
4060 | PyObject * obj0 = 0 ; | |
4061 | char *kwnames[] = { | |
4062 | (char *) "icon", NULL | |
4063 | }; | |
4064 | ||
4065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4067 | if (arg1 == NULL) { | |
4068 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4069 | } | |
4070 | { | |
4071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4072 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4073 | ||
4074 | wxPyEndAllowThreads(__tstate); | |
4075 | if (PyErr_Occurred()) SWIG_fail; | |
4076 | } | |
4077 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4078 | return resultobj; | |
4079 | fail: | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
4084 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4085 | PyObject *resultobj; | |
4086 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4087 | PyObject * obj0 = 0 ; | |
4088 | char *kwnames[] = { | |
4089 | (char *) "self", NULL | |
4090 | }; | |
4091 | ||
4092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4094 | { | |
4095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4096 | delete arg1; | |
4097 | ||
4098 | wxPyEndAllowThreads(__tstate); | |
4099 | if (PyErr_Occurred()) SWIG_fail; | |
4100 | } | |
4101 | Py_INCREF(Py_None); resultobj = Py_None; | |
4102 | return resultobj; | |
4103 | fail: | |
4104 | return NULL; | |
4105 | } | |
4106 | ||
4107 | ||
4108 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4109 | PyObject *resultobj; | |
4110 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4111 | wxIcon *arg2 = 0 ; | |
4112 | PyObject * obj0 = 0 ; | |
4113 | PyObject * obj1 = 0 ; | |
4114 | char *kwnames[] = { | |
4115 | (char *) "self",(char *) "icon", NULL | |
4116 | }; | |
4117 | ||
4118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4120 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4121 | if (arg2 == NULL) { | |
4122 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4123 | } | |
4124 | { | |
4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4126 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4127 | ||
4128 | wxPyEndAllowThreads(__tstate); | |
4129 | if (PyErr_Occurred()) SWIG_fail; | |
4130 | } | |
4131 | Py_INCREF(Py_None); resultobj = Py_None; | |
4132 | return resultobj; | |
4133 | fail: | |
4134 | return NULL; | |
4135 | } | |
4136 | ||
4137 | ||
4138 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4139 | PyObject *resultobj; | |
4140 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4141 | wxString *arg2 = 0 ; | |
4142 | long arg3 ; | |
423f194a | 4143 | bool temp2 = False ; |
d14a1e28 RD |
4144 | PyObject * obj0 = 0 ; |
4145 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4146 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4147 | char *kwnames[] = { |
4148 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4149 | }; | |
4150 | ||
8edf1c75 | 4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4153 | { | |
4154 | arg2 = wxString_in_helper(obj1); | |
4155 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4156 | temp2 = True; |
d14a1e28 | 4157 | } |
8edf1c75 RD |
4158 | { |
4159 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
4160 | if (PyErr_Occurred()) SWIG_fail; | |
4161 | } | |
d14a1e28 RD |
4162 | { |
4163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4164 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4165 | ||
4166 | wxPyEndAllowThreads(__tstate); | |
4167 | if (PyErr_Occurred()) SWIG_fail; | |
4168 | } | |
4169 | Py_INCREF(Py_None); resultobj = Py_None; | |
4170 | { | |
4171 | if (temp2) | |
4172 | delete arg2; | |
4173 | } | |
4174 | return resultobj; | |
4175 | fail: | |
4176 | { | |
4177 | if (temp2) | |
4178 | delete arg2; | |
4179 | } | |
4180 | return NULL; | |
4181 | } | |
4182 | ||
4183 | ||
4184 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4185 | PyObject *resultobj; | |
4186 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4187 | wxSize *arg2 = 0 ; | |
4188 | wxIcon *result; | |
4189 | wxSize temp2 ; | |
4190 | PyObject * obj0 = 0 ; | |
4191 | PyObject * obj1 = 0 ; | |
4192 | char *kwnames[] = { | |
4193 | (char *) "self",(char *) "size", NULL | |
4194 | }; | |
4195 | ||
4196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4198 | { | |
4199 | arg2 = &temp2; | |
4200 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4201 | } | |
4202 | { | |
4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4204 | { | |
4205 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4206 | result = (wxIcon *) &_result_ref; | |
4207 | } | |
4208 | ||
4209 | wxPyEndAllowThreads(__tstate); | |
4210 | if (PyErr_Occurred()) SWIG_fail; | |
4211 | } | |
4212 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
4213 | return resultobj; | |
4214 | fail: | |
4215 | return NULL; | |
4216 | } | |
4217 | ||
4218 | ||
4219 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4220 | PyObject *obj; | |
4221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4222 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4223 | Py_INCREF(obj); | |
4224 | return Py_BuildValue((char *)""); | |
4225 | } | |
4226 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4227 | PyObject *resultobj; | |
4228 | wxString *arg1 = (wxString *) 0 ; | |
4229 | long arg2 ; | |
4230 | int arg3 = (int) 0 ; | |
4231 | int arg4 = (int) 0 ; | |
4232 | wxCursor *result; | |
dae0faa6 | 4233 | bool temp1 = False ; |
d14a1e28 | 4234 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4235 | PyObject * obj1 = 0 ; |
4236 | PyObject * obj2 = 0 ; | |
4237 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4238 | char *kwnames[] = { |
4239 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4240 | }; | |
4241 | ||
8edf1c75 | 4242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
dae0faa6 RD |
4243 | { |
4244 | arg1 = wxString_in_helper(obj0); | |
4245 | if (arg1 == NULL) SWIG_fail; | |
4246 | temp1 = True; | |
4247 | } | |
8edf1c75 RD |
4248 | { |
4249 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | } | |
4252 | if (obj2) { | |
4253 | { | |
4254 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4255 | if (PyErr_Occurred()) SWIG_fail; | |
4256 | } | |
4257 | } | |
4258 | if (obj3) { | |
4259 | { | |
4260 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4261 | if (PyErr_Occurred()) SWIG_fail; | |
4262 | } | |
4263 | } | |
d14a1e28 RD |
4264 | { |
4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4266 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4267 | ||
4268 | wxPyEndAllowThreads(__tstate); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
dae0faa6 RD |
4272 | { |
4273 | if (temp1) | |
4274 | delete arg1; | |
4275 | } | |
d14a1e28 RD |
4276 | return resultobj; |
4277 | fail: | |
dae0faa6 RD |
4278 | { |
4279 | if (temp1) | |
4280 | delete arg1; | |
4281 | } | |
d14a1e28 RD |
4282 | return NULL; |
4283 | } | |
4284 | ||
4285 | ||
4286 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4287 | PyObject *resultobj; | |
4288 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4289 | PyObject * obj0 = 0 ; | |
4290 | char *kwnames[] = { | |
4291 | (char *) "self", NULL | |
4292 | }; | |
4293 | ||
4294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4296 | { | |
4297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4298 | delete arg1; | |
4299 | ||
4300 | wxPyEndAllowThreads(__tstate); | |
4301 | if (PyErr_Occurred()) SWIG_fail; | |
4302 | } | |
4303 | Py_INCREF(Py_None); resultobj = Py_None; | |
4304 | return resultobj; | |
4305 | fail: | |
4306 | return NULL; | |
4307 | } | |
4308 | ||
4309 | ||
4310 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4311 | PyObject *resultobj; | |
4312 | int arg1 ; | |
4313 | wxCursor *result; | |
8edf1c75 | 4314 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4315 | char *kwnames[] = { |
4316 | (char *) "id", NULL | |
4317 | }; | |
4318 | ||
8edf1c75 RD |
4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
4320 | { | |
4321 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4322 | if (PyErr_Occurred()) SWIG_fail; | |
4323 | } | |
d14a1e28 RD |
4324 | { |
4325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4326 | result = (wxCursor *)new wxCursor(arg1); | |
4327 | ||
4328 | wxPyEndAllowThreads(__tstate); | |
4329 | if (PyErr_Occurred()) SWIG_fail; | |
4330 | } | |
4331 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4332 | return resultobj; | |
4333 | fail: | |
4334 | return NULL; | |
4335 | } | |
4336 | ||
4337 | ||
4338 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4339 | PyObject *resultobj; | |
4340 | wxImage *arg1 = 0 ; | |
4341 | wxCursor *result; | |
4342 | PyObject * obj0 = 0 ; | |
4343 | char *kwnames[] = { | |
4344 | (char *) "image", NULL | |
4345 | }; | |
4346 | ||
4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4349 | if (arg1 == NULL) { | |
4350 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4351 | } | |
4352 | { | |
4353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4354 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4355 | ||
4356 | wxPyEndAllowThreads(__tstate); | |
4357 | if (PyErr_Occurred()) SWIG_fail; | |
4358 | } | |
4359 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4360 | return resultobj; | |
4361 | fail: | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
4366 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4367 | PyObject *resultobj; | |
4368 | PyObject *arg1 = (PyObject *) 0 ; | |
4369 | int arg2 ; | |
4370 | int arg3 ; | |
4371 | int arg4 = (int) -1 ; | |
4372 | int arg5 = (int) -1 ; | |
4373 | PyObject *arg6 = (PyObject *) 0 ; | |
4374 | wxCursor *result; | |
4375 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4376 | PyObject * obj1 = 0 ; |
4377 | PyObject * obj2 = 0 ; | |
4378 | PyObject * obj3 = 0 ; | |
4379 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4380 | PyObject * obj5 = 0 ; |
4381 | char *kwnames[] = { | |
4382 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4383 | }; | |
4384 | ||
8edf1c75 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4386 | arg1 = obj0; |
8edf1c75 RD |
4387 | { |
4388 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4389 | if (PyErr_Occurred()) SWIG_fail; | |
4390 | } | |
4391 | { | |
4392 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4393 | if (PyErr_Occurred()) SWIG_fail; | |
4394 | } | |
4395 | if (obj3) { | |
4396 | { | |
4397 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4398 | if (PyErr_Occurred()) SWIG_fail; | |
4399 | } | |
4400 | } | |
4401 | if (obj4) { | |
4402 | { | |
4403 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4404 | if (PyErr_Occurred()) SWIG_fail; | |
4405 | } | |
4406 | } | |
d14a1e28 RD |
4407 | if (obj5) { |
4408 | arg6 = obj5; | |
4409 | } | |
4410 | { | |
4411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4412 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4413 | ||
4414 | wxPyEndAllowThreads(__tstate); | |
4415 | if (PyErr_Occurred()) SWIG_fail; | |
4416 | } | |
4417 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4418 | return resultobj; | |
4419 | fail: | |
4420 | return NULL; | |
4421 | } | |
4422 | ||
4423 | ||
4424 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4425 | PyObject *resultobj; | |
4426 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4427 | bool result; | |
4428 | PyObject * obj0 = 0 ; | |
4429 | char *kwnames[] = { | |
4430 | (char *) "self", NULL | |
4431 | }; | |
4432 | ||
4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4435 | { | |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4437 | result = (bool)(arg1)->Ok(); | |
4438 | ||
4439 | wxPyEndAllowThreads(__tstate); | |
4440 | if (PyErr_Occurred()) SWIG_fail; | |
4441 | } | |
02a34c4c | 4442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4443 | return resultobj; |
4444 | fail: | |
4445 | return NULL; | |
4446 | } | |
4447 | ||
4448 | ||
4449 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4450 | PyObject *obj; | |
4451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4452 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4453 | Py_INCREF(obj); | |
4454 | return Py_BuildValue((char *)""); | |
4455 | } | |
4456 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4457 | PyObject *resultobj; | |
423f194a RD |
4458 | int arg1 = (int) 0 ; |
4459 | int arg2 = (int) 0 ; | |
4460 | int arg3 = (int) 0 ; | |
4461 | int arg4 = (int) 0 ; | |
d14a1e28 | 4462 | wxRegion *result; |
8edf1c75 RD |
4463 | PyObject * obj0 = 0 ; |
4464 | PyObject * obj1 = 0 ; | |
4465 | PyObject * obj2 = 0 ; | |
4466 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4467 | char *kwnames[] = { |
4468 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4469 | }; | |
4470 | ||
8edf1c75 RD |
4471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4472 | if (obj0) { | |
4473 | { | |
4474 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4475 | if (PyErr_Occurred()) SWIG_fail; | |
4476 | } | |
4477 | } | |
4478 | if (obj1) { | |
4479 | { | |
4480 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4481 | if (PyErr_Occurred()) SWIG_fail; | |
4482 | } | |
4483 | } | |
4484 | if (obj2) { | |
4485 | { | |
4486 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4487 | if (PyErr_Occurred()) SWIG_fail; | |
4488 | } | |
4489 | } | |
4490 | if (obj3) { | |
4491 | { | |
4492 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
4494 | } | |
4495 | } | |
d14a1e28 RD |
4496 | { |
4497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4498 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4499 | ||
4500 | wxPyEndAllowThreads(__tstate); | |
4501 | if (PyErr_Occurred()) SWIG_fail; | |
4502 | } | |
4503 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4504 | return resultobj; | |
4505 | fail: | |
4506 | return NULL; | |
4507 | } | |
4508 | ||
4509 | ||
4510 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4511 | PyObject *resultobj; | |
4512 | wxBitmap *arg1 = 0 ; | |
4513 | wxColour const &arg2_defvalue = wxNullColour ; | |
4514 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4515 | int arg3 = (int) 0 ; | |
4516 | wxRegion *result; | |
4517 | wxColour temp2 ; | |
4518 | PyObject * obj0 = 0 ; | |
4519 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4520 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4521 | char *kwnames[] = { |
4522 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4523 | }; | |
4524 | ||
8edf1c75 | 4525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4527 | if (arg1 == NULL) { | |
4528 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4529 | } | |
4530 | if (obj1) { | |
4531 | { | |
4532 | arg2 = &temp2; | |
4533 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4534 | } | |
4535 | } | |
8edf1c75 RD |
4536 | if (obj2) { |
4537 | { | |
4538 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
4540 | } | |
4541 | } | |
d14a1e28 RD |
4542 | { |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4544 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4545 | ||
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
4549 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4550 | return resultobj; | |
4551 | fail: | |
4552 | return NULL; | |
4553 | } | |
4554 | ||
4555 | ||
4556 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4557 | PyObject *resultobj; | |
4558 | int arg1 ; | |
4559 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4560 | int arg3 = (int) wxWINDING_RULE ; | |
4561 | wxRegion *result; | |
4562 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4563 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4564 | char *kwnames[] = { |
4565 | (char *) "points",(char *) "fillStyle", NULL | |
4566 | }; | |
4567 | ||
8edf1c75 | 4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4569 | { |
4570 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4571 | if (arg2 == NULL) SWIG_fail; | |
4572 | } | |
8edf1c75 RD |
4573 | if (obj1) { |
4574 | { | |
4575 | arg3 = (int) SWIG_PyObj_AsInt(obj1); | |
4576 | if (PyErr_Occurred()) SWIG_fail; | |
4577 | } | |
4578 | } | |
d14a1e28 RD |
4579 | { |
4580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4581 | result = (wxRegion *)new_wxRegion(arg1,arg2,arg3); | |
4582 | ||
4583 | wxPyEndAllowThreads(__tstate); | |
4584 | if (PyErr_Occurred()) SWIG_fail; | |
4585 | } | |
4586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4587 | { | |
4588 | if (arg2) delete [] arg2; | |
4589 | } | |
4590 | return resultobj; | |
4591 | fail: | |
4592 | { | |
4593 | if (arg2) delete [] arg2; | |
4594 | } | |
4595 | return NULL; | |
4596 | } | |
4597 | ||
4598 | ||
4599 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4600 | PyObject *resultobj; | |
4601 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4602 | PyObject * obj0 = 0 ; | |
4603 | char *kwnames[] = { | |
4604 | (char *) "self", NULL | |
4605 | }; | |
4606 | ||
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,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_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4624 | PyObject *resultobj; | |
4625 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4626 | PyObject * obj0 = 0 ; | |
4627 | char *kwnames[] = { | |
4628 | (char *) "self", NULL | |
4629 | }; | |
4630 | ||
4631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4633 | { | |
4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4635 | (arg1)->Clear(); | |
4636 | ||
4637 | wxPyEndAllowThreads(__tstate); | |
4638 | if (PyErr_Occurred()) SWIG_fail; | |
4639 | } | |
4640 | Py_INCREF(Py_None); resultobj = Py_None; | |
4641 | return resultobj; | |
4642 | fail: | |
4643 | return NULL; | |
4644 | } | |
4645 | ||
4646 | ||
4647 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4648 | PyObject *resultobj; | |
4649 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4650 | int arg2 ; |
4651 | int arg3 ; | |
d14a1e28 RD |
4652 | int result; |
4653 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4654 | PyObject * obj1 = 0 ; |
4655 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4656 | char *kwnames[] = { |
4657 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4658 | }; | |
4659 | ||
8edf1c75 | 4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4662 | { |
4663 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4664 | if (PyErr_Occurred()) SWIG_fail; | |
4665 | } | |
4666 | { | |
4667 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4668 | if (PyErr_Occurred()) SWIG_fail; | |
4669 | } | |
d14a1e28 RD |
4670 | { |
4671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4672 | result = (int)(arg1)->Contains(arg2,arg3); | |
4673 | ||
4674 | wxPyEndAllowThreads(__tstate); | |
4675 | if (PyErr_Occurred()) SWIG_fail; | |
4676 | } | |
8edf1c75 | 4677 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4678 | return resultobj; |
4679 | fail: | |
4680 | return NULL; | |
4681 | } | |
4682 | ||
4683 | ||
4684 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4685 | PyObject *resultobj; | |
4686 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4687 | wxPoint *arg2 = 0 ; | |
4688 | int result; | |
4689 | wxPoint temp2 ; | |
4690 | PyObject * obj0 = 0 ; | |
4691 | PyObject * obj1 = 0 ; | |
4692 | char *kwnames[] = { | |
4693 | (char *) "self",(char *) "pt", NULL | |
4694 | }; | |
4695 | ||
4696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4698 | { | |
4699 | arg2 = &temp2; | |
4700 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4701 | } | |
4702 | { | |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4704 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4705 | ||
4706 | wxPyEndAllowThreads(__tstate); | |
4707 | if (PyErr_Occurred()) SWIG_fail; | |
4708 | } | |
8edf1c75 | 4709 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4710 | return resultobj; |
4711 | fail: | |
4712 | return NULL; | |
4713 | } | |
4714 | ||
4715 | ||
4716 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4717 | PyObject *resultobj; | |
4718 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4719 | wxRect *arg2 = 0 ; | |
4720 | int result; | |
4721 | wxRect temp2 ; | |
4722 | PyObject * obj0 = 0 ; | |
4723 | PyObject * obj1 = 0 ; | |
4724 | char *kwnames[] = { | |
4725 | (char *) "self",(char *) "rect", NULL | |
4726 | }; | |
4727 | ||
4728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4730 | { | |
4731 | arg2 = &temp2; | |
4732 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4733 | } | |
4734 | { | |
4735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4736 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4737 | ||
4738 | wxPyEndAllowThreads(__tstate); | |
4739 | if (PyErr_Occurred()) SWIG_fail; | |
4740 | } | |
8edf1c75 | 4741 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4742 | return resultobj; |
4743 | fail: | |
4744 | return NULL; | |
4745 | } | |
4746 | ||
4747 | ||
4748 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4749 | PyObject *resultobj; | |
4750 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4751 | int arg2 ; |
4752 | int arg3 ; | |
4753 | int arg4 ; | |
4754 | int arg5 ; | |
d14a1e28 RD |
4755 | int result; |
4756 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4757 | PyObject * obj1 = 0 ; |
4758 | PyObject * obj2 = 0 ; | |
4759 | PyObject * obj3 = 0 ; | |
4760 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4761 | char *kwnames[] = { |
4762 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4763 | }; | |
4764 | ||
8edf1c75 | 4765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4767 | { |
4768 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4769 | if (PyErr_Occurred()) SWIG_fail; | |
4770 | } | |
4771 | { | |
4772 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
4775 | { | |
4776 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4777 | if (PyErr_Occurred()) SWIG_fail; | |
4778 | } | |
4779 | { | |
4780 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4781 | if (PyErr_Occurred()) SWIG_fail; | |
4782 | } | |
d14a1e28 RD |
4783 | { |
4784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4785 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4786 | ||
4787 | wxPyEndAllowThreads(__tstate); | |
4788 | if (PyErr_Occurred()) SWIG_fail; | |
4789 | } | |
8edf1c75 | 4790 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4791 | return resultobj; |
4792 | fail: | |
4793 | return NULL; | |
4794 | } | |
4795 | ||
4796 | ||
4797 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4798 | PyObject *resultobj; | |
4799 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4800 | wxRect result; | |
4801 | PyObject * obj0 = 0 ; | |
4802 | char *kwnames[] = { | |
4803 | (char *) "self", NULL | |
4804 | }; | |
4805 | ||
4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4808 | { | |
4809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4810 | result = (arg1)->GetBox(); | |
4811 | ||
4812 | wxPyEndAllowThreads(__tstate); | |
4813 | if (PyErr_Occurred()) SWIG_fail; | |
4814 | } | |
4815 | { | |
4816 | wxRect * resultptr; | |
4817 | resultptr = new wxRect((wxRect &) result); | |
4818 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4819 | } | |
4820 | return resultobj; | |
4821 | fail: | |
4822 | return NULL; | |
4823 | } | |
4824 | ||
4825 | ||
4826 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4827 | PyObject *resultobj; | |
4828 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4829 | int arg2 ; |
4830 | int arg3 ; | |
4831 | int arg4 ; | |
4832 | int arg5 ; | |
d14a1e28 RD |
4833 | bool result; |
4834 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4835 | PyObject * obj1 = 0 ; |
4836 | PyObject * obj2 = 0 ; | |
4837 | PyObject * obj3 = 0 ; | |
4838 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4839 | char *kwnames[] = { |
4840 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4841 | }; | |
4842 | ||
8edf1c75 | 4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4845 | { |
4846 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4847 | if (PyErr_Occurred()) SWIG_fail; | |
4848 | } | |
4849 | { | |
4850 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4851 | if (PyErr_Occurred()) SWIG_fail; | |
4852 | } | |
4853 | { | |
4854 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4855 | if (PyErr_Occurred()) SWIG_fail; | |
4856 | } | |
4857 | { | |
4858 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
d14a1e28 RD |
4861 | { |
4862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4863 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4864 | ||
4865 | wxPyEndAllowThreads(__tstate); | |
4866 | if (PyErr_Occurred()) SWIG_fail; | |
4867 | } | |
02a34c4c | 4868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4869 | return resultobj; |
4870 | fail: | |
4871 | return NULL; | |
4872 | } | |
4873 | ||
4874 | ||
4875 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4878 | wxRect *arg2 = 0 ; | |
4879 | bool result; | |
4880 | wxRect temp2 ; | |
4881 | PyObject * obj0 = 0 ; | |
4882 | PyObject * obj1 = 0 ; | |
4883 | char *kwnames[] = { | |
4884 | (char *) "self",(char *) "rect", NULL | |
4885 | }; | |
4886 | ||
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4889 | { | |
4890 | arg2 = &temp2; | |
4891 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4892 | } | |
4893 | { | |
4894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4895 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4896 | ||
4897 | wxPyEndAllowThreads(__tstate); | |
4898 | if (PyErr_Occurred()) SWIG_fail; | |
4899 | } | |
02a34c4c | 4900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4901 | return resultobj; |
4902 | fail: | |
4903 | return NULL; | |
4904 | } | |
4905 | ||
4906 | ||
4907 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4908 | PyObject *resultobj; | |
4909 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4910 | wxRegion *arg2 = 0 ; | |
4911 | bool result; | |
4912 | PyObject * obj0 = 0 ; | |
4913 | PyObject * obj1 = 0 ; | |
4914 | char *kwnames[] = { | |
4915 | (char *) "self",(char *) "region", NULL | |
4916 | }; | |
4917 | ||
4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4920 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4921 | if (arg2 == NULL) { | |
4922 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4923 | } | |
4924 | { | |
4925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4926 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4927 | ||
4928 | wxPyEndAllowThreads(__tstate); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
4930 | } | |
02a34c4c | 4931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4932 | return resultobj; |
4933 | fail: | |
4934 | return NULL; | |
4935 | } | |
4936 | ||
4937 | ||
4938 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4939 | PyObject *resultobj; | |
4940 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4941 | bool result; | |
4942 | PyObject * obj0 = 0 ; | |
4943 | char *kwnames[] = { | |
4944 | (char *) "self", NULL | |
4945 | }; | |
4946 | ||
4947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4949 | { | |
4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4951 | result = (bool)(arg1)->IsEmpty(); | |
4952 | ||
4953 | wxPyEndAllowThreads(__tstate); | |
4954 | if (PyErr_Occurred()) SWIG_fail; | |
4955 | } | |
02a34c4c | 4956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4957 | return resultobj; |
4958 | fail: | |
4959 | return NULL; | |
4960 | } | |
4961 | ||
4962 | ||
4963 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4964 | PyObject *resultobj; | |
4965 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4966 | int arg2 ; |
4967 | int arg3 ; | |
4968 | int arg4 ; | |
4969 | int arg5 ; | |
d14a1e28 RD |
4970 | bool result; |
4971 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4972 | PyObject * obj1 = 0 ; |
4973 | PyObject * obj2 = 0 ; | |
4974 | PyObject * obj3 = 0 ; | |
4975 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4976 | char *kwnames[] = { |
4977 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4978 | }; | |
4979 | ||
8edf1c75 | 4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4982 | { |
4983 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4984 | if (PyErr_Occurred()) SWIG_fail; | |
4985 | } | |
4986 | { | |
4987 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4988 | if (PyErr_Occurred()) SWIG_fail; | |
4989 | } | |
4990 | { | |
4991 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4992 | if (PyErr_Occurred()) SWIG_fail; | |
4993 | } | |
4994 | { | |
4995 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4996 | if (PyErr_Occurred()) SWIG_fail; | |
4997 | } | |
d14a1e28 RD |
4998 | { |
4999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5000 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5001 | ||
5002 | wxPyEndAllowThreads(__tstate); | |
5003 | if (PyErr_Occurred()) SWIG_fail; | |
5004 | } | |
02a34c4c | 5005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5006 | return resultobj; |
5007 | fail: | |
5008 | return NULL; | |
5009 | } | |
5010 | ||
5011 | ||
5012 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5013 | PyObject *resultobj; | |
5014 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5015 | wxRect *arg2 = 0 ; | |
5016 | bool result; | |
5017 | wxRect temp2 ; | |
5018 | PyObject * obj0 = 0 ; | |
5019 | PyObject * obj1 = 0 ; | |
5020 | char *kwnames[] = { | |
5021 | (char *) "self",(char *) "rect", NULL | |
5022 | }; | |
5023 | ||
5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5026 | { | |
5027 | arg2 = &temp2; | |
5028 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5029 | } | |
5030 | { | |
5031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5032 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5033 | ||
5034 | wxPyEndAllowThreads(__tstate); | |
5035 | if (PyErr_Occurred()) SWIG_fail; | |
5036 | } | |
02a34c4c | 5037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5038 | return resultobj; |
5039 | fail: | |
5040 | return NULL; | |
5041 | } | |
5042 | ||
5043 | ||
5044 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5045 | PyObject *resultobj; | |
5046 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5047 | wxRegion *arg2 = 0 ; | |
5048 | bool result; | |
5049 | PyObject * obj0 = 0 ; | |
5050 | PyObject * obj1 = 0 ; | |
5051 | char *kwnames[] = { | |
5052 | (char *) "self",(char *) "region", NULL | |
5053 | }; | |
5054 | ||
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5057 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5058 | if (arg2 == NULL) { | |
5059 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5060 | } | |
5061 | { | |
5062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5063 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5064 | ||
5065 | wxPyEndAllowThreads(__tstate); | |
5066 | if (PyErr_Occurred()) SWIG_fail; | |
5067 | } | |
02a34c4c | 5068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5069 | return resultobj; |
5070 | fail: | |
5071 | return NULL; | |
5072 | } | |
5073 | ||
5074 | ||
5075 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5076 | PyObject *resultobj; | |
5077 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5078 | int arg2 ; |
5079 | int arg3 ; | |
5080 | int arg4 ; | |
5081 | int arg5 ; | |
d14a1e28 RD |
5082 | bool result; |
5083 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5084 | PyObject * obj1 = 0 ; |
5085 | PyObject * obj2 = 0 ; | |
5086 | PyObject * obj3 = 0 ; | |
5087 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5088 | char *kwnames[] = { |
5089 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5090 | }; | |
5091 | ||
8edf1c75 | 5092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5094 | { |
5095 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | } | |
5098 | { | |
5099 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5100 | if (PyErr_Occurred()) SWIG_fail; | |
5101 | } | |
5102 | { | |
5103 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5104 | if (PyErr_Occurred()) SWIG_fail; | |
5105 | } | |
5106 | { | |
5107 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5108 | if (PyErr_Occurred()) SWIG_fail; | |
5109 | } | |
d14a1e28 RD |
5110 | { |
5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5112 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5113 | ||
5114 | wxPyEndAllowThreads(__tstate); | |
5115 | if (PyErr_Occurred()) SWIG_fail; | |
5116 | } | |
02a34c4c | 5117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5118 | return resultobj; |
5119 | fail: | |
5120 | return NULL; | |
5121 | } | |
5122 | ||
5123 | ||
5124 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5125 | PyObject *resultobj; | |
5126 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5127 | wxRect *arg2 = 0 ; | |
5128 | bool result; | |
5129 | wxRect temp2 ; | |
5130 | PyObject * obj0 = 0 ; | |
5131 | PyObject * obj1 = 0 ; | |
5132 | char *kwnames[] = { | |
5133 | (char *) "self",(char *) "rect", NULL | |
5134 | }; | |
5135 | ||
5136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5138 | { | |
5139 | arg2 = &temp2; | |
5140 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5141 | } | |
5142 | { | |
5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5144 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5145 | ||
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
02a34c4c | 5149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5150 | return resultobj; |
5151 | fail: | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
5156 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5157 | PyObject *resultobj; | |
5158 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5159 | wxRegion *arg2 = 0 ; | |
5160 | bool result; | |
5161 | PyObject * obj0 = 0 ; | |
5162 | PyObject * obj1 = 0 ; | |
5163 | char *kwnames[] = { | |
5164 | (char *) "self",(char *) "region", NULL | |
5165 | }; | |
5166 | ||
5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5169 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5170 | if (arg2 == NULL) { | |
5171 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5172 | } | |
5173 | { | |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
02a34c4c | 5180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5181 | return resultobj; |
5182 | fail: | |
5183 | return NULL; | |
5184 | } | |
5185 | ||
5186 | ||
5187 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject *resultobj; | |
5189 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5190 | int arg2 ; |
5191 | int arg3 ; | |
5192 | int arg4 ; | |
5193 | int arg5 ; | |
d14a1e28 RD |
5194 | bool result; |
5195 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5196 | PyObject * obj1 = 0 ; |
5197 | PyObject * obj2 = 0 ; | |
5198 | PyObject * obj3 = 0 ; | |
5199 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5200 | char *kwnames[] = { |
5201 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5202 | }; | |
5203 | ||
8edf1c75 | 5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5206 | { |
5207 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5208 | if (PyErr_Occurred()) SWIG_fail; | |
5209 | } | |
5210 | { | |
5211 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | } | |
5214 | { | |
5215 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5216 | if (PyErr_Occurred()) SWIG_fail; | |
5217 | } | |
5218 | { | |
5219 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5220 | if (PyErr_Occurred()) SWIG_fail; | |
5221 | } | |
d14a1e28 RD |
5222 | { |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5225 | ||
5226 | wxPyEndAllowThreads(__tstate); | |
5227 | if (PyErr_Occurred()) SWIG_fail; | |
5228 | } | |
02a34c4c | 5229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5230 | return resultobj; |
5231 | fail: | |
5232 | return NULL; | |
5233 | } | |
5234 | ||
5235 | ||
5236 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5237 | PyObject *resultobj; | |
5238 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5239 | wxRect *arg2 = 0 ; | |
5240 | bool result; | |
5241 | wxRect temp2 ; | |
5242 | PyObject * obj0 = 0 ; | |
5243 | PyObject * obj1 = 0 ; | |
5244 | char *kwnames[] = { | |
5245 | (char *) "self",(char *) "rect", NULL | |
5246 | }; | |
5247 | ||
5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5250 | { | |
5251 | arg2 = &temp2; | |
5252 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5253 | } | |
5254 | { | |
5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5256 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5257 | ||
5258 | wxPyEndAllowThreads(__tstate); | |
5259 | if (PyErr_Occurred()) SWIG_fail; | |
5260 | } | |
02a34c4c | 5261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5262 | return resultobj; |
5263 | fail: | |
5264 | return NULL; | |
5265 | } | |
5266 | ||
5267 | ||
5268 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5269 | PyObject *resultobj; | |
5270 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5271 | wxRegion *arg2 = 0 ; | |
5272 | bool result; | |
5273 | PyObject * obj0 = 0 ; | |
5274 | PyObject * obj1 = 0 ; | |
5275 | char *kwnames[] = { | |
5276 | (char *) "self",(char *) "region", NULL | |
5277 | }; | |
5278 | ||
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5281 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5282 | if (arg2 == NULL) { | |
5283 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5284 | } | |
5285 | { | |
5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5287 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5288 | ||
5289 | wxPyEndAllowThreads(__tstate); | |
5290 | if (PyErr_Occurred()) SWIG_fail; | |
5291 | } | |
02a34c4c | 5292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5293 | return resultobj; |
5294 | fail: | |
5295 | return NULL; | |
5296 | } | |
5297 | ||
5298 | ||
5299 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5300 | PyObject *resultobj; | |
5301 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5302 | SwigValueWrapper< wxBitmap > result; | |
5303 | PyObject * obj0 = 0 ; | |
5304 | char *kwnames[] = { | |
5305 | (char *) "self", NULL | |
5306 | }; | |
5307 | ||
5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5310 | { | |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | result = (arg1)->ConvertToBitmap(); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | { | |
5318 | wxBitmap * resultptr; | |
5319 | resultptr = new wxBitmap((wxBitmap &) result); | |
5320 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5321 | } | |
5322 | return resultobj; | |
5323 | fail: | |
5324 | return NULL; | |
5325 | } | |
5326 | ||
5327 | ||
5328 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5329 | PyObject *resultobj; | |
5330 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5331 | wxBitmap *arg2 = 0 ; | |
5332 | wxColour const &arg3_defvalue = wxNullColour ; | |
5333 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5334 | int arg4 = (int) 0 ; | |
5335 | bool result; | |
5336 | wxColour temp3 ; | |
5337 | PyObject * obj0 = 0 ; | |
5338 | PyObject * obj1 = 0 ; | |
5339 | PyObject * obj2 = 0 ; | |
8edf1c75 | 5340 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5341 | char *kwnames[] = { |
5342 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5343 | }; | |
5344 | ||
8edf1c75 | 5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5347 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5348 | if (arg2 == NULL) { | |
5349 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5350 | } | |
5351 | if (obj2) { | |
5352 | { | |
5353 | arg3 = &temp3; | |
5354 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5355 | } | |
5356 | } | |
8edf1c75 RD |
5357 | if (obj3) { |
5358 | { | |
5359 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5360 | if (PyErr_Occurred()) SWIG_fail; | |
5361 | } | |
5362 | } | |
d14a1e28 RD |
5363 | { |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
02a34c4c | 5370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5371 | return resultobj; |
5372 | fail: | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
5377 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5378 | PyObject *obj; | |
5379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5380 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5381 | Py_INCREF(obj); | |
5382 | return Py_BuildValue((char *)""); | |
5383 | } | |
5384 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxRegion *arg1 = 0 ; | |
5387 | wxRegionIterator *result; | |
5388 | PyObject * obj0 = 0 ; | |
5389 | char *kwnames[] = { | |
5390 | (char *) "region", NULL | |
5391 | }; | |
5392 | ||
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5395 | if (arg1 == NULL) { | |
5396 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5397 | } | |
5398 | { | |
5399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5400 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5401 | ||
5402 | wxPyEndAllowThreads(__tstate); | |
5403 | if (PyErr_Occurred()) SWIG_fail; | |
5404 | } | |
5405 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5406 | return resultobj; | |
5407 | fail: | |
5408 | return NULL; | |
5409 | } | |
5410 | ||
5411 | ||
5412 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5413 | PyObject *resultobj; | |
5414 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5415 | PyObject * obj0 = 0 ; | |
5416 | char *kwnames[] = { | |
5417 | (char *) "self", NULL | |
5418 | }; | |
5419 | ||
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5422 | { | |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | delete arg1; | |
5425 | ||
5426 | wxPyEndAllowThreads(__tstate); | |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
5428 | } | |
5429 | Py_INCREF(Py_None); resultobj = Py_None; | |
5430 | return resultobj; | |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
5436 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5439 | int result; |
d14a1e28 RD |
5440 | PyObject * obj0 = 0 ; |
5441 | char *kwnames[] = { | |
5442 | (char *) "self", NULL | |
5443 | }; | |
5444 | ||
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5447 | { | |
5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5449 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5450 | |
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
8edf1c75 | 5454 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5455 | return resultobj; |
5456 | fail: | |
5457 | return NULL; | |
5458 | } | |
5459 | ||
5460 | ||
5461 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject *resultobj; | |
5463 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5464 | int result; |
d14a1e28 RD |
5465 | PyObject * obj0 = 0 ; |
5466 | char *kwnames[] = { | |
5467 | (char *) "self", NULL | |
5468 | }; | |
5469 | ||
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5472 | { | |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5474 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5475 | |
5476 | wxPyEndAllowThreads(__tstate); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
8edf1c75 | 5479 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5480 | return resultobj; |
5481 | fail: | |
5482 | return NULL; | |
5483 | } | |
5484 | ||
5485 | ||
5486 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5487 | PyObject *resultobj; | |
5488 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5489 | int result; |
d14a1e28 RD |
5490 | PyObject * obj0 = 0 ; |
5491 | char *kwnames[] = { | |
5492 | (char *) "self", NULL | |
5493 | }; | |
5494 | ||
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5497 | { | |
5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5499 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5500 | |
5501 | wxPyEndAllowThreads(__tstate); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
5503 | } | |
8edf1c75 | 5504 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5505 | return resultobj; |
5506 | fail: | |
5507 | return NULL; | |
5508 | } | |
5509 | ||
5510 | ||
5511 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5512 | PyObject *resultobj; | |
5513 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5514 | int result; |
d14a1e28 RD |
5515 | PyObject * obj0 = 0 ; |
5516 | char *kwnames[] = { | |
5517 | (char *) "self", NULL | |
5518 | }; | |
5519 | ||
5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5522 | { | |
5523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5524 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5525 | |
5526 | wxPyEndAllowThreads(__tstate); | |
5527 | if (PyErr_Occurred()) SWIG_fail; | |
5528 | } | |
8edf1c75 | 5529 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5530 | return resultobj; |
5531 | fail: | |
5532 | return NULL; | |
5533 | } | |
5534 | ||
5535 | ||
5536 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5537 | PyObject *resultobj; | |
5538 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5539 | int result; |
d14a1e28 RD |
5540 | PyObject * obj0 = 0 ; |
5541 | char *kwnames[] = { | |
5542 | (char *) "self", NULL | |
5543 | }; | |
5544 | ||
5545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5549 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5550 | |
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
8edf1c75 | 5554 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5555 | return resultobj; |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject *resultobj; | |
5563 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5564 | int result; |
d14a1e28 RD |
5565 | PyObject * obj0 = 0 ; |
5566 | char *kwnames[] = { | |
5567 | (char *) "self", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5572 | { | |
5573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5574 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5575 | |
5576 | wxPyEndAllowThreads(__tstate); | |
5577 | if (PyErr_Occurred()) SWIG_fail; | |
5578 | } | |
8edf1c75 | 5579 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5580 | return resultobj; |
5581 | fail: | |
5582 | return NULL; | |
5583 | } | |
5584 | ||
5585 | ||
5586 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject *resultobj; | |
5588 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5589 | wxRect result; | |
5590 | PyObject * obj0 = 0 ; | |
5591 | char *kwnames[] = { | |
5592 | (char *) "self", NULL | |
5593 | }; | |
5594 | ||
5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5597 | { | |
5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5599 | result = (arg1)->GetRect(); | |
5600 | ||
5601 | wxPyEndAllowThreads(__tstate); | |
5602 | if (PyErr_Occurred()) SWIG_fail; | |
5603 | } | |
5604 | { | |
5605 | wxRect * resultptr; | |
5606 | resultptr = new wxRect((wxRect &) result); | |
5607 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5608 | } | |
5609 | return resultobj; | |
5610 | fail: | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
5615 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject *resultobj; | |
5617 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5618 | bool result; | |
5619 | PyObject * obj0 = 0 ; | |
5620 | char *kwnames[] = { | |
5621 | (char *) "self", NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5626 | { | |
5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5628 | result = (bool)(arg1)->HaveRects(); | |
5629 | ||
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
02a34c4c | 5633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5634 | return resultobj; |
5635 | fail: | |
5636 | return NULL; | |
5637 | } | |
5638 | ||
5639 | ||
5640 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5641 | PyObject *resultobj; | |
5642 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5643 | PyObject * obj0 = 0 ; | |
5644 | char *kwnames[] = { | |
5645 | (char *) "self", NULL | |
5646 | }; | |
5647 | ||
5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5650 | { | |
5651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5652 | (arg1)->Reset(); | |
5653 | ||
5654 | wxPyEndAllowThreads(__tstate); | |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
5656 | } | |
5657 | Py_INCREF(Py_None); resultobj = Py_None; | |
5658 | return resultobj; | |
5659 | fail: | |
5660 | return NULL; | |
5661 | } | |
5662 | ||
5663 | ||
5664 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5665 | PyObject *resultobj; | |
5666 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5667 | PyObject * obj0 = 0 ; | |
5668 | char *kwnames[] = { | |
5669 | (char *) "self", NULL | |
5670 | }; | |
5671 | ||
5672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5674 | { | |
5675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5676 | wxRegionIterator_Next(arg1); | |
5677 | ||
5678 | wxPyEndAllowThreads(__tstate); | |
5679 | if (PyErr_Occurred()) SWIG_fail; | |
5680 | } | |
5681 | Py_INCREF(Py_None); resultobj = Py_None; | |
5682 | return resultobj; | |
5683 | fail: | |
5684 | return NULL; | |
5685 | } | |
5686 | ||
5687 | ||
5688 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5689 | PyObject *resultobj; | |
5690 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5691 | bool result; | |
5692 | PyObject * obj0 = 0 ; | |
5693 | char *kwnames[] = { | |
5694 | (char *) "self", NULL | |
5695 | }; | |
5696 | ||
5697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5699 | { | |
5700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5701 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5702 | ||
5703 | wxPyEndAllowThreads(__tstate); | |
5704 | if (PyErr_Occurred()) SWIG_fail; | |
5705 | } | |
02a34c4c | 5706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5707 | return resultobj; |
5708 | fail: | |
5709 | return NULL; | |
5710 | } | |
5711 | ||
5712 | ||
5713 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5714 | PyObject *obj; | |
5715 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5716 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5717 | Py_INCREF(obj); | |
5718 | return Py_BuildValue((char *)""); | |
5719 | } | |
5720 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5721 | PyObject *resultobj; | |
5722 | wxNativeFontInfo *result; | |
5723 | char *kwnames[] = { | |
5724 | NULL | |
5725 | }; | |
5726 | ||
5727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5728 | { | |
5729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5730 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5731 | ||
5732 | wxPyEndAllowThreads(__tstate); | |
5733 | if (PyErr_Occurred()) SWIG_fail; | |
5734 | } | |
5735 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5736 | return resultobj; | |
5737 | fail: | |
5738 | return NULL; | |
5739 | } | |
5740 | ||
5741 | ||
5742 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject *resultobj; | |
5744 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5745 | PyObject * obj0 = 0 ; | |
5746 | char *kwnames[] = { | |
5747 | (char *) "self", NULL | |
5748 | }; | |
5749 | ||
5750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5752 | { | |
5753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5754 | delete arg1; | |
5755 | ||
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
5759 | Py_INCREF(Py_None); resultobj = Py_None; | |
5760 | return resultobj; | |
5761 | fail: | |
5762 | return NULL; | |
5763 | } | |
5764 | ||
5765 | ||
5766 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5767 | PyObject *resultobj; | |
5768 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5769 | PyObject * obj0 = 0 ; | |
5770 | char *kwnames[] = { | |
5771 | (char *) "self", NULL | |
5772 | }; | |
5773 | ||
5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5776 | { | |
5777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5778 | (arg1)->Init(); | |
5779 | ||
5780 | wxPyEndAllowThreads(__tstate); | |
5781 | if (PyErr_Occurred()) SWIG_fail; | |
5782 | } | |
5783 | Py_INCREF(Py_None); resultobj = Py_None; | |
5784 | return resultobj; | |
5785 | fail: | |
5786 | return NULL; | |
5787 | } | |
5788 | ||
5789 | ||
5790 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5791 | PyObject *resultobj; | |
5792 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5793 | wxFont *arg2 = 0 ; | |
5794 | PyObject * obj0 = 0 ; | |
5795 | PyObject * obj1 = 0 ; | |
5796 | char *kwnames[] = { | |
5797 | (char *) "self",(char *) "font", NULL | |
5798 | }; | |
5799 | ||
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5802 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5803 | if (arg2 == NULL) { | |
5804 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5805 | } | |
5806 | { | |
5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5808 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5809 | ||
5810 | wxPyEndAllowThreads(__tstate); | |
5811 | if (PyErr_Occurred()) SWIG_fail; | |
5812 | } | |
5813 | Py_INCREF(Py_None); resultobj = Py_None; | |
5814 | return resultobj; | |
5815 | fail: | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
5820 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5821 | PyObject *resultobj; | |
5822 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5823 | int result; | |
5824 | PyObject * obj0 = 0 ; | |
5825 | char *kwnames[] = { | |
5826 | (char *) "self", NULL | |
5827 | }; | |
5828 | ||
5829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5831 | { | |
5832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5833 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5834 | ||
5835 | wxPyEndAllowThreads(__tstate); | |
5836 | if (PyErr_Occurred()) SWIG_fail; | |
5837 | } | |
8edf1c75 | 5838 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5839 | return resultobj; |
5840 | fail: | |
5841 | return NULL; | |
5842 | } | |
5843 | ||
5844 | ||
5845 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5846 | PyObject *resultobj; | |
5847 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5848 | int result; | |
5849 | PyObject * obj0 = 0 ; | |
5850 | char *kwnames[] = { | |
5851 | (char *) "self", NULL | |
5852 | }; | |
5853 | ||
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5858 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5859 | ||
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
8edf1c75 | 5863 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5864 | return resultobj; |
5865 | fail: | |
5866 | return NULL; | |
5867 | } | |
5868 | ||
5869 | ||
5870 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5871 | PyObject *resultobj; | |
5872 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5873 | int result; | |
5874 | PyObject * obj0 = 0 ; | |
5875 | char *kwnames[] = { | |
5876 | (char *) "self", NULL | |
5877 | }; | |
5878 | ||
5879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5881 | { | |
5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5883 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5884 | ||
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) SWIG_fail; | |
5887 | } | |
8edf1c75 | 5888 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5889 | return resultobj; |
5890 | fail: | |
5891 | return NULL; | |
5892 | } | |
5893 | ||
5894 | ||
5895 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject *resultobj; | |
5897 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5898 | bool result; | |
5899 | PyObject * obj0 = 0 ; | |
5900 | char *kwnames[] = { | |
5901 | (char *) "self", NULL | |
5902 | }; | |
5903 | ||
5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5906 | { | |
5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5908 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5909 | ||
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
02a34c4c | 5913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5914 | return resultobj; |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
5920 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5921 | PyObject *resultobj; | |
5922 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5923 | wxString result; | |
5924 | PyObject * obj0 = 0 ; | |
5925 | char *kwnames[] = { | |
5926 | (char *) "self", NULL | |
5927 | }; | |
5928 | ||
5929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5931 | { | |
5932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5933 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5934 | ||
5935 | wxPyEndAllowThreads(__tstate); | |
5936 | if (PyErr_Occurred()) SWIG_fail; | |
5937 | } | |
5938 | { | |
5939 | #if wxUSE_UNICODE | |
5940 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5941 | #else | |
5942 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5943 | #endif | |
5944 | } | |
5945 | return resultobj; | |
5946 | fail: | |
5947 | return NULL; | |
5948 | } | |
5949 | ||
5950 | ||
5951 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5952 | PyObject *resultobj; | |
5953 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5954 | int result; | |
5955 | PyObject * obj0 = 0 ; | |
5956 | char *kwnames[] = { | |
5957 | (char *) "self", NULL | |
5958 | }; | |
5959 | ||
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5962 | { | |
5963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5964 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5965 | ||
5966 | wxPyEndAllowThreads(__tstate); | |
5967 | if (PyErr_Occurred()) SWIG_fail; | |
5968 | } | |
8edf1c75 | 5969 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5970 | return resultobj; |
5971 | fail: | |
5972 | return NULL; | |
5973 | } | |
5974 | ||
5975 | ||
5976 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5977 | PyObject *resultobj; | |
5978 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5979 | int result; | |
5980 | PyObject * obj0 = 0 ; | |
5981 | char *kwnames[] = { | |
5982 | (char *) "self", NULL | |
5983 | }; | |
5984 | ||
5985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5987 | { | |
5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5989 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5990 | ||
5991 | wxPyEndAllowThreads(__tstate); | |
5992 | if (PyErr_Occurred()) SWIG_fail; | |
5993 | } | |
8edf1c75 | 5994 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5995 | return resultobj; |
5996 | fail: | |
5997 | return NULL; | |
5998 | } | |
5999 | ||
6000 | ||
6001 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6002 | PyObject *resultobj; | |
6003 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6004 | int arg2 ; | |
6005 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6007 | char *kwnames[] = { |
6008 | (char *) "self",(char *) "pointsize", NULL | |
6009 | }; | |
6010 | ||
8edf1c75 | 6011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6013 | { |
6014 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6015 | if (PyErr_Occurred()) SWIG_fail; | |
6016 | } | |
d14a1e28 RD |
6017 | { |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | (arg1)->SetPointSize(arg2); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
6024 | Py_INCREF(Py_None); resultobj = Py_None; | |
6025 | return resultobj; | |
6026 | fail: | |
6027 | return NULL; | |
6028 | } | |
6029 | ||
6030 | ||
6031 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6032 | PyObject *resultobj; | |
6033 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6034 | int arg2 ; | |
6035 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6036 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6037 | char *kwnames[] = { |
6038 | (char *) "self",(char *) "style", NULL | |
6039 | }; | |
6040 | ||
8edf1c75 | 6041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6043 | { |
6044 | arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1); | |
6045 | if (PyErr_Occurred()) SWIG_fail; | |
6046 | } | |
d14a1e28 RD |
6047 | { |
6048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6049 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6050 | ||
6051 | wxPyEndAllowThreads(__tstate); | |
6052 | if (PyErr_Occurred()) SWIG_fail; | |
6053 | } | |
6054 | Py_INCREF(Py_None); resultobj = Py_None; | |
6055 | return resultobj; | |
6056 | fail: | |
6057 | return NULL; | |
6058 | } | |
6059 | ||
6060 | ||
6061 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6062 | PyObject *resultobj; | |
6063 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6064 | int arg2 ; | |
6065 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6066 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6067 | char *kwnames[] = { |
6068 | (char *) "self",(char *) "weight", NULL | |
6069 | }; | |
6070 | ||
8edf1c75 | 6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6073 | { |
6074 | arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1); | |
6075 | if (PyErr_Occurred()) SWIG_fail; | |
6076 | } | |
d14a1e28 RD |
6077 | { |
6078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6079 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6080 | ||
6081 | wxPyEndAllowThreads(__tstate); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | } | |
6084 | Py_INCREF(Py_None); resultobj = Py_None; | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6094 | bool arg2 ; | |
6095 | PyObject * obj0 = 0 ; | |
6096 | PyObject * obj1 = 0 ; | |
6097 | char *kwnames[] = { | |
6098 | (char *) "self",(char *) "underlined", NULL | |
6099 | }; | |
6100 | ||
6101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 6103 | { |
8edf1c75 | 6104 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
6105 | if (PyErr_Occurred()) SWIG_fail; |
6106 | } | |
d14a1e28 RD |
6107 | { |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | (arg1)->SetUnderlined(arg2); | |
6110 | ||
6111 | wxPyEndAllowThreads(__tstate); | |
6112 | if (PyErr_Occurred()) SWIG_fail; | |
6113 | } | |
6114 | Py_INCREF(Py_None); resultobj = Py_None; | |
6115 | return resultobj; | |
6116 | fail: | |
6117 | return NULL; | |
6118 | } | |
6119 | ||
6120 | ||
6121 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6122 | PyObject *resultobj; | |
6123 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6124 | wxString arg2 ; | |
d14a1e28 RD |
6125 | PyObject * obj0 = 0 ; |
6126 | PyObject * obj1 = 0 ; | |
6127 | char *kwnames[] = { | |
6128 | (char *) "self",(char *) "facename", NULL | |
6129 | }; | |
6130 | ||
6131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
6133 | { |
6134 | wxString* sptr = wxString_in_helper(obj1); | |
6135 | if (sptr == NULL) SWIG_fail; | |
6136 | arg2 = *sptr; | |
6137 | delete sptr; | |
6138 | } | |
d14a1e28 RD |
6139 | { |
6140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6141 | (arg1)->SetFaceName(arg2); | |
6142 | ||
6143 | wxPyEndAllowThreads(__tstate); | |
6144 | if (PyErr_Occurred()) SWIG_fail; | |
6145 | } | |
6146 | Py_INCREF(Py_None); resultobj = Py_None; | |
6147 | return resultobj; | |
6148 | fail: | |
6149 | return NULL; | |
6150 | } | |
6151 | ||
6152 | ||
6153 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6154 | PyObject *resultobj; | |
6155 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6156 | int arg2 ; | |
6157 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6158 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6159 | char *kwnames[] = { |
6160 | (char *) "self",(char *) "family", NULL | |
6161 | }; | |
6162 | ||
8edf1c75 | 6163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6165 | { |
6166 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
6167 | if (PyErr_Occurred()) SWIG_fail; | |
6168 | } | |
d14a1e28 RD |
6169 | { |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6172 | ||
6173 | wxPyEndAllowThreads(__tstate); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | } | |
6176 | Py_INCREF(Py_None); resultobj = Py_None; | |
6177 | return resultobj; | |
6178 | fail: | |
6179 | return NULL; | |
6180 | } | |
6181 | ||
6182 | ||
6183 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6184 | PyObject *resultobj; | |
6185 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6186 | int arg2 ; | |
6187 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6188 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6189 | char *kwnames[] = { |
6190 | (char *) "self",(char *) "encoding", NULL | |
6191 | }; | |
6192 | ||
8edf1c75 | 6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6195 | { |
6196 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6197 | if (PyErr_Occurred()) SWIG_fail; | |
6198 | } | |
d14a1e28 RD |
6199 | { |
6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6201 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6202 | ||
6203 | wxPyEndAllowThreads(__tstate); | |
6204 | if (PyErr_Occurred()) SWIG_fail; | |
6205 | } | |
6206 | Py_INCREF(Py_None); resultobj = Py_None; | |
6207 | return resultobj; | |
6208 | fail: | |
6209 | return NULL; | |
6210 | } | |
6211 | ||
6212 | ||
6213 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject *resultobj; | |
6215 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6216 | wxString *arg2 = 0 ; | |
6217 | bool result; | |
423f194a | 6218 | bool temp2 = False ; |
d14a1e28 RD |
6219 | PyObject * obj0 = 0 ; |
6220 | PyObject * obj1 = 0 ; | |
6221 | char *kwnames[] = { | |
6222 | (char *) "self",(char *) "s", NULL | |
6223 | }; | |
6224 | ||
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6227 | { | |
6228 | arg2 = wxString_in_helper(obj1); | |
6229 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6230 | temp2 = True; |
d14a1e28 RD |
6231 | } |
6232 | { | |
6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6234 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6235 | ||
6236 | wxPyEndAllowThreads(__tstate); | |
6237 | if (PyErr_Occurred()) SWIG_fail; | |
6238 | } | |
02a34c4c | 6239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6240 | { |
6241 | if (temp2) | |
6242 | delete arg2; | |
6243 | } | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | { | |
6247 | if (temp2) | |
6248 | delete arg2; | |
6249 | } | |
6250 | return NULL; | |
6251 | } | |
6252 | ||
6253 | ||
6254 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6255 | PyObject *resultobj; | |
6256 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6257 | wxString result; | |
6258 | PyObject * obj0 = 0 ; | |
6259 | char *kwnames[] = { | |
6260 | (char *) "self", NULL | |
6261 | }; | |
6262 | ||
6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6265 | { | |
6266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6267 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6268 | ||
6269 | wxPyEndAllowThreads(__tstate); | |
6270 | if (PyErr_Occurred()) SWIG_fail; | |
6271 | } | |
6272 | { | |
6273 | #if wxUSE_UNICODE | |
6274 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6275 | #else | |
6276 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6277 | #endif | |
6278 | } | |
6279 | return resultobj; | |
6280 | fail: | |
6281 | return NULL; | |
6282 | } | |
6283 | ||
6284 | ||
6285 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject *resultobj; | |
6287 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6288 | wxString result; | |
6289 | PyObject * obj0 = 0 ; | |
6290 | char *kwnames[] = { | |
6291 | (char *) "self", NULL | |
6292 | }; | |
6293 | ||
6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6296 | { | |
6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6298 | result = wxNativeFontInfo___str__(arg1); | |
6299 | ||
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | { | |
6304 | #if wxUSE_UNICODE | |
6305 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6306 | #else | |
6307 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6308 | #endif | |
6309 | } | |
6310 | return resultobj; | |
6311 | fail: | |
6312 | return NULL; | |
6313 | } | |
6314 | ||
6315 | ||
6316 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6317 | PyObject *resultobj; | |
6318 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6319 | wxString *arg2 = 0 ; | |
6320 | bool result; | |
423f194a | 6321 | bool temp2 = False ; |
d14a1e28 RD |
6322 | PyObject * obj0 = 0 ; |
6323 | PyObject * obj1 = 0 ; | |
6324 | char *kwnames[] = { | |
6325 | (char *) "self",(char *) "s", NULL | |
6326 | }; | |
6327 | ||
6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6330 | { | |
6331 | arg2 = wxString_in_helper(obj1); | |
6332 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6333 | temp2 = True; |
d14a1e28 RD |
6334 | } |
6335 | { | |
6336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6337 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6338 | ||
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
02a34c4c | 6342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6343 | { |
6344 | if (temp2) | |
6345 | delete arg2; | |
6346 | } | |
6347 | return resultobj; | |
6348 | fail: | |
6349 | { | |
6350 | if (temp2) | |
6351 | delete arg2; | |
6352 | } | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
6357 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6360 | wxString result; | |
6361 | PyObject * obj0 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "self", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6368 | { | |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | { | |
6376 | #if wxUSE_UNICODE | |
6377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6378 | #else | |
6379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6380 | #endif | |
6381 | } | |
6382 | return resultobj; | |
6383 | fail: | |
6384 | return NULL; | |
6385 | } | |
6386 | ||
6387 | ||
6388 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6389 | PyObject *obj; | |
6390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6391 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6392 | Py_INCREF(obj); | |
6393 | return Py_BuildValue((char *)""); | |
6394 | } | |
6395 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6396 | PyObject *resultobj; | |
6397 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
cbd72d4f | 6398 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 6399 | bool temp2 = False ; |
d14a1e28 RD |
6400 | PyObject * obj0 = 0 ; |
6401 | PyObject * obj1 = 0 ; | |
6402 | char *kwnames[] = { | |
6403 | (char *) "self",(char *) "facename", NULL | |
6404 | }; | |
6405 | ||
6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
6408 | { |
6409 | arg2 = wxString_in_helper(obj1); | |
6410 | if (arg2 == NULL) SWIG_fail; | |
6411 | temp2 = True; | |
6412 | } | |
cbd72d4f | 6413 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6414 | |
6415 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
6416 | { |
6417 | if (temp2) | |
6418 | delete arg2; | |
6419 | } | |
d14a1e28 RD |
6420 | return resultobj; |
6421 | fail: | |
dae0faa6 RD |
6422 | { |
6423 | if (temp2) | |
6424 | delete arg2; | |
6425 | } | |
d14a1e28 RD |
6426 | return NULL; |
6427 | } | |
6428 | ||
6429 | ||
6430 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6431 | PyObject *resultobj; | |
6432 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
cbd72d4f | 6433 | wxString *result; |
d14a1e28 RD |
6434 | PyObject * obj0 = 0 ; |
6435 | char *kwnames[] = { | |
6436 | (char *) "self", NULL | |
6437 | }; | |
6438 | ||
6439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 6441 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6442 | |
6443 | { | |
6444 | #if wxUSE_UNICODE | |
cbd72d4f | 6445 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6446 | #else |
cbd72d4f | 6447 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6448 | #endif |
6449 | } | |
6450 | return resultobj; | |
6451 | fail: | |
6452 | return NULL; | |
6453 | } | |
6454 | ||
6455 | ||
6456 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6457 | PyObject *resultobj; | |
6458 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6459 | int arg2 ; | |
6460 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6461 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6462 | char *kwnames[] = { |
6463 | (char *) "self",(char *) "encoding", NULL | |
6464 | }; | |
6465 | ||
8edf1c75 | 6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6468 | { |
6469 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6470 | if (PyErr_Occurred()) SWIG_fail; | |
6471 | } | |
d14a1e28 RD |
6472 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6473 | ||
6474 | Py_INCREF(Py_None); resultobj = Py_None; | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | return NULL; | |
6478 | } | |
6479 | ||
6480 | ||
6481 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject *resultobj; | |
6483 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6484 | int result; | |
6485 | PyObject * obj0 = 0 ; | |
6486 | char *kwnames[] = { | |
6487 | (char *) "self", NULL | |
6488 | }; | |
6489 | ||
6490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6492 | result = (int) ((arg1)->encoding); | |
6493 | ||
8edf1c75 | 6494 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6495 | return resultobj; |
6496 | fail: | |
6497 | return NULL; | |
6498 | } | |
6499 | ||
6500 | ||
6501 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6502 | PyObject *resultobj; | |
6503 | wxNativeEncodingInfo *result; | |
6504 | char *kwnames[] = { | |
6505 | NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject *resultobj; | |
6525 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6526 | PyObject * obj0 = 0 ; | |
6527 | char *kwnames[] = { | |
6528 | (char *) "self", NULL | |
6529 | }; | |
6530 | ||
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6533 | { | |
6534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6535 | delete arg1; | |
6536 | ||
6537 | wxPyEndAllowThreads(__tstate); | |
6538 | if (PyErr_Occurred()) SWIG_fail; | |
6539 | } | |
6540 | Py_INCREF(Py_None); resultobj = Py_None; | |
6541 | return resultobj; | |
6542 | fail: | |
6543 | return NULL; | |
6544 | } | |
6545 | ||
6546 | ||
6547 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6548 | PyObject *resultobj; | |
6549 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6550 | wxString *arg2 = 0 ; | |
6551 | bool result; | |
423f194a | 6552 | bool temp2 = False ; |
d14a1e28 RD |
6553 | PyObject * obj0 = 0 ; |
6554 | PyObject * obj1 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "self",(char *) "s", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6561 | { | |
6562 | arg2 = wxString_in_helper(obj1); | |
6563 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6564 | temp2 = True; |
d14a1e28 RD |
6565 | } |
6566 | { | |
6567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6568 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6569 | ||
6570 | wxPyEndAllowThreads(__tstate); | |
6571 | if (PyErr_Occurred()) SWIG_fail; | |
6572 | } | |
02a34c4c | 6573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6574 | { |
6575 | if (temp2) | |
6576 | delete arg2; | |
6577 | } | |
6578 | return resultobj; | |
6579 | fail: | |
6580 | { | |
6581 | if (temp2) | |
6582 | delete arg2; | |
6583 | } | |
6584 | return NULL; | |
6585 | } | |
6586 | ||
6587 | ||
6588 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6589 | PyObject *resultobj; | |
6590 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6591 | wxString result; | |
6592 | PyObject * obj0 = 0 ; | |
6593 | char *kwnames[] = { | |
6594 | (char *) "self", NULL | |
6595 | }; | |
6596 | ||
6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6599 | { | |
6600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6601 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6602 | ||
6603 | wxPyEndAllowThreads(__tstate); | |
6604 | if (PyErr_Occurred()) SWIG_fail; | |
6605 | } | |
6606 | { | |
6607 | #if wxUSE_UNICODE | |
6608 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6609 | #else | |
6610 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6611 | #endif | |
6612 | } | |
6613 | return resultobj; | |
6614 | fail: | |
6615 | return NULL; | |
6616 | } | |
6617 | ||
6618 | ||
6619 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6620 | PyObject *obj; | |
6621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6622 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6623 | Py_INCREF(obj); | |
6624 | return Py_BuildValue((char *)""); | |
6625 | } | |
6626 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6627 | PyObject *resultobj; | |
6628 | int arg1 ; | |
6629 | wxNativeEncodingInfo *result; | |
8edf1c75 | 6630 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6631 | char *kwnames[] = { |
6632 | (char *) "encoding", NULL | |
6633 | }; | |
6634 | ||
8edf1c75 RD |
6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
6636 | { | |
6637 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | } | |
d14a1e28 RD |
6640 | { |
6641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6642 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6643 | ||
6644 | wxPyEndAllowThreads(__tstate); | |
6645 | if (PyErr_Occurred()) SWIG_fail; | |
6646 | } | |
6647 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6648 | return resultobj; | |
6649 | fail: | |
6650 | return NULL; | |
6651 | } | |
6652 | ||
6653 | ||
6654 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6655 | PyObject *resultobj; | |
6656 | wxNativeEncodingInfo *arg1 = 0 ; | |
6657 | bool result; | |
6658 | PyObject * obj0 = 0 ; | |
6659 | char *kwnames[] = { | |
6660 | (char *) "info", NULL | |
6661 | }; | |
6662 | ||
6663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6665 | if (arg1 == NULL) { | |
6666 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6667 | } | |
6668 | { | |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6671 | ||
6672 | wxPyEndAllowThreads(__tstate); | |
6673 | if (PyErr_Occurred()) SWIG_fail; | |
6674 | } | |
02a34c4c | 6675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6676 | return resultobj; |
6677 | fail: | |
6678 | return NULL; | |
6679 | } | |
6680 | ||
6681 | ||
6682 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6683 | PyObject *resultobj; | |
6684 | wxFontMapper *result; | |
6685 | char *kwnames[] = { | |
6686 | NULL | |
6687 | }; | |
6688 | ||
6689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6690 | { | |
6691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6692 | result = (wxFontMapper *)new wxFontMapper(); | |
6693 | ||
6694 | wxPyEndAllowThreads(__tstate); | |
6695 | if (PyErr_Occurred()) SWIG_fail; | |
6696 | } | |
6697 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6698 | return resultobj; | |
6699 | fail: | |
6700 | return NULL; | |
6701 | } | |
6702 | ||
6703 | ||
6704 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6705 | PyObject *resultobj; | |
6706 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6707 | PyObject * obj0 = 0 ; | |
6708 | char *kwnames[] = { | |
6709 | (char *) "self", NULL | |
6710 | }; | |
6711 | ||
6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6714 | { | |
6715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6716 | delete arg1; | |
6717 | ||
6718 | wxPyEndAllowThreads(__tstate); | |
6719 | if (PyErr_Occurred()) SWIG_fail; | |
6720 | } | |
6721 | Py_INCREF(Py_None); resultobj = Py_None; | |
6722 | return resultobj; | |
6723 | fail: | |
6724 | return NULL; | |
6725 | } | |
6726 | ||
6727 | ||
6728 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6729 | PyObject *resultobj; | |
6730 | wxFontMapper *result; | |
6731 | char *kwnames[] = { | |
6732 | NULL | |
6733 | }; | |
6734 | ||
6735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6736 | { | |
6737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6738 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6739 | ||
6740 | wxPyEndAllowThreads(__tstate); | |
6741 | if (PyErr_Occurred()) SWIG_fail; | |
6742 | } | |
6743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6744 | return resultobj; | |
6745 | fail: | |
6746 | return NULL; | |
6747 | } | |
6748 | ||
6749 | ||
6750 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6751 | PyObject *resultobj; | |
6752 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6753 | wxFontMapper *result; | |
6754 | PyObject * obj0 = 0 ; | |
6755 | char *kwnames[] = { | |
6756 | (char *) "mapper", NULL | |
6757 | }; | |
6758 | ||
6759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6761 | { | |
6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6763 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6764 | ||
6765 | wxPyEndAllowThreads(__tstate); | |
6766 | if (PyErr_Occurred()) SWIG_fail; | |
6767 | } | |
6768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6769 | return resultobj; | |
6770 | fail: | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
6775 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject *resultobj; | |
6777 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6778 | wxString *arg2 = 0 ; | |
423f194a | 6779 | bool arg3 = (bool) True ; |
d14a1e28 | 6780 | int result; |
423f194a | 6781 | bool temp2 = False ; |
d14a1e28 RD |
6782 | PyObject * obj0 = 0 ; |
6783 | PyObject * obj1 = 0 ; | |
6784 | PyObject * obj2 = 0 ; | |
6785 | char *kwnames[] = { | |
6786 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6791 | { | |
6792 | arg2 = wxString_in_helper(obj1); | |
6793 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6794 | temp2 = True; |
d14a1e28 RD |
6795 | } |
6796 | if (obj2) { | |
2dbef272 | 6797 | { |
8edf1c75 | 6798 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
6799 | if (PyErr_Occurred()) SWIG_fail; |
6800 | } | |
d14a1e28 RD |
6801 | } |
6802 | { | |
6803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6804 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6805 | ||
6806 | wxPyEndAllowThreads(__tstate); | |
6807 | if (PyErr_Occurred()) SWIG_fail; | |
6808 | } | |
8edf1c75 | 6809 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6810 | { |
6811 | if (temp2) | |
6812 | delete arg2; | |
6813 | } | |
6814 | return resultobj; | |
6815 | fail: | |
6816 | { | |
6817 | if (temp2) | |
6818 | delete arg2; | |
6819 | } | |
6820 | return NULL; | |
6821 | } | |
6822 | ||
6823 | ||
6824 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6825 | PyObject *resultobj; | |
6826 | size_t result; | |
6827 | char *kwnames[] = { | |
6828 | NULL | |
6829 | }; | |
6830 | ||
6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6832 | { | |
6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6834 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6835 | ||
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
8edf1c75 | 6839 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6840 | return resultobj; |
6841 | fail: | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
6846 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject *resultobj; | |
6848 | size_t arg1 ; | |
6849 | int result; | |
6850 | PyObject * obj0 = 0 ; | |
6851 | char *kwnames[] = { | |
6852 | (char *) "n", NULL | |
6853 | }; | |
6854 | ||
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
2dbef272 | 6856 | { |
8edf1c75 | 6857 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
6858 | if (PyErr_Occurred()) SWIG_fail; |
6859 | } | |
d14a1e28 RD |
6860 | { |
6861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6862 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6863 | ||
6864 | wxPyEndAllowThreads(__tstate); | |
6865 | if (PyErr_Occurred()) SWIG_fail; | |
6866 | } | |
8edf1c75 | 6867 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6868 | return resultobj; |
6869 | fail: | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
6874 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6875 | PyObject *resultobj; | |
6876 | int arg1 ; | |
6877 | wxString result; | |
8edf1c75 | 6878 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6879 | char *kwnames[] = { |
6880 | (char *) "encoding", NULL | |
6881 | }; | |
6882 | ||
8edf1c75 RD |
6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
6884 | { | |
6885 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
d14a1e28 RD |
6888 | { |
6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6890 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6891 | ||
6892 | wxPyEndAllowThreads(__tstate); | |
6893 | if (PyErr_Occurred()) SWIG_fail; | |
6894 | } | |
6895 | { | |
6896 | #if wxUSE_UNICODE | |
6897 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6898 | #else | |
6899 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6900 | #endif | |
6901 | } | |
6902 | return resultobj; | |
6903 | fail: | |
6904 | return NULL; | |
6905 | } | |
6906 | ||
6907 | ||
6908 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject *resultobj; | |
6910 | int arg1 ; | |
6911 | wxString result; | |
8edf1c75 | 6912 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6913 | char *kwnames[] = { |
6914 | (char *) "encoding", NULL | |
6915 | }; | |
6916 | ||
8edf1c75 RD |
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
6918 | { | |
6919 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6920 | if (PyErr_Occurred()) SWIG_fail; | |
6921 | } | |
d14a1e28 RD |
6922 | { |
6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6924 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6925 | ||
6926 | wxPyEndAllowThreads(__tstate); | |
6927 | if (PyErr_Occurred()) SWIG_fail; | |
6928 | } | |
6929 | { | |
6930 | #if wxUSE_UNICODE | |
6931 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6932 | #else | |
6933 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6934 | #endif | |
6935 | } | |
6936 | return resultobj; | |
6937 | fail: | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
6942 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6943 | PyObject *resultobj; | |
6944 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6945 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6946 | PyObject * obj0 = 0 ; | |
6947 | PyObject * obj1 = 0 ; | |
6948 | char *kwnames[] = { | |
6949 | (char *) "self",(char *) "config", NULL | |
6950 | }; | |
6951 | ||
6952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6954 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6955 | { | |
6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6957 | (arg1)->SetConfig(arg2); | |
6958 | ||
6959 | wxPyEndAllowThreads(__tstate); | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | } | |
6962 | Py_INCREF(Py_None); resultobj = Py_None; | |
6963 | return resultobj; | |
6964 | fail: | |
6965 | return NULL; | |
6966 | } | |
6967 | ||
6968 | ||
6969 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6970 | PyObject *resultobj; | |
6971 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6972 | wxString *arg2 = 0 ; | |
423f194a | 6973 | bool temp2 = False ; |
d14a1e28 RD |
6974 | PyObject * obj0 = 0 ; |
6975 | PyObject * obj1 = 0 ; | |
6976 | char *kwnames[] = { | |
6977 | (char *) "self",(char *) "prefix", NULL | |
6978 | }; | |
6979 | ||
6980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6982 | { | |
6983 | arg2 = wxString_in_helper(obj1); | |
6984 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6985 | temp2 = True; |
d14a1e28 RD |
6986 | } |
6987 | { | |
6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6989 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6990 | ||
6991 | wxPyEndAllowThreads(__tstate); | |
6992 | if (PyErr_Occurred()) SWIG_fail; | |
6993 | } | |
6994 | Py_INCREF(Py_None); resultobj = Py_None; | |
6995 | { | |
6996 | if (temp2) | |
6997 | delete arg2; | |
6998 | } | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | { | |
7002 | if (temp2) | |
7003 | delete arg2; | |
7004 | } | |
7005 | return NULL; | |
7006 | } | |
7007 | ||
7008 | ||
7009 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7010 | PyObject *resultobj; | |
7011 | wxString result; | |
7012 | char *kwnames[] = { | |
7013 | NULL | |
7014 | }; | |
7015 | ||
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7017 | { | |
7018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7019 | result = wxFontMapper::GetDefaultConfigPath(); | |
7020 | ||
7021 | wxPyEndAllowThreads(__tstate); | |
7022 | if (PyErr_Occurred()) SWIG_fail; | |
7023 | } | |
7024 | { | |
7025 | #if wxUSE_UNICODE | |
7026 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7027 | #else | |
7028 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7029 | #endif | |
7030 | } | |
7031 | return resultobj; | |
7032 | fail: | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
7037 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7038 | PyObject *resultobj; | |
7039 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7040 | int arg2 ; | |
7041 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7042 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 7043 | bool arg4 = (bool) True ; |
d14a1e28 | 7044 | PyObject *result; |
423f194a | 7045 | bool temp3 = False ; |
d14a1e28 | 7046 | PyObject * obj0 = 0 ; |
8edf1c75 | 7047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7048 | PyObject * obj2 = 0 ; |
7049 | PyObject * obj3 = 0 ; | |
7050 | char *kwnames[] = { | |
7051 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7052 | }; | |
7053 | ||
8edf1c75 | 7054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7056 | { |
7057 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7058 | if (PyErr_Occurred()) SWIG_fail; | |
7059 | } | |
d14a1e28 RD |
7060 | if (obj2) { |
7061 | { | |
7062 | arg3 = wxString_in_helper(obj2); | |
7063 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7064 | temp3 = True; |
d14a1e28 RD |
7065 | } |
7066 | } | |
7067 | if (obj3) { | |
2dbef272 | 7068 | { |
8edf1c75 | 7069 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
7070 | if (PyErr_Occurred()) SWIG_fail; |
7071 | } | |
d14a1e28 RD |
7072 | } |
7073 | { | |
7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7075 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7076 | ||
7077 | wxPyEndAllowThreads(__tstate); | |
7078 | if (PyErr_Occurred()) SWIG_fail; | |
7079 | } | |
7080 | resultobj = result; | |
7081 | { | |
7082 | if (temp3) | |
7083 | delete arg3; | |
7084 | } | |
7085 | return resultobj; | |
7086 | fail: | |
7087 | { | |
7088 | if (temp3) | |
7089 | delete arg3; | |
7090 | } | |
7091 | return NULL; | |
7092 | } | |
7093 | ||
7094 | ||
7095 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7096 | PyObject *resultobj; | |
7097 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7098 | int arg2 ; | |
7099 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7100 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7101 | bool result; | |
423f194a | 7102 | bool temp3 = False ; |
d14a1e28 | 7103 | PyObject * obj0 = 0 ; |
8edf1c75 | 7104 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7105 | PyObject * obj2 = 0 ; |
7106 | char *kwnames[] = { | |
7107 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7108 | }; | |
7109 | ||
8edf1c75 | 7110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7112 | { |
7113 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7114 | if (PyErr_Occurred()) SWIG_fail; | |
7115 | } | |
d14a1e28 RD |
7116 | if (obj2) { |
7117 | { | |
7118 | arg3 = wxString_in_helper(obj2); | |
7119 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7120 | temp3 = True; |
d14a1e28 RD |
7121 | } |
7122 | } | |
7123 | { | |
7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7125 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7126 | ||
7127 | wxPyEndAllowThreads(__tstate); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | } | |
02a34c4c | 7130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7131 | { |
7132 | if (temp3) | |
7133 | delete arg3; | |
7134 | } | |
7135 | return resultobj; | |
7136 | fail: | |
7137 | { | |
7138 | if (temp3) | |
7139 | delete arg3; | |
7140 | } | |
7141 | return NULL; | |
7142 | } | |
7143 | ||
7144 | ||
7145 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7146 | PyObject *resultobj; | |
7147 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7148 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7149 | PyObject * obj0 = 0 ; | |
7150 | PyObject * obj1 = 0 ; | |
7151 | char *kwnames[] = { | |
7152 | (char *) "self",(char *) "parent", NULL | |
7153 | }; | |
7154 | ||
7155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7157 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7158 | { | |
7159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7160 | (arg1)->SetDialogParent(arg2); | |
7161 | ||
7162 | wxPyEndAllowThreads(__tstate); | |
7163 | if (PyErr_Occurred()) SWIG_fail; | |
7164 | } | |
7165 | Py_INCREF(Py_None); resultobj = Py_None; | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | return NULL; | |
7169 | } | |
7170 | ||
7171 | ||
7172 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject *resultobj; | |
7174 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7175 | wxString *arg2 = 0 ; | |
423f194a | 7176 | bool temp2 = False ; |
d14a1e28 RD |
7177 | PyObject * obj0 = 0 ; |
7178 | PyObject * obj1 = 0 ; | |
7179 | char *kwnames[] = { | |
7180 | (char *) "self",(char *) "title", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7185 | { | |
7186 | arg2 = wxString_in_helper(obj1); | |
7187 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7188 | temp2 = True; |
d14a1e28 RD |
7189 | } |
7190 | { | |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | } | |
7197 | Py_INCREF(Py_None); resultobj = Py_None; | |
7198 | { | |
7199 | if (temp2) | |
7200 | delete arg2; | |
7201 | } | |
7202 | return resultobj; | |
7203 | fail: | |
7204 | { | |
7205 | if (temp2) | |
7206 | delete arg2; | |
7207 | } | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7213 | PyObject *obj; | |
7214 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7215 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7216 | Py_INCREF(obj); | |
7217 | return Py_BuildValue((char *)""); | |
7218 | } | |
7219 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7220 | PyObject *resultobj; | |
7221 | int arg1 ; | |
7222 | int arg2 ; | |
7223 | int arg3 ; | |
7224 | int arg4 ; | |
423f194a | 7225 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7226 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7227 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7228 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7229 | wxFont *result; | |
423f194a | 7230 | bool temp6 = False ; |
8edf1c75 RD |
7231 | PyObject * obj0 = 0 ; |
7232 | PyObject * obj1 = 0 ; | |
7233 | PyObject * obj2 = 0 ; | |
7234 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7235 | PyObject * obj4 = 0 ; |
7236 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7237 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7238 | char *kwnames[] = { |
7239 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7240 | }; | |
7241 | ||
8edf1c75 RD |
7242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
7243 | { | |
7244 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7245 | if (PyErr_Occurred()) SWIG_fail; | |
7246 | } | |
7247 | { | |
7248 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7249 | if (PyErr_Occurred()) SWIG_fail; | |
7250 | } | |
7251 | { | |
7252 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7253 | if (PyErr_Occurred()) SWIG_fail; | |
7254 | } | |
7255 | { | |
7256 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7257 | if (PyErr_Occurred()) SWIG_fail; | |
7258 | } | |
d14a1e28 | 7259 | if (obj4) { |
2dbef272 | 7260 | { |
8edf1c75 | 7261 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
2dbef272 RD |
7262 | if (PyErr_Occurred()) SWIG_fail; |
7263 | } | |
d14a1e28 RD |
7264 | } |
7265 | if (obj5) { | |
7266 | { | |
7267 | arg6 = wxString_in_helper(obj5); | |
7268 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 7269 | temp6 = True; |
d14a1e28 RD |
7270 | } |
7271 | } | |
8edf1c75 RD |
7272 | if (obj6) { |
7273 | { | |
7274 | arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | } | |
d14a1e28 RD |
7278 | { |
7279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7280 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7281 | ||
7282 | wxPyEndAllowThreads(__tstate); | |
7283 | if (PyErr_Occurred()) SWIG_fail; | |
7284 | } | |
7285 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7286 | { | |
7287 | if (temp6) | |
7288 | delete arg6; | |
7289 | } | |
7290 | return resultobj; | |
7291 | fail: | |
7292 | { | |
7293 | if (temp6) | |
7294 | delete arg6; | |
7295 | } | |
7296 | return NULL; | |
7297 | } | |
7298 | ||
7299 | ||
7300 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7301 | PyObject *resultobj; | |
7302 | wxFont *arg1 = (wxFont *) 0 ; | |
7303 | PyObject * obj0 = 0 ; | |
7304 | char *kwnames[] = { | |
7305 | (char *) "self", NULL | |
7306 | }; | |
7307 | ||
7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7310 | { | |
7311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7312 | delete arg1; | |
7313 | ||
7314 | wxPyEndAllowThreads(__tstate); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | Py_INCREF(Py_None); resultobj = Py_None; | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | return NULL; | |
7321 | } | |
7322 | ||
7323 | ||
7324 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7325 | PyObject *resultobj; | |
7326 | wxNativeFontInfo *arg1 = 0 ; | |
7327 | wxFont *result; | |
7328 | PyObject * obj0 = 0 ; | |
7329 | char *kwnames[] = { | |
7330 | (char *) "info", NULL | |
7331 | }; | |
7332 | ||
7333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7335 | if (arg1 == NULL) { | |
7336 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7337 | } | |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxString *arg1 = 0 ; | |
7355 | wxFont *result; | |
423f194a | 7356 | bool temp1 = False ; |
d14a1e28 RD |
7357 | PyObject * obj0 = 0 ; |
7358 | char *kwnames[] = { | |
7359 | (char *) "info", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7363 | { | |
7364 | arg1 = wxString_in_helper(obj0); | |
7365 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7366 | temp1 = True; |
d14a1e28 RD |
7367 | } |
7368 | { | |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7371 | ||
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
7375 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7376 | { | |
7377 | if (temp1) | |
7378 | delete arg1; | |
7379 | } | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | { | |
7383 | if (temp1) | |
7384 | delete arg1; | |
7385 | } | |
7386 | return NULL; | |
7387 | } | |
7388 | ||
7389 | ||
7390 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7391 | PyObject *resultobj; | |
7392 | int arg1 ; | |
7393 | int arg2 ; | |
7394 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7395 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7396 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7397 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7398 | wxFont *result; | |
423f194a | 7399 | bool temp4 = False ; |
8edf1c75 RD |
7400 | PyObject * obj0 = 0 ; |
7401 | PyObject * obj1 = 0 ; | |
7402 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7403 | PyObject * obj3 = 0 ; |
8edf1c75 | 7404 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7405 | char *kwnames[] = { |
7406 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7407 | }; | |
7408 | ||
8edf1c75 RD |
7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7410 | { | |
7411 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7412 | if (PyErr_Occurred()) SWIG_fail; | |
7413 | } | |
7414 | { | |
7415 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
7416 | if (PyErr_Occurred()) SWIG_fail; | |
7417 | } | |
7418 | if (obj2) { | |
7419 | { | |
7420 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7421 | if (PyErr_Occurred()) SWIG_fail; | |
7422 | } | |
7423 | } | |
d14a1e28 RD |
7424 | if (obj3) { |
7425 | { | |
7426 | arg4 = wxString_in_helper(obj3); | |
7427 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7428 | temp4 = True; |
d14a1e28 RD |
7429 | } |
7430 | } | |
8edf1c75 RD |
7431 | if (obj4) { |
7432 | { | |
7433 | arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4); | |
7434 | if (PyErr_Occurred()) SWIG_fail; | |
7435 | } | |
7436 | } | |
d14a1e28 RD |
7437 | { |
7438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7439 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7440 | ||
7441 | wxPyEndAllowThreads(__tstate); | |
7442 | if (PyErr_Occurred()) SWIG_fail; | |
7443 | } | |
7444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7445 | { | |
7446 | if (temp4) | |
7447 | delete arg4; | |
7448 | } | |
7449 | return resultobj; | |
7450 | fail: | |
7451 | { | |
7452 | if (temp4) | |
7453 | delete arg4; | |
7454 | } | |
7455 | return NULL; | |
7456 | } | |
7457 | ||
7458 | ||
7459 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7460 | PyObject *resultobj; | |
7461 | wxFont *arg1 = (wxFont *) 0 ; | |
7462 | bool result; | |
7463 | PyObject * obj0 = 0 ; | |
7464 | char *kwnames[] = { | |
7465 | (char *) "self", NULL | |
7466 | }; | |
7467 | ||
7468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7470 | { | |
7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7472 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7473 | ||
7474 | wxPyEndAllowThreads(__tstate); | |
7475 | if (PyErr_Occurred()) SWIG_fail; | |
7476 | } | |
02a34c4c | 7477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7478 | return resultobj; |
7479 | fail: | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject *resultobj; | |
7486 | wxFont *arg1 = (wxFont *) 0 ; | |
38f59159 | 7487 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7488 | bool result; |
7489 | PyObject * obj0 = 0 ; | |
7490 | PyObject * obj1 = 0 ; | |
7491 | char *kwnames[] = { | |
38f59159 | 7492 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7493 | }; |
7494 | ||
7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7497 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
7498 | { |
7499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 7500 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7501 | |
7502 | wxPyEndAllowThreads(__tstate); | |
7503 | if (PyErr_Occurred()) SWIG_fail; | |
7504 | } | |
02a34c4c | 7505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7506 | return resultobj; |
7507 | fail: | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
7512 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject *resultobj; | |
7514 | wxFont *arg1 = (wxFont *) 0 ; | |
38f59159 | 7515 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7516 | bool result; |
7517 | PyObject * obj0 = 0 ; | |
7518 | PyObject * obj1 = 0 ; | |
7519 | char *kwnames[] = { | |
38f59159 | 7520 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7521 | }; |
7522 | ||
7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7525 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
7526 | { |
7527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 7528 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7529 | |
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
02a34c4c | 7533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7534 | return resultobj; |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject *resultobj; | |
7542 | wxFont *arg1 = (wxFont *) 0 ; | |
7543 | int result; | |
7544 | PyObject * obj0 = 0 ; | |
7545 | char *kwnames[] = { | |
7546 | (char *) "self", NULL | |
7547 | }; | |
7548 | ||
7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7551 | { | |
7552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7553 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7554 | ||
7555 | wxPyEndAllowThreads(__tstate); | |
7556 | if (PyErr_Occurred()) SWIG_fail; | |
7557 | } | |
8edf1c75 | 7558 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7559 | return resultobj; |
7560 | fail: | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
7565 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7566 | PyObject *resultobj; | |
7567 | wxFont *arg1 = (wxFont *) 0 ; | |
7568 | int result; | |
7569 | PyObject * obj0 = 0 ; | |
7570 | char *kwnames[] = { | |
7571 | (char *) "self", NULL | |
7572 | }; | |
7573 | ||
7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7576 | { | |
7577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7578 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7579 | ||
7580 | wxPyEndAllowThreads(__tstate); | |
7581 | if (PyErr_Occurred()) SWIG_fail; | |
7582 | } | |
8edf1c75 | 7583 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7584 | return resultobj; |
7585 | fail: | |
7586 | return NULL; | |
7587 | } | |
7588 | ||
7589 | ||
7590 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7591 | PyObject *resultobj; | |
7592 | wxFont *arg1 = (wxFont *) 0 ; | |
7593 | int result; | |
7594 | PyObject * obj0 = 0 ; | |
7595 | char *kwnames[] = { | |
7596 | (char *) "self", NULL | |
7597 | }; | |
7598 | ||
7599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7601 | { | |
7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7603 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7604 | ||
7605 | wxPyEndAllowThreads(__tstate); | |
7606 | if (PyErr_Occurred()) SWIG_fail; | |
7607 | } | |
8edf1c75 | 7608 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7609 | return resultobj; |
7610 | fail: | |
7611 | return NULL; | |
7612 | } | |
7613 | ||
7614 | ||
7615 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7616 | PyObject *resultobj; | |
7617 | wxFont *arg1 = (wxFont *) 0 ; | |
7618 | int result; | |
7619 | PyObject * obj0 = 0 ; | |
7620 | char *kwnames[] = { | |
7621 | (char *) "self", NULL | |
7622 | }; | |
7623 | ||
7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7626 | { | |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7629 | ||
7630 | wxPyEndAllowThreads(__tstate); | |
7631 | if (PyErr_Occurred()) SWIG_fail; | |
7632 | } | |
8edf1c75 | 7633 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7634 | return resultobj; |
7635 | fail: | |
7636 | return NULL; | |
7637 | } | |
7638 | ||
7639 | ||
7640 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7641 | PyObject *resultobj; | |
7642 | wxFont *arg1 = (wxFont *) 0 ; | |
7643 | bool result; | |
7644 | PyObject * obj0 = 0 ; | |
7645 | char *kwnames[] = { | |
7646 | (char *) "self", NULL | |
7647 | }; | |
7648 | ||
7649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7651 | { | |
7652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7653 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7654 | ||
7655 | wxPyEndAllowThreads(__tstate); | |
7656 | if (PyErr_Occurred()) SWIG_fail; | |
7657 | } | |
02a34c4c | 7658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7659 | return resultobj; |
7660 | fail: | |
7661 | return NULL; | |
7662 | } | |
7663 | ||
7664 | ||
7665 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7666 | PyObject *resultobj; | |
7667 | wxFont *arg1 = (wxFont *) 0 ; | |
7668 | wxString result; | |
7669 | PyObject * obj0 = 0 ; | |
7670 | char *kwnames[] = { | |
7671 | (char *) "self", NULL | |
7672 | }; | |
7673 | ||
7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | { | |
7684 | #if wxUSE_UNICODE | |
7685 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7686 | #else | |
7687 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7688 | #endif | |
7689 | } | |
7690 | return resultobj; | |
7691 | fail: | |
7692 | return NULL; | |
7693 | } | |
7694 | ||
7695 | ||
7696 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7697 | PyObject *resultobj; | |
7698 | wxFont *arg1 = (wxFont *) 0 ; | |
7699 | int result; | |
7700 | PyObject * obj0 = 0 ; | |
7701 | char *kwnames[] = { | |
7702 | (char *) "self", NULL | |
7703 | }; | |
7704 | ||
7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7707 | { | |
7708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7709 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7710 | ||
7711 | wxPyEndAllowThreads(__tstate); | |
7712 | if (PyErr_Occurred()) SWIG_fail; | |
7713 | } | |
8edf1c75 | 7714 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7715 | return resultobj; |
7716 | fail: | |
7717 | return NULL; | |
7718 | } | |
7719 | ||
7720 | ||
7721 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7722 | PyObject *resultobj; | |
7723 | wxFont *arg1 = (wxFont *) 0 ; | |
7724 | wxNativeFontInfo *result; | |
7725 | PyObject * obj0 = 0 ; | |
7726 | char *kwnames[] = { | |
7727 | (char *) "self", NULL | |
7728 | }; | |
7729 | ||
7730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7732 | { | |
7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7734 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7735 | ||
7736 | wxPyEndAllowThreads(__tstate); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7740 | return resultobj; | |
7741 | fail: | |
7742 | return NULL; | |
7743 | } | |
7744 | ||
7745 | ||
7746 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7747 | PyObject *resultobj; | |
7748 | wxFont *arg1 = (wxFont *) 0 ; | |
7749 | bool result; | |
7750 | PyObject * obj0 = 0 ; | |
7751 | char *kwnames[] = { | |
7752 | (char *) "self", NULL | |
7753 | }; | |
7754 | ||
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
02a34c4c | 7764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7765 | return resultobj; |
7766 | fail: | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
7771 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject *resultobj; | |
7773 | wxFont *arg1 = (wxFont *) 0 ; | |
7774 | wxString result; | |
7775 | PyObject * obj0 = 0 ; | |
7776 | char *kwnames[] = { | |
7777 | (char *) "self", NULL | |
7778 | }; | |
7779 | ||
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7782 | { | |
7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7784 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7785 | ||
7786 | wxPyEndAllowThreads(__tstate); | |
7787 | if (PyErr_Occurred()) SWIG_fail; | |
7788 | } | |
7789 | { | |
7790 | #if wxUSE_UNICODE | |
7791 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7792 | #else | |
7793 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7794 | #endif | |
7795 | } | |
7796 | return resultobj; | |
7797 | fail: | |
7798 | return NULL; | |
7799 | } | |
7800 | ||
7801 | ||
7802 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7803 | PyObject *resultobj; | |
7804 | wxFont *arg1 = (wxFont *) 0 ; | |
7805 | wxString result; | |
7806 | PyObject * obj0 = 0 ; | |
7807 | char *kwnames[] = { | |
7808 | (char *) "self", NULL | |
7809 | }; | |
7810 | ||
7811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7813 | { | |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
7820 | { | |
7821 | #if wxUSE_UNICODE | |
7822 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7823 | #else | |
7824 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7825 | #endif | |
7826 | } | |
7827 | return resultobj; | |
7828 | fail: | |
7829 | return NULL; | |
7830 | } | |
7831 | ||
7832 | ||
7833 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7834 | PyObject *resultobj; | |
7835 | wxFont *arg1 = (wxFont *) 0 ; | |
7836 | int arg2 ; | |
7837 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7838 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7839 | char *kwnames[] = { |
7840 | (char *) "self",(char *) "pointSize", NULL | |
7841 | }; | |
7842 | ||
8edf1c75 | 7843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7845 | { |
7846 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7847 | if (PyErr_Occurred()) SWIG_fail; | |
7848 | } | |
d14a1e28 RD |
7849 | { |
7850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7851 | (arg1)->SetPointSize(arg2); | |
7852 | ||
7853 | wxPyEndAllowThreads(__tstate); | |
7854 | if (PyErr_Occurred()) SWIG_fail; | |
7855 | } | |
7856 | Py_INCREF(Py_None); resultobj = Py_None; | |
7857 | return resultobj; | |
7858 | fail: | |
7859 | return NULL; | |
7860 | } | |
7861 | ||
7862 | ||
7863 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7864 | PyObject *resultobj; | |
7865 | wxFont *arg1 = (wxFont *) 0 ; | |
7866 | int arg2 ; | |
7867 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7868 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7869 | char *kwnames[] = { |
7870 | (char *) "self",(char *) "family", NULL | |
7871 | }; | |
7872 | ||
8edf1c75 | 7873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7875 | { |
7876 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
d14a1e28 RD |
7879 | { |
7880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7881 | (arg1)->SetFamily(arg2); | |
7882 | ||
7883 | wxPyEndAllowThreads(__tstate); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | } | |
7886 | Py_INCREF(Py_None); resultobj = Py_None; | |
7887 | return resultobj; | |
7888 | fail: | |
7889 | return NULL; | |
7890 | } | |
7891 | ||
7892 | ||
7893 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject *resultobj; | |
7895 | wxFont *arg1 = (wxFont *) 0 ; | |
7896 | int arg2 ; | |
7897 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7899 | char *kwnames[] = { |
7900 | (char *) "self",(char *) "style", NULL | |
7901 | }; | |
7902 | ||
8edf1c75 | 7903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7905 | { |
7906 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7907 | if (PyErr_Occurred()) SWIG_fail; | |
7908 | } | |
d14a1e28 RD |
7909 | { |
7910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7911 | (arg1)->SetStyle(arg2); | |
7912 | ||
7913 | wxPyEndAllowThreads(__tstate); | |
7914 | if (PyErr_Occurred()) SWIG_fail; | |
7915 | } | |
7916 | Py_INCREF(Py_None); resultobj = Py_None; | |
7917 | return resultobj; | |
7918 | fail: | |
7919 | return NULL; | |
7920 | } | |
7921 | ||
7922 | ||
7923 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7924 | PyObject *resultobj; | |
7925 | wxFont *arg1 = (wxFont *) 0 ; | |
7926 | int arg2 ; | |
7927 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7928 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7929 | char *kwnames[] = { |
7930 | (char *) "self",(char *) "weight", NULL | |
7931 | }; | |
7932 | ||
8edf1c75 | 7933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7935 | { |
7936 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
d14a1e28 RD |
7939 | { |
7940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7941 | (arg1)->SetWeight(arg2); | |
7942 | ||
7943 | wxPyEndAllowThreads(__tstate); | |
7944 | if (PyErr_Occurred()) SWIG_fail; | |
7945 | } | |
7946 | Py_INCREF(Py_None); resultobj = Py_None; | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | return NULL; | |
7950 | } | |
7951 | ||
7952 | ||
7953 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7954 | PyObject *resultobj; | |
7955 | wxFont *arg1 = (wxFont *) 0 ; | |
7956 | wxString *arg2 = 0 ; | |
423f194a | 7957 | bool temp2 = False ; |
d14a1e28 RD |
7958 | PyObject * obj0 = 0 ; |
7959 | PyObject * obj1 = 0 ; | |
7960 | char *kwnames[] = { | |
7961 | (char *) "self",(char *) "faceName", NULL | |
7962 | }; | |
7963 | ||
7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7966 | { | |
7967 | arg2 = wxString_in_helper(obj1); | |
7968 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7969 | temp2 = True; |
d14a1e28 RD |
7970 | } |
7971 | { | |
7972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7973 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7974 | ||
7975 | wxPyEndAllowThreads(__tstate); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | } | |
7978 | Py_INCREF(Py_None); resultobj = Py_None; | |
7979 | { | |
7980 | if (temp2) | |
7981 | delete arg2; | |
7982 | } | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | { | |
7986 | if (temp2) | |
7987 | delete arg2; | |
7988 | } | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
7993 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject *resultobj; | |
7995 | wxFont *arg1 = (wxFont *) 0 ; | |
7996 | bool arg2 ; | |
7997 | PyObject * obj0 = 0 ; | |
7998 | PyObject * obj1 = 0 ; | |
7999 | char *kwnames[] = { | |
8000 | (char *) "self",(char *) "underlined", NULL | |
8001 | }; | |
8002 | ||
8003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 8005 | { |
8edf1c75 | 8006 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8007 | if (PyErr_Occurred()) SWIG_fail; |
8008 | } | |
d14a1e28 RD |
8009 | { |
8010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8011 | (arg1)->SetUnderlined(arg2); | |
8012 | ||
8013 | wxPyEndAllowThreads(__tstate); | |
8014 | if (PyErr_Occurred()) SWIG_fail; | |
8015 | } | |
8016 | Py_INCREF(Py_None); resultobj = Py_None; | |
8017 | return resultobj; | |
8018 | fail: | |
8019 | return NULL; | |
8020 | } | |
8021 | ||
8022 | ||
8023 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8024 | PyObject *resultobj; | |
8025 | wxFont *arg1 = (wxFont *) 0 ; | |
8026 | int arg2 ; | |
8027 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8029 | char *kwnames[] = { |
8030 | (char *) "self",(char *) "encoding", NULL | |
8031 | }; | |
8032 | ||
8edf1c75 | 8033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8035 | { |
8036 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8037 | if (PyErr_Occurred()) SWIG_fail; | |
8038 | } | |
d14a1e28 RD |
8039 | { |
8040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8041 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8042 | ||
8043 | wxPyEndAllowThreads(__tstate); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
8045 | } | |
8046 | Py_INCREF(Py_None); resultobj = Py_None; | |
8047 | return resultobj; | |
8048 | fail: | |
8049 | return NULL; | |
8050 | } | |
8051 | ||
8052 | ||
8053 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8054 | PyObject *resultobj; | |
8055 | wxFont *arg1 = (wxFont *) 0 ; | |
8056 | wxNativeFontInfo *arg2 = 0 ; | |
8057 | PyObject * obj0 = 0 ; | |
8058 | PyObject * obj1 = 0 ; | |
8059 | char *kwnames[] = { | |
8060 | (char *) "self",(char *) "info", NULL | |
8061 | }; | |
8062 | ||
8063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
8064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8065 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8066 | if (arg2 == NULL) { | |
8067 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8068 | } | |
8069 | { | |
8070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8071 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8072 | ||
8073 | wxPyEndAllowThreads(__tstate); | |
8074 | if (PyErr_Occurred()) SWIG_fail; | |
8075 | } | |
8076 | Py_INCREF(Py_None); resultobj = Py_None; | |
8077 | return resultobj; | |
8078 | fail: | |
8079 | return NULL; | |
8080 | } | |
8081 | ||
8082 | ||
8083 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8084 | PyObject *resultobj; | |
8085 | wxFont *arg1 = (wxFont *) 0 ; | |
8086 | wxString *arg2 = 0 ; | |
423f194a | 8087 | bool temp2 = False ; |
d14a1e28 RD |
8088 | PyObject * obj0 = 0 ; |
8089 | PyObject * obj1 = 0 ; | |
8090 | char *kwnames[] = { | |
8091 | (char *) "self",(char *) "info", NULL | |
8092 | }; | |
8093 | ||
8094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
8095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8096 | { | |
8097 | arg2 = wxString_in_helper(obj1); | |
8098 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8099 | temp2 = True; |
d14a1e28 RD |
8100 | } |
8101 | { | |
8102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8103 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8104 | ||
8105 | wxPyEndAllowThreads(__tstate); | |
8106 | if (PyErr_Occurred()) SWIG_fail; | |
8107 | } | |
8108 | Py_INCREF(Py_None); resultobj = Py_None; | |
8109 | { | |
8110 | if (temp2) | |
8111 | delete arg2; | |
8112 | } | |
8113 | return resultobj; | |
8114 | fail: | |
8115 | { | |
8116 | if (temp2) | |
8117 | delete arg2; | |
8118 | } | |
8119 | return NULL; | |
8120 | } | |
8121 | ||
8122 | ||
8123 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8124 | PyObject *resultobj; | |
8125 | wxFont *arg1 = (wxFont *) 0 ; | |
8126 | wxString *arg2 = 0 ; | |
423f194a | 8127 | bool temp2 = False ; |
d14a1e28 RD |
8128 | PyObject * obj0 = 0 ; |
8129 | PyObject * obj1 = 0 ; | |
8130 | char *kwnames[] = { | |
8131 | (char *) "self",(char *) "info", NULL | |
8132 | }; | |
8133 | ||
8134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8136 | { | |
8137 | arg2 = wxString_in_helper(obj1); | |
8138 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8139 | temp2 = True; |
d14a1e28 RD |
8140 | } |
8141 | { | |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8143 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8144 | ||
8145 | wxPyEndAllowThreads(__tstate); | |
8146 | if (PyErr_Occurred()) SWIG_fail; | |
8147 | } | |
8148 | Py_INCREF(Py_None); resultobj = Py_None; | |
8149 | { | |
8150 | if (temp2) | |
8151 | delete arg2; | |
8152 | } | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | { | |
8156 | if (temp2) | |
8157 | delete arg2; | |
8158 | } | |
8159 | return NULL; | |
8160 | } | |
8161 | ||
8162 | ||
8163 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8164 | PyObject *resultobj; | |
8165 | wxFont *arg1 = (wxFont *) 0 ; | |
8166 | wxString result; | |
8167 | PyObject * obj0 = 0 ; | |
8168 | char *kwnames[] = { | |
8169 | (char *) "self", NULL | |
8170 | }; | |
8171 | ||
8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8174 | { | |
8175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8176 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8177 | ||
8178 | wxPyEndAllowThreads(__tstate); | |
8179 | if (PyErr_Occurred()) SWIG_fail; | |
8180 | } | |
8181 | { | |
8182 | #if wxUSE_UNICODE | |
8183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8184 | #else | |
8185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8186 | #endif | |
8187 | } | |
8188 | return resultobj; | |
8189 | fail: | |
8190 | return NULL; | |
8191 | } | |
8192 | ||
8193 | ||
8194 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8195 | PyObject *resultobj; | |
8196 | wxFont *arg1 = (wxFont *) 0 ; | |
8197 | wxString result; | |
8198 | PyObject * obj0 = 0 ; | |
8199 | char *kwnames[] = { | |
8200 | (char *) "self", NULL | |
8201 | }; | |
8202 | ||
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8205 | { | |
8206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8207 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8208 | ||
8209 | wxPyEndAllowThreads(__tstate); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | { | |
8213 | #if wxUSE_UNICODE | |
8214 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8215 | #else | |
8216 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8217 | #endif | |
8218 | } | |
8219 | return resultobj; | |
8220 | fail: | |
8221 | return NULL; | |
8222 | } | |
8223 | ||
8224 | ||
8225 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8226 | PyObject *resultobj; | |
8227 | wxFont *arg1 = (wxFont *) 0 ; | |
8228 | wxString result; | |
8229 | PyObject * obj0 = 0 ; | |
8230 | char *kwnames[] = { | |
8231 | (char *) "self", NULL | |
8232 | }; | |
8233 | ||
8234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8236 | { | |
8237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8238 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8239 | ||
8240 | wxPyEndAllowThreads(__tstate); | |
8241 | if (PyErr_Occurred()) SWIG_fail; | |
8242 | } | |
8243 | { | |
8244 | #if wxUSE_UNICODE | |
8245 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8246 | #else | |
8247 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8248 | #endif | |
8249 | } | |
8250 | return resultobj; | |
8251 | fail: | |
8252 | return NULL; | |
8253 | } | |
8254 | ||
8255 | ||
8256 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8257 | PyObject *resultobj; | |
8258 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 8259 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8260 | PyObject * obj0 = 0 ; |
8261 | PyObject * obj1 = 0 ; | |
8262 | char *kwnames[] = { | |
8263 | (char *) "self",(char *) "no", NULL | |
8264 | }; | |
8265 | ||
8266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8268 | if (obj1) { | |
2dbef272 | 8269 | { |
8edf1c75 | 8270 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
8271 | if (PyErr_Occurred()) SWIG_fail; |
8272 | } | |
d14a1e28 RD |
8273 | } |
8274 | { | |
8275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8276 | (arg1)->SetNoAntiAliasing(arg2); | |
8277 | ||
8278 | wxPyEndAllowThreads(__tstate); | |
8279 | if (PyErr_Occurred()) SWIG_fail; | |
8280 | } | |
8281 | Py_INCREF(Py_None); resultobj = Py_None; | |
8282 | return resultobj; | |
8283 | fail: | |
8284 | return NULL; | |
8285 | } | |
8286 | ||
8287 | ||
8288 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8289 | PyObject *resultobj; | |
8290 | wxFont *arg1 = (wxFont *) 0 ; | |
8291 | bool result; | |
8292 | PyObject * obj0 = 0 ; | |
8293 | char *kwnames[] = { | |
8294 | (char *) "self", NULL | |
8295 | }; | |
8296 | ||
8297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8299 | { | |
8300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8301 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8302 | ||
8303 | wxPyEndAllowThreads(__tstate); | |
8304 | if (PyErr_Occurred()) SWIG_fail; | |
8305 | } | |
02a34c4c | 8306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8307 | return resultobj; |
8308 | fail: | |
8309 | return NULL; | |
8310 | } | |
8311 | ||
8312 | ||
8313 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8314 | PyObject *resultobj; | |
8315 | int result; | |
8316 | char *kwnames[] = { | |
8317 | NULL | |
8318 | }; | |
8319 | ||
8320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8321 | { | |
8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8323 | result = (int)wxFont::GetDefaultEncoding(); | |
8324 | ||
8325 | wxPyEndAllowThreads(__tstate); | |
8326 | if (PyErr_Occurred()) SWIG_fail; | |
8327 | } | |
8edf1c75 | 8328 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8329 | return resultobj; |
8330 | fail: | |
8331 | return NULL; | |
8332 | } | |
8333 | ||
8334 | ||
8335 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8336 | PyObject *resultobj; | |
8337 | int arg1 ; | |
8edf1c75 | 8338 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8339 | char *kwnames[] = { |
8340 | (char *) "encoding", NULL | |
8341 | }; | |
8342 | ||
8edf1c75 RD |
8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
8344 | { | |
8345 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
8346 | if (PyErr_Occurred()) SWIG_fail; | |
8347 | } | |
d14a1e28 RD |
8348 | { |
8349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8350 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8351 | ||
8352 | wxPyEndAllowThreads(__tstate); | |
8353 | if (PyErr_Occurred()) SWIG_fail; | |
8354 | } | |
8355 | Py_INCREF(Py_None); resultobj = Py_None; | |
8356 | return resultobj; | |
8357 | fail: | |
8358 | return NULL; | |
8359 | } | |
8360 | ||
8361 | ||
8362 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8363 | PyObject *obj; | |
8364 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8365 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8366 | Py_INCREF(obj); | |
8367 | return Py_BuildValue((char *)""); | |
8368 | } | |
8369 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8370 | PyObject *resultobj; | |
8371 | wxPyFontEnumerator *result; | |
8372 | char *kwnames[] = { | |
8373 | NULL | |
8374 | }; | |
8375 | ||
8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8377 | { | |
8378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8379 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8380 | ||
8381 | wxPyEndAllowThreads(__tstate); | |
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | } | |
8384 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8385 | return resultobj; | |
8386 | fail: | |
8387 | return NULL; | |
8388 | } | |
8389 | ||
8390 | ||
8391 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8392 | PyObject *resultobj; | |
8393 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8394 | PyObject * obj0 = 0 ; | |
8395 | char *kwnames[] = { | |
8396 | (char *) "self", NULL | |
8397 | }; | |
8398 | ||
8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8401 | { | |
8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8403 | delete arg1; | |
8404 | ||
8405 | wxPyEndAllowThreads(__tstate); | |
8406 | if (PyErr_Occurred()) SWIG_fail; | |
8407 | } | |
8408 | Py_INCREF(Py_None); resultobj = Py_None; | |
8409 | return resultobj; | |
8410 | fail: | |
8411 | return NULL; | |
8412 | } | |
8413 | ||
8414 | ||
8415 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8416 | PyObject *resultobj; | |
8417 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8418 | PyObject *arg2 = (PyObject *) 0 ; | |
8419 | PyObject *arg3 = (PyObject *) 0 ; | |
8420 | bool arg4 ; | |
8421 | PyObject * obj0 = 0 ; | |
8422 | PyObject * obj1 = 0 ; | |
8423 | PyObject * obj2 = 0 ; | |
8424 | PyObject * obj3 = 0 ; | |
8425 | char *kwnames[] = { | |
8426 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8427 | }; | |
8428 | ||
8429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8431 | arg2 = obj1; | |
8432 | arg3 = obj2; | |
2dbef272 | 8433 | { |
8edf1c75 | 8434 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
8435 | if (PyErr_Occurred()) SWIG_fail; |
8436 | } | |
d14a1e28 RD |
8437 | { |
8438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8439 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8440 | ||
8441 | wxPyEndAllowThreads(__tstate); | |
8442 | if (PyErr_Occurred()) SWIG_fail; | |
8443 | } | |
8444 | Py_INCREF(Py_None); resultobj = Py_None; | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | return NULL; | |
8448 | } | |
8449 | ||
8450 | ||
8451 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8452 | PyObject *resultobj; | |
8453 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8454 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 8455 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8456 | bool result; |
8457 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8458 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8459 | PyObject * obj2 = 0 ; |
8460 | char *kwnames[] = { | |
8461 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8462 | }; | |
8463 | ||
8edf1c75 | 8464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8466 | if (obj1) { |
8467 | { | |
8468 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
8471 | } | |
d14a1e28 | 8472 | if (obj2) { |
2dbef272 | 8473 | { |
8edf1c75 | 8474 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
8475 | if (PyErr_Occurred()) SWIG_fail; |
8476 | } | |
d14a1e28 RD |
8477 | } |
8478 | { | |
8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8480 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8481 | ||
8482 | wxPyEndAllowThreads(__tstate); | |
8483 | if (PyErr_Occurred()) SWIG_fail; | |
8484 | } | |
02a34c4c | 8485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8486 | return resultobj; |
8487 | fail: | |
8488 | return NULL; | |
8489 | } | |
8490 | ||
8491 | ||
8492 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8493 | PyObject *resultobj; | |
8494 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8495 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8496 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8497 | bool result; | |
423f194a | 8498 | bool temp2 = False ; |
d14a1e28 RD |
8499 | PyObject * obj0 = 0 ; |
8500 | PyObject * obj1 = 0 ; | |
8501 | char *kwnames[] = { | |
8502 | (char *) "self",(char *) "facename", NULL | |
8503 | }; | |
8504 | ||
8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8507 | if (obj1) { | |
8508 | { | |
8509 | arg2 = wxString_in_helper(obj1); | |
8510 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8511 | temp2 = True; |
d14a1e28 RD |
8512 | } |
8513 | } | |
8514 | { | |
8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8516 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8517 | ||
8518 | wxPyEndAllowThreads(__tstate); | |
8519 | if (PyErr_Occurred()) SWIG_fail; | |
8520 | } | |
02a34c4c | 8521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8522 | { |
8523 | if (temp2) | |
8524 | delete arg2; | |
8525 | } | |
8526 | return resultobj; | |
8527 | fail: | |
8528 | { | |
8529 | if (temp2) | |
8530 | delete arg2; | |
8531 | } | |
8532 | return NULL; | |
8533 | } | |
8534 | ||
8535 | ||
8536 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8537 | PyObject *resultobj; | |
8538 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8539 | PyObject *result; | |
8540 | PyObject * obj0 = 0 ; | |
8541 | char *kwnames[] = { | |
8542 | (char *) "self", NULL | |
8543 | }; | |
8544 | ||
8545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8547 | { | |
8548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8549 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8550 | ||
8551 | wxPyEndAllowThreads(__tstate); | |
8552 | if (PyErr_Occurred()) SWIG_fail; | |
8553 | } | |
8554 | resultobj = result; | |
8555 | return resultobj; | |
8556 | fail: | |
8557 | return NULL; | |
8558 | } | |
8559 | ||
8560 | ||
8561 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8562 | PyObject *resultobj; | |
8563 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8564 | PyObject *result; | |
8565 | PyObject * obj0 = 0 ; | |
8566 | char *kwnames[] = { | |
8567 | (char *) "self", NULL | |
8568 | }; | |
8569 | ||
8570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8572 | { | |
8573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8574 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8575 | ||
8576 | wxPyEndAllowThreads(__tstate); | |
8577 | if (PyErr_Occurred()) SWIG_fail; | |
8578 | } | |
8579 | resultobj = result; | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
8586 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8587 | PyObject *obj; | |
8588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8589 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8590 | Py_INCREF(obj); | |
8591 | return Py_BuildValue((char *)""); | |
8592 | } | |
8593 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8594 | PyObject *resultobj; | |
8595 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8596 | int arg2 ; | |
8597 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8598 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8599 | char *kwnames[] = { |
8600 | (char *) "self",(char *) "Language", NULL | |
8601 | }; | |
8602 | ||
8edf1c75 | 8603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8605 | { |
8606 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8607 | if (PyErr_Occurred()) SWIG_fail; | |
8608 | } | |
d14a1e28 RD |
8609 | if (arg1) (arg1)->Language = arg2; |
8610 | ||
8611 | Py_INCREF(Py_None); resultobj = Py_None; | |
8612 | return resultobj; | |
8613 | fail: | |
8614 | return NULL; | |
8615 | } | |
8616 | ||
8617 | ||
8618 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8619 | PyObject *resultobj; | |
8620 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8621 | int result; | |
8622 | PyObject * obj0 = 0 ; | |
8623 | char *kwnames[] = { | |
8624 | (char *) "self", NULL | |
8625 | }; | |
8626 | ||
8627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8629 | result = (int) ((arg1)->Language); | |
8630 | ||
8edf1c75 | 8631 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8632 | return resultobj; |
8633 | fail: | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
8638 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8639 | PyObject *resultobj; | |
8640 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8641 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 8642 | bool temp2 = False ; |
d14a1e28 RD |
8643 | PyObject * obj0 = 0 ; |
8644 | PyObject * obj1 = 0 ; | |
8645 | char *kwnames[] = { | |
8646 | (char *) "self",(char *) "CanonicalName", NULL | |
8647 | }; | |
8648 | ||
8649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
8651 | { |
8652 | arg2 = wxString_in_helper(obj1); | |
8653 | if (arg2 == NULL) SWIG_fail; | |
8654 | temp2 = True; | |
8655 | } | |
cbd72d4f | 8656 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8657 | |
8658 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
8659 | { |
8660 | if (temp2) | |
8661 | delete arg2; | |
8662 | } | |
d14a1e28 RD |
8663 | return resultobj; |
8664 | fail: | |
dae0faa6 RD |
8665 | { |
8666 | if (temp2) | |
8667 | delete arg2; | |
8668 | } | |
d14a1e28 RD |
8669 | return NULL; |
8670 | } | |
8671 | ||
8672 | ||
8673 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8674 | PyObject *resultobj; | |
8675 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8676 | wxString *result; |
d14a1e28 RD |
8677 | PyObject * obj0 = 0 ; |
8678 | char *kwnames[] = { | |
8679 | (char *) "self", NULL | |
8680 | }; | |
8681 | ||
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 8684 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8685 | |
8686 | { | |
8687 | #if wxUSE_UNICODE | |
cbd72d4f | 8688 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8689 | #else |
cbd72d4f | 8690 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8691 | #endif |
8692 | } | |
8693 | return resultobj; | |
8694 | fail: | |
8695 | return NULL; | |
8696 | } | |
8697 | ||
8698 | ||
8699 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8700 | PyObject *resultobj; | |
8701 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8702 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 8703 | bool temp2 = False ; |
d14a1e28 RD |
8704 | PyObject * obj0 = 0 ; |
8705 | PyObject * obj1 = 0 ; | |
8706 | char *kwnames[] = { | |
8707 | (char *) "self",(char *) "Description", NULL | |
8708 | }; | |
8709 | ||
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
8712 | { |
8713 | arg2 = wxString_in_helper(obj1); | |
8714 | if (arg2 == NULL) SWIG_fail; | |
8715 | temp2 = True; | |
8716 | } | |
cbd72d4f | 8717 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8718 | |
8719 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
8720 | { |
8721 | if (temp2) | |
8722 | delete arg2; | |
8723 | } | |
d14a1e28 RD |
8724 | return resultobj; |
8725 | fail: | |
dae0faa6 RD |
8726 | { |
8727 | if (temp2) | |
8728 | delete arg2; | |
8729 | } | |
d14a1e28 RD |
8730 | return NULL; |
8731 | } | |
8732 | ||
8733 | ||
8734 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8735 | PyObject *resultobj; | |
8736 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8737 | wxString *result; |
d14a1e28 RD |
8738 | PyObject * obj0 = 0 ; |
8739 | char *kwnames[] = { | |
8740 | (char *) "self", NULL | |
8741 | }; | |
8742 | ||
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 8745 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8746 | |
8747 | { | |
8748 | #if wxUSE_UNICODE | |
cbd72d4f | 8749 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8750 | #else |
cbd72d4f | 8751 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8752 | #endif |
8753 | } | |
8754 | return resultobj; | |
8755 | fail: | |
8756 | return NULL; | |
8757 | } | |
8758 | ||
8759 | ||
8760 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8761 | PyObject *obj; | |
8762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8763 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8764 | Py_INCREF(obj); | |
8765 | return Py_BuildValue((char *)""); | |
8766 | } | |
8767 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8768 | PyObject *resultobj; | |
8769 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8770 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8771 | wxLocale *result; | |
8edf1c75 RD |
8772 | PyObject * obj0 = 0 ; |
8773 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8774 | char *kwnames[] = { |
8775 | (char *) "language",(char *) "flags", NULL | |
8776 | }; | |
8777 | ||
8edf1c75 RD |
8778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
8779 | if (obj0) { | |
8780 | { | |
8781 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8782 | if (PyErr_Occurred()) SWIG_fail; | |
8783 | } | |
8784 | } | |
8785 | if (obj1) { | |
8786 | { | |
8787 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8788 | if (PyErr_Occurred()) SWIG_fail; | |
8789 | } | |
8790 | } | |
d14a1e28 RD |
8791 | { |
8792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8793 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8794 | ||
8795 | wxPyEndAllowThreads(__tstate); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | } | |
8798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8799 | return resultobj; | |
8800 | fail: | |
8801 | return NULL; | |
8802 | } | |
8803 | ||
8804 | ||
8805 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8806 | PyObject *resultobj; | |
8807 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8808 | PyObject * obj0 = 0 ; | |
8809 | char *kwnames[] = { | |
8810 | (char *) "self", NULL | |
8811 | }; | |
8812 | ||
8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8815 | { | |
8816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8817 | delete arg1; | |
8818 | ||
8819 | wxPyEndAllowThreads(__tstate); | |
8820 | if (PyErr_Occurred()) SWIG_fail; | |
8821 | } | |
8822 | Py_INCREF(Py_None); resultobj = Py_None; | |
8823 | return resultobj; | |
8824 | fail: | |
8825 | return NULL; | |
8826 | } | |
8827 | ||
8828 | ||
8829 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject *resultobj; | |
8831 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8832 | wxString *arg2 = 0 ; | |
8833 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8834 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8835 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8836 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
8837 | bool arg5 = (bool) True ; |
8838 | bool arg6 = (bool) False ; | |
d14a1e28 | 8839 | bool result; |
423f194a RD |
8840 | bool temp2 = False ; |
8841 | bool temp3 = False ; | |
8842 | bool temp4 = False ; | |
d14a1e28 RD |
8843 | PyObject * obj0 = 0 ; |
8844 | PyObject * obj1 = 0 ; | |
8845 | PyObject * obj2 = 0 ; | |
8846 | PyObject * obj3 = 0 ; | |
8847 | PyObject * obj4 = 0 ; | |
8848 | PyObject * obj5 = 0 ; | |
8849 | char *kwnames[] = { | |
8850 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8851 | }; | |
8852 | ||
8853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8855 | { | |
8856 | arg2 = wxString_in_helper(obj1); | |
8857 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8858 | temp2 = True; |
d14a1e28 RD |
8859 | } |
8860 | if (obj2) { | |
8861 | { | |
8862 | arg3 = wxString_in_helper(obj2); | |
8863 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8864 | temp3 = True; |
d14a1e28 RD |
8865 | } |
8866 | } | |
8867 | if (obj3) { | |
8868 | { | |
8869 | arg4 = wxString_in_helper(obj3); | |
8870 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8871 | temp4 = True; |
d14a1e28 RD |
8872 | } |
8873 | } | |
8874 | if (obj4) { | |
2dbef272 | 8875 | { |
8edf1c75 | 8876 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
2dbef272 RD |
8877 | if (PyErr_Occurred()) SWIG_fail; |
8878 | } | |
d14a1e28 RD |
8879 | } |
8880 | if (obj5) { | |
2dbef272 | 8881 | { |
8edf1c75 | 8882 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
2dbef272 RD |
8883 | if (PyErr_Occurred()) SWIG_fail; |
8884 | } | |
d14a1e28 RD |
8885 | } |
8886 | { | |
8887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8888 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8889 | ||
8890 | wxPyEndAllowThreads(__tstate); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | } | |
02a34c4c | 8893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8894 | { |
8895 | if (temp2) | |
8896 | delete arg2; | |
8897 | } | |
8898 | { | |
8899 | if (temp3) | |
8900 | delete arg3; | |
8901 | } | |
8902 | { | |
8903 | if (temp4) | |
8904 | delete arg4; | |
8905 | } | |
8906 | return resultobj; | |
8907 | fail: | |
8908 | { | |
8909 | if (temp2) | |
8910 | delete arg2; | |
8911 | } | |
8912 | { | |
8913 | if (temp3) | |
8914 | delete arg3; | |
8915 | } | |
8916 | { | |
8917 | if (temp4) | |
8918 | delete arg4; | |
8919 | } | |
8920 | return NULL; | |
8921 | } | |
8922 | ||
8923 | ||
8924 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8925 | PyObject *resultobj; | |
8926 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8927 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8928 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8929 | bool result; | |
8930 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8931 | PyObject * obj1 = 0 ; |
8932 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8933 | char *kwnames[] = { |
8934 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8935 | }; | |
8936 | ||
8edf1c75 | 8937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8939 | if (obj1) { |
8940 | { | |
8941 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8942 | if (PyErr_Occurred()) SWIG_fail; | |
8943 | } | |
8944 | } | |
8945 | if (obj2) { | |
8946 | { | |
8947 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8948 | if (PyErr_Occurred()) SWIG_fail; | |
8949 | } | |
8950 | } | |
d14a1e28 RD |
8951 | { |
8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8953 | result = (bool)(arg1)->Init(arg2,arg3); | |
8954 | ||
8955 | wxPyEndAllowThreads(__tstate); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | } | |
02a34c4c | 8958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8959 | return resultobj; |
8960 | fail: | |
8961 | return NULL; | |
8962 | } | |
8963 | ||
8964 | ||
8965 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8966 | PyObject *resultobj; | |
8967 | int result; | |
8968 | char *kwnames[] = { | |
8969 | NULL | |
8970 | }; | |
8971 | ||
8972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8973 | { | |
8974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8975 | result = (int)wxLocale::GetSystemLanguage(); | |
8976 | ||
8977 | wxPyEndAllowThreads(__tstate); | |
8978 | if (PyErr_Occurred()) SWIG_fail; | |
8979 | } | |
8edf1c75 | 8980 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8981 | return resultobj; |
8982 | fail: | |
8983 | return NULL; | |
8984 | } | |
8985 | ||
8986 | ||
8987 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8988 | PyObject *resultobj; | |
8989 | int result; | |
8990 | char *kwnames[] = { | |
8991 | NULL | |
8992 | }; | |
8993 | ||
8994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8995 | { | |
8996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8997 | result = (int)wxLocale::GetSystemEncoding(); | |
8998 | ||
8999 | wxPyEndAllowThreads(__tstate); | |
9000 | if (PyErr_Occurred()) SWIG_fail; | |
9001 | } | |
8edf1c75 | 9002 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9003 | return resultobj; |
9004 | fail: | |
9005 | return NULL; | |
9006 | } | |
9007 | ||
9008 | ||
9009 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9010 | PyObject *resultobj; | |
9011 | wxString result; | |
9012 | char *kwnames[] = { | |
9013 | NULL | |
9014 | }; | |
9015 | ||
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9017 | { | |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | result = wxLocale::GetSystemEncodingName(); | |
9020 | ||
9021 | wxPyEndAllowThreads(__tstate); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
9024 | { | |
9025 | #if wxUSE_UNICODE | |
9026 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9027 | #else | |
9028 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9029 | #endif | |
9030 | } | |
9031 | return resultobj; | |
9032 | fail: | |
9033 | return NULL; | |
9034 | } | |
9035 | ||
9036 | ||
9037 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9038 | PyObject *resultobj; | |
9039 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9040 | bool result; | |
9041 | PyObject * obj0 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "self", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9048 | { | |
9049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9050 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9051 | ||
9052 | wxPyEndAllowThreads(__tstate); | |
9053 | if (PyErr_Occurred()) SWIG_fail; | |
9054 | } | |
02a34c4c | 9055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9056 | return resultobj; |
9057 | fail: | |
9058 | return NULL; | |
9059 | } | |
9060 | ||
9061 | ||
9062 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9063 | PyObject *resultobj; | |
9064 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9065 | wxString result; | |
9066 | PyObject * obj0 = 0 ; | |
9067 | char *kwnames[] = { | |
9068 | (char *) "self", NULL | |
9069 | }; | |
9070 | ||
9071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
9072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9076 | ||
9077 | wxPyEndAllowThreads(__tstate); | |
9078 | if (PyErr_Occurred()) SWIG_fail; | |
9079 | } | |
9080 | { | |
9081 | #if wxUSE_UNICODE | |
9082 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9083 | #else | |
9084 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9085 | #endif | |
9086 | } | |
9087 | return resultobj; | |
9088 | fail: | |
9089 | return NULL; | |
9090 | } | |
9091 | ||
9092 | ||
9093 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9094 | PyObject *resultobj; | |
9095 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9096 | int result; | |
9097 | PyObject * obj0 = 0 ; | |
9098 | char *kwnames[] = { | |
9099 | (char *) "self", NULL | |
9100 | }; | |
9101 | ||
9102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9104 | { | |
9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9106 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9107 | ||
9108 | wxPyEndAllowThreads(__tstate); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | } | |
8edf1c75 | 9111 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9112 | return resultobj; |
9113 | fail: | |
9114 | return NULL; | |
9115 | } | |
9116 | ||
9117 | ||
9118 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9119 | PyObject *resultobj; | |
9120 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9121 | wxString result; | |
9122 | PyObject * obj0 = 0 ; | |
9123 | char *kwnames[] = { | |
9124 | (char *) "self", NULL | |
9125 | }; | |
9126 | ||
9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
9136 | { | |
9137 | #if wxUSE_UNICODE | |
9138 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9139 | #else | |
9140 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9141 | #endif | |
9142 | } | |
9143 | return resultobj; | |
9144 | fail: | |
9145 | return NULL; | |
9146 | } | |
9147 | ||
9148 | ||
9149 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9150 | PyObject *resultobj; | |
9151 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9152 | wxString result; | |
9153 | PyObject * obj0 = 0 ; | |
9154 | char *kwnames[] = { | |
9155 | (char *) "self", NULL | |
9156 | }; | |
9157 | ||
9158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9160 | { | |
9161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9162 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9163 | ||
9164 | wxPyEndAllowThreads(__tstate); | |
9165 | if (PyErr_Occurred()) SWIG_fail; | |
9166 | } | |
9167 | { | |
9168 | #if wxUSE_UNICODE | |
9169 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9170 | #else | |
9171 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9172 | #endif | |
9173 | } | |
9174 | return resultobj; | |
9175 | fail: | |
9176 | return NULL; | |
9177 | } | |
9178 | ||
9179 | ||
9180 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9181 | PyObject *resultobj; | |
9182 | wxString *arg1 = 0 ; | |
423f194a | 9183 | bool temp1 = False ; |
d14a1e28 RD |
9184 | PyObject * obj0 = 0 ; |
9185 | char *kwnames[] = { | |
9186 | (char *) "prefix", NULL | |
9187 | }; | |
9188 | ||
9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9190 | { | |
9191 | arg1 = wxString_in_helper(obj0); | |
9192 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9193 | temp1 = True; |
d14a1e28 RD |
9194 | } |
9195 | { | |
9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9197 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9198 | ||
9199 | wxPyEndAllowThreads(__tstate); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
9202 | Py_INCREF(Py_None); resultobj = Py_None; | |
9203 | { | |
9204 | if (temp1) | |
9205 | delete arg1; | |
9206 | } | |
9207 | return resultobj; | |
9208 | fail: | |
9209 | { | |
9210 | if (temp1) | |
9211 | delete arg1; | |
9212 | } | |
9213 | return NULL; | |
9214 | } | |
9215 | ||
9216 | ||
9217 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9218 | PyObject *resultobj; | |
9219 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9220 | wxString *arg2 = 0 ; | |
9221 | bool result; | |
423f194a | 9222 | bool temp2 = False ; |
d14a1e28 RD |
9223 | PyObject * obj0 = 0 ; |
9224 | PyObject * obj1 = 0 ; | |
9225 | char *kwnames[] = { | |
9226 | (char *) "self",(char *) "szDomain", NULL | |
9227 | }; | |
9228 | ||
9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9231 | { | |
9232 | arg2 = wxString_in_helper(obj1); | |
9233 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9234 | temp2 = True; |
d14a1e28 RD |
9235 | } |
9236 | { | |
9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9238 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9239 | ||
9240 | wxPyEndAllowThreads(__tstate); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
9242 | } | |
02a34c4c | 9243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9244 | { |
9245 | if (temp2) | |
9246 | delete arg2; | |
9247 | } | |
9248 | return resultobj; | |
9249 | fail: | |
9250 | { | |
9251 | if (temp2) | |
9252 | delete arg2; | |
9253 | } | |
9254 | return NULL; | |
9255 | } | |
9256 | ||
9257 | ||
9258 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9259 | PyObject *resultobj; | |
9260 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9261 | wxString *arg2 = 0 ; | |
9262 | bool result; | |
423f194a | 9263 | bool temp2 = False ; |
d14a1e28 RD |
9264 | PyObject * obj0 = 0 ; |
9265 | PyObject * obj1 = 0 ; | |
9266 | char *kwnames[] = { | |
9267 | (char *) "self",(char *) "szDomain", NULL | |
9268 | }; | |
9269 | ||
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9272 | { | |
9273 | arg2 = wxString_in_helper(obj1); | |
9274 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9275 | temp2 = True; |
d14a1e28 RD |
9276 | } |
9277 | { | |
9278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9279 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9280 | ||
9281 | wxPyEndAllowThreads(__tstate); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | } | |
02a34c4c | 9284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9285 | { |
9286 | if (temp2) | |
9287 | delete arg2; | |
9288 | } | |
9289 | return resultobj; | |
9290 | fail: | |
9291 | { | |
9292 | if (temp2) | |
9293 | delete arg2; | |
9294 | } | |
9295 | return NULL; | |
9296 | } | |
9297 | ||
9298 | ||
9299 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9300 | PyObject *resultobj; | |
9301 | int arg1 ; | |
9302 | wxLanguageInfo *result; | |
8edf1c75 | 9303 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9304 | char *kwnames[] = { |
9305 | (char *) "lang", NULL | |
9306 | }; | |
9307 | ||
8edf1c75 RD |
9308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
9309 | { | |
9310 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9311 | if (PyErr_Occurred()) SWIG_fail; | |
9312 | } | |
d14a1e28 RD |
9313 | { |
9314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9315 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9316 | ||
9317 | wxPyEndAllowThreads(__tstate); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9321 | return resultobj; | |
9322 | fail: | |
9323 | return NULL; | |
9324 | } | |
9325 | ||
9326 | ||
9327 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9328 | PyObject *resultobj; | |
9329 | int arg1 ; | |
9330 | wxString result; | |
8edf1c75 | 9331 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9332 | char *kwnames[] = { |
9333 | (char *) "lang", NULL | |
9334 | }; | |
9335 | ||
8edf1c75 RD |
9336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
9337 | { | |
9338 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
d14a1e28 RD |
9341 | { |
9342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9343 | result = wxLocale::GetLanguageName(arg1); | |
9344 | ||
9345 | wxPyEndAllowThreads(__tstate); | |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
9347 | } | |
9348 | { | |
9349 | #if wxUSE_UNICODE | |
9350 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9351 | #else | |
9352 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9353 | #endif | |
9354 | } | |
9355 | return resultobj; | |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | wxString *arg1 = 0 ; | |
9364 | wxLanguageInfo *result; | |
423f194a | 9365 | bool temp1 = False ; |
d14a1e28 RD |
9366 | PyObject * obj0 = 0 ; |
9367 | char *kwnames[] = { | |
9368 | (char *) "locale", NULL | |
9369 | }; | |
9370 | ||
9371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9372 | { | |
9373 | arg1 = wxString_in_helper(obj0); | |
9374 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9375 | temp1 = True; |
d14a1e28 RD |
9376 | } |
9377 | { | |
9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9379 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9380 | ||
9381 | wxPyEndAllowThreads(__tstate); | |
9382 | if (PyErr_Occurred()) SWIG_fail; | |
9383 | } | |
9384 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9385 | { | |
9386 | if (temp1) | |
9387 | delete arg1; | |
9388 | } | |
9389 | return resultobj; | |
9390 | fail: | |
9391 | { | |
9392 | if (temp1) | |
9393 | delete arg1; | |
9394 | } | |
9395 | return NULL; | |
9396 | } | |
9397 | ||
9398 | ||
9399 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9400 | PyObject *resultobj; | |
9401 | wxLanguageInfo *arg1 = 0 ; | |
9402 | PyObject * obj0 = 0 ; | |
9403 | char *kwnames[] = { | |
9404 | (char *) "info", NULL | |
9405 | }; | |
9406 | ||
9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
9408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9409 | if (arg1 == NULL) { | |
9410 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9411 | } | |
9412 | { | |
9413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9414 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9415 | ||
9416 | wxPyEndAllowThreads(__tstate); | |
9417 | if (PyErr_Occurred()) SWIG_fail; | |
9418 | } | |
9419 | Py_INCREF(Py_None); resultobj = Py_None; | |
9420 | return resultobj; | |
9421 | fail: | |
9422 | return NULL; | |
9423 | } | |
9424 | ||
9425 | ||
9426 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9427 | PyObject *resultobj; | |
9428 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9429 | wxString *arg2 = 0 ; | |
9430 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9431 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9432 | wxString result; | |
423f194a RD |
9433 | bool temp2 = False ; |
9434 | bool temp3 = False ; | |
d14a1e28 RD |
9435 | PyObject * obj0 = 0 ; |
9436 | PyObject * obj1 = 0 ; | |
9437 | PyObject * obj2 = 0 ; | |
9438 | char *kwnames[] = { | |
9439 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9440 | }; | |
9441 | ||
9442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9444 | { | |
9445 | arg2 = wxString_in_helper(obj1); | |
9446 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9447 | temp2 = True; |
d14a1e28 RD |
9448 | } |
9449 | if (obj2) { | |
9450 | { | |
9451 | arg3 = wxString_in_helper(obj2); | |
9452 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9453 | temp3 = True; |
d14a1e28 RD |
9454 | } |
9455 | } | |
9456 | { | |
9457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9458 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9459 | ||
9460 | wxPyEndAllowThreads(__tstate); | |
9461 | if (PyErr_Occurred()) SWIG_fail; | |
9462 | } | |
9463 | { | |
9464 | #if wxUSE_UNICODE | |
9465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9466 | #else | |
9467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9468 | #endif | |
9469 | } | |
9470 | { | |
9471 | if (temp2) | |
9472 | delete arg2; | |
9473 | } | |
9474 | { | |
9475 | if (temp3) | |
9476 | delete arg3; | |
9477 | } | |
9478 | return resultobj; | |
9479 | fail: | |
9480 | { | |
9481 | if (temp2) | |
9482 | delete arg2; | |
9483 | } | |
9484 | { | |
9485 | if (temp3) | |
9486 | delete arg3; | |
9487 | } | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
9492 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject *resultobj; | |
9494 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9495 | wxString *result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | char *kwnames[] = { | |
9498 | (char *) "self", NULL | |
9499 | }; | |
9500 | ||
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9503 | { | |
9504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9505 | { | |
9506 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9507 | result = (wxString *) &_result_ref; | |
9508 | } | |
9509 | ||
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
0f774bef RD |
9513 | { |
9514 | #if wxUSE_UNICODE | |
9515 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9516 | #else | |
9517 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9518 | #endif | |
9519 | } | |
d14a1e28 RD |
9520 | return resultobj; |
9521 | fail: | |
9522 | return NULL; | |
9523 | } | |
9524 | ||
9525 | ||
9526 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9527 | PyObject *obj; | |
9528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9529 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9530 | Py_INCREF(obj); | |
9531 | return Py_BuildValue((char *)""); | |
9532 | } | |
9533 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9534 | PyObject *resultobj; | |
9535 | wxLocale *result; | |
9536 | char *kwnames[] = { | |
9537 | NULL | |
9538 | }; | |
9539 | ||
9540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9541 | { | |
9542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9543 | result = (wxLocale *)wxGetLocale(); | |
9544 | ||
9545 | wxPyEndAllowThreads(__tstate); | |
9546 | if (PyErr_Occurred()) SWIG_fail; | |
9547 | } | |
9548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9549 | return resultobj; | |
9550 | fail: | |
9551 | return NULL; | |
9552 | } | |
9553 | ||
9554 | ||
9555 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9556 | PyObject *resultobj; | |
9557 | wxString *arg1 = 0 ; | |
9558 | wxString result; | |
423f194a | 9559 | bool temp1 = False ; |
d14a1e28 RD |
9560 | PyObject * obj0 = 0 ; |
9561 | ||
9562 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9563 | { | |
9564 | arg1 = wxString_in_helper(obj0); | |
9565 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9566 | temp1 = True; |
d14a1e28 RD |
9567 | } |
9568 | { | |
9569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9570 | result = wxGetTranslation((wxString const &)*arg1); | |
9571 | ||
9572 | wxPyEndAllowThreads(__tstate); | |
9573 | if (PyErr_Occurred()) SWIG_fail; | |
9574 | } | |
9575 | { | |
9576 | #if wxUSE_UNICODE | |
9577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9578 | #else | |
9579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9580 | #endif | |
9581 | } | |
9582 | { | |
9583 | if (temp1) | |
9584 | delete arg1; | |
9585 | } | |
9586 | return resultobj; | |
9587 | fail: | |
9588 | { | |
9589 | if (temp1) | |
9590 | delete arg1; | |
9591 | } | |
9592 | return NULL; | |
9593 | } | |
9594 | ||
9595 | ||
9596 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9597 | PyObject *resultobj; | |
9598 | wxString *arg1 = 0 ; | |
9599 | wxString *arg2 = 0 ; | |
9600 | size_t arg3 ; | |
9601 | wxString result; | |
423f194a RD |
9602 | bool temp1 = False ; |
9603 | bool temp2 = False ; | |
d14a1e28 RD |
9604 | PyObject * obj0 = 0 ; |
9605 | PyObject * obj1 = 0 ; | |
9606 | PyObject * obj2 = 0 ; | |
9607 | ||
9608 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9609 | { | |
9610 | arg1 = wxString_in_helper(obj0); | |
9611 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9612 | temp1 = True; |
d14a1e28 RD |
9613 | } |
9614 | { | |
9615 | arg2 = wxString_in_helper(obj1); | |
9616 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9617 | temp2 = True; |
d14a1e28 | 9618 | } |
2dbef272 | 9619 | { |
8edf1c75 | 9620 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
9621 | if (PyErr_Occurred()) SWIG_fail; |
9622 | } | |
d14a1e28 RD |
9623 | { |
9624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9625 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9626 | ||
9627 | wxPyEndAllowThreads(__tstate); | |
9628 | if (PyErr_Occurred()) SWIG_fail; | |
9629 | } | |
9630 | { | |
9631 | #if wxUSE_UNICODE | |
9632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9633 | #else | |
9634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9635 | #endif | |
9636 | } | |
9637 | { | |
9638 | if (temp1) | |
9639 | delete arg1; | |
9640 | } | |
9641 | { | |
9642 | if (temp2) | |
9643 | delete arg2; | |
9644 | } | |
9645 | return resultobj; | |
9646 | fail: | |
9647 | { | |
9648 | if (temp1) | |
9649 | delete arg1; | |
9650 | } | |
9651 | { | |
9652 | if (temp2) | |
9653 | delete arg2; | |
9654 | } | |
9655 | return NULL; | |
9656 | } | |
9657 | ||
9658 | ||
9659 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9660 | int argc; | |
9661 | PyObject *argv[4]; | |
9662 | int ii; | |
9663 | ||
9664 | argc = PyObject_Length(args); | |
9665 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9666 | argv[ii] = PyTuple_GetItem(args,ii); | |
9667 | } | |
9668 | if (argc == 1) { | |
9669 | int _v; | |
9670 | { | |
02a34c4c | 9671 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9672 | } |
9673 | if (_v) { | |
9674 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9675 | } | |
9676 | } | |
9677 | if (argc == 3) { | |
9678 | int _v; | |
9679 | { | |
02a34c4c | 9680 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9681 | } |
9682 | if (_v) { | |
9683 | { | |
02a34c4c | 9684 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
9685 | } |
9686 | if (_v) { | |
9687 | { | |
8edf1c75 | 9688 | SWIG_PyObj_AsUnsignedLong(argv[2]); |
2dbef272 RD |
9689 | if (PyErr_Occurred()) { |
9690 | _v = 0; | |
9691 | PyErr_Clear(); | |
9692 | } else { | |
9693 | _v = 1; | |
9694 | } | |
d14a1e28 RD |
9695 | } |
9696 | if (_v) { | |
9697 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9698 | } | |
9699 | } | |
9700 | } | |
9701 | } | |
9702 | ||
9703 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9704 | return NULL; | |
9705 | } | |
9706 | ||
9707 | ||
9708 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9709 | PyObject *resultobj; | |
9710 | wxEncodingConverter *result; | |
9711 | char *kwnames[] = { | |
9712 | NULL | |
9713 | }; | |
9714 | ||
9715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9716 | { | |
9717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9718 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9719 | ||
9720 | wxPyEndAllowThreads(__tstate); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
9723 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9724 | return resultobj; | |
9725 | fail: | |
9726 | return NULL; | |
9727 | } | |
9728 | ||
9729 | ||
9730 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9731 | PyObject *resultobj; | |
9732 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9733 | PyObject * obj0 = 0 ; | |
9734 | char *kwnames[] = { | |
9735 | (char *) "self", NULL | |
9736 | }; | |
9737 | ||
9738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9740 | { | |
9741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9742 | delete arg1; | |
9743 | ||
9744 | wxPyEndAllowThreads(__tstate); | |
9745 | if (PyErr_Occurred()) SWIG_fail; | |
9746 | } | |
9747 | Py_INCREF(Py_None); resultobj = Py_None; | |
9748 | return resultobj; | |
9749 | fail: | |
9750 | return NULL; | |
9751 | } | |
9752 | ||
9753 | ||
9754 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9755 | PyObject *resultobj; | |
9756 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9757 | int arg2 ; | |
9758 | int arg3 ; | |
9759 | int arg4 = (int) wxCONVERT_STRICT ; | |
9760 | bool result; | |
9761 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9762 | PyObject * obj1 = 0 ; |
9763 | PyObject * obj2 = 0 ; | |
9764 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9765 | char *kwnames[] = { |
9766 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9767 | }; | |
9768 | ||
8edf1c75 | 9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 9770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9771 | { |
9772 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9773 | if (PyErr_Occurred()) SWIG_fail; | |
9774 | } | |
9775 | { | |
9776 | arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2); | |
9777 | if (PyErr_Occurred()) SWIG_fail; | |
9778 | } | |
9779 | if (obj3) { | |
9780 | { | |
9781 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9782 | if (PyErr_Occurred()) SWIG_fail; | |
9783 | } | |
9784 | } | |
d14a1e28 RD |
9785 | { |
9786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9787 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9788 | ||
9789 | wxPyEndAllowThreads(__tstate); | |
9790 | if (PyErr_Occurred()) SWIG_fail; | |
9791 | } | |
02a34c4c | 9792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9793 | return resultobj; |
9794 | fail: | |
9795 | return NULL; | |
9796 | } | |
9797 | ||
9798 | ||
9799 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9800 | PyObject *resultobj; | |
9801 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9802 | wxString *arg2 = 0 ; | |
9803 | wxString result; | |
423f194a | 9804 | bool temp2 = False ; |
d14a1e28 RD |
9805 | PyObject * obj0 = 0 ; |
9806 | PyObject * obj1 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self",(char *) "input", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9813 | { | |
9814 | arg2 = wxString_in_helper(obj1); | |
9815 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9816 | temp2 = True; |
d14a1e28 RD |
9817 | } |
9818 | { | |
9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9820 | result = (arg1)->Convert((wxString const &)*arg2); | |
9821 | ||
9822 | wxPyEndAllowThreads(__tstate); | |
9823 | if (PyErr_Occurred()) SWIG_fail; | |
9824 | } | |
9825 | { | |
9826 | #if wxUSE_UNICODE | |
9827 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9828 | #else | |
9829 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9830 | #endif | |
9831 | } | |
9832 | { | |
9833 | if (temp2) | |
9834 | delete arg2; | |
9835 | } | |
9836 | return resultobj; | |
9837 | fail: | |
9838 | { | |
9839 | if (temp2) | |
9840 | delete arg2; | |
9841 | } | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
9846 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9847 | PyObject *resultobj; | |
9848 | int arg1 ; | |
9849 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9850 | wxFontEncodingArray result; | |
8edf1c75 RD |
9851 | PyObject * obj0 = 0 ; |
9852 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9853 | char *kwnames[] = { |
9854 | (char *) "enc",(char *) "platform", NULL | |
9855 | }; | |
9856 | ||
8edf1c75 RD |
9857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
9858 | { | |
9859 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9860 | if (PyErr_Occurred()) SWIG_fail; | |
9861 | } | |
9862 | if (obj1) { | |
9863 | { | |
9864 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9865 | if (PyErr_Occurred()) SWIG_fail; | |
9866 | } | |
9867 | } | |
d14a1e28 RD |
9868 | { |
9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9870 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9871 | ||
9872 | wxPyEndAllowThreads(__tstate); | |
9873 | if (PyErr_Occurred()) SWIG_fail; | |
9874 | } | |
9875 | { | |
9876 | resultobj = PyList_New(0); | |
9877 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9878 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9879 | PyList_Append(resultobj, number); | |
9880 | Py_DECREF(number); | |
9881 | } | |
9882 | } | |
9883 | return resultobj; | |
9884 | fail: | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
9889 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9890 | PyObject *resultobj; | |
9891 | int arg1 ; | |
9892 | wxFontEncodingArray result; | |
8edf1c75 | 9893 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9894 | char *kwnames[] = { |
9895 | (char *) "enc", NULL | |
9896 | }; | |
9897 | ||
8edf1c75 RD |
9898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
9899 | { | |
9900 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9901 | if (PyErr_Occurred()) SWIG_fail; | |
9902 | } | |
d14a1e28 RD |
9903 | { |
9904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9905 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9906 | ||
9907 | wxPyEndAllowThreads(__tstate); | |
9908 | if (PyErr_Occurred()) SWIG_fail; | |
9909 | } | |
9910 | { | |
9911 | resultobj = PyList_New(0); | |
9912 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9913 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9914 | PyList_Append(resultobj, number); | |
9915 | Py_DECREF(number); | |
9916 | } | |
9917 | } | |
9918 | return resultobj; | |
9919 | fail: | |
9920 | return NULL; | |
9921 | } | |
9922 | ||
9923 | ||
9924 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9925 | PyObject *resultobj; | |
9926 | int arg1 ; | |
9927 | int arg2 ; | |
9928 | bool result; | |
8edf1c75 RD |
9929 | PyObject * obj0 = 0 ; |
9930 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9931 | char *kwnames[] = { |
9932 | (char *) "encIn",(char *) "encOut", NULL | |
9933 | }; | |
9934 | ||
8edf1c75 RD |
9935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
9936 | { | |
9937 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | { | |
9941 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9942 | if (PyErr_Occurred()) SWIG_fail; | |
9943 | } | |
d14a1e28 RD |
9944 | { |
9945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9946 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9947 | ||
9948 | wxPyEndAllowThreads(__tstate); | |
9949 | if (PyErr_Occurred()) SWIG_fail; | |
9950 | } | |
02a34c4c | 9951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9952 | return resultobj; |
9953 | fail: | |
9954 | return NULL; | |
9955 | } | |
9956 | ||
9957 | ||
9958 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9959 | PyObject *obj; | |
9960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9961 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9962 | Py_INCREF(obj); | |
9963 | return Py_BuildValue((char *)""); | |
9964 | } | |
9965 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9966 | PyObject *resultobj; | |
9967 | wxDC *arg1 = (wxDC *) 0 ; | |
9968 | PyObject * obj0 = 0 ; | |
9969 | char *kwnames[] = { | |
9970 | (char *) "self", NULL | |
9971 | }; | |
9972 | ||
9973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9977 | delete arg1; | |
9978 | ||
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
9982 | Py_INCREF(Py_None); resultobj = Py_None; | |
9983 | return resultobj; | |
9984 | fail: | |
9985 | return NULL; | |
9986 | } | |
9987 | ||
9988 | ||
9989 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9990 | PyObject *resultobj; | |
9991 | wxDC *arg1 = (wxDC *) 0 ; | |
9992 | PyObject * obj0 = 0 ; | |
9993 | char *kwnames[] = { | |
9994 | (char *) "self", NULL | |
9995 | }; | |
9996 | ||
9997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9999 | { | |
10000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10001 | (arg1)->BeginDrawing(); | |
10002 | ||
10003 | wxPyEndAllowThreads(__tstate); | |
10004 | if (PyErr_Occurred()) SWIG_fail; | |
10005 | } | |
10006 | Py_INCREF(Py_None); resultobj = Py_None; | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | return NULL; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject *resultobj; | |
10015 | wxDC *arg1 = (wxDC *) 0 ; | |
10016 | PyObject * obj0 = 0 ; | |
10017 | char *kwnames[] = { | |
10018 | (char *) "self", NULL | |
10019 | }; | |
10020 | ||
10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | (arg1)->EndDrawing(); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | Py_INCREF(Py_None); resultobj = Py_None; | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject *resultobj; | |
10039 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10040 | int arg2 ; |
10041 | int arg3 ; | |
d14a1e28 RD |
10042 | wxColour *arg4 = 0 ; |
10043 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10044 | bool result; | |
10045 | wxColour temp4 ; | |
10046 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10047 | PyObject * obj1 = 0 ; |
10048 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10049 | PyObject * obj3 = 0 ; |
8edf1c75 | 10050 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10051 | char *kwnames[] = { |
10052 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10053 | }; | |
10054 | ||
8edf1c75 | 10055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10057 | { |
10058 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10059 | if (PyErr_Occurred()) SWIG_fail; | |
10060 | } | |
10061 | { | |
10062 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10063 | if (PyErr_Occurred()) SWIG_fail; | |
10064 | } | |
d14a1e28 RD |
10065 | { |
10066 | arg4 = &temp4; | |
10067 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10068 | } | |
8edf1c75 RD |
10069 | if (obj4) { |
10070 | { | |
10071 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | } | |
d14a1e28 RD |
10075 | { |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10077 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10078 | ||
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | } | |
02a34c4c | 10082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10083 | return resultobj; |
10084 | fail: | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
10089 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10090 | PyObject *resultobj; | |
10091 | wxDC *arg1 = (wxDC *) 0 ; | |
10092 | wxPoint *arg2 = 0 ; | |
10093 | wxColour *arg3 = 0 ; | |
10094 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10095 | bool result; | |
10096 | wxPoint temp2 ; | |
10097 | wxColour temp3 ; | |
10098 | PyObject * obj0 = 0 ; | |
10099 | PyObject * obj1 = 0 ; | |
10100 | PyObject * obj2 = 0 ; | |
8edf1c75 | 10101 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10102 | char *kwnames[] = { |
10103 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10104 | }; | |
10105 | ||
8edf1c75 | 10106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10108 | { | |
10109 | arg2 = &temp2; | |
10110 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10111 | } | |
10112 | { | |
10113 | arg3 = &temp3; | |
10114 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10115 | } | |
8edf1c75 RD |
10116 | if (obj3) { |
10117 | { | |
10118 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10119 | if (PyErr_Occurred()) SWIG_fail; | |
10120 | } | |
10121 | } | |
d14a1e28 RD |
10122 | { |
10123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10124 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10125 | ||
10126 | wxPyEndAllowThreads(__tstate); | |
10127 | if (PyErr_Occurred()) SWIG_fail; | |
10128 | } | |
02a34c4c | 10129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10130 | return resultobj; |
10131 | fail: | |
10132 | return NULL; | |
10133 | } | |
10134 | ||
10135 | ||
10136 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10137 | PyObject *resultobj; | |
10138 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10139 | int arg2 ; |
10140 | int arg3 ; | |
d14a1e28 RD |
10141 | wxColour result; |
10142 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10143 | PyObject * obj1 = 0 ; |
10144 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10145 | char *kwnames[] = { |
10146 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10147 | }; | |
10148 | ||
8edf1c75 | 10149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10151 | { |
10152 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10153 | if (PyErr_Occurred()) SWIG_fail; | |
10154 | } | |
10155 | { | |
10156 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10157 | if (PyErr_Occurred()) SWIG_fail; | |
10158 | } | |
d14a1e28 RD |
10159 | { |
10160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10161 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10162 | ||
10163 | wxPyEndAllowThreads(__tstate); | |
10164 | if (PyErr_Occurred()) SWIG_fail; | |
10165 | } | |
10166 | { | |
10167 | wxColour * resultptr; | |
10168 | resultptr = new wxColour((wxColour &) result); | |
10169 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10170 | } | |
10171 | return resultobj; | |
10172 | fail: | |
10173 | return NULL; | |
10174 | } | |
10175 | ||
10176 | ||
10177 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10178 | PyObject *resultobj; | |
10179 | wxDC *arg1 = (wxDC *) 0 ; | |
10180 | wxPoint *arg2 = 0 ; | |
10181 | wxColour result; | |
10182 | wxPoint temp2 ; | |
10183 | PyObject * obj0 = 0 ; | |
10184 | PyObject * obj1 = 0 ; | |
10185 | char *kwnames[] = { | |
10186 | (char *) "self",(char *) "pt", NULL | |
10187 | }; | |
10188 | ||
10189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
10190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10191 | { | |
10192 | arg2 = &temp2; | |
10193 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10194 | } | |
10195 | { | |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10197 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10198 | ||
10199 | wxPyEndAllowThreads(__tstate); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | } | |
10202 | { | |
10203 | wxColour * resultptr; | |
10204 | resultptr = new wxColour((wxColour &) result); | |
10205 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10206 | } | |
10207 | return resultobj; | |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10216 | int arg2 ; |
10217 | int arg3 ; | |
10218 | int arg4 ; | |
10219 | int arg5 ; | |
d14a1e28 | 10220 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10221 | PyObject * obj1 = 0 ; |
10222 | PyObject * obj2 = 0 ; | |
10223 | PyObject * obj3 = 0 ; | |
10224 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10225 | char *kwnames[] = { |
10226 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10227 | }; | |
10228 | ||
8edf1c75 | 10229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10231 | { |
10232 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
10235 | { | |
10236 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10237 | if (PyErr_Occurred()) SWIG_fail; | |
10238 | } | |
10239 | { | |
10240 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | { | |
10244 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10245 | if (PyErr_Occurred()) SWIG_fail; | |
10246 | } | |
d14a1e28 RD |
10247 | { |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | Py_INCREF(Py_None); resultobj = Py_None; | |
10255 | return resultobj; | |
10256 | fail: | |
10257 | return NULL; | |
10258 | } | |
10259 | ||
10260 | ||
10261 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10262 | PyObject *resultobj; | |
10263 | wxDC *arg1 = (wxDC *) 0 ; | |
10264 | wxPoint *arg2 = 0 ; | |
10265 | wxPoint *arg3 = 0 ; | |
10266 | wxPoint temp2 ; | |
10267 | wxPoint temp3 ; | |
10268 | PyObject * obj0 = 0 ; | |
10269 | PyObject * obj1 = 0 ; | |
10270 | PyObject * obj2 = 0 ; | |
10271 | char *kwnames[] = { | |
10272 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10273 | }; | |
10274 | ||
10275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10277 | { | |
10278 | arg2 = &temp2; | |
10279 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10280 | } | |
10281 | { | |
10282 | arg3 = &temp3; | |
10283 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10284 | } | |
10285 | { | |
10286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10287 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10288 | ||
10289 | wxPyEndAllowThreads(__tstate); | |
10290 | if (PyErr_Occurred()) SWIG_fail; | |
10291 | } | |
10292 | Py_INCREF(Py_None); resultobj = Py_None; | |
10293 | return resultobj; | |
10294 | fail: | |
10295 | return NULL; | |
10296 | } | |
10297 | ||
10298 | ||
10299 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10300 | PyObject *resultobj; | |
10301 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10302 | int arg2 ; |
10303 | int arg3 ; | |
d14a1e28 | 10304 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10305 | PyObject * obj1 = 0 ; |
10306 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10307 | char *kwnames[] = { |
10308 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10309 | }; | |
10310 | ||
8edf1c75 | 10311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10313 | { |
10314 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10315 | if (PyErr_Occurred()) SWIG_fail; | |
10316 | } | |
10317 | { | |
10318 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10319 | if (PyErr_Occurred()) SWIG_fail; | |
10320 | } | |
d14a1e28 RD |
10321 | { |
10322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10323 | (arg1)->CrossHair(arg2,arg3); | |
10324 | ||
10325 | wxPyEndAllowThreads(__tstate); | |
10326 | if (PyErr_Occurred()) SWIG_fail; | |
10327 | } | |
10328 | Py_INCREF(Py_None); resultobj = Py_None; | |
10329 | return resultobj; | |
10330 | fail: | |
10331 | return NULL; | |
10332 | } | |
10333 | ||
10334 | ||
10335 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10336 | PyObject *resultobj; | |
10337 | wxDC *arg1 = (wxDC *) 0 ; | |
10338 | wxPoint *arg2 = 0 ; | |
10339 | wxPoint temp2 ; | |
10340 | PyObject * obj0 = 0 ; | |
10341 | PyObject * obj1 = 0 ; | |
10342 | char *kwnames[] = { | |
10343 | (char *) "self",(char *) "pt", NULL | |
10344 | }; | |
10345 | ||
10346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
10347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10348 | { | |
10349 | arg2 = &temp2; | |
10350 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10351 | } | |
10352 | { | |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10355 | ||
10356 | wxPyEndAllowThreads(__tstate); | |
10357 | if (PyErr_Occurred()) SWIG_fail; | |
10358 | } | |
10359 | Py_INCREF(Py_None); resultobj = Py_None; | |
10360 | return resultobj; | |
10361 | fail: | |
10362 | return NULL; | |
10363 | } | |
10364 | ||
10365 | ||
10366 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10367 | PyObject *resultobj; | |
10368 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10369 | int arg2 ; |
10370 | int arg3 ; | |
10371 | int arg4 ; | |
10372 | int arg5 ; | |
10373 | int arg6 ; | |
10374 | int arg7 ; | |
d14a1e28 | 10375 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10376 | PyObject * obj1 = 0 ; |
10377 | PyObject * obj2 = 0 ; | |
10378 | PyObject * obj3 = 0 ; | |
10379 | PyObject * obj4 = 0 ; | |
10380 | PyObject * obj5 = 0 ; | |
10381 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10382 | char *kwnames[] = { |
10383 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10384 | }; | |
10385 | ||
8edf1c75 | 10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10388 | { |
10389 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10390 | if (PyErr_Occurred()) SWIG_fail; | |
10391 | } | |
10392 | { | |
10393 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10394 | if (PyErr_Occurred()) SWIG_fail; | |
10395 | } | |
10396 | { | |
10397 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
10399 | } | |
10400 | { | |
10401 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
10404 | { | |
10405 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
10406 | if (PyErr_Occurred()) SWIG_fail; | |
10407 | } | |
10408 | { | |
10409 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
d14a1e28 RD |
10412 | { |
10413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10414 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10415 | ||
10416 | wxPyEndAllowThreads(__tstate); | |
10417 | if (PyErr_Occurred()) SWIG_fail; | |
10418 | } | |
10419 | Py_INCREF(Py_None); resultobj = Py_None; | |
10420 | return resultobj; | |
10421 | fail: | |
10422 | return NULL; | |
10423 | } | |
10424 | ||
10425 | ||
10426 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10427 | PyObject *resultobj; | |
10428 | wxDC *arg1 = (wxDC *) 0 ; | |
10429 | wxPoint *arg2 = 0 ; | |
10430 | wxPoint *arg3 = 0 ; | |
10431 | wxPoint *arg4 = 0 ; | |
10432 | wxPoint temp2 ; | |
10433 | wxPoint temp3 ; | |
10434 | wxPoint temp4 ; | |
10435 | PyObject * obj0 = 0 ; | |
10436 | PyObject * obj1 = 0 ; | |
10437 | PyObject * obj2 = 0 ; | |
10438 | PyObject * obj3 = 0 ; | |
10439 | char *kwnames[] = { | |
10440 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10441 | }; | |
10442 | ||
10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10445 | { | |
10446 | arg2 = &temp2; | |
10447 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10448 | } | |
10449 | { | |
10450 | arg3 = &temp3; | |
10451 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10452 | } | |
10453 | { | |
10454 | arg4 = &temp4; | |
10455 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10456 | } | |
10457 | { | |
10458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10459 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10460 | ||
10461 | wxPyEndAllowThreads(__tstate); | |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
10463 | } | |
10464 | Py_INCREF(Py_None); resultobj = Py_None; | |
10465 | return resultobj; | |
10466 | fail: | |
10467 | return NULL; | |
10468 | } | |
10469 | ||
10470 | ||
10471 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10472 | PyObject *resultobj; | |
10473 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10474 | int arg2 ; |
10475 | int arg3 ; | |
10476 | int arg4 ; | |
10477 | int arg5 ; | |
d14a1e28 | 10478 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10479 | PyObject * obj1 = 0 ; |
10480 | PyObject * obj2 = 0 ; | |
10481 | PyObject * obj3 = 0 ; | |
10482 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10483 | char *kwnames[] = { |
10484 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10485 | }; | |
10486 | ||
8edf1c75 | 10487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10489 | { |
10490 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
10493 | { | |
10494 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10495 | if (PyErr_Occurred()) SWIG_fail; | |
10496 | } | |
10497 | { | |
10498 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10499 | if (PyErr_Occurred()) SWIG_fail; | |
10500 | } | |
10501 | { | |
10502 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10503 | if (PyErr_Occurred()) SWIG_fail; | |
10504 | } | |
d14a1e28 RD |
10505 | { |
10506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10507 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10508 | ||
10509 | wxPyEndAllowThreads(__tstate); | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | Py_INCREF(Py_None); resultobj = Py_None; | |
10513 | return resultobj; | |
10514 | fail: | |
10515 | return NULL; | |
10516 | } | |
10517 | ||
10518 | ||
10519 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10520 | PyObject *resultobj; | |
10521 | wxDC *arg1 = (wxDC *) 0 ; | |
10522 | wxRect *arg2 = 0 ; | |
10523 | wxRect temp2 ; | |
10524 | PyObject * obj0 = 0 ; | |
10525 | PyObject * obj1 = 0 ; | |
10526 | char *kwnames[] = { | |
10527 | (char *) "self",(char *) "rect", NULL | |
10528 | }; | |
10529 | ||
10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
10531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10532 | { | |
10533 | arg2 = &temp2; | |
10534 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10535 | } | |
10536 | { | |
10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10538 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10539 | ||
10540 | wxPyEndAllowThreads(__tstate); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | } | |
10543 | Py_INCREF(Py_None); resultobj = Py_None; | |
10544 | return resultobj; | |
10545 | fail: | |
10546 | return NULL; | |
10547 | } | |
10548 | ||
10549 | ||
10550 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10551 | PyObject *resultobj; | |
10552 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10553 | int arg2 ; |
10554 | int arg3 ; | |
10555 | int arg4 ; | |
10556 | int arg5 ; | |
d14a1e28 RD |
10557 | double arg6 ; |
10558 | double arg7 ; | |
10559 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10560 | PyObject * obj1 = 0 ; |
10561 | PyObject * obj2 = 0 ; | |
10562 | PyObject * obj3 = 0 ; | |
10563 | PyObject * obj4 = 0 ; | |
10564 | PyObject * obj5 = 0 ; | |
10565 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10566 | char *kwnames[] = { |
10567 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10568 | }; | |
10569 | ||
8edf1c75 | 10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
10571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10572 | { | |
8edf1c75 | 10573 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
d14a1e28 RD |
10574 | if (PyErr_Occurred()) SWIG_fail; |
10575 | } | |
8edf1c75 RD |
10576 | { |
10577 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | } | |
10580 | { | |
10581 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
10584 | { | |
10585 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10586 | if (PyErr_Occurred()) SWIG_fail; | |
10587 | } | |
10588 | { | |
10589 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10590 | if (PyErr_Occurred()) SWIG_fail; | |
10591 | } | |
10592 | { | |
10593 | arg7 = (double) SWIG_PyObj_AsDouble(obj6); | |
10594 | if (PyErr_Occurred()) SWIG_fail; | |
10595 | } | |
10596 | { | |
10597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10598 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10599 | ||
10600 | wxPyEndAllowThreads(__tstate); | |
10601 | if (PyErr_Occurred()) SWIG_fail; | |
10602 | } | |
10603 | Py_INCREF(Py_None); resultobj = Py_None; | |
10604 | return resultobj; | |
10605 | fail: | |
10606 | return NULL; | |
10607 | } | |
10608 | ||
d14a1e28 RD |
10609 | |
10610 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10611 | PyObject *resultobj; | |
10612 | wxDC *arg1 = (wxDC *) 0 ; | |
10613 | wxPoint *arg2 = 0 ; | |
10614 | wxSize *arg3 = 0 ; | |
10615 | double arg4 ; | |
10616 | double arg5 ; | |
10617 | wxPoint temp2 ; | |
10618 | wxSize temp3 ; | |
10619 | PyObject * obj0 = 0 ; | |
10620 | PyObject * obj1 = 0 ; | |
10621 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
10622 | PyObject * obj3 = 0 ; |
10623 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10624 | char *kwnames[] = { |
10625 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10626 | }; | |
10627 | ||
8edf1c75 | 10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10630 | { | |
10631 | arg2 = &temp2; | |
10632 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10633 | } | |
10634 | { | |
10635 | arg3 = &temp3; | |
10636 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10637 | } | |
8edf1c75 RD |
10638 | { |
10639 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | } | |
10642 | { | |
10643 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
10644 | if (PyErr_Occurred()) SWIG_fail; | |
10645 | } | |
d14a1e28 RD |
10646 | { |
10647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10648 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10649 | ||
10650 | wxPyEndAllowThreads(__tstate); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
10652 | } | |
10653 | Py_INCREF(Py_None); resultobj = Py_None; | |
10654 | return resultobj; | |
10655 | fail: | |
10656 | return NULL; | |
10657 | } | |
10658 | ||
10659 | ||
10660 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10661 | PyObject *resultobj; | |
10662 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10663 | int arg2 ; |
10664 | int arg3 ; | |
d14a1e28 | 10665 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10666 | PyObject * obj1 = 0 ; |
10667 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10668 | char *kwnames[] = { |
10669 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10670 | }; | |
10671 | ||
8edf1c75 | 10672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10674 | { |
10675 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10676 | if (PyErr_Occurred()) SWIG_fail; | |
10677 | } | |
10678 | { | |
10679 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10680 | if (PyErr_Occurred()) SWIG_fail; | |
10681 | } | |
d14a1e28 RD |
10682 | { |
10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10684 | (arg1)->DrawPoint(arg2,arg3); | |
10685 | ||
10686 | wxPyEndAllowThreads(__tstate); | |
10687 | if (PyErr_Occurred()) SWIG_fail; | |
10688 | } | |
10689 | Py_INCREF(Py_None); resultobj = Py_None; | |
10690 | return resultobj; | |
10691 | fail: | |
10692 | return NULL; | |
10693 | } | |
10694 | ||
10695 | ||
10696 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10697 | PyObject *resultobj; | |
10698 | wxDC *arg1 = (wxDC *) 0 ; | |
10699 | wxPoint *arg2 = 0 ; | |
10700 | wxPoint temp2 ; | |
10701 | PyObject * obj0 = 0 ; | |
10702 | PyObject * obj1 = 0 ; | |
10703 | char *kwnames[] = { | |
10704 | (char *) "self",(char *) "pt", NULL | |
10705 | }; | |
10706 | ||
10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10709 | { | |
10710 | arg2 = &temp2; | |
10711 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10712 | } | |
10713 | { | |
10714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10715 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10716 | ||
10717 | wxPyEndAllowThreads(__tstate); | |
10718 | if (PyErr_Occurred()) SWIG_fail; | |
10719 | } | |
10720 | Py_INCREF(Py_None); resultobj = Py_None; | |
10721 | return resultobj; | |
10722 | fail: | |
10723 | return NULL; | |
10724 | } | |
10725 | ||
10726 | ||
10727 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10728 | PyObject *resultobj; | |
10729 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10730 | int arg2 ; |
10731 | int arg3 ; | |
10732 | int arg4 ; | |
10733 | int arg5 ; | |
d14a1e28 | 10734 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10735 | PyObject * obj1 = 0 ; |
10736 | PyObject * obj2 = 0 ; | |
10737 | PyObject * obj3 = 0 ; | |
10738 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10739 | char *kwnames[] = { |
10740 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10741 | }; | |
10742 | ||
8edf1c75 | 10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10745 | { |
10746 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | { | |
10750 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10751 | if (PyErr_Occurred()) SWIG_fail; | |
10752 | } | |
10753 | { | |
10754 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10755 | if (PyErr_Occurred()) SWIG_fail; | |
10756 | } | |
10757 | { | |
10758 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10759 | if (PyErr_Occurred()) SWIG_fail; | |
10760 | } | |
d14a1e28 RD |
10761 | { |
10762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10763 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10764 | ||
10765 | wxPyEndAllowThreads(__tstate); | |
10766 | if (PyErr_Occurred()) SWIG_fail; | |
10767 | } | |
10768 | Py_INCREF(Py_None); resultobj = Py_None; | |
10769 | return resultobj; | |
10770 | fail: | |
10771 | return NULL; | |
10772 | } | |
10773 | ||
10774 | ||
10775 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10776 | PyObject *resultobj; | |
10777 | wxDC *arg1 = (wxDC *) 0 ; | |
10778 | wxPoint *arg2 = 0 ; | |
10779 | wxSize *arg3 = 0 ; | |
10780 | wxPoint temp2 ; | |
10781 | wxSize temp3 ; | |
10782 | PyObject * obj0 = 0 ; | |
10783 | PyObject * obj1 = 0 ; | |
10784 | PyObject * obj2 = 0 ; | |
10785 | char *kwnames[] = { | |
10786 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10787 | }; | |
10788 | ||
10789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10791 | { | |
10792 | arg2 = &temp2; | |
10793 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10794 | } | |
10795 | { | |
10796 | arg3 = &temp3; | |
10797 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10798 | } | |
10799 | { | |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10801 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10802 | ||
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
10806 | Py_INCREF(Py_None); resultobj = Py_None; | |
10807 | return resultobj; | |
10808 | fail: | |
10809 | return NULL; | |
10810 | } | |
10811 | ||
10812 | ||
10813 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10814 | PyObject *resultobj; | |
10815 | wxDC *arg1 = (wxDC *) 0 ; | |
10816 | wxRect *arg2 = 0 ; | |
10817 | wxRect temp2 ; | |
10818 | PyObject * obj0 = 0 ; | |
10819 | PyObject * obj1 = 0 ; | |
10820 | char *kwnames[] = { | |
10821 | (char *) "self",(char *) "rect", NULL | |
10822 | }; | |
10823 | ||
10824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10826 | { | |
10827 | arg2 = &temp2; | |
10828 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10829 | } | |
10830 | { | |
10831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10832 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10833 | ||
10834 | wxPyEndAllowThreads(__tstate); | |
10835 | if (PyErr_Occurred()) SWIG_fail; | |
10836 | } | |
10837 | Py_INCREF(Py_None); resultobj = Py_None; | |
10838 | return resultobj; | |
10839 | fail: | |
10840 | return NULL; | |
10841 | } | |
10842 | ||
10843 | ||
10844 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10845 | PyObject *resultobj; | |
10846 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10847 | int arg2 ; |
10848 | int arg3 ; | |
10849 | int arg4 ; | |
10850 | int arg5 ; | |
d14a1e28 RD |
10851 | double arg6 ; |
10852 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10853 | PyObject * obj1 = 0 ; |
10854 | PyObject * obj2 = 0 ; | |
10855 | PyObject * obj3 = 0 ; | |
10856 | PyObject * obj4 = 0 ; | |
10857 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
10858 | char *kwnames[] = { |
10859 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10860 | }; | |
10861 | ||
8edf1c75 | 10862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 10863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10864 | { |
10865 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | { | |
10869 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10870 | if (PyErr_Occurred()) SWIG_fail; | |
10871 | } | |
10872 | { | |
10873 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | } | |
10876 | { | |
10877 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
10880 | { | |
10881 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | } | |
d14a1e28 RD |
10884 | { |
10885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10886 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10887 | ||
10888 | wxPyEndAllowThreads(__tstate); | |
10889 | if (PyErr_Occurred()) SWIG_fail; | |
10890 | } | |
10891 | Py_INCREF(Py_None); resultobj = Py_None; | |
10892 | return resultobj; | |
10893 | fail: | |
10894 | return NULL; | |
10895 | } | |
10896 | ||
10897 | ||
10898 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10899 | PyObject *resultobj; | |
10900 | wxDC *arg1 = (wxDC *) 0 ; | |
10901 | wxPoint *arg2 = 0 ; | |
10902 | wxSize *arg3 = 0 ; | |
10903 | double arg4 ; | |
10904 | wxPoint temp2 ; | |
10905 | wxSize temp3 ; | |
10906 | PyObject * obj0 = 0 ; | |
10907 | PyObject * obj1 = 0 ; | |
10908 | PyObject * obj2 = 0 ; | |
8edf1c75 | 10909 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10910 | char *kwnames[] = { |
10911 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10912 | }; | |
10913 | ||
8edf1c75 | 10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10916 | { | |
10917 | arg2 = &temp2; | |
10918 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10919 | } | |
10920 | { | |
10921 | arg3 = &temp3; | |
10922 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10923 | } | |
8edf1c75 RD |
10924 | { |
10925 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
d14a1e28 RD |
10928 | { |
10929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10930 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10931 | ||
10932 | wxPyEndAllowThreads(__tstate); | |
10933 | if (PyErr_Occurred()) SWIG_fail; | |
10934 | } | |
10935 | Py_INCREF(Py_None); resultobj = Py_None; | |
10936 | return resultobj; | |
10937 | fail: | |
10938 | return NULL; | |
10939 | } | |
10940 | ||
10941 | ||
10942 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10943 | PyObject *resultobj; | |
10944 | wxDC *arg1 = (wxDC *) 0 ; | |
10945 | wxRect *arg2 = 0 ; | |
10946 | double arg3 ; | |
10947 | wxRect temp2 ; | |
10948 | PyObject * obj0 = 0 ; | |
10949 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10950 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10951 | char *kwnames[] = { |
10952 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10953 | }; | |
10954 | ||
8edf1c75 | 10955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10957 | { | |
10958 | arg2 = &temp2; | |
10959 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10960 | } | |
8edf1c75 RD |
10961 | { |
10962 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
d14a1e28 RD |
10965 | { |
10966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10967 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) SWIG_fail; | |
10971 | } | |
10972 | Py_INCREF(Py_None); resultobj = Py_None; | |
10973 | return resultobj; | |
10974 | fail: | |
10975 | return NULL; | |
10976 | } | |
10977 | ||
10978 | ||
10979 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10980 | PyObject *resultobj; | |
10981 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10982 | int arg2 ; |
10983 | int arg3 ; | |
10984 | int arg4 ; | |
d14a1e28 | 10985 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10986 | PyObject * obj1 = 0 ; |
10987 | PyObject * obj2 = 0 ; | |
10988 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10989 | char *kwnames[] = { |
10990 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10991 | }; | |
10992 | ||
8edf1c75 | 10993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 10994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10995 | { |
10996 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10997 | if (PyErr_Occurred()) SWIG_fail; | |
10998 | } | |
10999 | { | |
11000 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
11002 | } | |
11003 | { | |
11004 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11005 | if (PyErr_Occurred()) SWIG_fail; | |
11006 | } | |
d14a1e28 RD |
11007 | { |
11008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11009 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11010 | ||
11011 | wxPyEndAllowThreads(__tstate); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | } | |
11014 | Py_INCREF(Py_None); resultobj = Py_None; | |
11015 | return resultobj; | |
11016 | fail: | |
11017 | return NULL; | |
11018 | } | |
11019 | ||
11020 | ||
11021 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11022 | PyObject *resultobj; | |
11023 | wxDC *arg1 = (wxDC *) 0 ; | |
11024 | wxPoint *arg2 = 0 ; | |
423f194a | 11025 | int arg3 ; |
d14a1e28 RD |
11026 | wxPoint temp2 ; |
11027 | PyObject * obj0 = 0 ; | |
11028 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11029 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11030 | char *kwnames[] = { |
11031 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11032 | }; | |
11033 | ||
8edf1c75 | 11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11036 | { | |
11037 | arg2 = &temp2; | |
11038 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11039 | } | |
8edf1c75 RD |
11040 | { |
11041 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11042 | if (PyErr_Occurred()) SWIG_fail; | |
11043 | } | |
d14a1e28 RD |
11044 | { |
11045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11046 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11047 | ||
11048 | wxPyEndAllowThreads(__tstate); | |
11049 | if (PyErr_Occurred()) SWIG_fail; | |
11050 | } | |
11051 | Py_INCREF(Py_None); resultobj = Py_None; | |
11052 | return resultobj; | |
11053 | fail: | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
11058 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11059 | PyObject *resultobj; | |
11060 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11061 | int arg2 ; |
11062 | int arg3 ; | |
11063 | int arg4 ; | |
11064 | int arg5 ; | |
d14a1e28 | 11065 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11066 | PyObject * obj1 = 0 ; |
11067 | PyObject * obj2 = 0 ; | |
11068 | PyObject * obj3 = 0 ; | |
11069 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11070 | char *kwnames[] = { |
11071 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11072 | }; | |
11073 | ||
8edf1c75 | 11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11076 | { |
11077 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
11080 | { | |
11081 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
11083 | } | |
11084 | { | |
11085 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
11087 | } | |
11088 | { | |
11089 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11090 | if (PyErr_Occurred()) SWIG_fail; | |
11091 | } | |
d14a1e28 RD |
11092 | { |
11093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11094 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11095 | ||
11096 | wxPyEndAllowThreads(__tstate); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | } | |
11099 | Py_INCREF(Py_None); resultobj = Py_None; | |
11100 | return resultobj; | |
11101 | fail: | |
11102 | return NULL; | |
11103 | } | |
11104 | ||
11105 | ||
11106 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11107 | PyObject *resultobj; | |
11108 | wxDC *arg1 = (wxDC *) 0 ; | |
11109 | wxPoint *arg2 = 0 ; | |
11110 | wxSize *arg3 = 0 ; | |
11111 | wxPoint temp2 ; | |
11112 | wxSize temp3 ; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | PyObject * obj2 = 0 ; | |
11116 | char *kwnames[] = { | |
11117 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11118 | }; | |
11119 | ||
11120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11122 | { | |
11123 | arg2 = &temp2; | |
11124 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11125 | } | |
11126 | { | |
11127 | arg3 = &temp3; | |
11128 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11129 | } | |
11130 | { | |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11133 | ||
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
11137 | Py_INCREF(Py_None); resultobj = Py_None; | |
11138 | return resultobj; | |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
11144 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11145 | PyObject *resultobj; | |
11146 | wxDC *arg1 = (wxDC *) 0 ; | |
11147 | wxRect *arg2 = 0 ; | |
11148 | wxRect temp2 ; | |
11149 | PyObject * obj0 = 0 ; | |
11150 | PyObject * obj1 = 0 ; | |
11151 | char *kwnames[] = { | |
11152 | (char *) "self",(char *) "rect", NULL | |
11153 | }; | |
11154 | ||
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
11156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11157 | { | |
11158 | arg2 = &temp2; | |
11159 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11160 | } | |
11161 | { | |
11162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11163 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11164 | ||
11165 | wxPyEndAllowThreads(__tstate); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | } | |
11168 | Py_INCREF(Py_None); resultobj = Py_None; | |
11169 | return resultobj; | |
11170 | fail: | |
11171 | return NULL; | |
11172 | } | |
11173 | ||
11174 | ||
11175 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11176 | PyObject *resultobj; | |
11177 | wxDC *arg1 = (wxDC *) 0 ; | |
11178 | wxIcon *arg2 = 0 ; | |
423f194a RD |
11179 | int arg3 ; |
11180 | int arg4 ; | |
d14a1e28 RD |
11181 | PyObject * obj0 = 0 ; |
11182 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11183 | PyObject * obj2 = 0 ; |
11184 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11185 | char *kwnames[] = { |
11186 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11187 | }; | |
11188 | ||
8edf1c75 | 11189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11191 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11192 | if (arg2 == NULL) { | |
11193 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11194 | } | |
8edf1c75 RD |
11195 | { |
11196 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11197 | if (PyErr_Occurred()) SWIG_fail; | |
11198 | } | |
11199 | { | |
11200 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11201 | if (PyErr_Occurred()) SWIG_fail; | |
11202 | } | |
d14a1e28 RD |
11203 | { |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11205 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11206 | ||
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | Py_INCREF(Py_None); resultobj = Py_None; | |
11211 | return resultobj; | |
11212 | fail: | |
11213 | return NULL; | |
11214 | } | |
11215 | ||
11216 | ||
11217 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11218 | PyObject *resultobj; | |
11219 | wxDC *arg1 = (wxDC *) 0 ; | |
11220 | wxIcon *arg2 = 0 ; | |
11221 | wxPoint *arg3 = 0 ; | |
11222 | wxPoint temp3 ; | |
11223 | PyObject * obj0 = 0 ; | |
11224 | PyObject * obj1 = 0 ; | |
11225 | PyObject * obj2 = 0 ; | |
11226 | char *kwnames[] = { | |
11227 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11228 | }; | |
11229 | ||
11230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11232 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11233 | if (arg2 == NULL) { | |
11234 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11235 | } | |
11236 | { | |
11237 | arg3 = &temp3; | |
11238 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11239 | } | |
11240 | { | |
11241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11242 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11243 | ||
11244 | wxPyEndAllowThreads(__tstate); | |
11245 | if (PyErr_Occurred()) SWIG_fail; | |
11246 | } | |
11247 | Py_INCREF(Py_None); resultobj = Py_None; | |
11248 | return resultobj; | |
11249 | fail: | |
11250 | return NULL; | |
11251 | } | |
11252 | ||
11253 | ||
11254 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11255 | PyObject *resultobj; | |
11256 | wxDC *arg1 = (wxDC *) 0 ; | |
11257 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
11258 | int arg3 ; |
11259 | int arg4 ; | |
11260 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11261 | PyObject * obj0 = 0 ; |
11262 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11263 | PyObject * obj2 = 0 ; |
11264 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11265 | PyObject * obj4 = 0 ; |
11266 | char *kwnames[] = { | |
11267 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11268 | }; | |
11269 | ||
8edf1c75 | 11270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11272 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11273 | if (arg2 == NULL) { | |
11274 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11275 | } | |
8edf1c75 RD |
11276 | { |
11277 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
11280 | { | |
11281 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11282 | if (PyErr_Occurred()) SWIG_fail; | |
11283 | } | |
d14a1e28 | 11284 | if (obj4) { |
2dbef272 | 11285 | { |
8edf1c75 | 11286 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
2dbef272 RD |
11287 | if (PyErr_Occurred()) SWIG_fail; |
11288 | } | |
d14a1e28 RD |
11289 | } |
11290 | { | |
11291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11292 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11293 | ||
11294 | wxPyEndAllowThreads(__tstate); | |
11295 | if (PyErr_Occurred()) SWIG_fail; | |
11296 | } | |
11297 | Py_INCREF(Py_None); resultobj = Py_None; | |
11298 | return resultobj; | |
11299 | fail: | |
11300 | return NULL; | |
11301 | } | |
11302 | ||
11303 | ||
11304 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11305 | PyObject *resultobj; | |
11306 | wxDC *arg1 = (wxDC *) 0 ; | |
11307 | wxBitmap *arg2 = 0 ; | |
11308 | wxPoint *arg3 = 0 ; | |
423f194a | 11309 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11310 | wxPoint temp3 ; |
11311 | PyObject * obj0 = 0 ; | |
11312 | PyObject * obj1 = 0 ; | |
11313 | PyObject * obj2 = 0 ; | |
11314 | PyObject * obj3 = 0 ; | |
11315 | char *kwnames[] = { | |
11316 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11317 | }; | |
11318 | ||
11319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11321 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11322 | if (arg2 == NULL) { | |
11323 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11324 | } | |
11325 | { | |
11326 | arg3 = &temp3; | |
11327 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11328 | } | |
11329 | if (obj3) { | |
2dbef272 | 11330 | { |
8edf1c75 | 11331 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
11332 | if (PyErr_Occurred()) SWIG_fail; |
11333 | } | |
d14a1e28 RD |
11334 | } |
11335 | { | |
11336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11337 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11338 | ||
11339 | wxPyEndAllowThreads(__tstate); | |
11340 | if (PyErr_Occurred()) SWIG_fail; | |
11341 | } | |
11342 | Py_INCREF(Py_None); resultobj = Py_None; | |
11343 | return resultobj; | |
11344 | fail: | |
11345 | return NULL; | |
11346 | } | |
11347 | ||
11348 | ||
11349 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11350 | PyObject *resultobj; | |
11351 | wxDC *arg1 = (wxDC *) 0 ; | |
11352 | wxString *arg2 = 0 ; | |
423f194a RD |
11353 | int arg3 ; |
11354 | int arg4 ; | |
11355 | bool temp2 = False ; | |
d14a1e28 RD |
11356 | PyObject * obj0 = 0 ; |
11357 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11358 | PyObject * obj2 = 0 ; |
11359 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11360 | char *kwnames[] = { |
11361 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11362 | }; | |
11363 | ||
8edf1c75 | 11364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11366 | { | |
11367 | arg2 = wxString_in_helper(obj1); | |
11368 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11369 | temp2 = True; |
d14a1e28 | 11370 | } |
8edf1c75 RD |
11371 | { |
11372 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | { | |
11376 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11377 | if (PyErr_Occurred()) SWIG_fail; | |
11378 | } | |
d14a1e28 RD |
11379 | { |
11380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11381 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11382 | ||
11383 | wxPyEndAllowThreads(__tstate); | |
11384 | if (PyErr_Occurred()) SWIG_fail; | |
11385 | } | |
11386 | Py_INCREF(Py_None); resultobj = Py_None; | |
11387 | { | |
11388 | if (temp2) | |
11389 | delete arg2; | |
11390 | } | |
11391 | return resultobj; | |
11392 | fail: | |
11393 | { | |
11394 | if (temp2) | |
11395 | delete arg2; | |
11396 | } | |
11397 | return NULL; | |
11398 | } | |
11399 | ||
11400 | ||
11401 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11402 | PyObject *resultobj; | |
11403 | wxDC *arg1 = (wxDC *) 0 ; | |
11404 | wxString *arg2 = 0 ; | |
11405 | wxPoint *arg3 = 0 ; | |
423f194a | 11406 | bool temp2 = False ; |
d14a1e28 RD |
11407 | wxPoint temp3 ; |
11408 | PyObject * obj0 = 0 ; | |
11409 | PyObject * obj1 = 0 ; | |
11410 | PyObject * obj2 = 0 ; | |
11411 | char *kwnames[] = { | |
11412 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11413 | }; | |
11414 | ||
11415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11417 | { | |
11418 | arg2 = wxString_in_helper(obj1); | |
11419 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11420 | temp2 = True; |
d14a1e28 RD |
11421 | } |
11422 | { | |
11423 | arg3 = &temp3; | |
11424 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11425 | } | |
11426 | { | |
11427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11428 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11429 | ||
11430 | wxPyEndAllowThreads(__tstate); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
11432 | } | |
11433 | Py_INCREF(Py_None); resultobj = Py_None; | |
11434 | { | |
11435 | if (temp2) | |
11436 | delete arg2; | |
11437 | } | |
11438 | return resultobj; | |
11439 | fail: | |
11440 | { | |
11441 | if (temp2) | |
11442 | delete arg2; | |
11443 | } | |
11444 | return NULL; | |
11445 | } | |
11446 | ||
11447 | ||
11448 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11449 | PyObject *resultobj; | |
11450 | wxDC *arg1 = (wxDC *) 0 ; | |
11451 | wxString *arg2 = 0 ; | |
423f194a RD |
11452 | int arg3 ; |
11453 | int arg4 ; | |
d14a1e28 | 11454 | double arg5 ; |
423f194a | 11455 | bool temp2 = False ; |
d14a1e28 RD |
11456 | PyObject * obj0 = 0 ; |
11457 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11458 | PyObject * obj2 = 0 ; |
11459 | PyObject * obj3 = 0 ; | |
11460 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11461 | char *kwnames[] = { |
11462 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11463 | }; | |
11464 | ||
8edf1c75 | 11465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11467 | { | |
11468 | arg2 = wxString_in_helper(obj1); | |
11469 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11470 | temp2 = True; |
d14a1e28 | 11471 | } |
8edf1c75 RD |
11472 | { |
11473 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11474 | if (PyErr_Occurred()) SWIG_fail; | |
11475 | } | |
11476 | { | |
11477 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11478 | if (PyErr_Occurred()) SWIG_fail; | |
11479 | } | |
11480 | { | |
11481 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
d14a1e28 RD |
11484 | { |
11485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11486 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11487 | ||
11488 | wxPyEndAllowThreads(__tstate); | |
11489 | if (PyErr_Occurred()) SWIG_fail; | |
11490 | } | |
11491 | Py_INCREF(Py_None); resultobj = Py_None; | |
11492 | { | |
11493 | if (temp2) | |
11494 | delete arg2; | |
11495 | } | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | { | |
11499 | if (temp2) | |
11500 | delete arg2; | |
11501 | } | |
11502 | return NULL; | |
11503 | } | |
11504 | ||
11505 | ||
11506 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11507 | PyObject *resultobj; | |
11508 | wxDC *arg1 = (wxDC *) 0 ; | |
11509 | wxString *arg2 = 0 ; | |
11510 | wxPoint *arg3 = 0 ; | |
11511 | double arg4 ; | |
423f194a | 11512 | bool temp2 = False ; |
d14a1e28 RD |
11513 | wxPoint temp3 ; |
11514 | PyObject * obj0 = 0 ; | |
11515 | PyObject * obj1 = 0 ; | |
11516 | PyObject * obj2 = 0 ; | |
8edf1c75 | 11517 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11518 | char *kwnames[] = { |
11519 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11520 | }; | |
11521 | ||
8edf1c75 | 11522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11524 | { | |
11525 | arg2 = wxString_in_helper(obj1); | |
11526 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11527 | temp2 = True; |
d14a1e28 RD |
11528 | } |
11529 | { | |
11530 | arg3 = &temp3; | |
11531 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11532 | } | |
8edf1c75 RD |
11533 | { |
11534 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
11535 | if (PyErr_Occurred()) SWIG_fail; | |
11536 | } | |
d14a1e28 RD |
11537 | { |
11538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11539 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11540 | ||
11541 | wxPyEndAllowThreads(__tstate); | |
11542 | if (PyErr_Occurred()) SWIG_fail; | |
11543 | } | |
11544 | Py_INCREF(Py_None); resultobj = Py_None; | |
11545 | { | |
11546 | if (temp2) | |
11547 | delete arg2; | |
11548 | } | |
11549 | return resultobj; | |
11550 | fail: | |
11551 | { | |
11552 | if (temp2) | |
11553 | delete arg2; | |
11554 | } | |
11555 | return NULL; | |
11556 | } | |
11557 | ||
11558 | ||
11559 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11560 | PyObject *resultobj; | |
11561 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11562 | int arg2 ; |
11563 | int arg3 ; | |
11564 | int arg4 ; | |
11565 | int arg5 ; | |
d14a1e28 | 11566 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
11567 | int arg7 ; |
11568 | int arg8 ; | |
d14a1e28 | 11569 | int arg9 = (int) wxCOPY ; |
423f194a RD |
11570 | bool arg10 = (bool) False ; |
11571 | int arg11 = (int) -1 ; | |
11572 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11573 | bool result; |
11574 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11575 | PyObject * obj1 = 0 ; |
11576 | PyObject * obj2 = 0 ; | |
11577 | PyObject * obj3 = 0 ; | |
11578 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11579 | PyObject * obj5 = 0 ; |
8edf1c75 RD |
11580 | PyObject * obj6 = 0 ; |
11581 | PyObject * obj7 = 0 ; | |
11582 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11583 | PyObject * obj9 = 0 ; |
8edf1c75 RD |
11584 | PyObject * obj10 = 0 ; |
11585 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11586 | char *kwnames[] = { |
11587 | (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 | |
11588 | }; | |
11589 | ||
8edf1c75 | 11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
d14a1e28 | 11591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11592 | { |
11593 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11594 | if (PyErr_Occurred()) SWIG_fail; | |
11595 | } | |
11596 | { | |
11597 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | { | |
11601 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | } | |
11604 | { | |
11605 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
d14a1e28 | 11608 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11609 | { |
11610 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
11611 | if (PyErr_Occurred()) SWIG_fail; | |
11612 | } | |
11613 | { | |
11614 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
11615 | if (PyErr_Occurred()) SWIG_fail; | |
11616 | } | |
11617 | if (obj8) { | |
11618 | { | |
11619 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
11622 | } | |
d14a1e28 | 11623 | if (obj9) { |
2dbef272 | 11624 | { |
8edf1c75 RD |
11625 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
11626 | if (PyErr_Occurred()) SWIG_fail; | |
11627 | } | |
11628 | } | |
11629 | if (obj10) { | |
11630 | { | |
11631 | arg11 = (int) SWIG_PyObj_AsInt(obj10); | |
11632 | if (PyErr_Occurred()) SWIG_fail; | |
11633 | } | |
11634 | } | |
11635 | if (obj11) { | |
11636 | { | |
11637 | arg12 = (int) SWIG_PyObj_AsInt(obj11); | |
2dbef272 RD |
11638 | if (PyErr_Occurred()) SWIG_fail; |
11639 | } | |
d14a1e28 RD |
11640 | } |
11641 | { | |
11642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11643 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11644 | ||
11645 | wxPyEndAllowThreads(__tstate); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
02a34c4c | 11648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11649 | return resultobj; |
11650 | fail: | |
11651 | return NULL; | |
11652 | } | |
11653 | ||
11654 | ||
11655 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11656 | PyObject *resultobj; | |
11657 | wxDC *arg1 = (wxDC *) 0 ; | |
11658 | wxPoint *arg2 = 0 ; | |
11659 | wxSize *arg3 = 0 ; | |
11660 | wxDC *arg4 = (wxDC *) 0 ; | |
11661 | wxPoint *arg5 = 0 ; | |
11662 | int arg6 = (int) wxCOPY ; | |
423f194a | 11663 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11664 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11665 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11666 | bool result; | |
11667 | wxPoint temp2 ; | |
11668 | wxSize temp3 ; | |
11669 | wxPoint temp5 ; | |
11670 | wxPoint temp8 ; | |
11671 | PyObject * obj0 = 0 ; | |
11672 | PyObject * obj1 = 0 ; | |
11673 | PyObject * obj2 = 0 ; | |
11674 | PyObject * obj3 = 0 ; | |
11675 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11676 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11677 | PyObject * obj6 = 0 ; |
11678 | PyObject * obj7 = 0 ; | |
11679 | char *kwnames[] = { | |
11680 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11681 | }; | |
11682 | ||
8edf1c75 | 11683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
11684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11685 | { | |
11686 | arg2 = &temp2; | |
11687 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11688 | } | |
11689 | { | |
11690 | arg3 = &temp3; | |
11691 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11692 | } | |
11693 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11694 | { | |
11695 | arg5 = &temp5; | |
11696 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11697 | } | |
8edf1c75 RD |
11698 | if (obj5) { |
11699 | { | |
11700 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11701 | if (PyErr_Occurred()) SWIG_fail; | |
11702 | } | |
11703 | } | |
d14a1e28 | 11704 | if (obj6) { |
2dbef272 | 11705 | { |
8edf1c75 | 11706 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
2dbef272 RD |
11707 | if (PyErr_Occurred()) SWIG_fail; |
11708 | } | |
d14a1e28 RD |
11709 | } |
11710 | if (obj7) { | |
11711 | { | |
11712 | arg8 = &temp8; | |
11713 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11714 | } | |
11715 | } | |
11716 | { | |
11717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11718 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11719 | ||
11720 | wxPyEndAllowThreads(__tstate); | |
11721 | if (PyErr_Occurred()) SWIG_fail; | |
11722 | } | |
02a34c4c | 11723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11724 | return resultobj; |
11725 | fail: | |
11726 | return NULL; | |
11727 | } | |
11728 | ||
11729 | ||
11730 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11731 | PyObject *resultobj; | |
11732 | wxDC *arg1 = (wxDC *) 0 ; | |
11733 | int arg2 ; | |
11734 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
11735 | int arg4 = (int) 0 ; |
11736 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11737 | PyObject * obj0 = 0 ; |
11738 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11739 | PyObject * obj2 = 0 ; |
11740 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11741 | char *kwnames[] = { |
11742 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11743 | }; | |
11744 | ||
8edf1c75 | 11745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11747 | { | |
11748 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11749 | if (arg3 == NULL) SWIG_fail; | |
11750 | } | |
8edf1c75 RD |
11751 | if (obj2) { |
11752 | { | |
11753 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
11755 | } | |
11756 | } | |
11757 | if (obj3) { | |
11758 | { | |
11759 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | } | |
11762 | } | |
d14a1e28 RD |
11763 | { |
11764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11765 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11766 | ||
11767 | wxPyEndAllowThreads(__tstate); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | } | |
11770 | Py_INCREF(Py_None); resultobj = Py_None; | |
11771 | { | |
11772 | if (arg3) delete [] arg3; | |
11773 | } | |
11774 | return resultobj; | |
11775 | fail: | |
11776 | { | |
11777 | if (arg3) delete [] arg3; | |
11778 | } | |
11779 | return NULL; | |
11780 | } | |
11781 | ||
11782 | ||
11783 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11784 | PyObject *resultobj; | |
11785 | wxDC *arg1 = (wxDC *) 0 ; | |
11786 | int arg2 ; | |
11787 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
11788 | int arg4 = (int) 0 ; |
11789 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11790 | int arg6 = (int) wxODDEVEN_RULE ; |
11791 | PyObject * obj0 = 0 ; | |
11792 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11793 | PyObject * obj2 = 0 ; |
11794 | PyObject * obj3 = 0 ; | |
11795 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11796 | char *kwnames[] = { |
11797 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11798 | }; | |
11799 | ||
8edf1c75 | 11800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11802 | { | |
11803 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11804 | if (arg3 == NULL) SWIG_fail; | |
11805 | } | |
8edf1c75 RD |
11806 | if (obj2) { |
11807 | { | |
11808 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
11811 | } | |
11812 | if (obj3) { | |
11813 | { | |
11814 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
11816 | } | |
11817 | } | |
11818 | if (obj4) { | |
11819 | { | |
11820 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
11823 | } | |
d14a1e28 RD |
11824 | { |
11825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11826 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11827 | ||
11828 | wxPyEndAllowThreads(__tstate); | |
11829 | if (PyErr_Occurred()) SWIG_fail; | |
11830 | } | |
11831 | Py_INCREF(Py_None); resultobj = Py_None; | |
11832 | { | |
11833 | if (arg3) delete [] arg3; | |
11834 | } | |
11835 | return resultobj; | |
11836 | fail: | |
11837 | { | |
11838 | if (arg3) delete [] arg3; | |
11839 | } | |
11840 | return NULL; | |
11841 | } | |
11842 | ||
11843 | ||
11844 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11845 | PyObject *resultobj; | |
11846 | wxDC *arg1 = (wxDC *) 0 ; | |
11847 | wxString *arg2 = 0 ; | |
11848 | wxRect *arg3 = 0 ; | |
11849 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11850 | int arg5 = (int) -1 ; | |
423f194a | 11851 | bool temp2 = False ; |
d14a1e28 RD |
11852 | wxRect temp3 ; |
11853 | PyObject * obj0 = 0 ; | |
11854 | PyObject * obj1 = 0 ; | |
11855 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
11856 | PyObject * obj3 = 0 ; |
11857 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11858 | char *kwnames[] = { |
11859 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11860 | }; | |
11861 | ||
8edf1c75 | 11862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11864 | { | |
11865 | arg2 = wxString_in_helper(obj1); | |
11866 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11867 | temp2 = True; |
d14a1e28 RD |
11868 | } |
11869 | { | |
11870 | arg3 = &temp3; | |
11871 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11872 | } | |
8edf1c75 RD |
11873 | if (obj3) { |
11874 | { | |
11875 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11876 | if (PyErr_Occurred()) SWIG_fail; | |
11877 | } | |
11878 | } | |
11879 | if (obj4) { | |
11880 | { | |
11881 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11882 | if (PyErr_Occurred()) SWIG_fail; | |
11883 | } | |
11884 | } | |
d14a1e28 RD |
11885 | { |
11886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11887 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
11888 | ||
11889 | wxPyEndAllowThreads(__tstate); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | Py_INCREF(Py_None); resultobj = Py_None; | |
11893 | { | |
11894 | if (temp2) | |
11895 | delete arg2; | |
11896 | } | |
11897 | return resultobj; | |
11898 | fail: | |
11899 | { | |
11900 | if (temp2) | |
11901 | delete arg2; | |
11902 | } | |
11903 | return NULL; | |
11904 | } | |
11905 | ||
11906 | ||
11907 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11908 | PyObject *resultobj; | |
11909 | wxDC *arg1 = (wxDC *) 0 ; | |
11910 | wxString *arg2 = 0 ; | |
11911 | wxBitmap *arg3 = 0 ; | |
11912 | wxRect *arg4 = 0 ; | |
11913 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11914 | int arg6 = (int) -1 ; | |
11915 | wxRect result; | |
423f194a | 11916 | bool temp2 = False ; |
d14a1e28 RD |
11917 | wxRect temp4 ; |
11918 | PyObject * obj0 = 0 ; | |
11919 | PyObject * obj1 = 0 ; | |
11920 | PyObject * obj2 = 0 ; | |
11921 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
11922 | PyObject * obj4 = 0 ; |
11923 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11924 | char *kwnames[] = { |
11925 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11926 | }; | |
11927 | ||
8edf1c75 | 11928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
11929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11930 | { | |
11931 | arg2 = wxString_in_helper(obj1); | |
11932 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11933 | temp2 = True; |
d14a1e28 RD |
11934 | } |
11935 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11936 | if (arg3 == NULL) { | |
11937 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11938 | } | |
11939 | { | |
11940 | arg4 = &temp4; | |
11941 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11942 | } | |
8edf1c75 RD |
11943 | if (obj4) { |
11944 | { | |
11945 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11946 | if (PyErr_Occurred()) SWIG_fail; | |
11947 | } | |
11948 | } | |
11949 | if (obj5) { | |
11950 | { | |
11951 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
11954 | } | |
d14a1e28 RD |
11955 | { |
11956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11957 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
11958 | ||
11959 | wxPyEndAllowThreads(__tstate); | |
11960 | if (PyErr_Occurred()) SWIG_fail; | |
11961 | } | |
11962 | { | |
11963 | wxRect * resultptr; | |
11964 | resultptr = new wxRect((wxRect &) result); | |
11965 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11966 | } | |
11967 | { | |
11968 | if (temp2) | |
11969 | delete arg2; | |
11970 | } | |
11971 | return resultobj; | |
11972 | fail: | |
11973 | { | |
11974 | if (temp2) | |
11975 | delete arg2; | |
11976 | } | |
11977 | return NULL; | |
11978 | } | |
11979 | ||
11980 | ||
11981 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11982 | PyObject *resultobj; | |
11983 | wxDC *arg1 = (wxDC *) 0 ; | |
11984 | int arg2 ; | |
11985 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11986 | PyObject * obj0 = 0 ; | |
11987 | PyObject * obj1 = 0 ; | |
11988 | char *kwnames[] = { | |
11989 | (char *) "self",(char *) "points", NULL | |
11990 | }; | |
11991 | ||
11992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11994 | { | |
11995 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11996 | if (arg3 == NULL) SWIG_fail; | |
11997 | } | |
11998 | { | |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | (arg1)->DrawSpline(arg2,arg3); | |
12001 | ||
12002 | wxPyEndAllowThreads(__tstate); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | } | |
12005 | Py_INCREF(Py_None); resultobj = Py_None; | |
12006 | { | |
12007 | if (arg3) delete [] arg3; | |
12008 | } | |
12009 | return resultobj; | |
12010 | fail: | |
12011 | { | |
12012 | if (arg3) delete [] arg3; | |
12013 | } | |
12014 | return NULL; | |
12015 | } | |
12016 | ||
12017 | ||
12018 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12019 | PyObject *resultobj; | |
12020 | wxDC *arg1 = (wxDC *) 0 ; | |
12021 | PyObject * obj0 = 0 ; | |
12022 | char *kwnames[] = { | |
12023 | (char *) "self", NULL | |
12024 | }; | |
12025 | ||
12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
12027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12028 | { | |
12029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12030 | (arg1)->Clear(); | |
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 | ||
12042 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12043 | PyObject *resultobj; | |
12044 | wxDC *arg1 = (wxDC *) 0 ; | |
12045 | wxString *arg2 = 0 ; | |
12046 | bool result; | |
423f194a | 12047 | bool temp2 = False ; |
d14a1e28 RD |
12048 | PyObject * obj0 = 0 ; |
12049 | PyObject * obj1 = 0 ; | |
12050 | char *kwnames[] = { | |
12051 | (char *) "self",(char *) "message", NULL | |
12052 | }; | |
12053 | ||
12054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
12055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12056 | { | |
12057 | arg2 = wxString_in_helper(obj1); | |
12058 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12059 | temp2 = True; |
d14a1e28 RD |
12060 | } |
12061 | { | |
12062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12063 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12064 | ||
12065 | wxPyEndAllowThreads(__tstate); | |
12066 | if (PyErr_Occurred()) SWIG_fail; | |
12067 | } | |
02a34c4c | 12068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12069 | { |
12070 | if (temp2) | |
12071 | delete arg2; | |
12072 | } | |
12073 | return resultobj; | |
12074 | fail: | |
12075 | { | |
12076 | if (temp2) | |
12077 | delete arg2; | |
12078 | } | |
12079 | return NULL; | |
12080 | } | |
12081 | ||
12082 | ||
12083 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12084 | PyObject *resultobj; | |
12085 | wxDC *arg1 = (wxDC *) 0 ; | |
12086 | PyObject * obj0 = 0 ; | |
12087 | char *kwnames[] = { | |
12088 | (char *) "self", NULL | |
12089 | }; | |
12090 | ||
12091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
12092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12093 | { | |
12094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12095 | (arg1)->EndDoc(); | |
12096 | ||
12097 | wxPyEndAllowThreads(__tstate); | |
12098 | if (PyErr_Occurred()) SWIG_fail; | |
12099 | } | |
12100 | Py_INCREF(Py_None); resultobj = Py_None; | |
12101 | return resultobj; | |
12102 | fail: | |
12103 | return NULL; | |
12104 | } | |
12105 | ||
12106 | ||
12107 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12108 | PyObject *resultobj; | |
12109 | wxDC *arg1 = (wxDC *) 0 ; | |
12110 | PyObject * obj0 = 0 ; | |
12111 | char *kwnames[] = { | |
12112 | (char *) "self", NULL | |
12113 | }; | |
12114 | ||
12115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12117 | { | |
12118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12119 | (arg1)->StartPage(); | |
12120 | ||
12121 | wxPyEndAllowThreads(__tstate); | |
12122 | if (PyErr_Occurred()) SWIG_fail; | |
12123 | } | |
12124 | Py_INCREF(Py_None); resultobj = Py_None; | |
12125 | return resultobj; | |
12126 | fail: | |
12127 | return NULL; | |
12128 | } | |
12129 | ||
12130 | ||
12131 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12132 | PyObject *resultobj; | |
12133 | wxDC *arg1 = (wxDC *) 0 ; | |
12134 | PyObject * obj0 = 0 ; | |
12135 | char *kwnames[] = { | |
12136 | (char *) "self", NULL | |
12137 | }; | |
12138 | ||
12139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12141 | { | |
12142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12143 | (arg1)->EndPage(); | |
12144 | ||
12145 | wxPyEndAllowThreads(__tstate); | |
12146 | if (PyErr_Occurred()) SWIG_fail; | |
12147 | } | |
12148 | Py_INCREF(Py_None); resultobj = Py_None; | |
12149 | return resultobj; | |
12150 | fail: | |
12151 | return NULL; | |
12152 | } | |
12153 | ||
12154 | ||
12155 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12156 | PyObject *resultobj; | |
12157 | wxDC *arg1 = (wxDC *) 0 ; | |
12158 | wxFont *arg2 = 0 ; | |
12159 | PyObject * obj0 = 0 ; | |
12160 | PyObject * obj1 = 0 ; | |
12161 | char *kwnames[] = { | |
12162 | (char *) "self",(char *) "font", NULL | |
12163 | }; | |
12164 | ||
12165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
12166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12167 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12168 | if (arg2 == NULL) { | |
12169 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12170 | } | |
12171 | { | |
12172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12173 | (arg1)->SetFont((wxFont const &)*arg2); | |
12174 | ||
12175 | wxPyEndAllowThreads(__tstate); | |
12176 | if (PyErr_Occurred()) SWIG_fail; | |
12177 | } | |
12178 | Py_INCREF(Py_None); resultobj = Py_None; | |
12179 | return resultobj; | |
12180 | fail: | |
12181 | return NULL; | |
12182 | } | |
12183 | ||
12184 | ||
12185 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12186 | PyObject *resultobj; | |
12187 | wxDC *arg1 = (wxDC *) 0 ; | |
12188 | wxPen *arg2 = 0 ; | |
12189 | PyObject * obj0 = 0 ; | |
12190 | PyObject * obj1 = 0 ; | |
12191 | char *kwnames[] = { | |
12192 | (char *) "self",(char *) "pen", NULL | |
12193 | }; | |
12194 | ||
12195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
12196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12197 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12198 | if (arg2 == NULL) { | |
12199 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12200 | } | |
12201 | { | |
12202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12203 | (arg1)->SetPen((wxPen const &)*arg2); | |
12204 | ||
12205 | wxPyEndAllowThreads(__tstate); | |
12206 | if (PyErr_Occurred()) SWIG_fail; | |
12207 | } | |
12208 | Py_INCREF(Py_None); resultobj = Py_None; | |
12209 | return resultobj; | |
12210 | fail: | |
12211 | return NULL; | |
12212 | } | |
12213 | ||
12214 | ||
12215 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12216 | PyObject *resultobj; | |
12217 | wxDC *arg1 = (wxDC *) 0 ; | |
12218 | wxBrush *arg2 = 0 ; | |
12219 | PyObject * obj0 = 0 ; | |
12220 | PyObject * obj1 = 0 ; | |
12221 | char *kwnames[] = { | |
12222 | (char *) "self",(char *) "brush", NULL | |
12223 | }; | |
12224 | ||
12225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
12226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12227 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12228 | if (arg2 == NULL) { | |
12229 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12230 | } | |
12231 | { | |
12232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12233 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12234 | ||
12235 | wxPyEndAllowThreads(__tstate); | |
12236 | if (PyErr_Occurred()) SWIG_fail; | |
12237 | } | |
12238 | Py_INCREF(Py_None); resultobj = Py_None; | |
12239 | return resultobj; | |
12240 | fail: | |
12241 | return NULL; | |
12242 | } | |
12243 | ||
12244 | ||
12245 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12246 | PyObject *resultobj; | |
12247 | wxDC *arg1 = (wxDC *) 0 ; | |
12248 | wxBrush *arg2 = 0 ; | |
12249 | PyObject * obj0 = 0 ; | |
12250 | PyObject * obj1 = 0 ; | |
12251 | char *kwnames[] = { | |
12252 | (char *) "self",(char *) "brush", NULL | |
12253 | }; | |
12254 | ||
12255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
12256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12257 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12258 | if (arg2 == NULL) { | |
12259 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12260 | } | |
12261 | { | |
12262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12263 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12264 | ||
12265 | wxPyEndAllowThreads(__tstate); | |
12266 | if (PyErr_Occurred()) SWIG_fail; | |
12267 | } | |
12268 | Py_INCREF(Py_None); resultobj = Py_None; | |
12269 | return resultobj; | |
12270 | fail: | |
12271 | return NULL; | |
12272 | } | |
12273 | ||
12274 | ||
12275 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12276 | PyObject *resultobj; | |
12277 | wxDC *arg1 = (wxDC *) 0 ; | |
12278 | int arg2 ; | |
12279 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12280 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12281 | char *kwnames[] = { |
12282 | (char *) "self",(char *) "mode", NULL | |
12283 | }; | |
12284 | ||
8edf1c75 | 12285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12287 | { |
12288 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12289 | if (PyErr_Occurred()) SWIG_fail; | |
12290 | } | |
d14a1e28 RD |
12291 | { |
12292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12293 | (arg1)->SetBackgroundMode(arg2); | |
12294 | ||
12295 | wxPyEndAllowThreads(__tstate); | |
12296 | if (PyErr_Occurred()) SWIG_fail; | |
12297 | } | |
12298 | Py_INCREF(Py_None); resultobj = Py_None; | |
12299 | return resultobj; | |
12300 | fail: | |
12301 | return NULL; | |
12302 | } | |
12303 | ||
12304 | ||
12305 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12306 | PyObject *resultobj; | |
12307 | wxDC *arg1 = (wxDC *) 0 ; | |
12308 | wxPalette *arg2 = 0 ; | |
12309 | PyObject * obj0 = 0 ; | |
12310 | PyObject * obj1 = 0 ; | |
12311 | char *kwnames[] = { | |
12312 | (char *) "self",(char *) "palette", NULL | |
12313 | }; | |
12314 | ||
12315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
12316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12317 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12318 | if (arg2 == NULL) { | |
12319 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12320 | } | |
12321 | { | |
12322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12323 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12324 | ||
12325 | wxPyEndAllowThreads(__tstate); | |
12326 | if (PyErr_Occurred()) SWIG_fail; | |
12327 | } | |
12328 | Py_INCREF(Py_None); resultobj = Py_None; | |
12329 | return resultobj; | |
12330 | fail: | |
12331 | return NULL; | |
12332 | } | |
12333 | ||
12334 | ||
0f774bef | 12335 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12336 | PyObject *resultobj; |
12337 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12338 | int arg2 ; |
12339 | int arg3 ; | |
12340 | int arg4 ; | |
12341 | int arg5 ; | |
d14a1e28 | 12342 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12343 | PyObject * obj1 = 0 ; |
12344 | PyObject * obj2 = 0 ; | |
12345 | PyObject * obj3 = 0 ; | |
12346 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12347 | char *kwnames[] = { |
12348 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12349 | }; | |
12350 | ||
8edf1c75 | 12351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12353 | { |
12354 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12355 | if (PyErr_Occurred()) SWIG_fail; | |
12356 | } | |
12357 | { | |
12358 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12359 | if (PyErr_Occurred()) SWIG_fail; | |
12360 | } | |
12361 | { | |
12362 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12363 | if (PyErr_Occurred()) SWIG_fail; | |
12364 | } | |
12365 | { | |
12366 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | } | |
d14a1e28 RD |
12369 | { |
12370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12371 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12372 | ||
12373 | wxPyEndAllowThreads(__tstate); | |
12374 | if (PyErr_Occurred()) SWIG_fail; | |
12375 | } | |
12376 | Py_INCREF(Py_None); resultobj = Py_None; | |
12377 | return resultobj; | |
12378 | fail: | |
12379 | return NULL; | |
12380 | } | |
12381 | ||
12382 | ||
0f774bef RD |
12383 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12384 | PyObject *resultobj; | |
12385 | wxDC *arg1 = (wxDC *) 0 ; | |
12386 | wxPoint *arg2 = 0 ; | |
12387 | wxSize *arg3 = 0 ; | |
12388 | wxPoint temp2 ; | |
12389 | wxSize temp3 ; | |
12390 | PyObject * obj0 = 0 ; | |
12391 | PyObject * obj1 = 0 ; | |
12392 | PyObject * obj2 = 0 ; | |
12393 | char *kwnames[] = { | |
12394 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12395 | }; | |
12396 | ||
12397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12399 | { | |
12400 | arg2 = &temp2; | |
12401 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12402 | } | |
12403 | { | |
12404 | arg3 = &temp3; | |
12405 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12406 | } | |
12407 | { | |
12408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12409 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12410 | ||
12411 | wxPyEndAllowThreads(__tstate); | |
12412 | if (PyErr_Occurred()) SWIG_fail; | |
12413 | } | |
12414 | Py_INCREF(Py_None); resultobj = Py_None; | |
12415 | return resultobj; | |
12416 | fail: | |
12417 | return NULL; | |
12418 | } | |
12419 | ||
12420 | ||
d14a1e28 RD |
12421 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
12422 | PyObject *resultobj; | |
12423 | wxDC *arg1 = (wxDC *) 0 ; | |
12424 | wxRect *arg2 = 0 ; | |
12425 | wxRect temp2 ; | |
12426 | PyObject * obj0 = 0 ; | |
12427 | PyObject * obj1 = 0 ; | |
12428 | char *kwnames[] = { | |
12429 | (char *) "self",(char *) "rect", NULL | |
12430 | }; | |
12431 | ||
12432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12434 | { | |
12435 | arg2 = &temp2; | |
12436 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12437 | } | |
12438 | { | |
12439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12440 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12441 | ||
12442 | wxPyEndAllowThreads(__tstate); | |
12443 | if (PyErr_Occurred()) SWIG_fail; | |
12444 | } | |
12445 | Py_INCREF(Py_None); resultobj = Py_None; | |
12446 | return resultobj; | |
12447 | fail: | |
12448 | return NULL; | |
12449 | } | |
12450 | ||
12451 | ||
12452 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12453 | PyObject *resultobj; | |
12454 | wxDC *arg1 = (wxDC *) 0 ; | |
12455 | wxRegion *arg2 = 0 ; | |
12456 | PyObject * obj0 = 0 ; | |
12457 | PyObject * obj1 = 0 ; | |
12458 | char *kwnames[] = { | |
12459 | (char *) "self",(char *) "region", NULL | |
12460 | }; | |
12461 | ||
12462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12464 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12465 | if (arg2 == NULL) { | |
12466 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12467 | } | |
12468 | { | |
12469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12470 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12471 | ||
12472 | wxPyEndAllowThreads(__tstate); | |
12473 | if (PyErr_Occurred()) SWIG_fail; | |
12474 | } | |
12475 | Py_INCREF(Py_None); resultobj = Py_None; | |
12476 | return resultobj; | |
12477 | fail: | |
12478 | return NULL; | |
12479 | } | |
12480 | ||
12481 | ||
12482 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12483 | PyObject *resultobj; | |
12484 | wxDC *arg1 = (wxDC *) 0 ; | |
12485 | PyObject * obj0 = 0 ; | |
12486 | char *kwnames[] = { | |
12487 | (char *) "self", NULL | |
12488 | }; | |
12489 | ||
12490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
12491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12492 | { | |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | (arg1)->DestroyClippingRegion(); | |
12495 | ||
12496 | wxPyEndAllowThreads(__tstate); | |
12497 | if (PyErr_Occurred()) SWIG_fail; | |
12498 | } | |
12499 | Py_INCREF(Py_None); resultobj = Py_None; | |
12500 | return resultobj; | |
12501 | fail: | |
12502 | return NULL; | |
12503 | } | |
12504 | ||
12505 | ||
12506 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12507 | PyObject *resultobj; | |
12508 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12509 | int *arg2 = (int *) 0 ; |
12510 | int *arg3 = (int *) 0 ; | |
12511 | int *arg4 = (int *) 0 ; | |
12512 | int *arg5 = (int *) 0 ; | |
12513 | int temp2 ; | |
12514 | int temp3 ; | |
12515 | int temp4 ; | |
12516 | int temp5 ; | |
d14a1e28 RD |
12517 | PyObject * obj0 = 0 ; |
12518 | char *kwnames[] = { | |
12519 | (char *) "self", NULL | |
12520 | }; | |
12521 | ||
12522 | arg2 = &temp2; | |
12523 | arg3 = &temp3; | |
12524 | arg4 = &temp4; | |
12525 | arg5 = &temp5; | |
12526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
12527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12528 | { | |
12529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12530 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12531 | ||
12532 | wxPyEndAllowThreads(__tstate); | |
12533 | if (PyErr_Occurred()) SWIG_fail; | |
12534 | } | |
12535 | Py_INCREF(Py_None); resultobj = Py_None; | |
12536 | { | |
12537 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12538 | resultobj = t_output_helper(resultobj,o); | |
12539 | } | |
12540 | { | |
12541 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12542 | resultobj = t_output_helper(resultobj,o); | |
12543 | } | |
12544 | { | |
12545 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12546 | resultobj = t_output_helper(resultobj,o); | |
12547 | } | |
12548 | { | |
12549 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12550 | resultobj = t_output_helper(resultobj,o); | |
12551 | } | |
12552 | return resultobj; | |
12553 | fail: | |
12554 | return NULL; | |
12555 | } | |
12556 | ||
12557 | ||
12558 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12559 | PyObject *resultobj; | |
12560 | wxDC *arg1 = (wxDC *) 0 ; | |
12561 | wxRect result; | |
12562 | PyObject * obj0 = 0 ; | |
12563 | char *kwnames[] = { | |
12564 | (char *) "self", NULL | |
12565 | }; | |
12566 | ||
12567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
12568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12569 | { | |
12570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12571 | result = wxDC_GetClippingRect(arg1); | |
12572 | ||
12573 | wxPyEndAllowThreads(__tstate); | |
12574 | if (PyErr_Occurred()) SWIG_fail; | |
12575 | } | |
12576 | { | |
12577 | wxRect * resultptr; | |
12578 | resultptr = new wxRect((wxRect &) result); | |
12579 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
12580 | } | |
12581 | return resultobj; | |
12582 | fail: | |
12583 | return NULL; | |
12584 | } | |
12585 | ||
12586 | ||
12587 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12588 | PyObject *resultobj; | |
12589 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12590 | int result; |
d14a1e28 RD |
12591 | PyObject * obj0 = 0 ; |
12592 | char *kwnames[] = { | |
12593 | (char *) "self", NULL | |
12594 | }; | |
12595 | ||
12596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
12597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12598 | { | |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12600 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12601 | |
12602 | wxPyEndAllowThreads(__tstate); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
8edf1c75 | 12605 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12606 | return resultobj; |
12607 | fail: | |
12608 | return NULL; | |
12609 | } | |
12610 | ||
12611 | ||
12612 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12613 | PyObject *resultobj; | |
12614 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12615 | int result; |
d14a1e28 RD |
12616 | PyObject * obj0 = 0 ; |
12617 | char *kwnames[] = { | |
12618 | (char *) "self", NULL | |
12619 | }; | |
12620 | ||
12621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
12622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12623 | { | |
12624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12625 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12626 | |
12627 | wxPyEndAllowThreads(__tstate); | |
12628 | if (PyErr_Occurred()) SWIG_fail; | |
12629 | } | |
8edf1c75 | 12630 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12631 | return resultobj; |
12632 | fail: | |
12633 | return NULL; | |
12634 | } | |
12635 | ||
12636 | ||
12637 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12638 | PyObject *resultobj; | |
12639 | wxDC *arg1 = (wxDC *) 0 ; | |
12640 | wxString *arg2 = 0 ; | |
423f194a RD |
12641 | int *arg3 = (int *) 0 ; |
12642 | int *arg4 = (int *) 0 ; | |
12643 | bool temp2 = False ; | |
12644 | int temp3 ; | |
12645 | int temp4 ; | |
d14a1e28 RD |
12646 | PyObject * obj0 = 0 ; |
12647 | PyObject * obj1 = 0 ; | |
12648 | char *kwnames[] = { | |
12649 | (char *) "self",(char *) "string", NULL | |
12650 | }; | |
12651 | ||
12652 | arg3 = &temp3; | |
12653 | arg4 = &temp4; | |
12654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
12655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12656 | { | |
12657 | arg2 = wxString_in_helper(obj1); | |
12658 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12659 | temp2 = True; |
d14a1e28 RD |
12660 | } |
12661 | { | |
12662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12663 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12664 | ||
12665 | wxPyEndAllowThreads(__tstate); | |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | } | |
12668 | Py_INCREF(Py_None); resultobj = Py_None; | |
12669 | { | |
12670 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12671 | resultobj = t_output_helper(resultobj,o); | |
12672 | } | |
12673 | { | |
12674 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12675 | resultobj = t_output_helper(resultobj,o); | |
12676 | } | |
12677 | { | |
12678 | if (temp2) | |
12679 | delete arg2; | |
12680 | } | |
12681 | return resultobj; | |
12682 | fail: | |
12683 | { | |
12684 | if (temp2) | |
12685 | delete arg2; | |
12686 | } | |
12687 | return NULL; | |
12688 | } | |
12689 | ||
12690 | ||
12691 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12692 | PyObject *resultobj; | |
12693 | wxDC *arg1 = (wxDC *) 0 ; | |
12694 | wxString *arg2 = 0 ; | |
423f194a RD |
12695 | int *arg3 = (int *) 0 ; |
12696 | int *arg4 = (int *) 0 ; | |
12697 | int *arg5 = (int *) 0 ; | |
12698 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12699 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
12700 | bool temp2 = False ; |
12701 | int temp3 ; | |
12702 | int temp4 ; | |
12703 | int temp5 ; | |
12704 | int temp6 ; | |
d14a1e28 RD |
12705 | PyObject * obj0 = 0 ; |
12706 | PyObject * obj1 = 0 ; | |
12707 | PyObject * obj2 = 0 ; | |
12708 | char *kwnames[] = { | |
12709 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12710 | }; | |
12711 | ||
12712 | arg3 = &temp3; | |
12713 | arg4 = &temp4; | |
12714 | arg5 = &temp5; | |
12715 | arg6 = &temp6; | |
12716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12718 | { | |
12719 | arg2 = wxString_in_helper(obj1); | |
12720 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12721 | temp2 = True; |
d14a1e28 RD |
12722 | } |
12723 | if (obj2) { | |
12724 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12725 | } | |
12726 | { | |
12727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12728 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12729 | ||
12730 | wxPyEndAllowThreads(__tstate); | |
12731 | if (PyErr_Occurred()) SWIG_fail; | |
12732 | } | |
12733 | Py_INCREF(Py_None); resultobj = Py_None; | |
12734 | { | |
12735 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12736 | resultobj = t_output_helper(resultobj,o); | |
12737 | } | |
12738 | { | |
12739 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12740 | resultobj = t_output_helper(resultobj,o); | |
12741 | } | |
12742 | { | |
12743 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12744 | resultobj = t_output_helper(resultobj,o); | |
12745 | } | |
12746 | { | |
12747 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12748 | resultobj = t_output_helper(resultobj,o); | |
12749 | } | |
12750 | { | |
12751 | if (temp2) | |
12752 | delete arg2; | |
12753 | } | |
12754 | return resultobj; | |
12755 | fail: | |
12756 | { | |
12757 | if (temp2) | |
12758 | delete arg2; | |
12759 | } | |
12760 | return NULL; | |
12761 | } | |
12762 | ||
12763 | ||
12764 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12765 | PyObject *resultobj; | |
12766 | wxDC *arg1 = (wxDC *) 0 ; | |
12767 | wxString *arg2 = 0 ; | |
423f194a RD |
12768 | int *arg3 = (int *) 0 ; |
12769 | int *arg4 = (int *) 0 ; | |
12770 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12771 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
12772 | bool temp2 = False ; |
12773 | int temp3 ; | |
12774 | int temp4 ; | |
12775 | int temp5 ; | |
d14a1e28 RD |
12776 | PyObject * obj0 = 0 ; |
12777 | PyObject * obj1 = 0 ; | |
12778 | PyObject * obj2 = 0 ; | |
12779 | char *kwnames[] = { | |
12780 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12781 | }; | |
12782 | ||
12783 | arg3 = &temp3; | |
12784 | arg4 = &temp4; | |
12785 | arg5 = &temp5; | |
12786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12788 | { | |
12789 | arg2 = wxString_in_helper(obj1); | |
12790 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12791 | temp2 = True; |
d14a1e28 RD |
12792 | } |
12793 | if (obj2) { | |
12794 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12795 | } | |
12796 | { | |
12797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12798 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12799 | ||
12800 | wxPyEndAllowThreads(__tstate); | |
12801 | if (PyErr_Occurred()) SWIG_fail; | |
12802 | } | |
12803 | Py_INCREF(Py_None); resultobj = Py_None; | |
12804 | { | |
12805 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12806 | resultobj = t_output_helper(resultobj,o); | |
12807 | } | |
12808 | { | |
12809 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12810 | resultobj = t_output_helper(resultobj,o); | |
12811 | } | |
12812 | { | |
12813 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12814 | resultobj = t_output_helper(resultobj,o); | |
12815 | } | |
12816 | { | |
12817 | if (temp2) | |
12818 | delete arg2; | |
12819 | } | |
12820 | return resultobj; | |
12821 | fail: | |
12822 | { | |
12823 | if (temp2) | |
12824 | delete arg2; | |
12825 | } | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
0ffb2aa6 RD |
12830 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { |
12831 | PyObject *resultobj; | |
12832 | wxDC *arg1 = (wxDC *) 0 ; | |
12833 | wxString *arg2 = 0 ; | |
12834 | wxArrayInt result; | |
12835 | bool temp2 = False ; | |
12836 | PyObject * obj0 = 0 ; | |
12837 | PyObject * obj1 = 0 ; | |
12838 | char *kwnames[] = { | |
12839 | (char *) "self",(char *) "text", NULL | |
12840 | }; | |
12841 | ||
12842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
12843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12844 | { | |
12845 | arg2 = wxString_in_helper(obj1); | |
12846 | if (arg2 == NULL) SWIG_fail; | |
12847 | temp2 = True; | |
12848 | } | |
12849 | { | |
12850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12851 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
12852 | ||
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | { | |
12857 | resultobj = PyList_New(0); | |
12858 | size_t idx; | |
12859 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
12860 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
12861 | PyList_Append(resultobj, val); | |
12862 | Py_DECREF(val); | |
12863 | } | |
12864 | } | |
12865 | { | |
12866 | if (temp2) | |
12867 | delete arg2; | |
12868 | } | |
12869 | return resultobj; | |
12870 | fail: | |
12871 | { | |
12872 | if (temp2) | |
12873 | delete arg2; | |
12874 | } | |
12875 | return NULL; | |
12876 | } | |
12877 | ||
12878 | ||
44127b65 RD |
12879 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
12880 | PyObject *resultobj; | |
12881 | wxDC *arg1 = (wxDC *) 0 ; | |
12882 | wxSize result; | |
12883 | PyObject * obj0 = 0 ; | |
12884 | char *kwnames[] = { | |
12885 | (char *) "self", NULL | |
12886 | }; | |
12887 | ||
12888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
12889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12890 | { | |
12891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12892 | result = (arg1)->GetSize(); | |
12893 | ||
12894 | wxPyEndAllowThreads(__tstate); | |
12895 | if (PyErr_Occurred()) SWIG_fail; | |
12896 | } | |
12897 | { | |
12898 | wxSize * resultptr; | |
12899 | resultptr = new wxSize((wxSize &) result); | |
12900 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12901 | } | |
12902 | return resultobj; | |
12903 | fail: | |
12904 | return NULL; | |
12905 | } | |
12906 | ||
12907 | ||
d14a1e28 RD |
12908 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
12909 | PyObject *resultobj; | |
12910 | wxDC *arg1 = (wxDC *) 0 ; | |
12911 | int *arg2 = (int *) 0 ; | |
12912 | int *arg3 = (int *) 0 ; | |
12913 | int temp2 ; | |
12914 | int temp3 ; | |
12915 | PyObject * obj0 = 0 ; | |
12916 | char *kwnames[] = { | |
12917 | (char *) "self", NULL | |
12918 | }; | |
12919 | ||
12920 | arg2 = &temp2; | |
12921 | arg3 = &temp3; | |
12922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
12923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12924 | { | |
12925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12926 | (arg1)->GetSize(arg2,arg3); | |
12927 | ||
12928 | wxPyEndAllowThreads(__tstate); | |
12929 | if (PyErr_Occurred()) SWIG_fail; | |
12930 | } | |
12931 | Py_INCREF(Py_None); resultobj = Py_None; | |
12932 | { | |
12933 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12934 | resultobj = t_output_helper(resultobj,o); | |
12935 | } | |
12936 | { | |
12937 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12938 | resultobj = t_output_helper(resultobj,o); | |
12939 | } | |
12940 | return resultobj; | |
12941 | fail: | |
12942 | return NULL; | |
12943 | } | |
12944 | ||
12945 | ||
44127b65 | 12946 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12947 | PyObject *resultobj; |
12948 | wxDC *arg1 = (wxDC *) 0 ; | |
12949 | wxSize result; | |
12950 | PyObject * obj0 = 0 ; | |
12951 | char *kwnames[] = { | |
12952 | (char *) "self", NULL | |
12953 | }; | |
12954 | ||
44127b65 | 12955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12959 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
12960 | |
12961 | wxPyEndAllowThreads(__tstate); | |
12962 | if (PyErr_Occurred()) SWIG_fail; | |
12963 | } | |
12964 | { | |
12965 | wxSize * resultptr; | |
12966 | resultptr = new wxSize((wxSize &) result); | |
12967 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12968 | } | |
12969 | return resultobj; | |
12970 | fail: | |
12971 | return NULL; | |
12972 | } | |
12973 | ||
12974 | ||
44127b65 | 12975 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12976 | PyObject *resultobj; |
12977 | wxDC *arg1 = (wxDC *) 0 ; | |
12978 | int *arg2 = (int *) 0 ; | |
12979 | int *arg3 = (int *) 0 ; | |
12980 | int temp2 ; | |
12981 | int temp3 ; | |
12982 | PyObject * obj0 = 0 ; | |
12983 | char *kwnames[] = { | |
12984 | (char *) "self", NULL | |
12985 | }; | |
12986 | ||
12987 | arg2 = &temp2; | |
12988 | arg3 = &temp3; | |
44127b65 | 12989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12991 | { | |
12992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12993 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
12994 | ||
12995 | wxPyEndAllowThreads(__tstate); | |
12996 | if (PyErr_Occurred()) SWIG_fail; | |
12997 | } | |
12998 | Py_INCREF(Py_None); resultobj = Py_None; | |
12999 | { | |
13000 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13001 | resultobj = t_output_helper(resultobj,o); | |
13002 | } | |
13003 | { | |
13004 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13005 | resultobj = t_output_helper(resultobj,o); | |
13006 | } | |
13007 | return resultobj; | |
13008 | fail: | |
13009 | return NULL; | |
13010 | } | |
13011 | ||
13012 | ||
d14a1e28 RD |
13013 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
13014 | PyObject *resultobj; | |
13015 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13016 | int arg2 ; |
13017 | int result; | |
d14a1e28 | 13018 | PyObject * obj0 = 0 ; |
8edf1c75 | 13019 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13020 | char *kwnames[] = { |
13021 | (char *) "self",(char *) "x", NULL | |
13022 | }; | |
13023 | ||
8edf1c75 | 13024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13026 | { |
13027 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
d14a1e28 RD |
13030 | { |
13031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13032 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13033 | |
13034 | wxPyEndAllowThreads(__tstate); | |
13035 | if (PyErr_Occurred()) SWIG_fail; | |
13036 | } | |
8edf1c75 | 13037 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13038 | return resultobj; |
13039 | fail: | |
13040 | return NULL; | |
13041 | } | |
13042 | ||
13043 | ||
13044 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13045 | PyObject *resultobj; | |
13046 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13047 | int arg2 ; |
13048 | int result; | |
d14a1e28 | 13049 | PyObject * obj0 = 0 ; |
8edf1c75 | 13050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13051 | char *kwnames[] = { |
13052 | (char *) "self",(char *) "y", NULL | |
13053 | }; | |
13054 | ||
8edf1c75 | 13055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13057 | { |
13058 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13059 | if (PyErr_Occurred()) SWIG_fail; | |
13060 | } | |
d14a1e28 RD |
13061 | { |
13062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13063 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13064 | |
13065 | wxPyEndAllowThreads(__tstate); | |
13066 | if (PyErr_Occurred()) SWIG_fail; | |
13067 | } | |
8edf1c75 | 13068 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13069 | return resultobj; |
13070 | fail: | |
13071 | return NULL; | |
13072 | } | |
13073 | ||
13074 | ||
13075 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13076 | PyObject *resultobj; | |
13077 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13078 | int arg2 ; |
13079 | int result; | |
d14a1e28 | 13080 | PyObject * obj0 = 0 ; |
8edf1c75 | 13081 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13082 | char *kwnames[] = { |
13083 | (char *) "self",(char *) "x", NULL | |
13084 | }; | |
13085 | ||
8edf1c75 | 13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13088 | { |
13089 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13090 | if (PyErr_Occurred()) SWIG_fail; | |
13091 | } | |
d14a1e28 RD |
13092 | { |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13094 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13095 | |
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
8edf1c75 | 13099 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13100 | return resultobj; |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
13106 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13107 | PyObject *resultobj; | |
13108 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13109 | int arg2 ; |
13110 | int result; | |
d14a1e28 | 13111 | PyObject * obj0 = 0 ; |
8edf1c75 | 13112 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13113 | char *kwnames[] = { |
13114 | (char *) "self",(char *) "y", NULL | |
13115 | }; | |
13116 | ||
8edf1c75 | 13117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13119 | { |
13120 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13121 | if (PyErr_Occurred()) SWIG_fail; | |
13122 | } | |
d14a1e28 RD |
13123 | { |
13124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13125 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13126 | |
13127 | wxPyEndAllowThreads(__tstate); | |
13128 | if (PyErr_Occurred()) SWIG_fail; | |
13129 | } | |
8edf1c75 | 13130 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13131 | return resultobj; |
13132 | fail: | |
13133 | return NULL; | |
13134 | } | |
13135 | ||
13136 | ||
13137 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13138 | PyObject *resultobj; | |
13139 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13140 | int arg2 ; |
13141 | int result; | |
d14a1e28 | 13142 | PyObject * obj0 = 0 ; |
8edf1c75 | 13143 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13144 | char *kwnames[] = { |
13145 | (char *) "self",(char *) "x", NULL | |
13146 | }; | |
13147 | ||
8edf1c75 | 13148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13150 | { |
13151 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
d14a1e28 RD |
13154 | { |
13155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13156 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13157 | |
13158 | wxPyEndAllowThreads(__tstate); | |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
13160 | } | |
8edf1c75 | 13161 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13162 | return resultobj; |
13163 | fail: | |
13164 | return NULL; | |
13165 | } | |
13166 | ||
13167 | ||
13168 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13169 | PyObject *resultobj; | |
13170 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13171 | int arg2 ; |
13172 | int result; | |
d14a1e28 | 13173 | PyObject * obj0 = 0 ; |
8edf1c75 | 13174 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13175 | char *kwnames[] = { |
13176 | (char *) "self",(char *) "y", NULL | |
13177 | }; | |
13178 | ||
8edf1c75 | 13179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13181 | { |
13182 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13183 | if (PyErr_Occurred()) SWIG_fail; | |
13184 | } | |
d14a1e28 RD |
13185 | { |
13186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13187 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13188 | |
13189 | wxPyEndAllowThreads(__tstate); | |
13190 | if (PyErr_Occurred()) SWIG_fail; | |
13191 | } | |
8edf1c75 | 13192 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13193 | return resultobj; |
13194 | fail: | |
13195 | return NULL; | |
13196 | } | |
13197 | ||
13198 | ||
13199 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13200 | PyObject *resultobj; | |
13201 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13202 | int arg2 ; |
13203 | int result; | |
d14a1e28 | 13204 | PyObject * obj0 = 0 ; |
8edf1c75 | 13205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13206 | char *kwnames[] = { |
13207 | (char *) "self",(char *) "x", NULL | |
13208 | }; | |
13209 | ||
8edf1c75 | 13210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13212 | { |
13213 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13214 | if (PyErr_Occurred()) SWIG_fail; | |
13215 | } | |
d14a1e28 RD |
13216 | { |
13217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13218 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13219 | |
13220 | wxPyEndAllowThreads(__tstate); | |
13221 | if (PyErr_Occurred()) SWIG_fail; | |
13222 | } | |
8edf1c75 | 13223 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13224 | return resultobj; |
13225 | fail: | |
13226 | return NULL; | |
13227 | } | |
13228 | ||
13229 | ||
13230 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13231 | PyObject *resultobj; | |
13232 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13233 | int arg2 ; |
13234 | int result; | |
d14a1e28 | 13235 | PyObject * obj0 = 0 ; |
8edf1c75 | 13236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13237 | char *kwnames[] = { |
13238 | (char *) "self",(char *) "y", NULL | |
13239 | }; | |
13240 | ||
8edf1c75 | 13241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13243 | { |
13244 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
13246 | } | |
d14a1e28 RD |
13247 | { |
13248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13249 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13250 | |
13251 | wxPyEndAllowThreads(__tstate); | |
13252 | if (PyErr_Occurred()) SWIG_fail; | |
13253 | } | |
8edf1c75 | 13254 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13255 | return resultobj; |
13256 | fail: | |
13257 | return NULL; | |
13258 | } | |
13259 | ||
13260 | ||
13261 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13262 | PyObject *resultobj; | |
13263 | wxDC *arg1 = (wxDC *) 0 ; | |
13264 | bool result; | |
13265 | PyObject * obj0 = 0 ; | |
13266 | char *kwnames[] = { | |
13267 | (char *) "self", NULL | |
13268 | }; | |
13269 | ||
13270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13272 | { | |
13273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13274 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13275 | ||
13276 | wxPyEndAllowThreads(__tstate); | |
13277 | if (PyErr_Occurred()) SWIG_fail; | |
13278 | } | |
02a34c4c | 13279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13280 | return resultobj; |
13281 | fail: | |
13282 | return NULL; | |
13283 | } | |
13284 | ||
13285 | ||
13286 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13287 | PyObject *resultobj; | |
13288 | wxDC *arg1 = (wxDC *) 0 ; | |
13289 | bool result; | |
13290 | PyObject * obj0 = 0 ; | |
13291 | char *kwnames[] = { | |
13292 | (char *) "self", NULL | |
13293 | }; | |
13294 | ||
13295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13297 | { | |
13298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13299 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13300 | ||
13301 | wxPyEndAllowThreads(__tstate); | |
13302 | if (PyErr_Occurred()) SWIG_fail; | |
13303 | } | |
02a34c4c | 13304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13305 | return resultobj; |
13306 | fail: | |
13307 | return NULL; | |
13308 | } | |
13309 | ||
13310 | ||
13311 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13312 | PyObject *resultobj; | |
13313 | wxDC *arg1 = (wxDC *) 0 ; | |
13314 | int result; | |
13315 | PyObject * obj0 = 0 ; | |
13316 | char *kwnames[] = { | |
13317 | (char *) "self", NULL | |
13318 | }; | |
13319 | ||
13320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
13321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
8edf1c75 | 13329 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13330 | return resultobj; |
13331 | fail: | |
13332 | return NULL; | |
13333 | } | |
13334 | ||
13335 | ||
13336 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13337 | PyObject *resultobj; | |
13338 | wxDC *arg1 = (wxDC *) 0 ; | |
13339 | wxSize result; | |
13340 | PyObject * obj0 = 0 ; | |
13341 | char *kwnames[] = { | |
13342 | (char *) "self", NULL | |
13343 | }; | |
13344 | ||
13345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
13346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13347 | { | |
13348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13349 | result = ((wxDC const *)arg1)->GetPPI(); | |
13350 | ||
13351 | wxPyEndAllowThreads(__tstate); | |
13352 | if (PyErr_Occurred()) SWIG_fail; | |
13353 | } | |
13354 | { | |
13355 | wxSize * resultptr; | |
13356 | resultptr = new wxSize((wxSize &) result); | |
13357 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13358 | } | |
13359 | return resultobj; | |
13360 | fail: | |
13361 | return NULL; | |
13362 | } | |
13363 | ||
13364 | ||
13365 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13366 | PyObject *resultobj; | |
13367 | wxDC *arg1 = (wxDC *) 0 ; | |
13368 | bool result; | |
13369 | PyObject * obj0 = 0 ; | |
13370 | char *kwnames[] = { | |
13371 | (char *) "self", NULL | |
13372 | }; | |
13373 | ||
13374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
13375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13376 | { | |
13377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13378 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13379 | ||
13380 | wxPyEndAllowThreads(__tstate); | |
13381 | if (PyErr_Occurred()) SWIG_fail; | |
13382 | } | |
02a34c4c | 13383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13384 | return resultobj; |
13385 | fail: | |
13386 | return NULL; | |
13387 | } | |
13388 | ||
13389 | ||
13390 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13391 | PyObject *resultobj; | |
13392 | wxDC *arg1 = (wxDC *) 0 ; | |
13393 | int result; | |
13394 | PyObject * obj0 = 0 ; | |
13395 | char *kwnames[] = { | |
13396 | (char *) "self", NULL | |
13397 | }; | |
13398 | ||
13399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
13400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13401 | { | |
13402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13403 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13404 | ||
13405 | wxPyEndAllowThreads(__tstate); | |
13406 | if (PyErr_Occurred()) SWIG_fail; | |
13407 | } | |
8edf1c75 | 13408 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13409 | return resultobj; |
13410 | fail: | |
13411 | return NULL; | |
13412 | } | |
13413 | ||
13414 | ||
13415 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13416 | PyObject *resultobj; | |
13417 | wxDC *arg1 = (wxDC *) 0 ; | |
13418 | wxBrush *result; | |
13419 | PyObject * obj0 = 0 ; | |
13420 | char *kwnames[] = { | |
13421 | (char *) "self", NULL | |
13422 | }; | |
13423 | ||
13424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
13425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13426 | { | |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13428 | { | |
13429 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13430 | result = (wxBrush *) &_result_ref; | |
13431 | } | |
13432 | ||
13433 | wxPyEndAllowThreads(__tstate); | |
13434 | if (PyErr_Occurred()) SWIG_fail; | |
13435 | } | |
13436 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13437 | return resultobj; | |
13438 | fail: | |
13439 | return NULL; | |
13440 | } | |
13441 | ||
13442 | ||
13443 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13444 | PyObject *resultobj; | |
13445 | wxDC *arg1 = (wxDC *) 0 ; | |
13446 | wxBrush *result; | |
13447 | PyObject * obj0 = 0 ; | |
13448 | char *kwnames[] = { | |
13449 | (char *) "self", NULL | |
13450 | }; | |
13451 | ||
13452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
13453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | { | |
13457 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13458 | result = (wxBrush *) &_result_ref; | |
13459 | } | |
13460 | ||
13461 | wxPyEndAllowThreads(__tstate); | |
13462 | if (PyErr_Occurred()) SWIG_fail; | |
13463 | } | |
13464 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13465 | return resultobj; | |
13466 | fail: | |
13467 | return NULL; | |
13468 | } | |
13469 | ||
13470 | ||
13471 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13472 | PyObject *resultobj; | |
13473 | wxDC *arg1 = (wxDC *) 0 ; | |
13474 | wxFont *result; | |
13475 | PyObject * obj0 = 0 ; | |
13476 | char *kwnames[] = { | |
13477 | (char *) "self", NULL | |
13478 | }; | |
13479 | ||
13480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
13481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13482 | { | |
13483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13484 | { | |
13485 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13486 | result = (wxFont *) &_result_ref; | |
13487 | } | |
13488 | ||
13489 | wxPyEndAllowThreads(__tstate); | |
13490 | if (PyErr_Occurred()) SWIG_fail; | |
13491 | } | |
13492 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
13493 | return resultobj; | |
13494 | fail: | |
13495 | return NULL; | |
13496 | } | |
13497 | ||
13498 | ||
13499 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13500 | PyObject *resultobj; | |
13501 | wxDC *arg1 = (wxDC *) 0 ; | |
13502 | wxPen *result; | |
13503 | PyObject * obj0 = 0 ; | |
13504 | char *kwnames[] = { | |
13505 | (char *) "self", NULL | |
13506 | }; | |
13507 | ||
13508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
13509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | { | |
13513 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13514 | result = (wxPen *) &_result_ref; | |
13515 | } | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
13520 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
13521 | return resultobj; | |
13522 | fail: | |
13523 | return NULL; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13528 | PyObject *resultobj; | |
13529 | wxDC *arg1 = (wxDC *) 0 ; | |
13530 | wxColour *result; | |
13531 | PyObject * obj0 = 0 ; | |
13532 | char *kwnames[] = { | |
13533 | (char *) "self", NULL | |
13534 | }; | |
13535 | ||
13536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
13537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13538 | { | |
13539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13540 | { | |
13541 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13542 | result = (wxColour *) &_result_ref; | |
13543 | } | |
13544 | ||
13545 | wxPyEndAllowThreads(__tstate); | |
13546 | if (PyErr_Occurred()) SWIG_fail; | |
13547 | } | |
13548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13549 | return resultobj; | |
13550 | fail: | |
13551 | return NULL; | |
13552 | } | |
13553 | ||
13554 | ||
13555 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13556 | PyObject *resultobj; | |
13557 | wxDC *arg1 = (wxDC *) 0 ; | |
13558 | wxColour *result; | |
13559 | PyObject * obj0 = 0 ; | |
13560 | char *kwnames[] = { | |
13561 | (char *) "self", NULL | |
13562 | }; | |
13563 | ||
13564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
13565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13566 | { | |
13567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13568 | { | |
13569 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13570 | result = (wxColour *) &_result_ref; | |
13571 | } | |
13572 | ||
13573 | wxPyEndAllowThreads(__tstate); | |
13574 | if (PyErr_Occurred()) SWIG_fail; | |
13575 | } | |
13576 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13577 | return resultobj; | |
13578 | fail: | |
13579 | return NULL; | |
13580 | } | |
13581 | ||
13582 | ||
13583 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13584 | PyObject *resultobj; | |
13585 | wxDC *arg1 = (wxDC *) 0 ; | |
13586 | wxColour *arg2 = 0 ; | |
13587 | wxColour temp2 ; | |
13588 | PyObject * obj0 = 0 ; | |
13589 | PyObject * obj1 = 0 ; | |
13590 | char *kwnames[] = { | |
13591 | (char *) "self",(char *) "colour", NULL | |
13592 | }; | |
13593 | ||
13594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
13595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13596 | { | |
13597 | arg2 = &temp2; | |
13598 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13599 | } | |
13600 | { | |
13601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13602 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13603 | ||
13604 | wxPyEndAllowThreads(__tstate); | |
13605 | if (PyErr_Occurred()) SWIG_fail; | |
13606 | } | |
13607 | Py_INCREF(Py_None); resultobj = Py_None; | |
13608 | return resultobj; | |
13609 | fail: | |
13610 | return NULL; | |
13611 | } | |
13612 | ||
13613 | ||
13614 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13615 | PyObject *resultobj; | |
13616 | wxDC *arg1 = (wxDC *) 0 ; | |
13617 | wxColour *arg2 = 0 ; | |
13618 | wxColour temp2 ; | |
13619 | PyObject * obj0 = 0 ; | |
13620 | PyObject * obj1 = 0 ; | |
13621 | char *kwnames[] = { | |
13622 | (char *) "self",(char *) "colour", NULL | |
13623 | }; | |
13624 | ||
13625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
13626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13627 | { | |
13628 | arg2 = &temp2; | |
13629 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13630 | } | |
13631 | { | |
13632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13633 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13634 | ||
13635 | wxPyEndAllowThreads(__tstate); | |
13636 | if (PyErr_Occurred()) SWIG_fail; | |
13637 | } | |
13638 | Py_INCREF(Py_None); resultobj = Py_None; | |
13639 | return resultobj; | |
13640 | fail: | |
13641 | return NULL; | |
13642 | } | |
13643 | ||
13644 | ||
13645 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13646 | PyObject *resultobj; | |
13647 | wxDC *arg1 = (wxDC *) 0 ; | |
13648 | int result; | |
13649 | PyObject * obj0 = 0 ; | |
13650 | char *kwnames[] = { | |
13651 | (char *) "self", NULL | |
13652 | }; | |
13653 | ||
13654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
13655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13656 | { | |
13657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13658 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
8edf1c75 | 13663 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13664 | return resultobj; |
13665 | fail: | |
13666 | return NULL; | |
13667 | } | |
13668 | ||
13669 | ||
13670 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13671 | PyObject *resultobj; | |
13672 | wxDC *arg1 = (wxDC *) 0 ; | |
13673 | int arg2 ; | |
13674 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13676 | char *kwnames[] = { |
13677 | (char *) "self",(char *) "mode", NULL | |
13678 | }; | |
13679 | ||
8edf1c75 | 13680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13682 | { |
13683 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13684 | if (PyErr_Occurred()) SWIG_fail; | |
13685 | } | |
d14a1e28 RD |
13686 | { |
13687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13688 | (arg1)->SetMapMode(arg2); | |
13689 | ||
13690 | wxPyEndAllowThreads(__tstate); | |
13691 | if (PyErr_Occurred()) SWIG_fail; | |
13692 | } | |
13693 | Py_INCREF(Py_None); resultobj = Py_None; | |
13694 | return resultobj; | |
13695 | fail: | |
13696 | return NULL; | |
13697 | } | |
13698 | ||
13699 | ||
13700 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13701 | PyObject *resultobj; | |
13702 | wxDC *arg1 = (wxDC *) 0 ; | |
13703 | double *arg2 = (double *) 0 ; | |
13704 | double *arg3 = (double *) 0 ; | |
13705 | double temp2 ; | |
13706 | double temp3 ; | |
13707 | PyObject * obj0 = 0 ; | |
13708 | char *kwnames[] = { | |
13709 | (char *) "self", NULL | |
13710 | }; | |
13711 | ||
13712 | arg2 = &temp2; | |
13713 | arg3 = &temp3; | |
13714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
13715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13716 | { | |
13717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13718 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13719 | ||
13720 | wxPyEndAllowThreads(__tstate); | |
13721 | if (PyErr_Occurred()) SWIG_fail; | |
13722 | } | |
13723 | Py_INCREF(Py_None); resultobj = Py_None; | |
13724 | { | |
13725 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13726 | resultobj = t_output_helper(resultobj,o); | |
13727 | } | |
13728 | { | |
13729 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13730 | resultobj = t_output_helper(resultobj,o); | |
13731 | } | |
13732 | return resultobj; | |
13733 | fail: | |
13734 | return NULL; | |
13735 | } | |
13736 | ||
13737 | ||
13738 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13739 | PyObject *resultobj; | |
13740 | wxDC *arg1 = (wxDC *) 0 ; | |
13741 | double arg2 ; | |
13742 | double arg3 ; | |
13743 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13744 | PyObject * obj1 = 0 ; |
13745 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13746 | char *kwnames[] = { |
13747 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13748 | }; | |
13749 | ||
8edf1c75 | 13750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13752 | { |
13753 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13754 | if (PyErr_Occurred()) SWIG_fail; | |
13755 | } | |
13756 | { | |
13757 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
13759 | } | |
d14a1e28 RD |
13760 | { |
13761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13762 | (arg1)->SetUserScale(arg2,arg3); | |
13763 | ||
13764 | wxPyEndAllowThreads(__tstate); | |
13765 | if (PyErr_Occurred()) SWIG_fail; | |
13766 | } | |
13767 | Py_INCREF(Py_None); resultobj = Py_None; | |
13768 | return resultobj; | |
13769 | fail: | |
13770 | return NULL; | |
13771 | } | |
13772 | ||
13773 | ||
13774 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13775 | PyObject *resultobj; | |
13776 | wxDC *arg1 = (wxDC *) 0 ; | |
13777 | double *arg2 = (double *) 0 ; | |
13778 | double *arg3 = (double *) 0 ; | |
13779 | double temp2 ; | |
13780 | double temp3 ; | |
13781 | PyObject * obj0 = 0 ; | |
13782 | char *kwnames[] = { | |
13783 | (char *) "self", NULL | |
13784 | }; | |
13785 | ||
13786 | arg2 = &temp2; | |
13787 | arg3 = &temp3; | |
13788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
13789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13790 | { | |
13791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13792 | (arg1)->GetLogicalScale(arg2,arg3); | |
13793 | ||
13794 | wxPyEndAllowThreads(__tstate); | |
13795 | if (PyErr_Occurred()) SWIG_fail; | |
13796 | } | |
13797 | Py_INCREF(Py_None); resultobj = Py_None; | |
13798 | { | |
13799 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13800 | resultobj = t_output_helper(resultobj,o); | |
13801 | } | |
13802 | { | |
13803 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13804 | resultobj = t_output_helper(resultobj,o); | |
13805 | } | |
13806 | return resultobj; | |
13807 | fail: | |
13808 | return NULL; | |
13809 | } | |
13810 | ||
13811 | ||
13812 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13813 | PyObject *resultobj; | |
13814 | wxDC *arg1 = (wxDC *) 0 ; | |
13815 | double arg2 ; | |
13816 | double arg3 ; | |
13817 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13818 | PyObject * obj1 = 0 ; |
13819 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13820 | char *kwnames[] = { |
13821 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13822 | }; | |
13823 | ||
8edf1c75 | 13824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13826 | { |
13827 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13828 | if (PyErr_Occurred()) SWIG_fail; | |
13829 | } | |
13830 | { | |
13831 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13832 | if (PyErr_Occurred()) SWIG_fail; | |
13833 | } | |
d14a1e28 RD |
13834 | { |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13836 | (arg1)->SetLogicalScale(arg2,arg3); | |
13837 | ||
13838 | wxPyEndAllowThreads(__tstate); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | } | |
13841 | Py_INCREF(Py_None); resultobj = Py_None; | |
13842 | return resultobj; | |
13843 | fail: | |
13844 | return NULL; | |
13845 | } | |
13846 | ||
13847 | ||
44127b65 | 13848 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13849 | PyObject *resultobj; |
13850 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 13851 | wxPoint result; |
d14a1e28 RD |
13852 | PyObject * obj0 = 0 ; |
13853 | char *kwnames[] = { | |
13854 | (char *) "self", NULL | |
13855 | }; | |
13856 | ||
44127b65 | 13857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13859 | { | |
13860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13861 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
13862 | |
13863 | wxPyEndAllowThreads(__tstate); | |
13864 | if (PyErr_Occurred()) SWIG_fail; | |
13865 | } | |
d14a1e28 | 13866 | { |
44127b65 RD |
13867 | wxPoint * resultptr; |
13868 | resultptr = new wxPoint((wxPoint &) result); | |
13869 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13870 | } |
13871 | return resultobj; | |
13872 | fail: | |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
44127b65 | 13877 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13878 | PyObject *resultobj; |
13879 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
13880 | int *arg2 = (int *) 0 ; |
13881 | int *arg3 = (int *) 0 ; | |
13882 | int temp2 ; | |
13883 | int temp3 ; | |
d14a1e28 RD |
13884 | PyObject * obj0 = 0 ; |
13885 | char *kwnames[] = { | |
13886 | (char *) "self", NULL | |
13887 | }; | |
13888 | ||
44127b65 RD |
13889 | arg2 = &temp2; |
13890 | arg3 = &temp3; | |
13891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13893 | { | |
13894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13895 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
13896 | |
13897 | wxPyEndAllowThreads(__tstate); | |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | } | |
44127b65 | 13900 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13901 | { |
44127b65 RD |
13902 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13903 | resultobj = t_output_helper(resultobj,o); | |
13904 | } | |
13905 | { | |
13906 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13907 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13908 | } |
13909 | return resultobj; | |
13910 | fail: | |
13911 | return NULL; | |
13912 | } | |
13913 | ||
13914 | ||
13915 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13916 | PyObject *resultobj; | |
13917 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13918 | int arg2 ; |
13919 | int arg3 ; | |
d14a1e28 | 13920 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13921 | PyObject * obj1 = 0 ; |
13922 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13923 | char *kwnames[] = { |
13924 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13925 | }; | |
13926 | ||
8edf1c75 | 13927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13929 | { |
13930 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13931 | if (PyErr_Occurred()) SWIG_fail; | |
13932 | } | |
13933 | { | |
13934 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13935 | if (PyErr_Occurred()) SWIG_fail; | |
13936 | } | |
d14a1e28 RD |
13937 | { |
13938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13939 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
13940 | ||
13941 | wxPyEndAllowThreads(__tstate); | |
13942 | if (PyErr_Occurred()) SWIG_fail; | |
13943 | } | |
13944 | Py_INCREF(Py_None); resultobj = Py_None; | |
13945 | return resultobj; | |
13946 | fail: | |
13947 | return NULL; | |
13948 | } | |
13949 | ||
13950 | ||
44127b65 | 13951 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13952 | PyObject *resultobj; |
13953 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 13954 | wxPoint result; |
d14a1e28 RD |
13955 | PyObject * obj0 = 0 ; |
13956 | char *kwnames[] = { | |
13957 | (char *) "self", NULL | |
13958 | }; | |
13959 | ||
44127b65 | 13960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13962 | { | |
13963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13964 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
13965 | |
13966 | wxPyEndAllowThreads(__tstate); | |
13967 | if (PyErr_Occurred()) SWIG_fail; | |
13968 | } | |
d14a1e28 | 13969 | { |
44127b65 RD |
13970 | wxPoint * resultptr; |
13971 | resultptr = new wxPoint((wxPoint &) result); | |
13972 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13973 | } |
13974 | return resultobj; | |
13975 | fail: | |
13976 | return NULL; | |
13977 | } | |
13978 | ||
13979 | ||
44127b65 | 13980 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13981 | PyObject *resultobj; |
13982 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
13983 | int *arg2 = (int *) 0 ; |
13984 | int *arg3 = (int *) 0 ; | |
13985 | int temp2 ; | |
13986 | int temp3 ; | |
d14a1e28 RD |
13987 | PyObject * obj0 = 0 ; |
13988 | char *kwnames[] = { | |
13989 | (char *) "self", NULL | |
13990 | }; | |
13991 | ||
44127b65 RD |
13992 | arg2 = &temp2; |
13993 | arg3 = &temp3; | |
13994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13996 | { | |
13997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13998 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
13999 | |
14000 | wxPyEndAllowThreads(__tstate); | |
14001 | if (PyErr_Occurred()) SWIG_fail; | |
14002 | } | |
44127b65 | 14003 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14004 | { |
44127b65 RD |
14005 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14006 | resultobj = t_output_helper(resultobj,o); | |
14007 | } | |
14008 | { | |
14009 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14010 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14011 | } |
14012 | return resultobj; | |
14013 | fail: | |
14014 | return NULL; | |
14015 | } | |
14016 | ||
14017 | ||
14018 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14019 | PyObject *resultobj; | |
14020 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14021 | int arg2 ; |
14022 | int arg3 ; | |
d14a1e28 | 14023 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14024 | PyObject * obj1 = 0 ; |
14025 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14026 | char *kwnames[] = { |
14027 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14028 | }; | |
14029 | ||
8edf1c75 | 14030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14032 | { |
14033 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14034 | if (PyErr_Occurred()) SWIG_fail; | |
14035 | } | |
14036 | { | |
14037 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14038 | if (PyErr_Occurred()) SWIG_fail; | |
14039 | } | |
d14a1e28 RD |
14040 | { |
14041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14042 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14043 | ||
14044 | wxPyEndAllowThreads(__tstate); | |
14045 | if (PyErr_Occurred()) SWIG_fail; | |
14046 | } | |
14047 | Py_INCREF(Py_None); resultobj = Py_None; | |
14048 | return resultobj; | |
14049 | fail: | |
14050 | return NULL; | |
14051 | } | |
14052 | ||
14053 | ||
14054 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14055 | PyObject *resultobj; | |
14056 | wxDC *arg1 = (wxDC *) 0 ; | |
14057 | bool arg2 ; | |
14058 | bool arg3 ; | |
14059 | PyObject * obj0 = 0 ; | |
14060 | PyObject * obj1 = 0 ; | |
14061 | PyObject * obj2 = 0 ; | |
14062 | char *kwnames[] = { | |
14063 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14064 | }; | |
14065 | ||
14066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 14068 | { |
8edf1c75 | 14069 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
14070 | if (PyErr_Occurred()) SWIG_fail; |
14071 | } | |
14072 | { | |
8edf1c75 | 14073 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
14074 | if (PyErr_Occurred()) SWIG_fail; |
14075 | } | |
d14a1e28 RD |
14076 | { |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14079 | ||
14080 | wxPyEndAllowThreads(__tstate); | |
14081 | if (PyErr_Occurred()) SWIG_fail; | |
14082 | } | |
14083 | Py_INCREF(Py_None); resultobj = Py_None; | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | return NULL; | |
14087 | } | |
14088 | ||
14089 | ||
14090 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14091 | PyObject *resultobj; | |
14092 | wxDC *arg1 = (wxDC *) 0 ; | |
14093 | int result; | |
14094 | PyObject * obj0 = 0 ; | |
14095 | char *kwnames[] = { | |
14096 | (char *) "self", NULL | |
14097 | }; | |
14098 | ||
14099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
14100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14101 | { | |
14102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14103 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14104 | ||
14105 | wxPyEndAllowThreads(__tstate); | |
14106 | if (PyErr_Occurred()) SWIG_fail; | |
14107 | } | |
8edf1c75 | 14108 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14109 | return resultobj; |
14110 | fail: | |
14111 | return NULL; | |
14112 | } | |
14113 | ||
14114 | ||
14115 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14116 | PyObject *resultobj; | |
14117 | wxDC *arg1 = (wxDC *) 0 ; | |
14118 | int arg2 ; | |
14119 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14120 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14121 | char *kwnames[] = { |
14122 | (char *) "self",(char *) "function", NULL | |
14123 | }; | |
14124 | ||
8edf1c75 | 14125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14127 | { |
14128 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14129 | if (PyErr_Occurred()) SWIG_fail; | |
14130 | } | |
d14a1e28 RD |
14131 | { |
14132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14133 | (arg1)->SetLogicalFunction(arg2); | |
14134 | ||
14135 | wxPyEndAllowThreads(__tstate); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
14137 | } | |
14138 | Py_INCREF(Py_None); resultobj = Py_None; | |
14139 | return resultobj; | |
14140 | fail: | |
14141 | return NULL; | |
14142 | } | |
14143 | ||
14144 | ||
14145 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14146 | PyObject *resultobj; | |
14147 | wxDC *arg1 = (wxDC *) 0 ; | |
14148 | bool arg2 ; | |
14149 | PyObject * obj0 = 0 ; | |
14150 | PyObject * obj1 = 0 ; | |
14151 | char *kwnames[] = { | |
14152 | (char *) "self",(char *) "opt", NULL | |
14153 | }; | |
14154 | ||
14155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
14156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 14157 | { |
8edf1c75 | 14158 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
14159 | if (PyErr_Occurred()) SWIG_fail; |
14160 | } | |
d14a1e28 RD |
14161 | { |
14162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14163 | (arg1)->SetOptimization(arg2); | |
14164 | ||
14165 | wxPyEndAllowThreads(__tstate); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
14168 | Py_INCREF(Py_None); resultobj = Py_None; | |
14169 | return resultobj; | |
14170 | fail: | |
14171 | return NULL; | |
14172 | } | |
14173 | ||
14174 | ||
14175 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14176 | PyObject *resultobj; | |
14177 | wxDC *arg1 = (wxDC *) 0 ; | |
14178 | bool result; | |
14179 | PyObject * obj0 = 0 ; | |
14180 | char *kwnames[] = { | |
14181 | (char *) "self", NULL | |
14182 | }; | |
14183 | ||
14184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
14185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14186 | { | |
14187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14188 | result = (bool)(arg1)->GetOptimization(); | |
14189 | ||
14190 | wxPyEndAllowThreads(__tstate); | |
14191 | if (PyErr_Occurred()) SWIG_fail; | |
14192 | } | |
02a34c4c | 14193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14194 | return resultobj; |
14195 | fail: | |
14196 | return NULL; | |
14197 | } | |
14198 | ||
14199 | ||
14200 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14201 | PyObject *resultobj; | |
14202 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14203 | int arg2 ; |
14204 | int arg3 ; | |
d14a1e28 | 14205 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14206 | PyObject * obj1 = 0 ; |
14207 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14208 | char *kwnames[] = { |
14209 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14210 | }; | |
14211 | ||
8edf1c75 | 14212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14214 | { |
14215 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14216 | if (PyErr_Occurred()) SWIG_fail; | |
14217 | } | |
14218 | { | |
14219 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14220 | if (PyErr_Occurred()) SWIG_fail; | |
14221 | } | |
d14a1e28 RD |
14222 | { |
14223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14224 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14225 | ||
14226 | wxPyEndAllowThreads(__tstate); | |
14227 | if (PyErr_Occurred()) SWIG_fail; | |
14228 | } | |
14229 | Py_INCREF(Py_None); resultobj = Py_None; | |
14230 | return resultobj; | |
14231 | fail: | |
14232 | return NULL; | |
14233 | } | |
14234 | ||
14235 | ||
14236 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14237 | PyObject *resultobj; | |
14238 | wxDC *arg1 = (wxDC *) 0 ; | |
14239 | PyObject * obj0 = 0 ; | |
14240 | char *kwnames[] = { | |
14241 | (char *) "self", NULL | |
14242 | }; | |
14243 | ||
14244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
14245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14246 | { | |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14248 | (arg1)->ResetBoundingBox(); | |
14249 | ||
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | Py_INCREF(Py_None); resultobj = Py_None; | |
14254 | return resultobj; | |
14255 | fail: | |
14256 | return NULL; | |
14257 | } | |
14258 | ||
14259 | ||
14260 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14261 | PyObject *resultobj; | |
14262 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14263 | int result; |
d14a1e28 RD |
14264 | PyObject * obj0 = 0 ; |
14265 | char *kwnames[] = { | |
14266 | (char *) "self", NULL | |
14267 | }; | |
14268 | ||
14269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
14270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14271 | { | |
14272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14273 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14274 | |
14275 | wxPyEndAllowThreads(__tstate); | |
14276 | if (PyErr_Occurred()) SWIG_fail; | |
14277 | } | |
8edf1c75 | 14278 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14279 | return resultobj; |
14280 | fail: | |
14281 | return NULL; | |
14282 | } | |
14283 | ||
14284 | ||
14285 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14286 | PyObject *resultobj; | |
14287 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14288 | int result; |
d14a1e28 RD |
14289 | PyObject * obj0 = 0 ; |
14290 | char *kwnames[] = { | |
14291 | (char *) "self", NULL | |
14292 | }; | |
14293 | ||
14294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
14295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14296 | { | |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14298 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14299 | |
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
8edf1c75 | 14303 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14304 | return resultobj; |
14305 | fail: | |
14306 | return NULL; | |
14307 | } | |
14308 | ||
14309 | ||
14310 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14311 | PyObject *resultobj; | |
14312 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14313 | int result; |
d14a1e28 RD |
14314 | PyObject * obj0 = 0 ; |
14315 | char *kwnames[] = { | |
14316 | (char *) "self", NULL | |
14317 | }; | |
14318 | ||
14319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
14320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14321 | { | |
14322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14323 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14324 | |
14325 | wxPyEndAllowThreads(__tstate); | |
14326 | if (PyErr_Occurred()) SWIG_fail; | |
14327 | } | |
8edf1c75 | 14328 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14329 | return resultobj; |
14330 | fail: | |
14331 | return NULL; | |
14332 | } | |
14333 | ||
14334 | ||
14335 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14336 | PyObject *resultobj; | |
14337 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14338 | int result; |
d14a1e28 RD |
14339 | PyObject * obj0 = 0 ; |
14340 | char *kwnames[] = { | |
14341 | (char *) "self", NULL | |
14342 | }; | |
14343 | ||
14344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
14345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14346 | { | |
14347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14348 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14349 | |
14350 | wxPyEndAllowThreads(__tstate); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | } | |
8edf1c75 | 14353 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14354 | return resultobj; |
14355 | fail: | |
14356 | return NULL; | |
14357 | } | |
14358 | ||
14359 | ||
14360 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14361 | PyObject *resultobj; | |
14362 | wxDC *arg1 = (wxDC *) 0 ; | |
14363 | int *arg2 = (int *) 0 ; | |
14364 | int *arg3 = (int *) 0 ; | |
14365 | int *arg4 = (int *) 0 ; | |
14366 | int *arg5 = (int *) 0 ; | |
14367 | int temp2 ; | |
14368 | int temp3 ; | |
14369 | int temp4 ; | |
14370 | int temp5 ; | |
14371 | PyObject * obj0 = 0 ; | |
14372 | char *kwnames[] = { | |
14373 | (char *) "self", NULL | |
14374 | }; | |
14375 | ||
14376 | arg2 = &temp2; | |
14377 | arg3 = &temp3; | |
14378 | arg4 = &temp4; | |
14379 | arg5 = &temp5; | |
14380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
14381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14382 | { | |
14383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14384 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14385 | ||
14386 | wxPyEndAllowThreads(__tstate); | |
14387 | if (PyErr_Occurred()) SWIG_fail; | |
14388 | } | |
14389 | Py_INCREF(Py_None); resultobj = Py_None; | |
14390 | { | |
14391 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14392 | resultobj = t_output_helper(resultobj,o); | |
14393 | } | |
14394 | { | |
14395 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14396 | resultobj = t_output_helper(resultobj,o); | |
14397 | } | |
14398 | { | |
14399 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14400 | resultobj = t_output_helper(resultobj,o); | |
14401 | } | |
14402 | { | |
14403 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14404 | resultobj = t_output_helper(resultobj,o); | |
14405 | } | |
14406 | return resultobj; | |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
14412 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14413 | PyObject *resultobj; | |
14414 | wxDC *arg1 = (wxDC *) 0 ; | |
14415 | PyObject *arg2 = (PyObject *) 0 ; | |
14416 | PyObject *arg3 = (PyObject *) 0 ; | |
14417 | PyObject *arg4 = (PyObject *) 0 ; | |
14418 | PyObject *result; | |
14419 | PyObject * obj0 = 0 ; | |
14420 | PyObject * obj1 = 0 ; | |
14421 | PyObject * obj2 = 0 ; | |
14422 | PyObject * obj3 = 0 ; | |
14423 | char *kwnames[] = { | |
14424 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14425 | }; | |
14426 | ||
14427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14429 | arg2 = obj1; | |
14430 | arg3 = obj2; | |
14431 | arg4 = obj3; | |
14432 | { | |
14433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14434 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14435 | ||
14436 | wxPyEndAllowThreads(__tstate); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
14439 | resultobj = result; | |
14440 | return resultobj; | |
14441 | fail: | |
14442 | return NULL; | |
14443 | } | |
14444 | ||
14445 | ||
14446 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14447 | PyObject *resultobj; | |
14448 | wxDC *arg1 = (wxDC *) 0 ; | |
14449 | PyObject *arg2 = (PyObject *) 0 ; | |
14450 | PyObject *arg3 = (PyObject *) 0 ; | |
14451 | PyObject *arg4 = (PyObject *) 0 ; | |
14452 | PyObject *result; | |
14453 | PyObject * obj0 = 0 ; | |
14454 | PyObject * obj1 = 0 ; | |
14455 | PyObject * obj2 = 0 ; | |
14456 | PyObject * obj3 = 0 ; | |
14457 | char *kwnames[] = { | |
14458 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14459 | }; | |
14460 | ||
14461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14463 | arg2 = obj1; | |
14464 | arg3 = obj2; | |
14465 | arg4 = obj3; | |
14466 | { | |
14467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14468 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14469 | ||
14470 | wxPyEndAllowThreads(__tstate); | |
14471 | if (PyErr_Occurred()) SWIG_fail; | |
14472 | } | |
14473 | resultobj = result; | |
14474 | return resultobj; | |
14475 | fail: | |
14476 | return NULL; | |
14477 | } | |
14478 | ||
14479 | ||
14480 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14481 | PyObject *resultobj; | |
14482 | wxDC *arg1 = (wxDC *) 0 ; | |
14483 | PyObject *arg2 = (PyObject *) 0 ; | |
14484 | PyObject *arg3 = (PyObject *) 0 ; | |
14485 | PyObject *arg4 = (PyObject *) 0 ; | |
14486 | PyObject *result; | |
14487 | PyObject * obj0 = 0 ; | |
14488 | PyObject * obj1 = 0 ; | |
14489 | PyObject * obj2 = 0 ; | |
14490 | PyObject * obj3 = 0 ; | |
14491 | char *kwnames[] = { | |
14492 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14493 | }; | |
14494 | ||
14495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14497 | arg2 = obj1; | |
14498 | arg3 = obj2; | |
14499 | arg4 = obj3; | |
14500 | { | |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14503 | ||
14504 | wxPyEndAllowThreads(__tstate); | |
14505 | if (PyErr_Occurred()) SWIG_fail; | |
14506 | } | |
14507 | resultobj = result; | |
14508 | return resultobj; | |
14509 | fail: | |
14510 | return NULL; | |
14511 | } | |
14512 | ||
14513 | ||
14514 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14515 | PyObject *resultobj; | |
14516 | wxDC *arg1 = (wxDC *) 0 ; | |
14517 | PyObject *arg2 = (PyObject *) 0 ; | |
14518 | PyObject *arg3 = (PyObject *) 0 ; | |
14519 | PyObject *arg4 = (PyObject *) 0 ; | |
14520 | PyObject *result; | |
14521 | PyObject * obj0 = 0 ; | |
14522 | PyObject * obj1 = 0 ; | |
14523 | PyObject * obj2 = 0 ; | |
14524 | PyObject * obj3 = 0 ; | |
14525 | char *kwnames[] = { | |
14526 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14527 | }; | |
14528 | ||
14529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14531 | arg2 = obj1; | |
14532 | arg3 = obj2; | |
14533 | arg4 = obj3; | |
14534 | { | |
14535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14536 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14537 | ||
14538 | wxPyEndAllowThreads(__tstate); | |
14539 | if (PyErr_Occurred()) SWIG_fail; | |
14540 | } | |
14541 | resultobj = result; | |
14542 | return resultobj; | |
14543 | fail: | |
14544 | return NULL; | |
14545 | } | |
14546 | ||
14547 | ||
14548 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14549 | PyObject *resultobj; | |
14550 | wxDC *arg1 = (wxDC *) 0 ; | |
14551 | PyObject *arg2 = (PyObject *) 0 ; | |
14552 | PyObject *arg3 = (PyObject *) 0 ; | |
14553 | PyObject *arg4 = (PyObject *) 0 ; | |
14554 | PyObject *result; | |
14555 | PyObject * obj0 = 0 ; | |
14556 | PyObject * obj1 = 0 ; | |
14557 | PyObject * obj2 = 0 ; | |
14558 | PyObject * obj3 = 0 ; | |
14559 | char *kwnames[] = { | |
14560 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14561 | }; | |
14562 | ||
14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14565 | arg2 = obj1; | |
14566 | arg3 = obj2; | |
14567 | arg4 = obj3; | |
14568 | { | |
14569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14570 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14571 | ||
14572 | wxPyEndAllowThreads(__tstate); | |
14573 | if (PyErr_Occurred()) SWIG_fail; | |
14574 | } | |
14575 | resultobj = result; | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
14582 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14583 | PyObject *resultobj; | |
14584 | wxDC *arg1 = (wxDC *) 0 ; | |
14585 | PyObject *arg2 = (PyObject *) 0 ; | |
14586 | PyObject *arg3 = (PyObject *) 0 ; | |
14587 | PyObject *arg4 = (PyObject *) 0 ; | |
14588 | PyObject *arg5 = (PyObject *) 0 ; | |
14589 | PyObject *result; | |
14590 | PyObject * obj0 = 0 ; | |
14591 | PyObject * obj1 = 0 ; | |
14592 | PyObject * obj2 = 0 ; | |
14593 | PyObject * obj3 = 0 ; | |
14594 | PyObject * obj4 = 0 ; | |
14595 | char *kwnames[] = { | |
14596 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14597 | }; | |
14598 | ||
14599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14601 | arg2 = obj1; | |
14602 | arg3 = obj2; | |
14603 | arg4 = obj3; | |
14604 | arg5 = obj4; | |
14605 | { | |
14606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14607 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14608 | ||
14609 | wxPyEndAllowThreads(__tstate); | |
14610 | if (PyErr_Occurred()) SWIG_fail; | |
14611 | } | |
14612 | resultobj = result; | |
14613 | return resultobj; | |
14614 | fail: | |
14615 | return NULL; | |
14616 | } | |
14617 | ||
14618 | ||
14619 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14620 | PyObject *obj; | |
14621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14622 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14623 | Py_INCREF(obj); | |
14624 | return Py_BuildValue((char *)""); | |
14625 | } | |
14626 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14627 | PyObject *resultobj; | |
14628 | wxMemoryDC *result; | |
14629 | char *kwnames[] = { | |
14630 | NULL | |
14631 | }; | |
14632 | ||
14633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14634 | { | |
14635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14636 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14637 | ||
14638 | wxPyEndAllowThreads(__tstate); | |
14639 | if (PyErr_Occurred()) SWIG_fail; | |
14640 | } | |
14641 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14642 | return resultobj; | |
14643 | fail: | |
14644 | return NULL; | |
14645 | } | |
14646 | ||
14647 | ||
14648 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14649 | PyObject *resultobj; | |
14650 | wxDC *arg1 = (wxDC *) 0 ; | |
14651 | wxMemoryDC *result; | |
14652 | PyObject * obj0 = 0 ; | |
14653 | char *kwnames[] = { | |
14654 | (char *) "oldDC", NULL | |
14655 | }; | |
14656 | ||
14657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
14658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14659 | { | |
14660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14661 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14662 | ||
14663 | wxPyEndAllowThreads(__tstate); | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
14665 | } | |
14666 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14667 | return resultobj; | |
14668 | fail: | |
14669 | return NULL; | |
14670 | } | |
14671 | ||
14672 | ||
14673 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14674 | PyObject *resultobj; | |
14675 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14676 | wxBitmap *arg2 = 0 ; | |
14677 | PyObject * obj0 = 0 ; | |
14678 | PyObject * obj1 = 0 ; | |
14679 | char *kwnames[] = { | |
14680 | (char *) "self",(char *) "bitmap", NULL | |
14681 | }; | |
14682 | ||
14683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
14684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14685 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14686 | if (arg2 == NULL) { | |
14687 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14688 | } | |
14689 | { | |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14692 | ||
14693 | wxPyEndAllowThreads(__tstate); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
14696 | Py_INCREF(Py_None); resultobj = Py_None; | |
14697 | return resultobj; | |
14698 | fail: | |
14699 | return NULL; | |
14700 | } | |
14701 | ||
14702 | ||
14703 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
14704 | PyObject *obj; | |
14705 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14706 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14707 | Py_INCREF(obj); | |
14708 | return Py_BuildValue((char *)""); | |
14709 | } | |
0ffb2aa6 | 14710 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14711 | PyObject *resultobj; |
14712 | wxDC *arg1 = (wxDC *) 0 ; | |
14713 | wxBitmap *arg2 = 0 ; | |
14714 | wxBufferedDC *result; | |
14715 | PyObject * obj0 = 0 ; | |
14716 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14717 | |
0ffb2aa6 | 14718 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14720 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14721 | if (arg2 == NULL) { | |
14722 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14723 | } | |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
14727 | ||
14728 | wxPyEndAllowThreads(__tstate); | |
14729 | if (PyErr_Occurred()) SWIG_fail; | |
14730 | } | |
14731 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14732 | return resultobj; | |
14733 | fail: | |
14734 | return NULL; | |
14735 | } | |
14736 | ||
14737 | ||
0ffb2aa6 | 14738 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14739 | PyObject *resultobj; |
14740 | wxDC *arg1 = (wxDC *) 0 ; | |
14741 | wxSize *arg2 = 0 ; | |
14742 | wxBufferedDC *result; | |
14743 | wxSize temp2 ; | |
14744 | PyObject * obj0 = 0 ; | |
14745 | PyObject * obj1 = 0 ; | |
0ffb2aa6 | 14746 | |
38f59159 | 14747 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
0ffb2aa6 RD |
14748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14749 | { | |
14750 | arg2 = &temp2; | |
14751 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14752 | } | |
0ffb2aa6 RD |
14753 | { |
14754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14755 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
0ffb2aa6 RD |
14756 | |
14757 | wxPyEndAllowThreads(__tstate); | |
14758 | if (PyErr_Occurred()) SWIG_fail; | |
14759 | } | |
14760 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14761 | return resultobj; | |
14762 | fail: | |
14763 | return NULL; | |
14764 | } | |
14765 | ||
14766 | ||
14767 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
14768 | int argc; | |
38f59159 | 14769 | PyObject *argv[3]; |
0ffb2aa6 RD |
14770 | int ii; |
14771 | ||
14772 | argc = PyObject_Length(args); | |
38f59159 | 14773 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
0ffb2aa6 RD |
14774 | argv[ii] = PyTuple_GetItem(args,ii); |
14775 | } | |
14776 | if (argc == 2) { | |
14777 | int _v; | |
14778 | { | |
14779 | void *ptr; | |
14780 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14781 | _v = 0; | |
14782 | PyErr_Clear(); | |
14783 | } else { | |
14784 | _v = 1; | |
14785 | } | |
14786 | } | |
14787 | if (_v) { | |
14788 | { | |
14789 | void *ptr; | |
14790 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
14791 | _v = 0; | |
14792 | PyErr_Clear(); | |
14793 | } else { | |
14794 | _v = 1; | |
14795 | } | |
14796 | } | |
14797 | if (_v) { | |
14798 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
14799 | } | |
14800 | } | |
14801 | } | |
38f59159 | 14802 | if (argc == 2) { |
0ffb2aa6 RD |
14803 | int _v; |
14804 | { | |
14805 | void *ptr; | |
14806 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14807 | _v = 0; | |
14808 | PyErr_Clear(); | |
14809 | } else { | |
14810 | _v = 1; | |
14811 | } | |
14812 | } | |
14813 | if (_v) { | |
14814 | { | |
14815 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
14816 | } | |
14817 | if (_v) { | |
38f59159 | 14818 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
0ffb2aa6 RD |
14819 | } |
14820 | } | |
14821 | } | |
d14a1e28 | 14822 | |
0ffb2aa6 RD |
14823 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
14828 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
14829 | PyObject *resultobj; | |
14830 | wxDC *arg1 = (wxDC *) 0 ; | |
14831 | wxSize *arg2 = 0 ; | |
0ffb2aa6 RD |
14832 | wxBufferedDC *result; |
14833 | wxSize temp2 ; | |
14834 | PyObject * obj0 = 0 ; | |
14835 | PyObject * obj1 = 0 ; | |
0ffb2aa6 | 14836 | |
38f59159 | 14837 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14839 | { | |
14840 | arg2 = &temp2; | |
14841 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14842 | } | |
14843 | { | |
14844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14845 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
14846 | |
14847 | wxPyEndAllowThreads(__tstate); | |
14848 | if (PyErr_Occurred()) SWIG_fail; | |
14849 | } | |
14850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14851 | return resultobj; | |
14852 | fail: | |
14853 | return NULL; | |
14854 | } | |
14855 | ||
14856 | ||
38f59159 | 14857 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14858 | PyObject *resultobj; |
14859 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
14860 | PyObject * obj0 = 0 ; | |
14861 | char *kwnames[] = { | |
14862 | (char *) "self", NULL | |
14863 | }; | |
14864 | ||
38f59159 | 14865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
14866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14867 | { | |
14868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14869 | delete arg1; |
d14a1e28 RD |
14870 | |
14871 | wxPyEndAllowThreads(__tstate); | |
14872 | if (PyErr_Occurred()) SWIG_fail; | |
14873 | } | |
14874 | Py_INCREF(Py_None); resultobj = Py_None; | |
14875 | return resultobj; | |
14876 | fail: | |
14877 | return NULL; | |
14878 | } | |
14879 | ||
14880 | ||
38f59159 | 14881 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14882 | PyObject *resultobj; |
38f59159 | 14883 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
d14a1e28 | 14884 | PyObject * obj0 = 0 ; |
38f59159 RD |
14885 | char *kwnames[] = { |
14886 | (char *) "self", NULL | |
14887 | }; | |
d14a1e28 | 14888 | |
38f59159 RD |
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
14890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
0ffb2aa6 RD |
14891 | { |
14892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14893 | (arg1)->UnMask(); |
0ffb2aa6 RD |
14894 | |
14895 | wxPyEndAllowThreads(__tstate); | |
14896 | if (PyErr_Occurred()) SWIG_fail; | |
14897 | } | |
38f59159 | 14898 | Py_INCREF(Py_None); resultobj = Py_None; |
0ffb2aa6 RD |
14899 | return resultobj; |
14900 | fail: | |
14901 | return NULL; | |
14902 | } | |
14903 | ||
14904 | ||
38f59159 RD |
14905 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { |
14906 | PyObject *obj; | |
14907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14908 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
14909 | Py_INCREF(obj); | |
14910 | return Py_BuildValue((char *)""); | |
14911 | } | |
14912 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0ffb2aa6 RD |
14913 | PyObject *resultobj; |
14914 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38f59159 RD |
14915 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
14916 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
0ffb2aa6 RD |
14917 | wxBufferedPaintDC *result; |
14918 | PyObject * obj0 = 0 ; | |
14919 | PyObject * obj1 = 0 ; | |
38f59159 RD |
14920 | char *kwnames[] = { |
14921 | (char *) "window",(char *) "buffer", NULL | |
14922 | }; | |
0ffb2aa6 | 14923 | |
38f59159 | 14924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14926 | if (obj1) { | |
38f59159 RD |
14927 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14928 | if (arg2 == NULL) { | |
14929 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
d14a1e28 RD |
14930 | } |
14931 | } | |
14932 | { | |
14933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14934 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
14935 | |
14936 | wxPyEndAllowThreads(__tstate); | |
14937 | if (PyErr_Occurred()) SWIG_fail; | |
14938 | } | |
14939 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14940 | return resultobj; | |
14941 | fail: | |
14942 | return NULL; | |
14943 | } | |
14944 | ||
14945 | ||
14946 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
14947 | PyObject *obj; | |
14948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14949 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
14950 | Py_INCREF(obj); | |
14951 | return Py_BuildValue((char *)""); | |
14952 | } | |
14953 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14954 | PyObject *resultobj; | |
14955 | wxScreenDC *result; | |
14956 | char *kwnames[] = { | |
14957 | NULL | |
14958 | }; | |
14959 | ||
14960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
14961 | { | |
14962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14963 | result = (wxScreenDC *)new wxScreenDC(); | |
14964 | ||
14965 | wxPyEndAllowThreads(__tstate); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
14967 | } | |
14968 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
14969 | return resultobj; | |
14970 | fail: | |
14971 | return NULL; | |
14972 | } | |
14973 | ||
14974 | ||
14975 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14976 | PyObject *resultobj; | |
14977 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14978 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14979 | bool result; | |
14980 | PyObject * obj0 = 0 ; | |
14981 | PyObject * obj1 = 0 ; | |
14982 | char *kwnames[] = { | |
14983 | (char *) "self",(char *) "window", NULL | |
14984 | }; | |
14985 | ||
14986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
14987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14988 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14989 | { | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
14992 | ||
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
02a34c4c | 14996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14997 | return resultobj; |
14998 | fail: | |
14999 | return NULL; | |
15000 | } | |
15001 | ||
15002 | ||
15003 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15004 | PyObject *resultobj; | |
15005 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15006 | wxRect *arg2 = (wxRect *) NULL ; | |
15007 | bool result; | |
15008 | PyObject * obj0 = 0 ; | |
15009 | PyObject * obj1 = 0 ; | |
15010 | char *kwnames[] = { | |
15011 | (char *) "self",(char *) "rect", NULL | |
15012 | }; | |
15013 | ||
15014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15016 | if (obj1) { | |
15017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15018 | } | |
15019 | { | |
15020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15021 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15022 | ||
15023 | wxPyEndAllowThreads(__tstate); | |
15024 | if (PyErr_Occurred()) SWIG_fail; | |
15025 | } | |
02a34c4c | 15026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15027 | return resultobj; |
15028 | fail: | |
15029 | return NULL; | |
15030 | } | |
15031 | ||
15032 | ||
15033 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15034 | PyObject *resultobj; | |
15035 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15036 | bool result; | |
15037 | PyObject * obj0 = 0 ; | |
15038 | char *kwnames[] = { | |
15039 | (char *) "self", NULL | |
15040 | }; | |
15041 | ||
15042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15044 | { | |
15045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15046 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15047 | ||
15048 | wxPyEndAllowThreads(__tstate); | |
15049 | if (PyErr_Occurred()) SWIG_fail; | |
15050 | } | |
02a34c4c | 15051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15052 | return resultobj; |
15053 | fail: | |
15054 | return NULL; | |
15055 | } | |
15056 | ||
15057 | ||
15058 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15059 | PyObject *obj; | |
15060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15061 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15062 | Py_INCREF(obj); | |
15063 | return Py_BuildValue((char *)""); | |
15064 | } | |
15065 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15066 | PyObject *resultobj; | |
15067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15068 | wxClientDC *result; | |
15069 | PyObject * obj0 = 0 ; | |
15070 | char *kwnames[] = { | |
15071 | (char *) "win", NULL | |
15072 | }; | |
15073 | ||
15074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15076 | { | |
15077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15078 | result = (wxClientDC *)new wxClientDC(arg1); | |
15079 | ||
15080 | wxPyEndAllowThreads(__tstate); | |
15081 | if (PyErr_Occurred()) SWIG_fail; | |
15082 | } | |
15083 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
15084 | return resultobj; | |
15085 | fail: | |
15086 | return NULL; | |
15087 | } | |
15088 | ||
15089 | ||
15090 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15091 | PyObject *obj; | |
15092 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15093 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15094 | Py_INCREF(obj); | |
15095 | return Py_BuildValue((char *)""); | |
15096 | } | |
15097 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15098 | PyObject *resultobj; | |
15099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15100 | wxPaintDC *result; | |
15101 | PyObject * obj0 = 0 ; | |
15102 | char *kwnames[] = { | |
15103 | (char *) "win", NULL | |
15104 | }; | |
15105 | ||
15106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15108 | { | |
15109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15110 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15111 | ||
15112 | wxPyEndAllowThreads(__tstate); | |
15113 | if (PyErr_Occurred()) SWIG_fail; | |
15114 | } | |
15115 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
15116 | return resultobj; | |
15117 | fail: | |
15118 | return NULL; | |
15119 | } | |
15120 | ||
15121 | ||
15122 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15123 | PyObject *obj; | |
15124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15125 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15126 | Py_INCREF(obj); | |
15127 | return Py_BuildValue((char *)""); | |
15128 | } | |
15129 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15130 | PyObject *resultobj; | |
15131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15132 | wxWindowDC *result; | |
15133 | PyObject * obj0 = 0 ; | |
15134 | char *kwnames[] = { | |
15135 | (char *) "win", NULL | |
15136 | }; | |
15137 | ||
15138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15140 | { | |
15141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15142 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15143 | ||
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
15147 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
15148 | return resultobj; | |
15149 | fail: | |
15150 | return NULL; | |
15151 | } | |
15152 | ||
15153 | ||
15154 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15155 | PyObject *obj; | |
15156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15157 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15158 | Py_INCREF(obj); | |
15159 | return Py_BuildValue((char *)""); | |
15160 | } | |
15161 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15162 | PyObject *resultobj; | |
15163 | wxDC *arg1 = 0 ; | |
15164 | bool arg2 ; | |
15165 | wxMirrorDC *result; | |
15166 | PyObject * obj0 = 0 ; | |
15167 | PyObject * obj1 = 0 ; | |
15168 | char *kwnames[] = { | |
15169 | (char *) "dc",(char *) "mirror", NULL | |
15170 | }; | |
15171 | ||
15172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15174 | if (arg1 == NULL) { | |
15175 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15176 | } | |
2dbef272 | 15177 | { |
8edf1c75 | 15178 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
15179 | if (PyErr_Occurred()) SWIG_fail; |
15180 | } | |
d14a1e28 RD |
15181 | { |
15182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15183 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15184 | ||
15185 | wxPyEndAllowThreads(__tstate); | |
15186 | if (PyErr_Occurred()) SWIG_fail; | |
15187 | } | |
15188 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
15189 | return resultobj; | |
15190 | fail: | |
15191 | return NULL; | |
15192 | } | |
15193 | ||
15194 | ||
15195 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15196 | PyObject *obj; | |
15197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15198 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15199 | Py_INCREF(obj); | |
15200 | return Py_BuildValue((char *)""); | |
15201 | } | |
15202 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15203 | PyObject *resultobj; | |
15204 | wxPrintData *arg1 = 0 ; | |
15205 | wxPostScriptDC *result; | |
15206 | PyObject * obj0 = 0 ; | |
15207 | char *kwnames[] = { | |
15208 | (char *) "printData", NULL | |
15209 | }; | |
15210 | ||
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15213 | if (arg1 == NULL) { | |
15214 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15215 | } | |
15216 | { | |
15217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15218 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15219 | ||
15220 | wxPyEndAllowThreads(__tstate); | |
15221 | if (PyErr_Occurred()) SWIG_fail; | |
15222 | } | |
15223 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
15224 | return resultobj; | |
15225 | fail: | |
15226 | return NULL; | |
15227 | } | |
15228 | ||
15229 | ||
15230 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15231 | PyObject *resultobj; | |
15232 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15233 | wxPrintData *result; | |
15234 | PyObject * obj0 = 0 ; | |
15235 | char *kwnames[] = { | |
15236 | (char *) "self", NULL | |
15237 | }; | |
15238 | ||
15239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15241 | { | |
15242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15243 | { | |
15244 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15245 | result = (wxPrintData *) &_result_ref; | |
15246 | } | |
15247 | ||
15248 | wxPyEndAllowThreads(__tstate); | |
15249 | if (PyErr_Occurred()) SWIG_fail; | |
15250 | } | |
15251 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
15252 | return resultobj; | |
15253 | fail: | |
15254 | return NULL; | |
15255 | } | |
15256 | ||
15257 | ||
15258 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15259 | PyObject *resultobj; | |
15260 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15261 | wxPrintData *arg2 = 0 ; | |
15262 | PyObject * obj0 = 0 ; | |
15263 | PyObject * obj1 = 0 ; | |
15264 | char *kwnames[] = { | |
15265 | (char *) "self",(char *) "data", NULL | |
15266 | }; | |
15267 | ||
15268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15270 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15271 | if (arg2 == NULL) { | |
15272 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15273 | } | |
15274 | { | |
15275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15276 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15277 | ||
15278 | wxPyEndAllowThreads(__tstate); | |
15279 | if (PyErr_Occurred()) SWIG_fail; | |
15280 | } | |
15281 | Py_INCREF(Py_None); resultobj = Py_None; | |
15282 | return resultobj; | |
15283 | fail: | |
15284 | return NULL; | |
15285 | } | |
15286 | ||
15287 | ||
15288 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15289 | PyObject *resultobj; | |
15290 | int arg1 ; | |
8edf1c75 | 15291 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15292 | char *kwnames[] = { |
15293 | (char *) "ppi", NULL | |
15294 | }; | |
15295 | ||
8edf1c75 RD |
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15297 | { | |
15298 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15299 | if (PyErr_Occurred()) SWIG_fail; | |
15300 | } | |
d14a1e28 RD |
15301 | { |
15302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15303 | wxPostScriptDC::SetResolution(arg1); | |
15304 | ||
15305 | wxPyEndAllowThreads(__tstate); | |
15306 | if (PyErr_Occurred()) SWIG_fail; | |
15307 | } | |
15308 | Py_INCREF(Py_None); resultobj = Py_None; | |
15309 | return resultobj; | |
15310 | fail: | |
15311 | return NULL; | |
15312 | } | |
15313 | ||
15314 | ||
15315 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15316 | PyObject *resultobj; | |
15317 | int result; | |
15318 | char *kwnames[] = { | |
15319 | NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15323 | { | |
15324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15325 | result = (int)wxPostScriptDC::GetResolution(); | |
15326 | ||
15327 | wxPyEndAllowThreads(__tstate); | |
15328 | if (PyErr_Occurred()) SWIG_fail; | |
15329 | } | |
8edf1c75 | 15330 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15331 | return resultobj; |
15332 | fail: | |
15333 | return NULL; | |
15334 | } | |
15335 | ||
15336 | ||
15337 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15338 | PyObject *obj; | |
15339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15340 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15341 | Py_INCREF(obj); | |
15342 | return Py_BuildValue((char *)""); | |
15343 | } | |
15344 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15345 | PyObject *resultobj; | |
15346 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15347 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15348 | wxMetaFile *result; | |
423f194a | 15349 | bool temp1 = False ; |
d14a1e28 RD |
15350 | PyObject * obj0 = 0 ; |
15351 | char *kwnames[] = { | |
15352 | (char *) "filename", NULL | |
15353 | }; | |
15354 | ||
15355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15356 | if (obj0) { | |
15357 | { | |
15358 | arg1 = wxString_in_helper(obj0); | |
15359 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15360 | temp1 = True; |
d14a1e28 RD |
15361 | } |
15362 | } | |
15363 | { | |
15364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15365 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15366 | ||
15367 | wxPyEndAllowThreads(__tstate); | |
15368 | if (PyErr_Occurred()) SWIG_fail; | |
15369 | } | |
15370 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
15371 | { | |
15372 | if (temp1) | |
15373 | delete arg1; | |
15374 | } | |
15375 | return resultobj; | |
15376 | fail: | |
15377 | { | |
15378 | if (temp1) | |
15379 | delete arg1; | |
15380 | } | |
15381 | return NULL; | |
15382 | } | |
15383 | ||
15384 | ||
15385 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15386 | PyObject *obj; | |
15387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15388 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15389 | Py_INCREF(obj); | |
15390 | return Py_BuildValue((char *)""); | |
15391 | } | |
15392 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15393 | PyObject *resultobj; | |
15394 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15395 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15396 | int arg2 = (int) 0 ; | |
15397 | int arg3 = (int) 0 ; | |
15398 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15399 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15400 | wxMetaFileDC *result; | |
423f194a RD |
15401 | bool temp1 = False ; |
15402 | bool temp4 = False ; | |
d14a1e28 | 15403 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
15404 | PyObject * obj1 = 0 ; |
15405 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15406 | PyObject * obj3 = 0 ; |
15407 | char *kwnames[] = { | |
15408 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15409 | }; | |
15410 | ||
8edf1c75 | 15411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15412 | if (obj0) { |
15413 | { | |
15414 | arg1 = wxString_in_helper(obj0); | |
15415 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15416 | temp1 = True; |
d14a1e28 RD |
15417 | } |
15418 | } | |
8edf1c75 RD |
15419 | if (obj1) { |
15420 | { | |
15421 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
15423 | } | |
15424 | } | |
15425 | if (obj2) { | |
15426 | { | |
15427 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15428 | if (PyErr_Occurred()) SWIG_fail; | |
15429 | } | |
15430 | } | |
d14a1e28 RD |
15431 | if (obj3) { |
15432 | { | |
15433 | arg4 = wxString_in_helper(obj3); | |
15434 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15435 | temp4 = True; |
d14a1e28 RD |
15436 | } |
15437 | } | |
15438 | { | |
15439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15440 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15441 | ||
15442 | wxPyEndAllowThreads(__tstate); | |
15443 | if (PyErr_Occurred()) SWIG_fail; | |
15444 | } | |
15445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
15446 | { | |
15447 | if (temp1) | |
15448 | delete arg1; | |
15449 | } | |
15450 | { | |
15451 | if (temp4) | |
15452 | delete arg4; | |
15453 | } | |
15454 | return resultobj; | |
15455 | fail: | |
15456 | { | |
15457 | if (temp1) | |
15458 | delete arg1; | |
15459 | } | |
15460 | { | |
15461 | if (temp4) | |
15462 | delete arg4; | |
15463 | } | |
15464 | return NULL; | |
15465 | } | |
15466 | ||
15467 | ||
15468 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15469 | PyObject *obj; | |
15470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15471 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15472 | Py_INCREF(obj); | |
15473 | return Py_BuildValue((char *)""); | |
15474 | } | |
15475 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15476 | PyObject *resultobj; | |
15477 | wxPrintData *arg1 = 0 ; | |
15478 | wxPrinterDC *result; | |
15479 | PyObject * obj0 = 0 ; | |
15480 | char *kwnames[] = { | |
15481 | (char *) "printData", NULL | |
15482 | }; | |
15483 | ||
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15486 | if (arg1 == NULL) { | |
15487 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15488 | } | |
15489 | { | |
15490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15491 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15492 | ||
15493 | wxPyEndAllowThreads(__tstate); | |
15494 | if (PyErr_Occurred()) SWIG_fail; | |
15495 | } | |
15496 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
15497 | return resultobj; | |
15498 | fail: | |
15499 | return NULL; | |
15500 | } | |
15501 | ||
15502 | ||
15503 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
15504 | PyObject *obj; | |
15505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15506 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15507 | Py_INCREF(obj); | |
15508 | return Py_BuildValue((char *)""); | |
15509 | } | |
15510 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15511 | PyObject *resultobj; | |
15512 | int arg1 ; | |
15513 | int arg2 ; | |
423f194a | 15514 | int arg3 = (int) True ; |
d14a1e28 RD |
15515 | int arg4 = (int) 1 ; |
15516 | wxImageList *result; | |
8edf1c75 RD |
15517 | PyObject * obj0 = 0 ; |
15518 | PyObject * obj1 = 0 ; | |
15519 | PyObject * obj2 = 0 ; | |
15520 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15521 | char *kwnames[] = { |
15522 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15523 | }; | |
15524 | ||
8edf1c75 RD |
15525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15526 | { | |
15527 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15528 | if (PyErr_Occurred()) SWIG_fail; | |
15529 | } | |
15530 | { | |
15531 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
15533 | } | |
15534 | if (obj2) { | |
15535 | { | |
15536 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15537 | if (PyErr_Occurred()) SWIG_fail; | |
15538 | } | |
15539 | } | |
15540 | if (obj3) { | |
15541 | { | |
15542 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15543 | if (PyErr_Occurred()) SWIG_fail; | |
15544 | } | |
15545 | } | |
d14a1e28 RD |
15546 | { |
15547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15548 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15549 | ||
15550 | wxPyEndAllowThreads(__tstate); | |
15551 | if (PyErr_Occurred()) SWIG_fail; | |
15552 | } | |
15553 | { | |
15554 | resultobj = wxPyMake_wxObject(result); | |
15555 | } | |
15556 | return resultobj; | |
15557 | fail: | |
15558 | return NULL; | |
15559 | } | |
15560 | ||
15561 | ||
15562 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15563 | PyObject *resultobj; | |
15564 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15565 | PyObject * obj0 = 0 ; | |
15566 | char *kwnames[] = { | |
15567 | (char *) "self", NULL | |
15568 | }; | |
15569 | ||
15570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15572 | { | |
15573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15574 | delete arg1; | |
15575 | ||
15576 | wxPyEndAllowThreads(__tstate); | |
15577 | if (PyErr_Occurred()) SWIG_fail; | |
15578 | } | |
15579 | Py_INCREF(Py_None); resultobj = Py_None; | |
15580 | return resultobj; | |
15581 | fail: | |
15582 | return NULL; | |
15583 | } | |
15584 | ||
15585 | ||
15586 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15587 | PyObject *resultobj; | |
15588 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15589 | wxBitmap *arg2 = 0 ; | |
15590 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15591 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15592 | int result; | |
15593 | PyObject * obj0 = 0 ; | |
15594 | PyObject * obj1 = 0 ; | |
15595 | PyObject * obj2 = 0 ; | |
15596 | char *kwnames[] = { | |
15597 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15598 | }; | |
15599 | ||
15600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15602 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15603 | if (arg2 == NULL) { | |
15604 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15605 | } | |
15606 | if (obj2) { | |
15607 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15608 | if (arg3 == NULL) { | |
15609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15610 | } | |
15611 | } | |
15612 | { | |
15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15614 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15615 | ||
15616 | wxPyEndAllowThreads(__tstate); | |
15617 | if (PyErr_Occurred()) SWIG_fail; | |
15618 | } | |
8edf1c75 | 15619 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15620 | return resultobj; |
15621 | fail: | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj; | |
15628 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15629 | wxBitmap *arg2 = 0 ; | |
15630 | wxColour *arg3 = 0 ; | |
15631 | int result; | |
15632 | wxColour temp3 ; | |
15633 | PyObject * obj0 = 0 ; | |
15634 | PyObject * obj1 = 0 ; | |
15635 | PyObject * obj2 = 0 ; | |
15636 | char *kwnames[] = { | |
15637 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
15638 | }; | |
15639 | ||
15640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15642 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15643 | if (arg2 == NULL) { | |
15644 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15645 | } | |
15646 | { | |
15647 | arg3 = &temp3; | |
15648 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15649 | } | |
15650 | { | |
15651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15652 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
15653 | ||
15654 | wxPyEndAllowThreads(__tstate); | |
15655 | if (PyErr_Occurred()) SWIG_fail; | |
15656 | } | |
8edf1c75 | 15657 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15658 | return resultobj; |
15659 | fail: | |
15660 | return NULL; | |
15661 | } | |
15662 | ||
15663 | ||
15664 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15665 | PyObject *resultobj; | |
15666 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15667 | wxIcon *arg2 = 0 ; | |
15668 | int result; | |
15669 | PyObject * obj0 = 0 ; | |
15670 | PyObject * obj1 = 0 ; | |
15671 | char *kwnames[] = { | |
15672 | (char *) "self",(char *) "icon", NULL | |
15673 | }; | |
15674 | ||
15675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15677 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15678 | if (arg2 == NULL) { | |
15679 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15680 | } | |
15681 | { | |
15682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15683 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
15684 | ||
15685 | wxPyEndAllowThreads(__tstate); | |
15686 | if (PyErr_Occurred()) SWIG_fail; | |
15687 | } | |
8edf1c75 | 15688 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15689 | return resultobj; |
15690 | fail: | |
15691 | return NULL; | |
15692 | } | |
15693 | ||
15694 | ||
15695 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15696 | PyObject *resultobj; | |
15697 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15698 | int arg2 ; | |
15699 | wxBitmap *arg3 = 0 ; | |
15700 | bool result; | |
15701 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15702 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15703 | PyObject * obj2 = 0 ; |
15704 | char *kwnames[] = { | |
15705 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
15706 | }; | |
15707 | ||
8edf1c75 | 15708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15710 | { |
15711 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15712 | if (PyErr_Occurred()) SWIG_fail; | |
15713 | } | |
d14a1e28 RD |
15714 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15715 | if (arg3 == NULL) { | |
15716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15717 | } | |
15718 | { | |
15719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15720 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
15721 | ||
15722 | wxPyEndAllowThreads(__tstate); | |
15723 | if (PyErr_Occurred()) SWIG_fail; | |
15724 | } | |
02a34c4c | 15725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15726 | return resultobj; |
15727 | fail: | |
15728 | return NULL; | |
15729 | } | |
15730 | ||
15731 | ||
15732 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15733 | PyObject *resultobj; | |
15734 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15735 | int arg2 ; | |
15736 | wxDC *arg3 = 0 ; | |
15737 | int arg4 ; | |
15738 | int arg5 ; | |
15739 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 15740 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15741 | bool result; |
15742 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15743 | PyObject * obj1 = 0 ; |
d14a1e28 | 15744 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
15745 | PyObject * obj3 = 0 ; |
15746 | PyObject * obj4 = 0 ; | |
15747 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15748 | PyObject * obj6 = 0 ; |
15749 | char *kwnames[] = { | |
15750 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15751 | }; | |
15752 | ||
8edf1c75 | 15753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 15754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15755 | { |
15756 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15757 | if (PyErr_Occurred()) SWIG_fail; | |
15758 | } | |
d14a1e28 RD |
15759 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15760 | if (arg3 == NULL) { | |
15761 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15762 | } | |
8edf1c75 RD |
15763 | { |
15764 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15765 | if (PyErr_Occurred()) SWIG_fail; | |
15766 | } | |
15767 | { | |
15768 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15769 | if (PyErr_Occurred()) SWIG_fail; | |
15770 | } | |
15771 | if (obj5) { | |
15772 | { | |
15773 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15774 | if (PyErr_Occurred()) SWIG_fail; | |
15775 | } | |
15776 | } | |
d14a1e28 | 15777 | if (obj6) { |
2dbef272 | 15778 | { |
8edf1c75 | 15779 | arg7 = (bool const) SWIG_PyObj_AsBool(obj6); |
2dbef272 RD |
15780 | if (PyErr_Occurred()) SWIG_fail; |
15781 | } | |
d14a1e28 RD |
15782 | } |
15783 | { | |
15784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15785 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15786 | ||
15787 | wxPyEndAllowThreads(__tstate); | |
15788 | if (PyErr_Occurred()) SWIG_fail; | |
15789 | } | |
02a34c4c | 15790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15791 | return resultobj; |
15792 | fail: | |
15793 | return NULL; | |
15794 | } | |
15795 | ||
15796 | ||
15797 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15798 | PyObject *resultobj; | |
15799 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15800 | int result; | |
15801 | PyObject * obj0 = 0 ; | |
15802 | char *kwnames[] = { | |
15803 | (char *) "self", NULL | |
15804 | }; | |
15805 | ||
15806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15808 | { | |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | result = (int)(arg1)->GetImageCount(); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
8edf1c75 | 15815 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15816 | return resultobj; |
15817 | fail: | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
15822 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15823 | PyObject *resultobj; | |
15824 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15825 | int arg2 ; | |
15826 | bool result; | |
15827 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15829 | char *kwnames[] = { |
15830 | (char *) "self",(char *) "index", NULL | |
15831 | }; | |
15832 | ||
8edf1c75 | 15833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15835 | { |
15836 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
d14a1e28 RD |
15839 | { |
15840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15841 | result = (bool)(arg1)->Remove(arg2); | |
15842 | ||
15843 | wxPyEndAllowThreads(__tstate); | |
15844 | if (PyErr_Occurred()) SWIG_fail; | |
15845 | } | |
02a34c4c | 15846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15847 | return resultobj; |
15848 | fail: | |
15849 | return NULL; | |
15850 | } | |
15851 | ||
15852 | ||
15853 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15854 | PyObject *resultobj; | |
15855 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15856 | bool result; | |
15857 | PyObject * obj0 = 0 ; | |
15858 | char *kwnames[] = { | |
15859 | (char *) "self", NULL | |
15860 | }; | |
15861 | ||
15862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15864 | { | |
15865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15866 | result = (bool)(arg1)->RemoveAll(); | |
15867 | ||
15868 | wxPyEndAllowThreads(__tstate); | |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
15870 | } | |
02a34c4c | 15871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15872 | return resultobj; |
15873 | fail: | |
15874 | return NULL; | |
15875 | } | |
15876 | ||
15877 | ||
15878 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15879 | PyObject *resultobj; | |
15880 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15881 | int arg2 ; | |
15882 | int *arg3 = 0 ; | |
15883 | int *arg4 = 0 ; | |
15884 | int temp3 ; | |
15885 | int temp4 ; | |
15886 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15887 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15888 | char *kwnames[] = { |
15889 | (char *) "self",(char *) "index", NULL | |
15890 | }; | |
15891 | ||
15892 | arg3 = &temp3; | |
15893 | arg4 = &temp4; | |
8edf1c75 | 15894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15896 | { |
15897 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
d14a1e28 RD |
15900 | { |
15901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15902 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
15903 | ||
15904 | wxPyEndAllowThreads(__tstate); | |
15905 | if (PyErr_Occurred()) SWIG_fail; | |
15906 | } | |
15907 | Py_INCREF(Py_None); resultobj = Py_None; | |
15908 | { | |
15909 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15910 | resultobj = t_output_helper(resultobj,o); | |
15911 | } | |
15912 | { | |
15913 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15914 | resultobj = t_output_helper(resultobj,o); | |
15915 | } | |
15916 | return resultobj; | |
15917 | fail: | |
15918 | return NULL; | |
15919 | } | |
15920 | ||
15921 | ||
15922 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
15923 | PyObject *obj; | |
15924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15925 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
15926 | Py_INCREF(obj); | |
15927 | return Py_BuildValue((char *)""); | |
15928 | } | |
8edf1c75 RD |
15929 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
15930 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15931 | return 1; | |
d14a1e28 RD |
15932 | } |
15933 | ||
15934 | ||
8edf1c75 RD |
15935 | static PyObject *_wrap_NORMAL_FONT_get() { |
15936 | PyObject *pyobj; | |
d14a1e28 | 15937 | |
8edf1c75 RD |
15938 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); |
15939 | return pyobj; | |
d14a1e28 RD |
15940 | } |
15941 | ||
15942 | ||
8edf1c75 RD |
15943 | static int _wrap_SMALL_FONT_set(PyObject *) { |
15944 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15945 | return 1; | |
d14a1e28 RD |
15946 | } |
15947 | ||
15948 | ||
8edf1c75 RD |
15949 | static PyObject *_wrap_SMALL_FONT_get() { |
15950 | PyObject *pyobj; | |
d14a1e28 | 15951 | |
8edf1c75 RD |
15952 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); |
15953 | return pyobj; | |
d14a1e28 RD |
15954 | } |
15955 | ||
15956 | ||
8edf1c75 RD |
15957 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
15958 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15959 | return 1; | |
d14a1e28 | 15960 | } |
8edf1c75 RD |
15961 | |
15962 | ||
15963 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15964 | PyObject *pyobj; | |
d14a1e28 | 15965 | |
8edf1c75 RD |
15966 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); |
15967 | return pyobj; | |
d14a1e28 RD |
15968 | } |
15969 | ||
15970 | ||
8edf1c75 RD |
15971 | static int _wrap_SWISS_FONT_set(PyObject *) { |
15972 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15973 | return 1; | |
d14a1e28 RD |
15974 | } |
15975 | ||
15976 | ||
8edf1c75 RD |
15977 | static PyObject *_wrap_SWISS_FONT_get() { |
15978 | PyObject *pyobj; | |
d14a1e28 | 15979 | |
8edf1c75 RD |
15980 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); |
15981 | return pyobj; | |
d14a1e28 RD |
15982 | } |
15983 | ||
15984 | ||
8edf1c75 RD |
15985 | static int _wrap_RED_PEN_set(PyObject *) { |
15986 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15987 | return 1; | |
15988 | } | |
15989 | ||
15990 | ||
15991 | static PyObject *_wrap_RED_PEN_get() { | |
15992 | PyObject *pyobj; | |
d14a1e28 | 15993 | |
8edf1c75 RD |
15994 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); |
15995 | return pyobj; | |
d14a1e28 RD |
15996 | } |
15997 | ||
15998 | ||
8edf1c75 RD |
15999 | static int _wrap_CYAN_PEN_set(PyObject *) { |
16000 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16001 | return 1; | |
d14a1e28 | 16002 | } |
8edf1c75 RD |
16003 | |
16004 | ||
16005 | static PyObject *_wrap_CYAN_PEN_get() { | |
16006 | PyObject *pyobj; | |
d14a1e28 | 16007 | |
8edf1c75 RD |
16008 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); |
16009 | return pyobj; | |
d14a1e28 RD |
16010 | } |
16011 | ||
16012 | ||
8edf1c75 RD |
16013 | static int _wrap_GREEN_PEN_set(PyObject *) { |
16014 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16015 | return 1; | |
16016 | } | |
16017 | ||
16018 | ||
16019 | static PyObject *_wrap_GREEN_PEN_get() { | |
16020 | PyObject *pyobj; | |
d14a1e28 | 16021 | |
8edf1c75 RD |
16022 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); |
16023 | return pyobj; | |
d14a1e28 RD |
16024 | } |
16025 | ||
16026 | ||
8edf1c75 RD |
16027 | static int _wrap_BLACK_PEN_set(PyObject *) { |
16028 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16029 | return 1; | |
16030 | } | |
16031 | ||
16032 | ||
16033 | static PyObject *_wrap_BLACK_PEN_get() { | |
16034 | PyObject *pyobj; | |
d14a1e28 | 16035 | |
8edf1c75 RD |
16036 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); |
16037 | return pyobj; | |
d14a1e28 RD |
16038 | } |
16039 | ||
16040 | ||
8edf1c75 RD |
16041 | static int _wrap_WHITE_PEN_set(PyObject *) { |
16042 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16043 | return 1; | |
d14a1e28 RD |
16044 | } |
16045 | ||
16046 | ||
8edf1c75 RD |
16047 | static PyObject *_wrap_WHITE_PEN_get() { |
16048 | PyObject *pyobj; | |
d14a1e28 | 16049 | |
8edf1c75 RD |
16050 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); |
16051 | return pyobj; | |
d14a1e28 RD |
16052 | } |
16053 | ||
16054 | ||
8edf1c75 RD |
16055 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
16056 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16057 | return 1; | |
16058 | } | |
16059 | ||
16060 | ||
16061 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
16062 | PyObject *pyobj; | |
d14a1e28 | 16063 | |
8edf1c75 RD |
16064 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); |
16065 | return pyobj; | |
d14a1e28 RD |
16066 | } |
16067 | ||
16068 | ||
8edf1c75 RD |
16069 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
16070 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16071 | return 1; | |
d14a1e28 | 16072 | } |
8edf1c75 RD |
16073 | |
16074 | ||
16075 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
16076 | PyObject *pyobj; | |
d14a1e28 | 16077 | |
8edf1c75 RD |
16078 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); |
16079 | return pyobj; | |
d14a1e28 RD |
16080 | } |
16081 | ||
16082 | ||
8edf1c75 RD |
16083 | static int _wrap_GREY_PEN_set(PyObject *) { |
16084 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16085 | return 1; | |
d14a1e28 RD |
16086 | } |
16087 | ||
16088 | ||
8edf1c75 RD |
16089 | static PyObject *_wrap_GREY_PEN_get() { |
16090 | PyObject *pyobj; | |
d14a1e28 | 16091 | |
8edf1c75 RD |
16092 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); |
16093 | return pyobj; | |
d14a1e28 RD |
16094 | } |
16095 | ||
16096 | ||
8edf1c75 RD |
16097 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
16098 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
16099 | return 1; | |
16100 | } | |
16101 | ||
16102 | ||
16103 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
16104 | PyObject *pyobj; | |
d14a1e28 | 16105 | |
8edf1c75 RD |
16106 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
16107 | return pyobj; | |
d14a1e28 RD |
16108 | } |
16109 | ||
16110 | ||
8edf1c75 RD |
16111 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
16112 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
16113 | return 1; | |
d14a1e28 | 16114 | } |
8edf1c75 RD |
16115 | |
16116 | ||
16117 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
16118 | PyObject *pyobj; | |
16119 | ||
16120 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
16121 | return pyobj; | |
16122 | } | |
16123 | ||
16124 | ||
16125 | static int _wrap_BLUE_BRUSH_set(PyObject *) { | |
16126 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16127 | return 1; |
16128 | } | |
16129 | ||
16130 | ||
8edf1c75 | 16131 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16132 | PyObject *pyobj; |
16133 | ||
8edf1c75 | 16134 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16135 | return pyobj; |
16136 | } | |
16137 | ||
16138 | ||
8edf1c75 RD |
16139 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
16140 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16141 | return 1; |
16142 | } | |
16143 | ||
16144 | ||
8edf1c75 | 16145 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16146 | PyObject *pyobj; |
16147 | ||
8edf1c75 | 16148 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16149 | return pyobj; |
16150 | } | |
16151 | ||
16152 | ||
8edf1c75 RD |
16153 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
16154 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16155 | return 1; |
16156 | } | |
16157 | ||
16158 | ||
8edf1c75 | 16159 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16160 | PyObject *pyobj; |
16161 | ||
8edf1c75 | 16162 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16163 | return pyobj; |
16164 | } | |
16165 | ||
16166 | ||
8edf1c75 RD |
16167 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
16168 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16169 | return 1; |
16170 | } | |
16171 | ||
16172 | ||
8edf1c75 | 16173 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16174 | PyObject *pyobj; |
16175 | ||
8edf1c75 | 16176 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16177 | return pyobj; |
16178 | } | |
16179 | ||
16180 | ||
8edf1c75 RD |
16181 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
16182 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
16183 | return 1; |
16184 | } | |
16185 | ||
16186 | ||
8edf1c75 | 16187 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16188 | PyObject *pyobj; |
16189 | ||
8edf1c75 | 16190 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16191 | return pyobj; |
16192 | } | |
16193 | ||
16194 | ||
8edf1c75 RD |
16195 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
16196 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
16197 | return 1; |
16198 | } | |
16199 | ||
16200 | ||
8edf1c75 | 16201 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16202 | PyObject *pyobj; |
16203 | ||
8edf1c75 | 16204 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16205 | return pyobj; |
16206 | } | |
16207 | ||
16208 | ||
8edf1c75 RD |
16209 | static int _wrap_RED_BRUSH_set(PyObject *) { |
16210 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
16211 | return 1; |
16212 | } | |
16213 | ||
16214 | ||
8edf1c75 | 16215 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16216 | PyObject *pyobj; |
16217 | ||
8edf1c75 | 16218 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16219 | return pyobj; |
16220 | } | |
16221 | ||
16222 | ||
8edf1c75 RD |
16223 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
16224 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16225 | return 1; |
16226 | } | |
16227 | ||
16228 | ||
8edf1c75 | 16229 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16230 | PyObject *pyobj; |
16231 | ||
8edf1c75 | 16232 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16233 | return pyobj; |
16234 | } | |
16235 | ||
16236 | ||
8edf1c75 RD |
16237 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
16238 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16239 | return 1; |
16240 | } | |
16241 | ||
16242 | ||
8edf1c75 | 16243 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
16244 | PyObject *pyobj; |
16245 | ||
8edf1c75 | 16246 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16247 | return pyobj; |
16248 | } | |
16249 | ||
16250 | ||
8edf1c75 RD |
16251 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
16252 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16253 | return 1; |
16254 | } | |
16255 | ||
16256 | ||
8edf1c75 | 16257 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16258 | PyObject *pyobj; |
16259 | ||
8edf1c75 | 16260 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16261 | return pyobj; |
16262 | } | |
16263 | ||
16264 | ||
8edf1c75 RD |
16265 | static int _wrap_BLACK_set(PyObject *) { |
16266 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16267 | return 1; |
16268 | } | |
16269 | ||
16270 | ||
8edf1c75 | 16271 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16272 | PyObject *pyobj; |
16273 | ||
8edf1c75 | 16274 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16275 | return pyobj; |
16276 | } | |
16277 | ||
16278 | ||
8edf1c75 RD |
16279 | static int _wrap_WHITE_set(PyObject *) { |
16280 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16281 | return 1; |
16282 | } | |
16283 | ||
16284 | ||
8edf1c75 | 16285 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16286 | PyObject *pyobj; |
16287 | ||
8edf1c75 | 16288 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16289 | return pyobj; |
16290 | } | |
16291 | ||
16292 | ||
8edf1c75 RD |
16293 | static int _wrap_RED_set(PyObject *) { |
16294 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16295 | return 1; |
16296 | } | |
16297 | ||
16298 | ||
8edf1c75 | 16299 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16300 | PyObject *pyobj; |
16301 | ||
8edf1c75 | 16302 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16303 | return pyobj; |
16304 | } | |
16305 | ||
16306 | ||
8edf1c75 RD |
16307 | static int _wrap_BLUE_set(PyObject *) { |
16308 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16309 | return 1; |
16310 | } | |
16311 | ||
16312 | ||
8edf1c75 | 16313 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16314 | PyObject *pyobj; |
16315 | ||
8edf1c75 | 16316 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16317 | return pyobj; |
16318 | } | |
16319 | ||
16320 | ||
8edf1c75 RD |
16321 | static int _wrap_GREEN_set(PyObject *) { |
16322 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16323 | return 1; |
16324 | } | |
16325 | ||
16326 | ||
8edf1c75 | 16327 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16328 | PyObject *pyobj; |
16329 | ||
8edf1c75 | 16330 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16331 | return pyobj; |
16332 | } | |
16333 | ||
16334 | ||
8edf1c75 RD |
16335 | static int _wrap_CYAN_set(PyObject *) { |
16336 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16337 | return 1; |
16338 | } | |
16339 | ||
16340 | ||
8edf1c75 | 16341 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16342 | PyObject *pyobj; |
16343 | ||
8edf1c75 | 16344 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16345 | return pyobj; |
16346 | } | |
16347 | ||
16348 | ||
8edf1c75 RD |
16349 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
16350 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16351 | return 1; |
16352 | } | |
16353 | ||
16354 | ||
8edf1c75 | 16355 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16356 | PyObject *pyobj; |
16357 | ||
8edf1c75 | 16358 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16359 | return pyobj; |
16360 | } | |
16361 | ||
16362 | ||
8edf1c75 RD |
16363 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
16364 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16365 | return 1; |
16366 | } | |
16367 | ||
16368 | ||
8edf1c75 | 16369 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16370 | PyObject *pyobj; |
16371 | ||
8edf1c75 | 16372 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16373 | return pyobj; |
16374 | } | |
16375 | ||
16376 | ||
8edf1c75 RD |
16377 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
16378 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16379 | return 1; |
16380 | } | |
16381 | ||
16382 | ||
8edf1c75 | 16383 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16384 | PyObject *pyobj; |
16385 | ||
8edf1c75 | 16386 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16387 | return pyobj; |
16388 | } | |
16389 | ||
16390 | ||
8edf1c75 RD |
16391 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
16392 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16393 | return 1; |
16394 | } | |
16395 | ||
16396 | ||
8edf1c75 | 16397 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16398 | PyObject *pyobj; |
16399 | ||
8edf1c75 | 16400 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16401 | return pyobj; |
16402 | } | |
16403 | ||
16404 | ||
8edf1c75 RD |
16405 | static int _wrap_NullBitmap_set(PyObject *) { |
16406 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16407 | return 1; |
16408 | } | |
16409 | ||
16410 | ||
8edf1c75 | 16411 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16412 | PyObject *pyobj; |
16413 | ||
8edf1c75 | 16414 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16415 | return pyobj; |
16416 | } | |
16417 | ||
16418 | ||
8edf1c75 RD |
16419 | static int _wrap_NullIcon_set(PyObject *) { |
16420 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16421 | return 1; |
16422 | } | |
16423 | ||
16424 | ||
8edf1c75 | 16425 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16426 | PyObject *pyobj; |
16427 | ||
8edf1c75 | 16428 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16429 | return pyobj; |
16430 | } | |
16431 | ||
16432 | ||
8edf1c75 RD |
16433 | static int _wrap_NullCursor_set(PyObject *) { |
16434 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16435 | return 1; |
16436 | } | |
16437 | ||
16438 | ||
8edf1c75 | 16439 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16440 | PyObject *pyobj; |
16441 | ||
8edf1c75 | 16442 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16443 | return pyobj; |
16444 | } | |
16445 | ||
16446 | ||
8edf1c75 RD |
16447 | static int _wrap_NullPen_set(PyObject *) { |
16448 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16449 | return 1; |
16450 | } | |
16451 | ||
16452 | ||
8edf1c75 | 16453 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16454 | PyObject *pyobj; |
16455 | ||
8edf1c75 | 16456 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16457 | return pyobj; |
16458 | } | |
16459 | ||
16460 | ||
8edf1c75 RD |
16461 | static int _wrap_NullBrush_set(PyObject *) { |
16462 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16463 | return 1; |
16464 | } | |
16465 | ||
16466 | ||
8edf1c75 | 16467 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16468 | PyObject *pyobj; |
16469 | ||
8edf1c75 | 16470 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16471 | return pyobj; |
16472 | } | |
16473 | ||
16474 | ||
8edf1c75 RD |
16475 | static int _wrap_NullPalette_set(PyObject *) { |
16476 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16477 | return 1; |
16478 | } | |
16479 | ||
16480 | ||
8edf1c75 | 16481 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16482 | PyObject *pyobj; |
16483 | ||
8edf1c75 | 16484 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16485 | return pyobj; |
16486 | } | |
16487 | ||
16488 | ||
8edf1c75 RD |
16489 | static int _wrap_NullFont_set(PyObject *) { |
16490 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16491 | return 1; |
16492 | } | |
16493 | ||
16494 | ||
8edf1c75 | 16495 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16496 | PyObject *pyobj; |
16497 | ||
8edf1c75 | 16498 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16499 | return pyobj; |
16500 | } | |
16501 | ||
16502 | ||
8edf1c75 RD |
16503 | static int _wrap_NullColour_set(PyObject *) { |
16504 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16505 | return 1; |
16506 | } | |
16507 | ||
16508 | ||
8edf1c75 | 16509 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16510 | PyObject *pyobj; |
16511 | ||
8edf1c75 | 16512 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16513 | return pyobj; |
16514 | } | |
16515 | ||
16516 | ||
8edf1c75 RD |
16517 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16518 | PyObject *resultobj; | |
16519 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16520 | wxPen *arg2 = (wxPen *) 0 ; | |
16521 | PyObject * obj0 = 0 ; | |
16522 | PyObject * obj1 = 0 ; | |
16523 | char *kwnames[] = { | |
16524 | (char *) "self",(char *) "pen", NULL | |
16525 | }; | |
16526 | ||
16527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
16528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16529 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16530 | { | |
16531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16532 | (arg1)->AddPen(arg2); | |
16533 | ||
16534 | wxPyEndAllowThreads(__tstate); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
16537 | Py_INCREF(Py_None); resultobj = Py_None; | |
16538 | return resultobj; | |
16539 | fail: | |
16540 | return NULL; | |
d14a1e28 RD |
16541 | } |
16542 | ||
16543 | ||
8edf1c75 RD |
16544 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16545 | PyObject *resultobj; | |
16546 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16547 | wxColour *arg2 = 0 ; | |
16548 | int arg3 ; | |
16549 | int arg4 ; | |
16550 | wxPen *result; | |
16551 | wxColour temp2 ; | |
16552 | PyObject * obj0 = 0 ; | |
16553 | PyObject * obj1 = 0 ; | |
16554 | PyObject * obj2 = 0 ; | |
16555 | PyObject * obj3 = 0 ; | |
16556 | char *kwnames[] = { | |
16557 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16558 | }; | |
d14a1e28 | 16559 | |
8edf1c75 RD |
16560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
16561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16562 | { | |
16563 | arg2 = &temp2; | |
16564 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16565 | } | |
16566 | { | |
16567 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | } | |
16570 | { | |
16571 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16572 | if (PyErr_Occurred()) SWIG_fail; | |
16573 | } | |
16574 | { | |
16575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16576 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16577 | ||
16578 | wxPyEndAllowThreads(__tstate); | |
16579 | if (PyErr_Occurred()) SWIG_fail; | |
16580 | } | |
16581 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
16582 | return resultobj; | |
16583 | fail: | |
16584 | return NULL; | |
d14a1e28 RD |
16585 | } |
16586 | ||
16587 | ||
8edf1c75 RD |
16588 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16589 | PyObject *resultobj; | |
16590 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16591 | wxPen *arg2 = (wxPen *) 0 ; | |
16592 | PyObject * obj0 = 0 ; | |
16593 | PyObject * obj1 = 0 ; | |
16594 | char *kwnames[] = { | |
16595 | (char *) "self",(char *) "pen", NULL | |
16596 | }; | |
16597 | ||
16598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
16599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16600 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16601 | { | |
16602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16603 | (arg1)->RemovePen(arg2); | |
16604 | ||
16605 | wxPyEndAllowThreads(__tstate); | |
16606 | if (PyErr_Occurred()) SWIG_fail; | |
16607 | } | |
16608 | Py_INCREF(Py_None); resultobj = Py_None; | |
16609 | return resultobj; | |
16610 | fail: | |
16611 | return NULL; | |
d14a1e28 RD |
16612 | } |
16613 | ||
16614 | ||
8edf1c75 RD |
16615 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16616 | PyObject *resultobj; | |
16617 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16618 | int result; | |
16619 | PyObject * obj0 = 0 ; | |
16620 | char *kwnames[] = { | |
16621 | (char *) "self", NULL | |
16622 | }; | |
d14a1e28 | 16623 | |
8edf1c75 RD |
16624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
16625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16626 | { | |
16627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16628 | result = (int)(arg1)->GetCount(); | |
16629 | ||
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
16633 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16634 | return resultobj; | |
16635 | fail: | |
16636 | return NULL; | |
d14a1e28 RD |
16637 | } |
16638 | ||
16639 | ||
8edf1c75 RD |
16640 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
16641 | PyObject *obj; | |
16642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16643 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
16644 | Py_INCREF(obj); | |
16645 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16646 | } |
8edf1c75 RD |
16647 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16648 | PyObject *resultobj; | |
16649 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16650 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16651 | PyObject * obj0 = 0 ; | |
16652 | PyObject * obj1 = 0 ; | |
16653 | char *kwnames[] = { | |
16654 | (char *) "self",(char *) "brush", NULL | |
16655 | }; | |
d14a1e28 | 16656 | |
8edf1c75 RD |
16657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; |
16658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16659 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16660 | { | |
16661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16662 | (arg1)->AddBrush(arg2); | |
16663 | ||
16664 | wxPyEndAllowThreads(__tstate); | |
16665 | if (PyErr_Occurred()) SWIG_fail; | |
16666 | } | |
16667 | Py_INCREF(Py_None); resultobj = Py_None; | |
16668 | return resultobj; | |
16669 | fail: | |
16670 | return NULL; | |
d14a1e28 RD |
16671 | } |
16672 | ||
16673 | ||
8edf1c75 RD |
16674 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16675 | PyObject *resultobj; | |
16676 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16677 | wxColour *arg2 = 0 ; | |
16678 | int arg3 ; | |
16679 | wxBrush *result; | |
16680 | wxColour temp2 ; | |
16681 | PyObject * obj0 = 0 ; | |
16682 | PyObject * obj1 = 0 ; | |
16683 | PyObject * obj2 = 0 ; | |
16684 | char *kwnames[] = { | |
16685 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
16686 | }; | |
16687 | ||
16688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16690 | { | |
16691 | arg2 = &temp2; | |
16692 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16693 | } | |
16694 | { | |
16695 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16696 | if (PyErr_Occurred()) SWIG_fail; | |
16697 | } | |
16698 | { | |
16699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16700 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
16701 | ||
16702 | wxPyEndAllowThreads(__tstate); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | } | |
16705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
16706 | return resultobj; | |
16707 | fail: | |
16708 | return NULL; | |
d14a1e28 RD |
16709 | } |
16710 | ||
16711 | ||
8edf1c75 RD |
16712 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16713 | PyObject *resultobj; | |
16714 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16715 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16716 | PyObject * obj0 = 0 ; | |
16717 | PyObject * obj1 = 0 ; | |
16718 | char *kwnames[] = { | |
16719 | (char *) "self",(char *) "brush", NULL | |
16720 | }; | |
d14a1e28 | 16721 | |
8edf1c75 RD |
16722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
16723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16724 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16725 | { | |
16726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16727 | (arg1)->RemoveBrush(arg2); | |
16728 | ||
16729 | wxPyEndAllowThreads(__tstate); | |
16730 | if (PyErr_Occurred()) SWIG_fail; | |
16731 | } | |
16732 | Py_INCREF(Py_None); resultobj = Py_None; | |
16733 | return resultobj; | |
16734 | fail: | |
16735 | return NULL; | |
d14a1e28 RD |
16736 | } |
16737 | ||
16738 | ||
8edf1c75 RD |
16739 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16740 | PyObject *resultobj; | |
16741 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16742 | int result; | |
16743 | PyObject * obj0 = 0 ; | |
16744 | char *kwnames[] = { | |
16745 | (char *) "self", NULL | |
16746 | }; | |
d14a1e28 | 16747 | |
8edf1c75 RD |
16748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
16749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16750 | { | |
16751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16752 | result = (int)(arg1)->GetCount(); | |
16753 | ||
16754 | wxPyEndAllowThreads(__tstate); | |
16755 | if (PyErr_Occurred()) SWIG_fail; | |
16756 | } | |
16757 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16758 | return resultobj; | |
16759 | fail: | |
16760 | return NULL; | |
d14a1e28 RD |
16761 | } |
16762 | ||
16763 | ||
8edf1c75 RD |
16764 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
16765 | PyObject *obj; | |
16766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16767 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
16768 | Py_INCREF(obj); | |
16769 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16770 | } |
8edf1c75 RD |
16771 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16772 | PyObject *resultobj; | |
16773 | wxColourDatabase *result; | |
16774 | char *kwnames[] = { | |
16775 | NULL | |
16776 | }; | |
d14a1e28 | 16777 | |
8edf1c75 RD |
16778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
16779 | { | |
16780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16781 | result = (wxColourDatabase *)new wxColourDatabase(); | |
16782 | ||
16783 | wxPyEndAllowThreads(__tstate); | |
16784 | if (PyErr_Occurred()) SWIG_fail; | |
16785 | } | |
16786 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
16787 | return resultobj; | |
16788 | fail: | |
16789 | return NULL; | |
d14a1e28 RD |
16790 | } |
16791 | ||
16792 | ||
8edf1c75 RD |
16793 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16794 | PyObject *resultobj; | |
16795 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16796 | PyObject * obj0 = 0 ; | |
16797 | char *kwnames[] = { | |
16798 | (char *) "self", NULL | |
16799 | }; | |
d14a1e28 | 16800 | |
8edf1c75 RD |
16801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
16802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16803 | { | |
16804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16805 | delete arg1; | |
16806 | ||
16807 | wxPyEndAllowThreads(__tstate); | |
16808 | if (PyErr_Occurred()) SWIG_fail; | |
16809 | } | |
16810 | Py_INCREF(Py_None); resultobj = Py_None; | |
16811 | return resultobj; | |
16812 | fail: | |
16813 | return NULL; | |
d14a1e28 RD |
16814 | } |
16815 | ||
16816 | ||
8edf1c75 RD |
16817 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
16818 | PyObject *resultobj; | |
16819 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16820 | wxString *arg2 = 0 ; | |
16821 | wxColour result; | |
16822 | bool temp2 = False ; | |
16823 | PyObject * obj0 = 0 ; | |
16824 | PyObject * obj1 = 0 ; | |
16825 | char *kwnames[] = { | |
16826 | (char *) "self",(char *) "name", NULL | |
16827 | }; | |
d14a1e28 | 16828 | |
8edf1c75 RD |
16829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; |
16830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16831 | { | |
16832 | arg2 = wxString_in_helper(obj1); | |
16833 | if (arg2 == NULL) SWIG_fail; | |
16834 | temp2 = True; | |
16835 | } | |
16836 | { | |
16837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16838 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
16839 | ||
16840 | wxPyEndAllowThreads(__tstate); | |
16841 | if (PyErr_Occurred()) SWIG_fail; | |
16842 | } | |
16843 | { | |
16844 | wxColour * resultptr; | |
16845 | resultptr = new wxColour((wxColour &) result); | |
16846 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16847 | } | |
16848 | { | |
16849 | if (temp2) | |
16850 | delete arg2; | |
16851 | } | |
16852 | return resultobj; | |
16853 | fail: | |
16854 | { | |
16855 | if (temp2) | |
16856 | delete arg2; | |
16857 | } | |
16858 | return NULL; | |
d14a1e28 RD |
16859 | } |
16860 | ||
16861 | ||
8edf1c75 RD |
16862 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
16863 | PyObject *resultobj; | |
16864 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16865 | wxColour *arg2 = 0 ; | |
16866 | wxString result; | |
16867 | wxColour temp2 ; | |
16868 | PyObject * obj0 = 0 ; | |
16869 | PyObject * obj1 = 0 ; | |
16870 | char *kwnames[] = { | |
16871 | (char *) "self",(char *) "colour", NULL | |
16872 | }; | |
d14a1e28 | 16873 | |
8edf1c75 RD |
16874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
16875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16876 | { | |
16877 | arg2 = &temp2; | |
16878 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16879 | } | |
16880 | { | |
16881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16882 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
16883 | ||
16884 | wxPyEndAllowThreads(__tstate); | |
16885 | if (PyErr_Occurred()) SWIG_fail; | |
16886 | } | |
16887 | { | |
16888 | #if wxUSE_UNICODE | |
16889 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16890 | #else | |
16891 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16892 | #endif | |
16893 | } | |
16894 | return resultobj; | |
16895 | fail: | |
16896 | return NULL; | |
d14a1e28 RD |
16897 | } |
16898 | ||
16899 | ||
8edf1c75 RD |
16900 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
16901 | PyObject *resultobj; | |
16902 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16903 | wxString *arg2 = 0 ; | |
16904 | wxColour *arg3 = 0 ; | |
16905 | bool temp2 = False ; | |
16906 | wxColour temp3 ; | |
16907 | PyObject * obj0 = 0 ; | |
16908 | PyObject * obj1 = 0 ; | |
16909 | PyObject * obj2 = 0 ; | |
16910 | char *kwnames[] = { | |
16911 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
16912 | }; | |
16913 | ||
16914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16916 | { | |
16917 | arg2 = wxString_in_helper(obj1); | |
16918 | if (arg2 == NULL) SWIG_fail; | |
16919 | temp2 = True; | |
16920 | } | |
16921 | { | |
16922 | arg3 = &temp3; | |
16923 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16924 | } | |
16925 | { | |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | Py_INCREF(Py_None); resultobj = Py_None; | |
16933 | { | |
16934 | if (temp2) | |
16935 | delete arg2; | |
16936 | } | |
16937 | return resultobj; | |
16938 | fail: | |
16939 | { | |
16940 | if (temp2) | |
16941 | delete arg2; | |
16942 | } | |
16943 | return NULL; | |
d14a1e28 RD |
16944 | } |
16945 | ||
16946 | ||
8edf1c75 RD |
16947 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
16948 | PyObject *resultobj; | |
16949 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16950 | wxString *arg2 = 0 ; | |
16951 | int arg3 ; | |
16952 | int arg4 ; | |
16953 | int arg5 ; | |
16954 | bool temp2 = False ; | |
16955 | PyObject * obj0 = 0 ; | |
16956 | PyObject * obj1 = 0 ; | |
16957 | PyObject * obj2 = 0 ; | |
16958 | PyObject * obj3 = 0 ; | |
16959 | PyObject * obj4 = 0 ; | |
16960 | char *kwnames[] = { | |
16961 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
16962 | }; | |
d14a1e28 | 16963 | |
8edf1c75 RD |
16964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
16965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16966 | { | |
16967 | arg2 = wxString_in_helper(obj1); | |
16968 | if (arg2 == NULL) SWIG_fail; | |
16969 | temp2 = True; | |
16970 | } | |
16971 | { | |
16972 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16973 | if (PyErr_Occurred()) SWIG_fail; | |
16974 | } | |
16975 | { | |
16976 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16977 | if (PyErr_Occurred()) SWIG_fail; | |
16978 | } | |
16979 | { | |
16980 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
16981 | if (PyErr_Occurred()) SWIG_fail; | |
16982 | } | |
16983 | { | |
16984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16985 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
16986 | ||
16987 | wxPyEndAllowThreads(__tstate); | |
16988 | if (PyErr_Occurred()) SWIG_fail; | |
16989 | } | |
16990 | Py_INCREF(Py_None); resultobj = Py_None; | |
16991 | { | |
16992 | if (temp2) | |
16993 | delete arg2; | |
16994 | } | |
16995 | return resultobj; | |
16996 | fail: | |
16997 | { | |
16998 | if (temp2) | |
16999 | delete arg2; | |
17000 | } | |
17001 | return NULL; | |
d14a1e28 RD |
17002 | } |
17003 | ||
17004 | ||
8edf1c75 RD |
17005 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
17006 | PyObject *obj; | |
17007 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17008 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17009 | Py_INCREF(obj); | |
17010 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17011 | } |
8edf1c75 RD |
17012 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17013 | PyObject *resultobj; | |
17014 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17015 | wxFont *arg2 = (wxFont *) 0 ; | |
17016 | PyObject * obj0 = 0 ; | |
17017 | PyObject * obj1 = 0 ; | |
17018 | char *kwnames[] = { | |
17019 | (char *) "self",(char *) "font", NULL | |
17020 | }; | |
d14a1e28 | 17021 | |
8edf1c75 RD |
17022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
17023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17024 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17025 | { | |
17026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17027 | (arg1)->AddFont(arg2); | |
17028 | ||
17029 | wxPyEndAllowThreads(__tstate); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | } | |
17032 | Py_INCREF(Py_None); resultobj = Py_None; | |
17033 | return resultobj; | |
17034 | fail: | |
17035 | return NULL; | |
d14a1e28 RD |
17036 | } |
17037 | ||
17038 | ||
8edf1c75 RD |
17039 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17040 | PyObject *resultobj; | |
17041 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17042 | int arg2 ; | |
17043 | int arg3 ; | |
17044 | int arg4 ; | |
17045 | int arg5 ; | |
17046 | bool arg6 = (bool) False ; | |
17047 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17048 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17049 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17050 | wxFont *result; | |
17051 | bool temp7 = False ; | |
17052 | PyObject * obj0 = 0 ; | |
17053 | PyObject * obj1 = 0 ; | |
17054 | PyObject * obj2 = 0 ; | |
17055 | PyObject * obj3 = 0 ; | |
17056 | PyObject * obj4 = 0 ; | |
17057 | PyObject * obj5 = 0 ; | |
17058 | PyObject * obj6 = 0 ; | |
17059 | PyObject * obj7 = 0 ; | |
17060 | char *kwnames[] = { | |
17061 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17062 | }; | |
d14a1e28 | 17063 | |
8edf1c75 RD |
17064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
17065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17066 | { | |
17067 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17068 | if (PyErr_Occurred()) SWIG_fail; | |
17069 | } | |
17070 | { | |
17071 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17072 | if (PyErr_Occurred()) SWIG_fail; | |
17073 | } | |
17074 | { | |
17075 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17076 | if (PyErr_Occurred()) SWIG_fail; | |
17077 | } | |
17078 | { | |
17079 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17080 | if (PyErr_Occurred()) SWIG_fail; | |
17081 | } | |
17082 | if (obj5) { | |
17083 | { | |
17084 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
17086 | } | |
17087 | } | |
17088 | if (obj6) { | |
17089 | { | |
17090 | arg7 = wxString_in_helper(obj6); | |
17091 | if (arg7 == NULL) SWIG_fail; | |
17092 | temp7 = True; | |
17093 | } | |
17094 | } | |
17095 | if (obj7) { | |
17096 | { | |
17097 | arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | } | |
17101 | { | |
17102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17103 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17104 | ||
17105 | wxPyEndAllowThreads(__tstate); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | } | |
17108 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
17109 | { | |
17110 | if (temp7) | |
17111 | delete arg7; | |
17112 | } | |
17113 | return resultobj; | |
17114 | fail: | |
17115 | { | |
17116 | if (temp7) | |
17117 | delete arg7; | |
17118 | } | |
17119 | return NULL; | |
d14a1e28 RD |
17120 | } |
17121 | ||
17122 | ||
8edf1c75 RD |
17123 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17124 | PyObject *resultobj; | |
17125 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17126 | wxFont *arg2 = (wxFont *) 0 ; | |
17127 | PyObject * obj0 = 0 ; | |
17128 | PyObject * obj1 = 0 ; | |
17129 | char *kwnames[] = { | |
17130 | (char *) "self",(char *) "font", NULL | |
17131 | }; | |
d14a1e28 | 17132 | |
8edf1c75 RD |
17133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
17134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17135 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17136 | { | |
17137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17138 | (arg1)->RemoveFont(arg2); | |
17139 | ||
17140 | wxPyEndAllowThreads(__tstate); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | } | |
17143 | Py_INCREF(Py_None); resultobj = Py_None; | |
17144 | return resultobj; | |
17145 | fail: | |
17146 | return NULL; | |
d14a1e28 RD |
17147 | } |
17148 | ||
17149 | ||
8edf1c75 RD |
17150 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17151 | PyObject *resultobj; | |
17152 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17153 | int result; | |
17154 | PyObject * obj0 = 0 ; | |
17155 | char *kwnames[] = { | |
17156 | (char *) "self", NULL | |
17157 | }; | |
d14a1e28 | 17158 | |
8edf1c75 RD |
17159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
17160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17161 | { | |
17162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17163 | result = (int)(arg1)->GetCount(); | |
17164 | ||
17165 | wxPyEndAllowThreads(__tstate); | |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
17167 | } | |
17168 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17169 | return resultobj; | |
17170 | fail: | |
17171 | return NULL; | |
d14a1e28 RD |
17172 | } |
17173 | ||
17174 | ||
8edf1c75 RD |
17175 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
17176 | PyObject *obj; | |
17177 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17178 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17179 | Py_INCREF(obj); | |
17180 | return Py_BuildValue((char *)""); | |
17181 | } | |
17182 | static int _wrap_TheFontList_set(PyObject *) { | |
d14a1e28 RD |
17183 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
17184 | return 1; | |
17185 | } | |
17186 | ||
17187 | ||
17188 | static PyObject *_wrap_TheFontList_get() { | |
17189 | PyObject *pyobj; | |
17190 | ||
17191 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
17192 | return pyobj; | |
17193 | } | |
17194 | ||
17195 | ||
8edf1c75 | 17196 | static int _wrap_ThePenList_set(PyObject *) { |
d14a1e28 RD |
17197 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
17198 | return 1; | |
17199 | } | |
17200 | ||
17201 | ||
17202 | static PyObject *_wrap_ThePenList_get() { | |
17203 | PyObject *pyobj; | |
17204 | ||
17205 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
17206 | return pyobj; | |
17207 | } | |
17208 | ||
17209 | ||
8edf1c75 | 17210 | static int _wrap_TheBrushList_set(PyObject *) { |
d14a1e28 RD |
17211 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
17212 | return 1; | |
17213 | } | |
17214 | ||
17215 | ||
17216 | static PyObject *_wrap_TheBrushList_get() { | |
17217 | PyObject *pyobj; | |
17218 | ||
17219 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
17220 | return pyobj; | |
17221 | } | |
17222 | ||
17223 | ||
8edf1c75 | 17224 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d14a1e28 RD |
17225 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
17226 | return 1; | |
17227 | } | |
17228 | ||
17229 | ||
17230 | static PyObject *_wrap_TheColourDatabase_get() { | |
17231 | PyObject *pyobj; | |
17232 | ||
17233 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
17234 | return pyobj; | |
17235 | } | |
17236 | ||
17237 | ||
423f194a | 17238 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17239 | PyObject *resultobj; |
423f194a | 17240 | wxEffects *result; |
d14a1e28 | 17241 | char *kwnames[] = { |
423f194a | 17242 | NULL |
d14a1e28 RD |
17243 | }; |
17244 | ||
423f194a | 17245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
17246 | { |
17247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17248 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
17249 | |
17250 | wxPyEndAllowThreads(__tstate); | |
17251 | if (PyErr_Occurred()) SWIG_fail; | |
17252 | } | |
423f194a | 17253 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
17254 | return resultobj; |
17255 | fail: | |
17256 | return NULL; | |
17257 | } | |
17258 | ||
17259 | ||
423f194a | 17260 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17261 | PyObject *resultobj; |
423f194a RD |
17262 | wxEffects *arg1 = (wxEffects *) 0 ; |
17263 | wxColour result; | |
d14a1e28 | 17264 | PyObject * obj0 = 0 ; |
d14a1e28 | 17265 | char *kwnames[] = { |
423f194a | 17266 | (char *) "self", NULL |
d14a1e28 RD |
17267 | }; |
17268 | ||
423f194a RD |
17269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
17270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17271 | { |
17272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17273 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
17274 | |
17275 | wxPyEndAllowThreads(__tstate); | |
17276 | if (PyErr_Occurred()) SWIG_fail; | |
17277 | } | |
423f194a RD |
17278 | { |
17279 | wxColour * resultptr; | |
17280 | resultptr = new wxColour((wxColour &) result); | |
17281 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17282 | } | |
d14a1e28 RD |
17283 | return resultobj; |
17284 | fail: | |
17285 | return NULL; | |
17286 | } | |
17287 | ||
17288 | ||
423f194a | 17289 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17290 | PyObject *resultobj; |
423f194a RD |
17291 | wxEffects *arg1 = (wxEffects *) 0 ; |
17292 | wxColour result; | |
d14a1e28 | 17293 | PyObject * obj0 = 0 ; |
d14a1e28 | 17294 | char *kwnames[] = { |
423f194a | 17295 | (char *) "self", NULL |
d14a1e28 RD |
17296 | }; |
17297 | ||
423f194a RD |
17298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
17299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17300 | { |
17301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17302 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17303 | |
17304 | wxPyEndAllowThreads(__tstate); | |
17305 | if (PyErr_Occurred()) SWIG_fail; | |
17306 | } | |
d14a1e28 | 17307 | { |
423f194a RD |
17308 | wxColour * resultptr; |
17309 | resultptr = new wxColour((wxColour &) result); | |
17310 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
17311 | } |
17312 | return resultobj; | |
17313 | fail: | |
d14a1e28 RD |
17314 | return NULL; |
17315 | } | |
17316 | ||
17317 | ||
423f194a | 17318 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17319 | PyObject *resultobj; |
423f194a RD |
17320 | wxEffects *arg1 = (wxEffects *) 0 ; |
17321 | wxColour result; | |
d14a1e28 | 17322 | PyObject * obj0 = 0 ; |
d14a1e28 | 17323 | char *kwnames[] = { |
423f194a | 17324 | (char *) "self", NULL |
d14a1e28 RD |
17325 | }; |
17326 | ||
423f194a RD |
17327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
17328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17329 | { |
17330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17331 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17332 | |
17333 | wxPyEndAllowThreads(__tstate); | |
17334 | if (PyErr_Occurred()) SWIG_fail; | |
17335 | } | |
423f194a RD |
17336 | { |
17337 | wxColour * resultptr; | |
17338 | resultptr = new wxColour((wxColour &) result); | |
17339 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17340 | } | |
d14a1e28 RD |
17341 | return resultobj; |
17342 | fail: | |
17343 | return NULL; | |
17344 | } | |
17345 | ||
17346 | ||
423f194a | 17347 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17348 | PyObject *resultobj; |
423f194a RD |
17349 | wxEffects *arg1 = (wxEffects *) 0 ; |
17350 | wxColour result; | |
d14a1e28 RD |
17351 | PyObject * obj0 = 0 ; |
17352 | char *kwnames[] = { | |
423f194a | 17353 | (char *) "self", NULL |
d14a1e28 RD |
17354 | }; |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
17357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17358 | { | |
17359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17360 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17361 | ||
17362 | wxPyEndAllowThreads(__tstate); | |
17363 | if (PyErr_Occurred()) SWIG_fail; | |
17364 | } | |
17365 | { | |
17366 | wxColour * resultptr; | |
17367 | resultptr = new wxColour((wxColour &) result); | |
17368 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17369 | } | |
17370 | return resultobj; | |
17371 | fail: | |
17372 | return NULL; | |
17373 | } | |
17374 | ||
17375 | ||
17376 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17377 | PyObject *resultobj; | |
17378 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17379 | wxColour result; | |
17380 | PyObject * obj0 = 0 ; | |
17381 | char *kwnames[] = { | |
17382 | (char *) "self", NULL | |
17383 | }; | |
17384 | ||
17385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
17386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17387 | { | |
17388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17389 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17390 | ||
17391 | wxPyEndAllowThreads(__tstate); | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
17393 | } | |
17394 | { | |
17395 | wxColour * resultptr; | |
17396 | resultptr = new wxColour((wxColour &) result); | |
17397 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17398 | } | |
17399 | return resultobj; | |
17400 | fail: | |
17401 | return NULL; | |
17402 | } | |
17403 | ||
17404 | ||
17405 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17406 | PyObject *resultobj; | |
17407 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17408 | wxColour *arg2 = 0 ; | |
17409 | wxColour temp2 ; | |
17410 | PyObject * obj0 = 0 ; | |
17411 | PyObject * obj1 = 0 ; | |
17412 | char *kwnames[] = { | |
17413 | (char *) "self",(char *) "c", NULL | |
17414 | }; | |
17415 | ||
17416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
17417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17418 | { | |
17419 | arg2 = &temp2; | |
17420 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17421 | } | |
17422 | { | |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17424 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17425 | ||
17426 | wxPyEndAllowThreads(__tstate); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
17429 | Py_INCREF(Py_None); resultobj = Py_None; | |
17430 | return resultobj; | |
17431 | fail: | |
17432 | return NULL; | |
17433 | } | |
17434 | ||
17435 | ||
17436 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17437 | PyObject *resultobj; | |
17438 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17439 | wxColour *arg2 = 0 ; | |
17440 | wxColour temp2 ; | |
17441 | PyObject * obj0 = 0 ; | |
17442 | PyObject * obj1 = 0 ; | |
17443 | char *kwnames[] = { | |
17444 | (char *) "self",(char *) "c", NULL | |
17445 | }; | |
17446 | ||
17447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
17448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17449 | { | |
17450 | arg2 = &temp2; | |
17451 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17452 | } | |
17453 | { | |
17454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17455 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17456 | ||
17457 | wxPyEndAllowThreads(__tstate); | |
17458 | if (PyErr_Occurred()) SWIG_fail; | |
17459 | } | |
17460 | Py_INCREF(Py_None); resultobj = Py_None; | |
17461 | return resultobj; | |
17462 | fail: | |
17463 | return NULL; | |
17464 | } | |
17465 | ||
17466 | ||
17467 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17468 | PyObject *resultobj; | |
17469 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17470 | wxColour *arg2 = 0 ; | |
17471 | wxColour temp2 ; | |
17472 | PyObject * obj0 = 0 ; | |
17473 | PyObject * obj1 = 0 ; | |
17474 | char *kwnames[] = { | |
17475 | (char *) "self",(char *) "c", NULL | |
17476 | }; | |
17477 | ||
17478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
17479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17480 | { | |
17481 | arg2 = &temp2; | |
17482 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17483 | } | |
17484 | { | |
17485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17486 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17487 | ||
17488 | wxPyEndAllowThreads(__tstate); | |
17489 | if (PyErr_Occurred()) SWIG_fail; | |
17490 | } | |
17491 | Py_INCREF(Py_None); resultobj = Py_None; | |
17492 | return resultobj; | |
17493 | fail: | |
17494 | return NULL; | |
17495 | } | |
17496 | ||
17497 | ||
17498 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17499 | PyObject *resultobj; | |
17500 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17501 | wxColour *arg2 = 0 ; | |
17502 | wxColour temp2 ; | |
17503 | PyObject * obj0 = 0 ; | |
17504 | PyObject * obj1 = 0 ; | |
17505 | char *kwnames[] = { | |
17506 | (char *) "self",(char *) "c", NULL | |
17507 | }; | |
17508 | ||
17509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
17510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17511 | { | |
17512 | arg2 = &temp2; | |
17513 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17514 | } | |
17515 | { | |
17516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17517 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17518 | ||
17519 | wxPyEndAllowThreads(__tstate); | |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
17521 | } | |
17522 | Py_INCREF(Py_None); resultobj = Py_None; | |
17523 | return resultobj; | |
17524 | fail: | |
17525 | return NULL; | |
17526 | } | |
17527 | ||
17528 | ||
17529 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17530 | PyObject *resultobj; | |
17531 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17532 | wxColour *arg2 = 0 ; | |
17533 | wxColour temp2 ; | |
17534 | PyObject * obj0 = 0 ; | |
17535 | PyObject * obj1 = 0 ; | |
17536 | char *kwnames[] = { | |
17537 | (char *) "self",(char *) "c", NULL | |
17538 | }; | |
17539 | ||
17540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
17541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17542 | { | |
17543 | arg2 = &temp2; | |
17544 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17545 | } | |
17546 | { | |
17547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17548 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17549 | ||
17550 | wxPyEndAllowThreads(__tstate); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
17552 | } | |
17553 | Py_INCREF(Py_None); resultobj = Py_None; | |
17554 | return resultobj; | |
17555 | fail: | |
17556 | return NULL; | |
17557 | } | |
17558 | ||
17559 | ||
17560 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17561 | PyObject *resultobj; | |
17562 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17563 | wxColour *arg2 = 0 ; | |
17564 | wxColour *arg3 = 0 ; | |
17565 | wxColour *arg4 = 0 ; | |
17566 | wxColour *arg5 = 0 ; | |
17567 | wxColour *arg6 = 0 ; | |
17568 | wxColour temp2 ; | |
17569 | wxColour temp3 ; | |
17570 | wxColour temp4 ; | |
17571 | wxColour temp5 ; | |
17572 | wxColour temp6 ; | |
17573 | PyObject * obj0 = 0 ; | |
17574 | PyObject * obj1 = 0 ; | |
17575 | PyObject * obj2 = 0 ; | |
17576 | PyObject * obj3 = 0 ; | |
17577 | PyObject * obj4 = 0 ; | |
17578 | PyObject * obj5 = 0 ; | |
17579 | char *kwnames[] = { | |
17580 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17581 | }; | |
17582 | ||
17583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17585 | { | |
17586 | arg2 = &temp2; | |
17587 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17588 | } | |
17589 | { | |
17590 | arg3 = &temp3; | |
17591 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17592 | } | |
17593 | { | |
17594 | arg4 = &temp4; | |
17595 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17596 | } | |
17597 | { | |
17598 | arg5 = &temp5; | |
17599 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17600 | } | |
17601 | { | |
17602 | arg6 = &temp6; | |
17603 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
17604 | } | |
17605 | { | |
17606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17607 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
17608 | ||
17609 | wxPyEndAllowThreads(__tstate); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | Py_INCREF(Py_None); resultobj = Py_None; | |
17613 | return resultobj; | |
17614 | fail: | |
17615 | return NULL; | |
17616 | } | |
17617 | ||
17618 | ||
17619 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17620 | PyObject *resultobj; | |
17621 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17622 | wxDC *arg2 = 0 ; | |
17623 | wxRect *arg3 = 0 ; | |
17624 | int arg4 = (int) 1 ; | |
17625 | wxRect temp3 ; | |
17626 | PyObject * obj0 = 0 ; | |
17627 | PyObject * obj1 = 0 ; | |
17628 | PyObject * obj2 = 0 ; | |
8edf1c75 | 17629 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
17630 | char *kwnames[] = { |
17631 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17632 | }; | |
17633 | ||
8edf1c75 | 17634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
17635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17636 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17637 | if (arg2 == NULL) { | |
17638 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17639 | } | |
17640 | { | |
17641 | arg3 = &temp3; | |
17642 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17643 | } | |
8edf1c75 RD |
17644 | if (obj3) { |
17645 | { | |
17646 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17647 | if (PyErr_Occurred()) SWIG_fail; | |
17648 | } | |
17649 | } | |
d14a1e28 RD |
17650 | { |
17651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17652 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17653 | ||
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | Py_INCREF(Py_None); resultobj = Py_None; | |
17658 | return resultobj; | |
17659 | fail: | |
17660 | return NULL; | |
17661 | } | |
17662 | ||
17663 | ||
17664 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17665 | PyObject *resultobj; | |
17666 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17667 | wxRect *arg2 = 0 ; | |
17668 | wxDC *arg3 = 0 ; | |
17669 | wxBitmap *arg4 = 0 ; | |
17670 | bool result; | |
17671 | wxRect temp2 ; | |
17672 | PyObject * obj0 = 0 ; | |
17673 | PyObject * obj1 = 0 ; | |
17674 | PyObject * obj2 = 0 ; | |
17675 | PyObject * obj3 = 0 ; | |
17676 | char *kwnames[] = { | |
17677 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17678 | }; | |
17679 | ||
17680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17682 | { | |
17683 | arg2 = &temp2; | |
17684 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17685 | } | |
17686 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17687 | if (arg3 == NULL) { | |
17688 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17689 | } | |
17690 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17691 | if (arg4 == NULL) { | |
17692 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17693 | } | |
17694 | { | |
17695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17696 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17697 | ||
17698 | wxPyEndAllowThreads(__tstate); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | } | |
02a34c4c | 17701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17702 | return resultobj; |
17703 | fail: | |
17704 | return NULL; | |
17705 | } | |
17706 | ||
17707 | ||
17708 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
17709 | PyObject *obj; | |
17710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17711 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17712 | Py_INCREF(obj); | |
17713 | return Py_BuildValue((char *)""); | |
17714 | } | |
17715 | static PyMethodDef SwigMethods[] = { | |
17716 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17717 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17718 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17719 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17720 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
17721 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
17722 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17723 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, |
17724 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
38f59159 | 17725 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17726 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, |
17727 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
17728 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
17729 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17730 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 17731 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
38f59159 RD |
17732 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, |
17733 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17734 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
17735 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17736 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
38f59159 | 17737 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17738 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, |
17739 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17740 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17741 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17742 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
17743 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17744 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
17745 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17746 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17747 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
17748 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17749 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17750 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17751 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17752 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17753 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
17754 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17755 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17756 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17757 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17758 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17759 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 | 17760 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
38f59159 | 17761 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17762 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
17763 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17764 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17765 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17766 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
17767 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17768 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17769 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17770 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17771 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17772 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17773 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17774 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17775 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17776 | { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS }, | |
17777 | { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS }, | |
17778 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
17779 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17780 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17781 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17782 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17783 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17784 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17785 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17786 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17787 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17788 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17789 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17790 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
17791 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
17792 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
17793 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17794 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17795 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
17796 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17797 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17798 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17799 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17800 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17801 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
17802 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17803 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, |
17804 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17805 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17806 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
17807 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
17808 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17809 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17810 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17811 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17812 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17813 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17814 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17815 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17816 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17817 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17818 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
17819 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17820 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17821 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17822 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17823 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17824 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17825 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17826 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
17827 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17828 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17829 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17830 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17831 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17832 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17833 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
17834 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
17835 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17836 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17837 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
17838 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17839 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17840 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17841 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
17842 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
17843 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17844 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
17845 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
17846 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17847 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
17848 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
17849 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
17850 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
17851 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
17852 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
17853 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
17854 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
17855 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
17856 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
17857 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
17858 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
17859 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
17860 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
17861 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
17862 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
17863 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
17864 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
17865 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17866 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17867 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
17868 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17869 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17870 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
17871 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
17872 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
17873 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17874 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
17875 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17876 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
17877 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
17878 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
17879 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
17880 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
17881 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
17882 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17883 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17884 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
17885 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
17886 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17887 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17888 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17889 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17890 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17891 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17892 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17893 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17894 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17895 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17896 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17897 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17898 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17899 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17900 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17901 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17902 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
17903 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
17904 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
17905 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
17906 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
17907 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
17908 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
17909 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
17910 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17911 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17912 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17913 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17914 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
17915 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17916 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17917 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17918 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17919 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
17920 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
17921 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17922 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
17923 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17924 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17925 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
17926 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
17927 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17928 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17929 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17930 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
17931 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
17932 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
17933 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
17934 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
17935 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
17936 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
17937 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
17938 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
17939 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17940 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17941 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17942 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17943 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17944 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17945 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17946 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17947 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17948 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17949 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17950 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
17951 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
17952 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17953 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17954 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17955 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17956 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17957 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17958 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17959 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17960 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17961 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
17962 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17963 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
17964 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
17965 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
17966 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17967 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17968 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17969 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17970 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
17971 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17972 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17973 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
17974 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17975 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17976 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17977 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17978 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
17979 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
17980 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
17981 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
17982 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
17983 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
17984 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
17985 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
17986 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17987 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17988 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
17989 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
17990 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17991 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17992 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17993 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17994 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17995 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17996 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
17997 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
17998 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
17999 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
18000 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
18001 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18002 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
18003 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18004 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18005 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
18006 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
18007 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
18008 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18009 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
18010 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18011 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18012 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
18013 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
18014 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18015 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18016 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
18017 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
18018 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
18019 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18020 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18021 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
18022 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
18023 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
18024 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18025 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
18026 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
18027 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
18028 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
18029 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18030 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
18031 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
18032 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
18033 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18034 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
18035 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
18036 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
18037 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18038 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18039 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18040 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18041 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18042 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18043 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
18044 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
18045 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
18046 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
18047 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
18048 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
18049 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
18050 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
18051 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18052 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18053 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
18054 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18055 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
18056 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
18057 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
18058 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
18059 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18060 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18061 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18062 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18063 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18064 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18065 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18066 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18067 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18068 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18069 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18070 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18071 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18072 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18073 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
0f774bef | 18074 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18075 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18076 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18077 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18078 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18079 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18080 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18081 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18082 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18083 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18084 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18085 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 | 18086 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18087 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18088 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18089 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18090 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18091 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
18092 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18093 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18094 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18095 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18096 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18097 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18098 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18099 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18100 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18101 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18102 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18103 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18104 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18105 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18106 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18107 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18108 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18109 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18110 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18111 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18112 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18113 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18114 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18115 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18116 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18117 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18118 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18119 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18120 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18121 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18122 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18123 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18124 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
18125 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
18126 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18127 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18128 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18129 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18130 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18131 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18132 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18133 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18134 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18135 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18136 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18137 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18138 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18139 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18140 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18141 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18142 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18143 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18144 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18145 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18146 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18147 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
0ffb2aa6 RD |
18148 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
18149 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
38f59159 | 18150 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18151 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
18152 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
38f59159 | 18153 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18154 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
18155 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
18156 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
18157 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18158 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18159 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
18160 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
18161 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
18162 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18163 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
18164 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
18165 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
18166 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
18167 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
18168 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
18169 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18170 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18171 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18172 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18173 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
18174 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18175 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
18176 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
18177 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
18178 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
18179 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
18180 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18181 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18182 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
18183 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
18184 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18185 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
18186 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
18187 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
18188 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
18189 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
18190 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18191 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
18192 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
18193 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
18194 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
18195 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18196 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
18197 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
18198 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
18199 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
18200 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18201 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
18202 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18203 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18204 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
18205 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
18206 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
18207 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
18208 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
18209 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
18210 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
18211 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
18212 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18213 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
18214 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
18215 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18216 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18217 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18218 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18219 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18220 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18221 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18222 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18223 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18224 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18225 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
18226 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
18227 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18228 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
18229 | { NULL, NULL } | |
18230 | }; | |
18231 | ||
18232 | ||
18233 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18234 | ||
423f194a RD |
18235 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
18236 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18237 | } | |
18238 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18239 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18240 | } | |
18241 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18242 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18243 | } | |
d14a1e28 RD |
18244 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
18245 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18246 | } | |
18247 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18248 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18249 | } | |
d14a1e28 RD |
18250 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
18251 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18252 | } | |
18253 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18254 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18255 | } | |
18256 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18257 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18258 | } | |
18259 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18260 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18261 | } | |
18262 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18263 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18264 | } | |
18265 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18266 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18267 | } | |
18268 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18269 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18270 | } | |
18271 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18272 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18273 | } | |
18274 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18275 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18276 | } | |
18277 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18278 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18279 | } | |
18280 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18281 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18282 | } | |
18283 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18284 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18285 | } | |
18286 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18287 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18288 | } | |
18289 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18290 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18291 | } | |
18292 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18293 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18294 | } | |
18295 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18296 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18297 | } | |
18298 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18299 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18300 | } | |
18301 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18302 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18303 | } | |
18304 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18305 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18306 | } | |
18307 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18308 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18309 | } | |
18310 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18311 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18312 | } | |
18313 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18314 | return (void *)((wxObject *) ((wxDC *) x)); | |
18315 | } | |
18316 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18317 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18318 | } | |
18319 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18320 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18321 | } | |
18322 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18323 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18324 | } | |
18325 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18326 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18327 | } | |
18328 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18329 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18330 | } | |
18331 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18332 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18333 | } | |
18334 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18335 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18336 | } | |
18337 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18338 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18339 | } | |
18340 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18341 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18342 | } | |
18343 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18344 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18345 | } | |
18346 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18347 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18348 | } | |
18349 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18350 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18351 | } | |
18352 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18353 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18354 | } | |
18355 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18356 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18357 | } | |
18358 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18359 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18360 | } | |
18361 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18362 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18363 | } | |
18364 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18365 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18366 | } | |
18367 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18368 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18369 | } | |
18370 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18371 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18372 | } | |
18373 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18374 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18375 | } | |
18376 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18377 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18378 | } | |
18379 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18380 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18381 | } | |
18382 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18383 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18384 | } | |
18385 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18386 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18387 | } | |
18388 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18389 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18390 | } | |
18391 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18392 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18393 | } | |
18394 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18395 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18396 | } | |
18397 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18398 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18399 | } | |
18400 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18401 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18402 | } | |
18403 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18404 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18405 | } | |
18406 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18407 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18408 | } | |
18409 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18410 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18411 | } | |
18412 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18413 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18414 | } | |
18415 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18416 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18417 | } | |
18418 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18419 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18420 | } | |
18421 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18422 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18423 | } | |
18424 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18425 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18426 | } | |
18427 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18428 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18429 | } | |
18430 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18431 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18432 | } | |
18433 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18434 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18435 | } | |
18436 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18437 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18438 | } | |
18439 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18440 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18441 | } | |
18442 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18443 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18444 | } | |
18445 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18446 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18447 | } | |
41f1cec7 RD |
18448 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18449 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18450 | } | |
d14a1e28 RD |
18451 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18452 | return (void *)((wxObject *) ((wxImage *) x)); | |
18453 | } | |
18454 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18455 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18456 | } | |
d14a1e28 RD |
18457 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18458 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18459 | } | |
18460 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18461 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18462 | } | |
18463 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18464 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18465 | } | |
18466 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18467 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18468 | } | |
18469 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18470 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18471 | } | |
18472 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18473 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18474 | } | |
18475 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18476 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18477 | } | |
18478 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18479 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18480 | } | |
18481 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18482 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18483 | } | |
18484 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18485 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18486 | } | |
18487 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18488 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18489 | } | |
18490 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18491 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18492 | } | |
18493 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18494 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18495 | } | |
18496 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18497 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18498 | } | |
18499 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
18500 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
18501 | } | |
18502 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
18503 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18504 | } | |
18505 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18506 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18507 | } | |
18508 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18509 | return (void *)((wxObject *) ((wxMask *) x)); | |
18510 | } | |
18511 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18512 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18513 | } | |
18514 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18515 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18516 | } | |
18517 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18518 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18519 | } | |
18520 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18521 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18522 | } | |
18523 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18524 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18525 | } | |
18526 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18527 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18528 | } | |
18529 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18530 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18531 | } | |
18532 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18533 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18534 | } | |
18535 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18536 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18537 | } | |
18538 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18539 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18540 | } | |
18541 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18542 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18543 | } | |
18544 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18545 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18546 | } | |
18547 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18548 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18549 | } | |
18550 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18551 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18552 | } | |
18553 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18554 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18555 | } | |
18556 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18557 | return (void *)((wxObject *) ((wxColour *) x)); | |
18558 | } | |
18559 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18560 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18561 | } | |
18562 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18563 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18564 | } | |
18565 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18566 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18567 | } | |
423f194a RD |
18568 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18569 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18570 | } |
423f194a RD |
18571 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18572 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18573 | } |
423f194a RD |
18574 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18575 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18576 | } | |
18577 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18578 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18579 | } | |
18580 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18581 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18582 | } | |
18583 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18584 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18585 | } | |
18586 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18587 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18588 | } | |
18589 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
18590 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18591 | } | |
18592 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
18593 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
18594 | } | |
18595 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
18596 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
18597 | } | |
18598 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
18599 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
18600 | } | |
18601 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
18602 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
18603 | } | |
18604 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
18605 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
18606 | } | |
18607 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
18608 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
18609 | } | |
18610 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
18611 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
18612 | } | |
18613 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
18614 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
18615 | } | |
18616 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
18617 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
18618 | } | |
18619 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
18620 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
18621 | } | |
18622 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
18623 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
18624 | } | |
18625 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
18626 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
18627 | } | |
18628 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
18629 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
18630 | } | |
18631 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
18632 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
18633 | } |
18634 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
18635 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
18636 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
18637 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC},{"_p_wxDC"},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC},{0}}; |
18638 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
18639 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18640 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
8edf1c75 | 18641 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
18642 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; |
18643 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
18644 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
18645 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
18646 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
18647 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}}; | |
18648 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
18649 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
18650 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC},{"_p_wxMemoryDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC},{0}}; | |
18651 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
18652 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
18653 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
18654 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
18655 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
41f1cec7 | 18656 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject},{"_p_wxPen", _p_wxPenTo_p_wxObject},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxPenList", _p_wxPenListTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxMask", _p_wxMaskTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxFont", _p_wxFontTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject},{"_p_wxRegion", _p_wxRegionTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxDC", _p_wxDCTo_p_wxObject},{"_p_wxIcon", _p_wxIconTo_p_wxObject},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject},{"_p_wxImageList", _p_wxImageListTo_p_wxObject},{"_p_wxCursor", _p_wxCursorTo_p_wxObject},{"_p_wxObject"},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxBrush", _p_wxBrushTo_p_wxObject},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxColour", _p_wxColourTo_p_wxObject},{"_p_wxFontList", _p_wxFontListTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}}; |
d14a1e28 RD |
18657 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
18658 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
18659 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
18660 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
18661 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
18662 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
18663 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
18664 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
18665 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
18666 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
18667 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
18668 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
18669 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18670 | static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject},{"_p_wxPyPen", _p_wxPyPenTo_p_wxGDIObject},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject},{"_p_wxGDIObject"},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject},{0}}; | |
d14a1e28 | 18671 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; |
8edf1c75 | 18672 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; |
d14a1e28 RD |
18673 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; |
18674 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
18675 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
18676 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
18677 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
18678 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
18679 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
18680 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
18681 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
18682 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
18683 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 18684 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
423f194a | 18685 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
18686 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
18687 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
18688 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
18689 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
18690 | ||
18691 | static swig_type_info *swig_types_initial[] = { | |
18692 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
18693 | _swigt__p_wxBrush, |
18694 | _swigt__p_wxColour, | |
d14a1e28 RD |
18695 | _swigt__p_wxDC, |
18696 | _swigt__p_wxMirrorDC, | |
18697 | _swigt__p_byte, | |
18698 | _swigt__p_wxPyFontEnumerator, | |
8edf1c75 | 18699 | _swigt__p_char, |
d14a1e28 RD |
18700 | _swigt__p_wxIconLocation, |
18701 | _swigt__p_wxImage, | |
18702 | _swigt__p_wxMetaFileDC, | |
18703 | _swigt__p_wxMask, | |
18704 | _swigt__p_wxFont, | |
18705 | _swigt__p_wxWindow, | |
18706 | _swigt__p_wxSize, | |
18707 | _swigt__p_double, | |
18708 | _swigt__p_wxMemoryDC, | |
18709 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
18710 | _swigt__p_wxEffects, |
18711 | _swigt__p_wxNativeEncodingInfo, | |
18712 | _swigt__p_wxPalette, | |
18713 | _swigt__p_wxBitmap, | |
18714 | _swigt__p_wxObject, | |
18715 | _swigt__p_wxRegionIterator, | |
18716 | _swigt__p_wxRect, | |
18717 | _swigt__p_wxString, | |
18718 | _swigt__p_wxPrinterDC, | |
18719 | _swigt__p_wxIconBundle, | |
18720 | _swigt__p_wxPoint, | |
18721 | _swigt__p_wxDash, | |
18722 | _swigt__p_wxScreenDC, | |
18723 | _swigt__p_wxCursor, | |
18724 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
18725 | _swigt__p_wxBufferedDC, |
18726 | _swigt__p_wxImageList, | |
18727 | _swigt__p_unsigned_char, | |
18728 | _swigt__p_wxGDIObject, | |
d14a1e28 | 18729 | _swigt__p_wxIcon, |
8edf1c75 | 18730 | _swigt__p_wxLocale, |
d14a1e28 RD |
18731 | _swigt__p_wxRegion, |
18732 | _swigt__p_wxLanguageInfo, | |
18733 | _swigt__p_wxConfigBase, | |
18734 | _swigt__p_wxWindowDC, | |
18735 | _swigt__p_wxPrintData, | |
18736 | _swigt__p_wxBrushList, | |
18737 | _swigt__p_wxFontList, | |
18738 | _swigt__p_wxPen, | |
18739 | _swigt__p_wxBufferedPaintDC, | |
18740 | _swigt__p_wxPaintDC, | |
18741 | _swigt__p_wxPenList, | |
d14a1e28 RD |
18742 | _swigt__p_wxPyPen, |
18743 | _swigt__p_int, | |
18744 | _swigt__p_wxMetaFile, | |
18745 | _swigt__p_wxNativeFontInfo, | |
18746 | _swigt__p_wxEncodingConverter, | |
18747 | _swigt__p_wxColourDatabase, | |
18748 | 0 | |
18749 | }; | |
18750 | ||
18751 | ||
18752 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18753 | ||
18754 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
18755 | {0}}; |
18756 | ||
18757 | #ifdef __cplusplus | |
18758 | } | |
18759 | #endif | |
18760 | ||
18761 | #ifdef __cplusplus | |
18762 | extern "C" | |
18763 | #endif | |
18764 | SWIGEXPORT(void) SWIG_init(void) { | |
18765 | static PyObject *SWIG_globals = 0; | |
18766 | static int typeinit = 0; | |
18767 | PyObject *m, *d; | |
18768 | int i; | |
18769 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18770 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18771 | d = PyModule_GetDict(m); | |
18772 | ||
18773 | if (!typeinit) { | |
18774 | for (i = 0; swig_types_initial[i]; i++) { | |
18775 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18776 | } | |
18777 | typeinit = 1; | |
18778 | } | |
18779 | SWIG_InstallConstants(d,swig_const_table); | |
18780 | ||
8edf1c75 RD |
18781 | PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion)); |
18782 | PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion)); | |
18783 | PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion)); | |
18784 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
18785 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
18786 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN)); | |
18787 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
18788 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS)); | |
18789 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN)); | |
18790 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
18791 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX)); | |
18792 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
18793 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL)); | |
18794 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC)); | |
18795 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT)); | |
18796 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX)); | |
18797 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
18798 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
18799 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD)); | |
18800 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX)); | |
18801 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT)); | |
18802 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC)); | |
18803 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT)); | |
18804 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT)); | |
18805 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD)); | |
18806 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
18807 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
18808 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
18809 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
18810 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK)); | |
18811 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM)); | |
18812 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT)); | |
18813 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
18814 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
18815 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
18816 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
18817 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
18818 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
18819 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
18820 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
18821 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
18822 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
18823 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
18824 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
18825 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
18826 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
18827 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
18828 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
18829 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8)); | |
18830 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
18831 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
18832 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437)); | |
18833 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850)); | |
18834 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852)); | |
18835 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855)); | |
18836 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866)); | |
18837 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874)); | |
18838 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932)); | |
18839 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936)); | |
18840 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949)); | |
18841 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950)); | |
18842 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250)); | |
18843 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251)); | |
18844 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252)); | |
18845 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253)); | |
18846 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254)); | |
18847 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255)); | |
18848 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256)); | |
18849 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257)); | |
18850 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
18851 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7)); | |
18852 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8)); | |
18853 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP)); | |
18854 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE)); | |
18855 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE)); | |
18856 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE)); | |
18857 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE)); | |
18858 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN)); | |
18859 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
18860 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
18861 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
18862 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC)); | |
18863 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
18864 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK)); | |
18865 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
18866 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
18867 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
18868 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
18869 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA)); | |
18870 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
18871 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
18872 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
18873 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
18874 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
18875 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
18876 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
18877 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER)); | |
18878 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI)); | |
18879 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
18880 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
18881 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
18882 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
18883 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
18884 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
18885 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
18886 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
18887 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
18888 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
18889 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
18890 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
18891 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
18892 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
18893 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
18894 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
18895 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
18896 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
18897 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
18898 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN)); | |
18899 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX)); | |
18900 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX)); | |
18901 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16)); | |
18902 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32)); | |
18903 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE)); | |
18904 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312)); | |
18905 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5)); | |
18906 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
18907 | |
18908 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18909 | ||
8edf1c75 RD |
18910 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT)); |
18911 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
18912 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
18913 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR)); | |
18914 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
18915 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
18916 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC)); | |
18917 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC)); | |
18918 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
18919 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
18920 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
18921 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
18922 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
18923 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
18924 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
18925 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
18926 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
18927 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
18928 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
18929 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
18930 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
18931 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
18932 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
18933 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
18934 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
18935 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
18936 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
18937 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA)); | |
18938 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI)); | |
18939 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
18940 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
18941 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR)); | |
18942 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE)); | |
18943 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
18944 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI)); | |
18945 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI)); | |
18946 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI)); | |
18947 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA)); | |
18948 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON)); | |
18949 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
18950 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE)); | |
18951 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
18952 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN)); | |
18953 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE)); | |
18954 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
18955 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
18956 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
18957 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
18958 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
18959 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
18960 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN)); | |
18961 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN)); | |
18962 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH)); | |
18963 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH)); | |
18964 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH)); | |
18965 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
18966 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH)); | |
18967 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
18968 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
18969 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
18970 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
18971 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
18972 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
18973 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
18974 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
18975 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
18976 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
18977 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
18978 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
18979 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
18980 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
18981 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
18982 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
18983 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
18984 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE)); | |
18985 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI)); | |
18986 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI)); | |
18987 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH)); | |
18988 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH)); | |
18989 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
18990 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
18991 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
18992 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
18993 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
18994 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN)); | |
18995 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN)); | |
18996 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
18997 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN)); | |
18998 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
18999 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19000 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19001 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19002 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19003 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK)); | |
19004 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19005 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI)); | |
19006 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19007 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA)); | |
19008 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW)); | |
19009 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI)); | |
19010 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19011 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19012 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19013 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19014 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19015 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19016 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19017 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH)); | |
19018 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19019 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19020 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19021 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19022 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA)); | |
19023 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19024 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19025 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19026 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19027 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19028 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19029 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19030 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI)); | |
19031 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN)); | |
19032 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH)); | |
19033 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19034 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN)); | |
19035 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19036 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA)); | |
19037 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19038 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19039 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19040 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY)); | |
19041 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19042 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19043 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19044 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE)); | |
19045 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19046 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI)); | |
19047 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI)); | |
19048 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19049 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19050 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU)); | |
19051 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI)); | |
19052 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19053 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19054 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19055 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19056 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA)); | |
19057 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO)); | |
19058 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO)); | |
19059 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH)); | |
19060 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19061 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19062 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19063 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19064 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19065 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19066 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19067 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19068 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19069 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO)); | |
19070 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19071 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19072 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19073 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19074 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19075 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19076 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19077 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19078 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA)); | |
19079 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI)); | |
19080 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19081 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI)); | |
19082 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19083 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19084 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI)); | |
19085 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH)); | |
19086 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19087 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19088 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19089 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19090 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19091 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19092 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19093 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19094 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19095 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19096 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19097 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19098 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19099 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19100 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19101 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19102 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19103 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19104 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19105 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19106 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19107 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19108 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19109 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19110 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19111 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK)); | |
19112 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL)); | |
19113 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR)); | |
19114 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU)); | |
19115 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI)); | |
19116 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19117 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19118 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA)); | |
19119 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA)); | |
19120 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH)); | |
19121 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19122 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI)); | |
19123 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19124 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19125 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU)); | |
19126 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19127 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19128 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK)); | |
19129 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19130 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19131 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19132 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19133 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH)); | |
19134 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF)); | |
19135 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA)); | |
19136 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19137 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA)); | |
19138 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19139 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU)); | |
19140 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19141 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19142 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE)); | |
19143 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19144 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX)); | |
19145 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19146 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19147 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19148 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19149 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT)); | |
19150 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19151 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT)); | |
19152 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX)); | |
19153 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS)); | |
19154 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2)); | |
19155 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC)); | |
19156 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
19157 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19158 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19159 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19160 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19161 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19162 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19163 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19164 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19165 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19166 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19167 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19168 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19169 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19170 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19171 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19172 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19173 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19174 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19175 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19176 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19177 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19178 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19179 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19180 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19181 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19182 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19183 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19184 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19185 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19186 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19187 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19188 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19189 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19190 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19191 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19192 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19193 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19194 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19195 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19196 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19197 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19198 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19199 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19200 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19201 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19202 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19203 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19204 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19205 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19206 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19207 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19208 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19209 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
19210 | |
19211 | // Work around a chicken/egg problem in drawlist.cpp | |
19212 | wxPyDrawList_SetAPIPtr(); | |
19213 | ||
d14a1e28 RD |
19214 | } |
19215 |