]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 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 | ||
f0983263 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 |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 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 { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 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 *); | |
f0983263 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 | ||
f0983263 | 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) | |
83448d71 | 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 | |
f0983263 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 | |
d03fd34d | 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 | } | |
328fcd84 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 | } | |
328fcd84 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 | ||
451 | #include <wx/image.h> | |
452 | ||
453 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
454 | char** cArray = NULL; | |
455 | int count; | |
456 | ||
457 | if (!PyList_Check(listOfStrings)) { | |
458 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
459 | return NULL; | |
460 | } | |
461 | count = PyList_Size(listOfStrings); | |
462 | cArray = new char*[count]; | |
463 | ||
464 | for(int x=0; x<count; x++) { | |
465 | // TODO: Need some validation and error checking here | |
466 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
467 | } | |
468 | return cArray; | |
469 | } | |
470 | ||
471 | ||
472 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
473 | char** cArray = NULL; | |
474 | wxBitmap* bmp; | |
475 | ||
476 | cArray = ConvertListOfStrings(listOfStrings); | |
477 | if (! cArray) | |
478 | return NULL; | |
479 | bmp = new wxBitmap(cArray); | |
480 | delete [] cArray; | |
481 | return bmp; | |
482 | } | |
483 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
484 | char* buf; | |
485 | int length; | |
486 | PyString_AsStringAndSize(bits, &buf, &length); | |
487 | return new wxBitmap(buf, width, height, depth); | |
488 | } | |
8edf1c75 RD |
489 | |
490 | SWIGSTATIC(long) | |
491 | SWIG_PyObj_AsLong(PyObject * obj) | |
492 | { | |
493 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
494 | } | |
495 | ||
d14a1e28 RD |
496 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
497 | wxMask *mask = new wxMask(*self, colour); | |
498 | self->SetMask(mask); | |
499 | } | |
0ffb2aa6 RD |
500 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
501 | if ( !colour.Ok() ) | |
502 | return new wxMask(bitmap, *wxBLACK); | |
503 | else | |
504 | return new wxMask(bitmap, colour); | |
505 | } | |
d14a1e28 RD |
506 | |
507 | #include <wx/iconbndl.h> | |
508 | ||
509 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
510 | wxIcon* icon = new wxIcon(); | |
511 | icon->CopyFromBitmap(bmp); | |
512 | return icon; | |
513 | } | |
514 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
515 | char** cArray = NULL; | |
516 | wxIcon* icon; | |
517 | ||
518 | cArray = ConvertListOfStrings(listOfStrings); | |
519 | if (! cArray) | |
520 | return NULL; | |
521 | icon = new wxIcon(cArray); | |
522 | delete [] cArray; | |
523 | return icon; | |
524 | } | |
525 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
526 | ||
527 | return new wxIconLocation(*filename, num); | |
528 | ||
529 | ||
530 | ||
531 | } | |
532 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
533 | ||
534 | self->SetIndex(num); | |
535 | ||
536 | ||
537 | ||
538 | } | |
539 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
540 | ||
541 | return self->GetIndex(); | |
542 | ||
543 | ||
544 | ||
545 | } | |
546 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ | |
547 | ||
548 | ||
549 | ||
550 | ||
551 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
552 | ||
553 | } | |
554 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
555 | char* bitsbuf; | |
556 | char* maskbuf = NULL; | |
557 | int length; | |
558 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
559 | if (maskBits) | |
560 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
561 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
562 | } | |
563 | ||
564 | ||
565 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
566 | (*self) ++; | |
567 | } | |
568 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
569 | return self->operator bool(); | |
570 | } | |
571 | ||
572 | #include <wx/fontutil.h> | |
573 | #include <wx/fontmap.h> | |
574 | #include <wx/fontenum.h> | |
575 | ||
576 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
577 | return self->ToString(); | |
578 | } | |
579 | ||
580 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
cbd72d4f | 581 | { wxPyRaiseNotImplemented(); return NULL; } |
d14a1e28 RD |
582 | |
583 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
cbd72d4f | 584 | { wxPyRaiseNotImplemented(); return False; } |
d14a1e28 RD |
585 | |
586 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
587 | wxFontEncoding alt_enc; | |
588 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
589 | return PyInt_FromLong(alt_enc); | |
590 | else { | |
591 | Py_INCREF(Py_None); | |
592 | return Py_None; | |
593 | } | |
594 | } | |
595 | wxFont *new_wxFont(wxString const &info){ | |
596 | wxNativeFontInfo nfi; | |
597 | nfi.FromString(info); | |
598 | return new wxFont(nfi); | |
599 | } | |
600 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
601 | return wxFont::New(pointSize, family, flags, face, encoding); | |
602 | } | |
328fcd84 RD |
603 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
604 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
605 | |
606 | class wxPyFontEnumerator : public wxFontEnumerator { | |
607 | public: | |
608 | wxPyFontEnumerator() {} | |
609 | ~wxPyFontEnumerator() {} | |
610 | ||
611 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
612 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
613 | ||
614 | PYPRIVATE; | |
615 | }; | |
616 | ||
617 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
618 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
619 | ||
620 | ||
621 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
622 | wxArrayString* arr = self->GetEncodings(); | |
623 | return wxArrayString2PyList_helper(*arr); | |
624 | } | |
625 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
626 | wxArrayString* arr = self->GetFacenames(); | |
627 | return wxArrayString2PyList_helper(*arr); | |
628 | } | |
629 | ||
630 | ||
631 | ||
632 | #include "wx/wxPython/pydrawxxx.h" | |
633 | ||
423f194a | 634 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
635 | wxColour col; |
636 | self->GetPixel(x, y, &col); | |
637 | return col; | |
638 | } | |
639 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
640 | wxColour col; | |
641 | self->GetPixel(pt, &col); | |
642 | return col; | |
643 | } | |
8edf1c75 RD |
644 | |
645 | SWIGSTATIC(double) | |
646 | SWIG_PyObj_AsDouble(PyObject *obj) | |
647 | { | |
648 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
649 | #if HAVE_LONG_LONG | |
650 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
651 | #else | |
652 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
653 | #endif | |
654 | if (PyErr_Occurred()) { | |
655 | PyErr_Clear(); | |
656 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
657 | } | |
658 | } | |
659 | ||
d14a1e28 RD |
660 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
661 | wxRect rv; | |
662 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
663 | return rv; | |
664 | } | |
665 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
666 | wxRect rect; | |
667 | self->GetClippingBox(rect); | |
668 | return rect; | |
669 | } | |
db914595 RD |
670 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
671 | wxArrayInt widths; | |
672 | self->GetPartialTextExtents(text, widths); | |
673 | return widths; | |
674 | } | |
d14a1e28 RD |
675 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
676 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
677 | } | |
678 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
679 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
680 | } | |
681 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
682 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
683 | } | |
684 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
685 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
686 | } | |
687 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
688 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
689 | } | |
690 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
691 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
692 | } | |
693 | ||
694 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
695 | *x1 = dc->MinX(); | |
696 | *y1 = dc->MinY(); | |
697 | *x2 = dc->MaxX(); | |
698 | *y2 = dc->MaxY(); | |
699 | } | |
700 | ||
701 | ||
328fcd84 RD |
702 | //-=-=-=-=-=-=-=-=-=-=- |
703 | #if 0 | |
704 | #include <wx/dcbuffer.h> | |
705 | #else | |
706 | ||
707 | ||
708 | // Temporarily put a set of classes here similar to the old buffered DC | |
709 | // classes until the real ones can be fixed to work "correctly" again. | |
710 | ||
711 | class wxBufferedDC : public wxMemoryDC | |
712 | { | |
713 | private: | |
714 | wxDC *m_dc; | |
715 | wxBitmap m_buffer; | |
716 | ||
717 | public: | |
718 | ||
719 | wxBufferedDC() : m_dc( 0 ) {} | |
720 | ||
721 | wxBufferedDC( wxDC *dc, const wxBitmap &buffer ) | |
722 | : m_dc( dc ), m_buffer( buffer ) | |
723 | { | |
724 | SelectObject( m_buffer ); | |
725 | } | |
726 | ||
727 | wxBufferedDC( wxDC *dc, const wxSize &area ) | |
728 | : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() ) | |
729 | { | |
730 | SelectObject( m_buffer ); | |
731 | } | |
732 | ||
733 | ~wxBufferedDC() { | |
734 | if( m_dc != 0 ) | |
735 | UnMask(); | |
736 | } | |
737 | ||
738 | ||
739 | void Init( wxDC *dc, const wxBitmap &buffer ) { | |
740 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
741 | _T("wxBufferedDC already initialised") ); | |
742 | m_dc = dc; | |
743 | m_buffer = buffer; | |
744 | SelectObject( m_buffer ); | |
745 | } | |
746 | ||
747 | void Init( wxDC *dc, const wxSize &area ) { | |
748 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
749 | _T("wxBufferedDC already initialised") ); | |
750 | m_dc = dc; | |
751 | m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() ); | |
752 | SelectObject( m_buffer ); | |
753 | } | |
754 | ||
755 | void UnMask() { | |
756 | wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") ); | |
757 | m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 ); | |
758 | m_dc = 0; | |
759 | } | |
760 | }; | |
761 | ||
762 | ||
763 | class wxBufferedPaintDC : public wxBufferedDC | |
764 | { | |
765 | private: | |
766 | wxPaintDC m_paintdc; | |
767 | ||
768 | public: | |
769 | wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap ) | |
770 | : m_paintdc( window ) | |
771 | { | |
772 | window->PrepareDC( m_paintdc ); | |
773 | ||
774 | if( buffer != wxNullBitmap ) | |
775 | Init( &m_paintdc, buffer ); | |
776 | else | |
777 | Init( &m_paintdc, window->GetClientSize() ); | |
778 | } | |
779 | ||
780 | ~wxBufferedPaintDC() { | |
781 | UnMask(); | |
782 | } | |
783 | }; | |
784 | ||
785 | #endif | |
786 | //-=-=-=-=-=-=-=-=-=-=- | |
787 | ||
788 | ||
d14a1e28 RD |
789 | #include <wx/dcps.h> |
790 | ||
791 | ||
792 | #include <wx/metafile.h> | |
793 | ||
794 | ||
795 | ||
796 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
797 | self->AddColour(name, wxColour(red, green, blue)); | |
798 | } | |
799 | ||
d14a1e28 RD |
800 | #include <wx/effects.h> |
801 | ||
802 | #ifdef __cplusplus | |
803 | extern "C" { | |
804 | #endif | |
805 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
806 | PyObject *resultobj; | |
807 | wxGDIObject *result; | |
808 | char *kwnames[] = { | |
809 | NULL | |
810 | }; | |
811 | ||
812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
813 | { | |
814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
815 | result = (wxGDIObject *)new wxGDIObject(); | |
816 | ||
817 | wxPyEndAllowThreads(__tstate); | |
818 | if (PyErr_Occurred()) SWIG_fail; | |
819 | } | |
820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
821 | return resultobj; | |
822 | fail: | |
823 | return NULL; | |
824 | } | |
825 | ||
826 | ||
827 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
828 | PyObject *resultobj; | |
829 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
830 | PyObject * obj0 = 0 ; | |
831 | char *kwnames[] = { | |
832 | (char *) "self", NULL | |
833 | }; | |
834 | ||
835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
837 | { | |
838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
839 | delete arg1; | |
840 | ||
841 | wxPyEndAllowThreads(__tstate); | |
842 | if (PyErr_Occurred()) SWIG_fail; | |
843 | } | |
844 | Py_INCREF(Py_None); resultobj = Py_None; | |
845 | return resultobj; | |
846 | fail: | |
847 | return NULL; | |
848 | } | |
849 | ||
850 | ||
851 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
852 | PyObject *resultobj; | |
853 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
854 | bool result; | |
855 | PyObject * obj0 = 0 ; | |
856 | char *kwnames[] = { | |
857 | (char *) "self", NULL | |
858 | }; | |
859 | ||
860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",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 | result = (bool)(arg1)->GetVisible(); | |
865 | ||
866 | wxPyEndAllowThreads(__tstate); | |
867 | if (PyErr_Occurred()) SWIG_fail; | |
868 | } | |
4e760a36 | 869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
870 | return resultobj; |
871 | fail: | |
872 | return NULL; | |
873 | } | |
874 | ||
875 | ||
876 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
877 | PyObject *resultobj; | |
878 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
879 | bool arg2 ; | |
880 | PyObject * obj0 = 0 ; | |
881 | PyObject * obj1 = 0 ; | |
882 | char *kwnames[] = { | |
883 | (char *) "self",(char *) "visible", NULL | |
884 | }; | |
885 | ||
886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 888 | { |
8edf1c75 | 889 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
890 | if (PyErr_Occurred()) SWIG_fail; |
891 | } | |
d14a1e28 RD |
892 | { |
893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
894 | (arg1)->SetVisible(arg2); | |
895 | ||
896 | wxPyEndAllowThreads(__tstate); | |
897 | if (PyErr_Occurred()) SWIG_fail; | |
898 | } | |
899 | Py_INCREF(Py_None); resultobj = Py_None; | |
900 | return resultobj; | |
901 | fail: | |
902 | return NULL; | |
903 | } | |
904 | ||
905 | ||
906 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
907 | PyObject *resultobj; | |
908 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
909 | bool result; | |
910 | PyObject * obj0 = 0 ; | |
911 | char *kwnames[] = { | |
912 | (char *) "self", NULL | |
913 | }; | |
914 | ||
915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
917 | { | |
918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
919 | result = (bool)(arg1)->IsNull(); | |
920 | ||
921 | wxPyEndAllowThreads(__tstate); | |
922 | if (PyErr_Occurred()) SWIG_fail; | |
923 | } | |
4e760a36 | 924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
925 | return resultobj; |
926 | fail: | |
927 | return NULL; | |
928 | } | |
929 | ||
930 | ||
931 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
932 | PyObject *obj; | |
933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
934 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
935 | Py_INCREF(obj); | |
936 | return Py_BuildValue((char *)""); | |
937 | } | |
938 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
939 | PyObject *resultobj; | |
940 | unsigned char arg1 = (unsigned char) 0 ; | |
941 | unsigned char arg2 = (unsigned char) 0 ; | |
942 | unsigned char arg3 = (unsigned char) 0 ; | |
943 | wxColour *result; | |
944 | PyObject * obj0 = 0 ; | |
945 | PyObject * obj1 = 0 ; | |
946 | PyObject * obj2 = 0 ; | |
947 | char *kwnames[] = { | |
948 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
949 | }; | |
950 | ||
951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
952 | if (obj0) { | |
83448d71 | 953 | { |
8edf1c75 | 954 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
83448d71 RD |
955 | if (PyErr_Occurred()) SWIG_fail; |
956 | } | |
d14a1e28 RD |
957 | } |
958 | if (obj1) { | |
83448d71 | 959 | { |
8edf1c75 | 960 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
961 | if (PyErr_Occurred()) SWIG_fail; |
962 | } | |
d14a1e28 RD |
963 | } |
964 | if (obj2) { | |
83448d71 | 965 | { |
8edf1c75 | 966 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
967 | if (PyErr_Occurred()) SWIG_fail; |
968 | } | |
d14a1e28 RD |
969 | } |
970 | { | |
971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
972 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
973 | ||
974 | wxPyEndAllowThreads(__tstate); | |
975 | if (PyErr_Occurred()) SWIG_fail; | |
976 | } | |
977 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
978 | return resultobj; | |
979 | fail: | |
980 | return NULL; | |
981 | } | |
982 | ||
983 | ||
d14a1e28 RD |
984 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
985 | PyObject *resultobj; | |
986 | wxString *arg1 = 0 ; | |
987 | wxColour *result; | |
423f194a | 988 | bool temp1 = False ; |
d14a1e28 RD |
989 | PyObject * obj0 = 0 ; |
990 | char *kwnames[] = { | |
991 | (char *) "colorName", NULL | |
992 | }; | |
993 | ||
994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
995 | { | |
996 | arg1 = wxString_in_helper(obj0); | |
997 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 998 | temp1 = True; |
d14a1e28 RD |
999 | } |
1000 | { | |
1001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1002 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1003 | ||
1004 | wxPyEndAllowThreads(__tstate); | |
1005 | if (PyErr_Occurred()) SWIG_fail; | |
1006 | } | |
1007 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1008 | { | |
1009 | if (temp1) | |
1010 | delete arg1; | |
1011 | } | |
1012 | return resultobj; | |
1013 | fail: | |
1014 | { | |
1015 | if (temp1) | |
1016 | delete arg1; | |
1017 | } | |
1018 | return NULL; | |
1019 | } | |
1020 | ||
1021 | ||
1022 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1023 | PyObject *resultobj; | |
1024 | unsigned long arg1 ; | |
1025 | wxColour *result; | |
1026 | PyObject * obj0 = 0 ; | |
1027 | char *kwnames[] = { | |
1028 | (char *) "colRGB", NULL | |
1029 | }; | |
1030 | ||
1031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
83448d71 | 1032 | { |
8edf1c75 | 1033 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
83448d71 RD |
1034 | if (PyErr_Occurred()) SWIG_fail; |
1035 | } | |
d14a1e28 RD |
1036 | { |
1037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1038 | result = (wxColour *)new wxColour(arg1); | |
1039 | ||
1040 | wxPyEndAllowThreads(__tstate); | |
1041 | if (PyErr_Occurred()) SWIG_fail; | |
1042 | } | |
1043 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1044 | return resultobj; | |
1045 | fail: | |
1046 | return NULL; | |
1047 | } | |
1048 | ||
1049 | ||
328fcd84 RD |
1050 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1051 | PyObject *resultobj; | |
1052 | wxColour *arg1 = (wxColour *) 0 ; | |
1053 | PyObject * obj0 = 0 ; | |
1054 | char *kwnames[] = { | |
1055 | (char *) "self", NULL | |
1056 | }; | |
1057 | ||
1058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1060 | { | |
1061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1062 | delete arg1; | |
1063 | ||
1064 | wxPyEndAllowThreads(__tstate); | |
1065 | if (PyErr_Occurred()) SWIG_fail; | |
1066 | } | |
1067 | Py_INCREF(Py_None); resultobj = Py_None; | |
1068 | return resultobj; | |
1069 | fail: | |
1070 | return NULL; | |
1071 | } | |
1072 | ||
1073 | ||
d14a1e28 RD |
1074 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
1075 | PyObject *resultobj; | |
1076 | wxColour *arg1 = (wxColour *) 0 ; | |
1077 | unsigned char result; | |
1078 | PyObject * obj0 = 0 ; | |
1079 | char *kwnames[] = { | |
1080 | (char *) "self", NULL | |
1081 | }; | |
1082 | ||
1083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",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 | result = (unsigned char)(arg1)->Red(); | |
1088 | ||
1089 | wxPyEndAllowThreads(__tstate); | |
1090 | if (PyErr_Occurred()) SWIG_fail; | |
1091 | } | |
8edf1c75 | 1092 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1093 | return resultobj; |
1094 | fail: | |
1095 | return NULL; | |
1096 | } | |
1097 | ||
1098 | ||
1099 | static PyObject *_wrap_Colour_Green(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_Green",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)->Green(); | |
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_Blue(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_Blue",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)->Blue(); | |
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_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1150 | PyObject *resultobj; | |
1151 | wxColour *arg1 = (wxColour *) 0 ; | |
1152 | bool result; | |
1153 | PyObject * obj0 = 0 ; | |
1154 | char *kwnames[] = { | |
1155 | (char *) "self", NULL | |
1156 | }; | |
1157 | ||
1158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",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 = (bool)(arg1)->Ok(); | |
1163 | ||
1164 | wxPyEndAllowThreads(__tstate); | |
1165 | if (PyErr_Occurred()) SWIG_fail; | |
1166 | } | |
4e760a36 | 1167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1168 | return resultobj; |
1169 | fail: | |
1170 | return NULL; | |
1171 | } | |
1172 | ||
1173 | ||
1174 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1175 | PyObject *resultobj; | |
1176 | wxColour *arg1 = (wxColour *) 0 ; | |
1177 | unsigned char arg2 ; | |
1178 | unsigned char arg3 ; | |
1179 | unsigned char arg4 ; | |
1180 | PyObject * obj0 = 0 ; | |
1181 | PyObject * obj1 = 0 ; | |
1182 | PyObject * obj2 = 0 ; | |
1183 | PyObject * obj3 = 0 ; | |
1184 | char *kwnames[] = { | |
1185 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1186 | }; | |
1187 | ||
1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 1190 | { |
8edf1c75 | 1191 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
1192 | if (PyErr_Occurred()) SWIG_fail; |
1193 | } | |
1194 | { | |
8edf1c75 | 1195 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
1196 | if (PyErr_Occurred()) SWIG_fail; |
1197 | } | |
1198 | { | |
8edf1c75 | 1199 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
1200 | if (PyErr_Occurred()) SWIG_fail; |
1201 | } | |
d14a1e28 RD |
1202 | { |
1203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1204 | (arg1)->Set(arg2,arg3,arg4); | |
1205 | ||
1206 | wxPyEndAllowThreads(__tstate); | |
1207 | if (PyErr_Occurred()) SWIG_fail; | |
1208 | } | |
1209 | Py_INCREF(Py_None); resultobj = Py_None; | |
1210 | return resultobj; | |
1211 | fail: | |
1212 | return NULL; | |
1213 | } | |
1214 | ||
1215 | ||
9fd4be55 | 1216 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1217 | PyObject *resultobj; |
1218 | wxColour *arg1 = (wxColour *) 0 ; | |
1219 | unsigned long arg2 ; | |
1220 | PyObject * obj0 = 0 ; | |
1221 | PyObject * obj1 = 0 ; | |
1222 | char *kwnames[] = { | |
1223 | (char *) "self",(char *) "colRGB", NULL | |
1224 | }; | |
1225 | ||
9fd4be55 | 1226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 1228 | { |
8edf1c75 | 1229 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
1230 | if (PyErr_Occurred()) SWIG_fail; |
1231 | } | |
d14a1e28 RD |
1232 | { |
1233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1234 | (arg1)->Set(arg2); | |
1235 | ||
1236 | wxPyEndAllowThreads(__tstate); | |
1237 | if (PyErr_Occurred()) SWIG_fail; | |
1238 | } | |
1239 | Py_INCREF(Py_None); resultobj = Py_None; | |
1240 | return resultobj; | |
1241 | fail: | |
1242 | return NULL; | |
1243 | } | |
1244 | ||
1245 | ||
328fcd84 RD |
1246 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1247 | PyObject *resultobj; | |
1248 | wxColour *arg1 = (wxColour *) 0 ; | |
1249 | wxString *arg2 = 0 ; | |
1250 | bool temp2 = False ; | |
1251 | PyObject * obj0 = 0 ; | |
1252 | PyObject * obj1 = 0 ; | |
1253 | char *kwnames[] = { | |
1254 | (char *) "self",(char *) "colourName", NULL | |
1255 | }; | |
1256 | ||
1257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1259 | { | |
1260 | arg2 = wxString_in_helper(obj1); | |
1261 | if (arg2 == NULL) SWIG_fail; | |
1262 | temp2 = True; | |
1263 | } | |
1264 | { | |
1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1266 | (arg1)->InitFromName((wxString const &)*arg2); | |
1267 | ||
1268 | wxPyEndAllowThreads(__tstate); | |
1269 | if (PyErr_Occurred()) SWIG_fail; | |
1270 | } | |
1271 | Py_INCREF(Py_None); resultobj = Py_None; | |
1272 | { | |
1273 | if (temp2) | |
1274 | delete arg2; | |
1275 | } | |
1276 | return resultobj; | |
1277 | fail: | |
1278 | { | |
1279 | if (temp2) | |
1280 | delete arg2; | |
1281 | } | |
1282 | return NULL; | |
1283 | } | |
1284 | ||
1285 | ||
1286 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1287 | PyObject *resultobj; | |
1288 | wxColour *arg1 = (wxColour *) 0 ; | |
1289 | long result; | |
1290 | PyObject * obj0 = 0 ; | |
1291 | char *kwnames[] = { | |
1292 | (char *) "self", NULL | |
1293 | }; | |
1294 | ||
1295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1297 | { | |
1298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1299 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1300 | ||
1301 | wxPyEndAllowThreads(__tstate); | |
1302 | if (PyErr_Occurred()) SWIG_fail; | |
1303 | } | |
1304 | resultobj = SWIG_PyObj_FromLong((long)result); | |
1305 | return resultobj; | |
1306 | fail: | |
1307 | return NULL; | |
1308 | } | |
1309 | ||
1310 | ||
d14a1e28 RD |
1311 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1312 | PyObject *resultobj; | |
1313 | wxColour *arg1 = (wxColour *) 0 ; | |
1314 | wxColour *arg2 = 0 ; | |
1315 | bool result; | |
1316 | wxColour temp2 ; | |
1317 | PyObject * obj0 = 0 ; | |
1318 | PyObject * obj1 = 0 ; | |
1319 | char *kwnames[] = { | |
1320 | (char *) "self",(char *) "colour", NULL | |
1321 | }; | |
1322 | ||
1323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1325 | { | |
1326 | arg2 = &temp2; | |
1327 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1328 | } | |
1329 | { | |
1330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1331 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1332 | ||
1333 | wxPyEndAllowThreads(__tstate); | |
1334 | if (PyErr_Occurred()) SWIG_fail; | |
1335 | } | |
4e760a36 | 1336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1337 | return resultobj; |
1338 | fail: | |
1339 | return NULL; | |
1340 | } | |
1341 | ||
1342 | ||
1343 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1344 | PyObject *resultobj; | |
1345 | wxColour *arg1 = (wxColour *) 0 ; | |
1346 | wxColour *arg2 = 0 ; | |
1347 | bool result; | |
1348 | wxColour temp2 ; | |
1349 | PyObject * obj0 = 0 ; | |
1350 | PyObject * obj1 = 0 ; | |
1351 | char *kwnames[] = { | |
1352 | (char *) "self",(char *) "colour", NULL | |
1353 | }; | |
1354 | ||
1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1357 | { | |
1358 | arg2 = &temp2; | |
1359 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1360 | } | |
1361 | { | |
1362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1363 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1364 | ||
1365 | wxPyEndAllowThreads(__tstate); | |
1366 | if (PyErr_Occurred()) SWIG_fail; | |
1367 | } | |
4e760a36 | 1368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1369 | return resultobj; |
1370 | fail: | |
1371 | return NULL; | |
1372 | } | |
1373 | ||
1374 | ||
328fcd84 | 1375 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
1376 | PyObject *resultobj; |
1377 | wxColour *arg1 = (wxColour *) 0 ; | |
328fcd84 | 1378 | PyObject *result; |
9fd4be55 | 1379 | PyObject * obj0 = 0 ; |
9fd4be55 | 1380 | char *kwnames[] = { |
328fcd84 | 1381 | (char *) "self", NULL |
9fd4be55 RD |
1382 | }; |
1383 | ||
328fcd84 | 1384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
9fd4be55 | 1385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9fd4be55 RD |
1386 | { |
1387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 1388 | result = (PyObject *)wxColour_Get(arg1); |
9fd4be55 RD |
1389 | |
1390 | wxPyEndAllowThreads(__tstate); | |
1391 | if (PyErr_Occurred()) SWIG_fail; | |
1392 | } | |
328fcd84 | 1393 | resultobj = result; |
9fd4be55 RD |
1394 | return resultobj; |
1395 | fail: | |
9fd4be55 RD |
1396 | return NULL; |
1397 | } | |
1398 | ||
1399 | ||
328fcd84 | 1400 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1401 | PyObject *resultobj; |
1402 | wxColour *arg1 = (wxColour *) 0 ; | |
328fcd84 | 1403 | unsigned long result; |
d14a1e28 RD |
1404 | PyObject * obj0 = 0 ; |
1405 | char *kwnames[] = { | |
1406 | (char *) "self", NULL | |
1407 | }; | |
1408 | ||
328fcd84 | 1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
1410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1411 | { | |
1412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 1413 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1414 | |
1415 | wxPyEndAllowThreads(__tstate); | |
1416 | if (PyErr_Occurred()) SWIG_fail; | |
1417 | } | |
328fcd84 | 1418 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
1419 | return resultobj; |
1420 | fail: | |
1421 | return NULL; | |
1422 | } | |
1423 | ||
1424 | ||
1425 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1426 | PyObject *obj; | |
1427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1428 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1429 | Py_INCREF(obj); | |
1430 | return Py_BuildValue((char *)""); | |
1431 | } | |
1432 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1433 | PyObject *resultobj; | |
1434 | int arg1 ; | |
1435 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1436 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1437 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1438 | wxPalette *result; | |
8edf1c75 | 1439 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1440 | PyObject * obj1 = 0 ; |
1441 | PyObject * obj2 = 0 ; | |
1442 | PyObject * obj3 = 0 ; | |
1443 | char *kwnames[] = { | |
1444 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1445 | }; | |
1446 | ||
8edf1c75 RD |
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
1448 | { | |
1449 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1450 | if (PyErr_Occurred()) SWIG_fail; | |
1451 | } | |
d14a1e28 RD |
1452 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1453 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1454 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1455 | { | |
1456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1457 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1458 | ||
1459 | wxPyEndAllowThreads(__tstate); | |
1460 | if (PyErr_Occurred()) SWIG_fail; | |
1461 | } | |
1462 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1463 | return resultobj; | |
1464 | fail: | |
1465 | return NULL; | |
1466 | } | |
1467 | ||
1468 | ||
1469 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1470 | PyObject *resultobj; | |
1471 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1472 | PyObject * obj0 = 0 ; | |
1473 | char *kwnames[] = { | |
1474 | (char *) "self", NULL | |
1475 | }; | |
1476 | ||
1477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1479 | { | |
1480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1481 | delete arg1; | |
1482 | ||
1483 | wxPyEndAllowThreads(__tstate); | |
1484 | if (PyErr_Occurred()) SWIG_fail; | |
1485 | } | |
1486 | Py_INCREF(Py_None); resultobj = Py_None; | |
1487 | return resultobj; | |
1488 | fail: | |
1489 | return NULL; | |
1490 | } | |
1491 | ||
1492 | ||
1493 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1494 | PyObject *resultobj; | |
1495 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1496 | byte arg2 ; | |
1497 | byte arg3 ; | |
1498 | byte arg4 ; | |
1499 | int result; | |
1500 | PyObject * obj0 = 0 ; | |
1501 | PyObject * obj1 = 0 ; | |
1502 | PyObject * obj2 = 0 ; | |
1503 | PyObject * obj3 = 0 ; | |
1504 | char *kwnames[] = { | |
1505 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1506 | }; | |
1507 | ||
1508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 1510 | { |
8edf1c75 | 1511 | arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
1512 | if (PyErr_Occurred()) SWIG_fail; |
1513 | } | |
1514 | { | |
8edf1c75 | 1515 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
1516 | if (PyErr_Occurred()) SWIG_fail; |
1517 | } | |
1518 | { | |
8edf1c75 | 1519 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
1520 | if (PyErr_Occurred()) SWIG_fail; |
1521 | } | |
d14a1e28 RD |
1522 | { |
1523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1524 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1525 | ||
1526 | wxPyEndAllowThreads(__tstate); | |
1527 | if (PyErr_Occurred()) SWIG_fail; | |
1528 | } | |
8edf1c75 | 1529 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1530 | return resultobj; |
1531 | fail: | |
1532 | return NULL; | |
1533 | } | |
1534 | ||
1535 | ||
1536 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1537 | PyObject *resultobj; | |
1538 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1539 | int arg2 ; | |
1540 | byte *arg3 = (byte *) 0 ; | |
1541 | byte *arg4 = (byte *) 0 ; | |
1542 | byte *arg5 = (byte *) 0 ; | |
1543 | bool result; | |
1544 | byte temp3 ; | |
1545 | byte temp4 ; | |
1546 | byte temp5 ; | |
1547 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1548 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1549 | char *kwnames[] = { |
1550 | (char *) "self",(char *) "pixel", NULL | |
1551 | }; | |
1552 | ||
1553 | arg3 = &temp3; | |
1554 | arg4 = &temp4; | |
1555 | arg5 = &temp5; | |
8edf1c75 | 1556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1558 | { |
1559 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1560 | if (PyErr_Occurred()) SWIG_fail; | |
1561 | } | |
d14a1e28 RD |
1562 | { |
1563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1564 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1565 | ||
1566 | wxPyEndAllowThreads(__tstate); | |
1567 | if (PyErr_Occurred()) SWIG_fail; | |
1568 | } | |
4e760a36 | 1569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1570 | { |
1571 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1572 | resultobj = t_output_helper(resultobj,o); | |
1573 | } | |
1574 | { | |
1575 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1576 | resultobj = t_output_helper(resultobj,o); | |
1577 | } | |
1578 | { | |
1579 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1580 | resultobj = t_output_helper(resultobj,o); | |
1581 | } | |
1582 | return resultobj; | |
1583 | fail: | |
1584 | return NULL; | |
1585 | } | |
1586 | ||
1587 | ||
1588 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject *resultobj; | |
1590 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1591 | bool result; | |
1592 | PyObject * obj0 = 0 ; | |
1593 | char *kwnames[] = { | |
1594 | (char *) "self", NULL | |
1595 | }; | |
1596 | ||
1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1599 | { | |
1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1601 | result = (bool)(arg1)->Ok(); | |
1602 | ||
1603 | wxPyEndAllowThreads(__tstate); | |
1604 | if (PyErr_Occurred()) SWIG_fail; | |
1605 | } | |
4e760a36 | 1606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1607 | return resultobj; |
1608 | fail: | |
1609 | return NULL; | |
1610 | } | |
1611 | ||
1612 | ||
1613 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1614 | PyObject *obj; | |
1615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1616 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1617 | Py_INCREF(obj); | |
1618 | return Py_BuildValue((char *)""); | |
1619 | } | |
1620 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject *resultobj; | |
1622 | wxColour *arg1 = 0 ; | |
1623 | int arg2 = (int) 1 ; | |
1624 | int arg3 = (int) wxSOLID ; | |
1625 | wxPen *result; | |
1626 | wxColour temp1 ; | |
1627 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1628 | PyObject * obj1 = 0 ; |
1629 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1630 | char *kwnames[] = { |
1631 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1632 | }; | |
1633 | ||
8edf1c75 | 1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1635 | { |
1636 | arg1 = &temp1; | |
1637 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1638 | } | |
8edf1c75 RD |
1639 | if (obj1) { |
1640 | { | |
1641 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1642 | if (PyErr_Occurred()) SWIG_fail; | |
1643 | } | |
1644 | } | |
1645 | if (obj2) { | |
1646 | { | |
1647 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1648 | if (PyErr_Occurred()) SWIG_fail; | |
1649 | } | |
1650 | } | |
d14a1e28 RD |
1651 | { |
1652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1653 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1654 | ||
1655 | wxPyEndAllowThreads(__tstate); | |
1656 | if (PyErr_Occurred()) SWIG_fail; | |
1657 | } | |
1658 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1659 | return resultobj; | |
1660 | fail: | |
1661 | return NULL; | |
1662 | } | |
1663 | ||
1664 | ||
1665 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1666 | PyObject *resultobj; | |
1667 | wxPen *arg1 = (wxPen *) 0 ; | |
1668 | PyObject * obj0 = 0 ; | |
1669 | char *kwnames[] = { | |
1670 | (char *) "self", NULL | |
1671 | }; | |
1672 | ||
1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1675 | { | |
1676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1677 | delete arg1; | |
1678 | ||
1679 | wxPyEndAllowThreads(__tstate); | |
1680 | if (PyErr_Occurred()) SWIG_fail; | |
1681 | } | |
1682 | Py_INCREF(Py_None); resultobj = Py_None; | |
1683 | return resultobj; | |
1684 | fail: | |
1685 | return NULL; | |
1686 | } | |
1687 | ||
1688 | ||
1689 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1690 | PyObject *resultobj; | |
1691 | wxPen *arg1 = (wxPen *) 0 ; | |
1692 | int result; | |
1693 | PyObject * obj0 = 0 ; | |
1694 | char *kwnames[] = { | |
1695 | (char *) "self", NULL | |
1696 | }; | |
1697 | ||
1698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",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 | result = (int)(arg1)->GetCap(); | |
1703 | ||
1704 | wxPyEndAllowThreads(__tstate); | |
1705 | if (PyErr_Occurred()) SWIG_fail; | |
1706 | } | |
8edf1c75 | 1707 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1708 | return resultobj; |
1709 | fail: | |
1710 | return NULL; | |
1711 | } | |
1712 | ||
1713 | ||
1714 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1715 | PyObject *resultobj; | |
1716 | wxPen *arg1 = (wxPen *) 0 ; | |
1717 | wxColour result; | |
1718 | PyObject * obj0 = 0 ; | |
1719 | char *kwnames[] = { | |
1720 | (char *) "self", NULL | |
1721 | }; | |
1722 | ||
1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",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 = (arg1)->GetColour(); | |
1728 | ||
1729 | wxPyEndAllowThreads(__tstate); | |
1730 | if (PyErr_Occurred()) SWIG_fail; | |
1731 | } | |
1732 | { | |
1733 | wxColour * resultptr; | |
1734 | resultptr = new wxColour((wxColour &) result); | |
1735 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1736 | } | |
1737 | return resultobj; | |
1738 | fail: | |
1739 | return NULL; | |
1740 | } | |
1741 | ||
1742 | ||
1743 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1744 | PyObject *resultobj; | |
1745 | wxPen *arg1 = (wxPen *) 0 ; | |
1746 | int result; | |
1747 | PyObject * obj0 = 0 ; | |
1748 | char *kwnames[] = { | |
1749 | (char *) "self", NULL | |
1750 | }; | |
1751 | ||
1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1754 | { | |
1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1756 | result = (int)(arg1)->GetJoin(); | |
1757 | ||
1758 | wxPyEndAllowThreads(__tstate); | |
1759 | if (PyErr_Occurred()) SWIG_fail; | |
1760 | } | |
8edf1c75 | 1761 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1762 | return resultobj; |
1763 | fail: | |
1764 | return NULL; | |
1765 | } | |
1766 | ||
1767 | ||
1768 | static PyObject *_wrap_Pen_GetStyle(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_GetStyle",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)->GetStyle(); | |
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_GetWidth(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_GetWidth",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)->GetWidth(); | |
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_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject *resultobj; | |
1820 | wxPen *arg1 = (wxPen *) 0 ; | |
1821 | bool result; | |
1822 | PyObject * obj0 = 0 ; | |
1823 | char *kwnames[] = { | |
1824 | (char *) "self", NULL | |
1825 | }; | |
1826 | ||
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",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 = (bool)(arg1)->Ok(); | |
1832 | ||
1833 | wxPyEndAllowThreads(__tstate); | |
1834 | if (PyErr_Occurred()) SWIG_fail; | |
1835 | } | |
4e760a36 | 1836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1837 | return resultobj; |
1838 | fail: | |
1839 | return NULL; | |
1840 | } | |
1841 | ||
1842 | ||
1843 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject *resultobj; | |
1845 | wxPen *arg1 = (wxPen *) 0 ; | |
1846 | int arg2 ; | |
1847 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1849 | char *kwnames[] = { |
1850 | (char *) "self",(char *) "cap_style", NULL | |
1851 | }; | |
1852 | ||
8edf1c75 | 1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1855 | { |
1856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
1858 | } | |
d14a1e28 RD |
1859 | { |
1860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1861 | (arg1)->SetCap(arg2); | |
1862 | ||
1863 | wxPyEndAllowThreads(__tstate); | |
1864 | if (PyErr_Occurred()) SWIG_fail; | |
1865 | } | |
1866 | Py_INCREF(Py_None); resultobj = Py_None; | |
1867 | return resultobj; | |
1868 | fail: | |
1869 | return NULL; | |
1870 | } | |
1871 | ||
1872 | ||
1873 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1874 | PyObject *resultobj; | |
1875 | wxPen *arg1 = (wxPen *) 0 ; | |
1876 | wxColour *arg2 = 0 ; | |
1877 | wxColour temp2 ; | |
1878 | PyObject * obj0 = 0 ; | |
1879 | PyObject * obj1 = 0 ; | |
1880 | char *kwnames[] = { | |
1881 | (char *) "self",(char *) "colour", NULL | |
1882 | }; | |
1883 | ||
1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1886 | { | |
1887 | arg2 = &temp2; | |
1888 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1889 | } | |
1890 | { | |
1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1892 | (arg1)->SetColour(*arg2); | |
1893 | ||
1894 | wxPyEndAllowThreads(__tstate); | |
1895 | if (PyErr_Occurred()) SWIG_fail; | |
1896 | } | |
1897 | Py_INCREF(Py_None); resultobj = Py_None; | |
1898 | return resultobj; | |
1899 | fail: | |
1900 | return NULL; | |
1901 | } | |
1902 | ||
1903 | ||
1904 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1905 | PyObject *resultobj; | |
1906 | wxPen *arg1 = (wxPen *) 0 ; | |
1907 | int arg2 ; | |
1908 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1909 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1910 | char *kwnames[] = { |
1911 | (char *) "self",(char *) "join_style", NULL | |
1912 | }; | |
1913 | ||
8edf1c75 | 1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1916 | { |
1917 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1918 | if (PyErr_Occurred()) SWIG_fail; | |
1919 | } | |
d14a1e28 RD |
1920 | { |
1921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1922 | (arg1)->SetJoin(arg2); | |
1923 | ||
1924 | wxPyEndAllowThreads(__tstate); | |
1925 | if (PyErr_Occurred()) SWIG_fail; | |
1926 | } | |
1927 | Py_INCREF(Py_None); resultobj = Py_None; | |
1928 | return resultobj; | |
1929 | fail: | |
1930 | return NULL; | |
1931 | } | |
1932 | ||
1933 | ||
1934 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject *resultobj; | |
1936 | wxPen *arg1 = (wxPen *) 0 ; | |
1937 | int arg2 ; | |
1938 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1940 | char *kwnames[] = { |
1941 | (char *) "self",(char *) "style", NULL | |
1942 | }; | |
1943 | ||
8edf1c75 | 1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1946 | { |
1947 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1948 | if (PyErr_Occurred()) SWIG_fail; | |
1949 | } | |
d14a1e28 RD |
1950 | { |
1951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1952 | (arg1)->SetStyle(arg2); | |
1953 | ||
1954 | wxPyEndAllowThreads(__tstate); | |
1955 | if (PyErr_Occurred()) SWIG_fail; | |
1956 | } | |
1957 | Py_INCREF(Py_None); resultobj = Py_None; | |
1958 | return resultobj; | |
1959 | fail: | |
1960 | return NULL; | |
1961 | } | |
1962 | ||
1963 | ||
1964 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1965 | PyObject *resultobj; | |
1966 | wxPen *arg1 = (wxPen *) 0 ; | |
1967 | int arg2 ; | |
1968 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1969 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1970 | char *kwnames[] = { |
1971 | (char *) "self",(char *) "width", NULL | |
1972 | }; | |
1973 | ||
8edf1c75 | 1974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1976 | { |
1977 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1978 | if (PyErr_Occurred()) SWIG_fail; | |
1979 | } | |
d14a1e28 RD |
1980 | { |
1981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1982 | (arg1)->SetWidth(arg2); | |
1983 | ||
1984 | wxPyEndAllowThreads(__tstate); | |
1985 | if (PyErr_Occurred()) SWIG_fail; | |
1986 | } | |
1987 | Py_INCREF(Py_None); resultobj = Py_None; | |
1988 | return resultobj; | |
1989 | fail: | |
1990 | return NULL; | |
1991 | } | |
1992 | ||
1993 | ||
1994 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1995 | PyObject *resultobj; | |
1996 | wxPen *arg1 = (wxPen *) 0 ; | |
1997 | int arg2 ; | |
1998 | wxDash *arg3 = (wxDash *) 0 ; | |
1999 | PyObject * obj0 = 0 ; | |
2000 | PyObject * obj1 = 0 ; | |
2001 | char *kwnames[] = { | |
2002 | (char *) "self",(char *) "dashes", NULL | |
2003 | }; | |
2004 | ||
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2007 | { | |
2008 | arg2 = PyList_Size(obj1); | |
2009 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2010 | if (arg3 == NULL) SWIG_fail; | |
2011 | } | |
2012 | { | |
2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2014 | (arg1)->SetDashes(arg2,arg3); | |
2015 | ||
2016 | wxPyEndAllowThreads(__tstate); | |
2017 | if (PyErr_Occurred()) SWIG_fail; | |
2018 | } | |
2019 | Py_INCREF(Py_None); resultobj = Py_None; | |
2020 | { | |
2021 | if (arg3) delete [] arg3; | |
2022 | } | |
2023 | return resultobj; | |
2024 | fail: | |
2025 | { | |
2026 | if (arg3) delete [] arg3; | |
2027 | } | |
2028 | return NULL; | |
2029 | } | |
2030 | ||
2031 | ||
2032 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2033 | PyObject *resultobj; | |
2034 | wxPen *arg1 = (wxPen *) 0 ; | |
2035 | PyObject *result; | |
2036 | PyObject * obj0 = 0 ; | |
2037 | char *kwnames[] = { | |
2038 | (char *) "self", NULL | |
2039 | }; | |
2040 | ||
2041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2043 | { | |
2044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2045 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2046 | ||
2047 | wxPyEndAllowThreads(__tstate); | |
2048 | if (PyErr_Occurred()) SWIG_fail; | |
2049 | } | |
2050 | resultobj = result; | |
2051 | return resultobj; | |
2052 | fail: | |
2053 | return NULL; | |
2054 | } | |
2055 | ||
2056 | ||
db914595 RD |
2057 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
2058 | PyObject *resultobj; | |
2059 | wxPen *arg1 = (wxPen *) 0 ; | |
328fcd84 | 2060 | wxPen *arg2 = (wxPen *) 0 ; |
db914595 RD |
2061 | bool result; |
2062 | PyObject * obj0 = 0 ; | |
2063 | PyObject * obj1 = 0 ; | |
2064 | char *kwnames[] = { | |
328fcd84 | 2065 | (char *) "self",(char *) "other", NULL |
db914595 RD |
2066 | }; |
2067 | ||
2068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
328fcd84 RD |
2071 | { |
2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2073 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
2074 | ||
2075 | wxPyEndAllowThreads(__tstate); | |
2076 | if (PyErr_Occurred()) SWIG_fail; | |
db914595 | 2077 | } |
328fcd84 RD |
2078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
2079 | return resultobj; | |
2080 | fail: | |
2081 | return NULL; | |
2082 | } | |
2083 | ||
2084 | ||
2085 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2086 | PyObject *resultobj; | |
2087 | wxPen *arg1 = (wxPen *) 0 ; | |
2088 | wxPen *arg2 = (wxPen *) 0 ; | |
2089 | bool result; | |
2090 | PyObject * obj0 = 0 ; | |
2091 | PyObject * obj1 = 0 ; | |
2092 | char *kwnames[] = { | |
2093 | (char *) "self",(char *) "other", NULL | |
2094 | }; | |
2095 | ||
2096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
db914595 RD |
2099 | { |
2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 2101 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
db914595 RD |
2102 | |
2103 | wxPyEndAllowThreads(__tstate); | |
2104 | if (PyErr_Occurred()) SWIG_fail; | |
2105 | } | |
2106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2107 | return resultobj; | |
2108 | fail: | |
2109 | return NULL; | |
2110 | } | |
2111 | ||
2112 | ||
9fd4be55 RD |
2113 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
2114 | PyObject *resultobj; | |
2115 | wxPen *arg1 = (wxPen *) 0 ; | |
2116 | int result; | |
2117 | PyObject * obj0 = 0 ; | |
2118 | char *kwnames[] = { | |
2119 | (char *) "self", NULL | |
2120 | }; | |
2121 | ||
2122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2124 | { | |
2125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2126 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2127 | ||
2128 | wxPyEndAllowThreads(__tstate); | |
2129 | if (PyErr_Occurred()) SWIG_fail; | |
2130 | } | |
8edf1c75 | 2131 | resultobj = SWIG_PyObj_FromInt((int)result); |
9fd4be55 RD |
2132 | return resultobj; |
2133 | fail: | |
2134 | return NULL; | |
2135 | } | |
2136 | ||
2137 | ||
d14a1e28 RD |
2138 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
2139 | PyObject *resultobj; | |
2140 | wxPen *arg1 = (wxPen *) 0 ; | |
2141 | wxBitmap *result; | |
2142 | PyObject * obj0 = 0 ; | |
2143 | char *kwnames[] = { | |
2144 | (char *) "self", NULL | |
2145 | }; | |
2146 | ||
2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
2148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2149 | { | |
2150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2151 | result = (wxBitmap *)(arg1)->GetStipple(); | |
2152 | ||
2153 | wxPyEndAllowThreads(__tstate); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | } | |
2156 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2157 | return resultobj; | |
2158 | fail: | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
2163 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject *resultobj; | |
2165 | wxPen *arg1 = (wxPen *) 0 ; | |
2166 | wxBitmap *arg2 = 0 ; | |
2167 | PyObject * obj0 = 0 ; | |
2168 | PyObject * obj1 = 0 ; | |
2169 | char *kwnames[] = { | |
2170 | (char *) "self",(char *) "stipple", NULL | |
2171 | }; | |
2172 | ||
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2175 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2176 | if (arg2 == NULL) { | |
2177 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2178 | } | |
2179 | { | |
2180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2181 | (arg1)->SetStipple(*arg2); | |
2182 | ||
2183 | wxPyEndAllowThreads(__tstate); | |
2184 | if (PyErr_Occurred()) SWIG_fail; | |
2185 | } | |
2186 | Py_INCREF(Py_None); resultobj = Py_None; | |
2187 | return resultobj; | |
2188 | fail: | |
2189 | return NULL; | |
2190 | } | |
2191 | ||
2192 | ||
2193 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
2194 | PyObject *obj; | |
2195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2196 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2197 | Py_INCREF(obj); | |
2198 | return Py_BuildValue((char *)""); | |
2199 | } | |
2200 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2201 | PyObject *resultobj; | |
2202 | wxColour *arg1 = 0 ; | |
2203 | int arg2 = (int) 1 ; | |
2204 | int arg3 = (int) wxSOLID ; | |
2205 | wxPyPen *result; | |
2206 | wxColour temp1 ; | |
2207 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2208 | PyObject * obj1 = 0 ; |
2209 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2210 | char *kwnames[] = { |
2211 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2212 | }; | |
2213 | ||
8edf1c75 | 2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2215 | { |
2216 | arg1 = &temp1; | |
2217 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2218 | } | |
8edf1c75 RD |
2219 | if (obj1) { |
2220 | { | |
2221 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2222 | if (PyErr_Occurred()) SWIG_fail; | |
2223 | } | |
2224 | } | |
2225 | if (obj2) { | |
2226 | { | |
2227 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2228 | if (PyErr_Occurred()) SWIG_fail; | |
2229 | } | |
2230 | } | |
d14a1e28 RD |
2231 | { |
2232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2233 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2234 | ||
2235 | wxPyEndAllowThreads(__tstate); | |
2236 | if (PyErr_Occurred()) SWIG_fail; | |
2237 | } | |
2238 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
2239 | return resultobj; | |
2240 | fail: | |
2241 | return NULL; | |
2242 | } | |
2243 | ||
2244 | ||
2245 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2246 | PyObject *resultobj; | |
2247 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2248 | PyObject * obj0 = 0 ; | |
2249 | char *kwnames[] = { | |
2250 | (char *) "self", NULL | |
2251 | }; | |
2252 | ||
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2255 | { | |
2256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2257 | delete arg1; | |
2258 | ||
2259 | wxPyEndAllowThreads(__tstate); | |
2260 | if (PyErr_Occurred()) SWIG_fail; | |
2261 | } | |
2262 | Py_INCREF(Py_None); resultobj = Py_None; | |
2263 | return resultobj; | |
2264 | fail: | |
2265 | return NULL; | |
2266 | } | |
2267 | ||
2268 | ||
2269 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2270 | PyObject *resultobj; | |
2271 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2272 | int arg2 ; | |
2273 | wxDash *arg3 = (wxDash *) 0 ; | |
2274 | PyObject * obj0 = 0 ; | |
2275 | PyObject * obj1 = 0 ; | |
2276 | char *kwnames[] = { | |
2277 | (char *) "self",(char *) "dashes", NULL | |
2278 | }; | |
2279 | ||
2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2282 | { | |
2283 | arg2 = PyList_Size(obj1); | |
2284 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2285 | if (arg3 == NULL) SWIG_fail; | |
2286 | } | |
2287 | { | |
2288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2289 | (arg1)->SetDashes(arg2,arg3); | |
2290 | ||
2291 | wxPyEndAllowThreads(__tstate); | |
2292 | if (PyErr_Occurred()) SWIG_fail; | |
2293 | } | |
2294 | Py_INCREF(Py_None); resultobj = Py_None; | |
2295 | { | |
2296 | if (arg3) delete [] arg3; | |
2297 | } | |
2298 | return resultobj; | |
2299 | fail: | |
2300 | { | |
2301 | if (arg3) delete [] arg3; | |
2302 | } | |
2303 | return NULL; | |
2304 | } | |
2305 | ||
2306 | ||
2307 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2308 | PyObject *obj; | |
2309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2310 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2311 | Py_INCREF(obj); | |
2312 | return Py_BuildValue((char *)""); | |
2313 | } | |
2314 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2315 | PyObject *resultobj; | |
2316 | wxColour *arg1 = 0 ; | |
2317 | int arg2 = (int) wxSOLID ; | |
2318 | wxBrush *result; | |
2319 | wxColour temp1 ; | |
2320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2321 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2322 | char *kwnames[] = { |
2323 | (char *) "colour",(char *) "style", NULL | |
2324 | }; | |
2325 | ||
8edf1c75 | 2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2327 | { |
2328 | arg1 = &temp1; | |
2329 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2330 | } | |
8edf1c75 RD |
2331 | if (obj1) { |
2332 | { | |
2333 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2334 | if (PyErr_Occurred()) SWIG_fail; | |
2335 | } | |
2336 | } | |
d14a1e28 RD |
2337 | { |
2338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2339 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2340 | ||
2341 | wxPyEndAllowThreads(__tstate); | |
2342 | if (PyErr_Occurred()) SWIG_fail; | |
2343 | } | |
2344 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
2345 | return resultobj; | |
2346 | fail: | |
2347 | return NULL; | |
2348 | } | |
2349 | ||
2350 | ||
2351 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2352 | PyObject *resultobj; | |
2353 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2354 | PyObject * obj0 = 0 ; | |
2355 | char *kwnames[] = { | |
2356 | (char *) "self", NULL | |
2357 | }; | |
2358 | ||
2359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2361 | { | |
2362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2363 | delete arg1; | |
2364 | ||
2365 | wxPyEndAllowThreads(__tstate); | |
2366 | if (PyErr_Occurred()) SWIG_fail; | |
2367 | } | |
2368 | Py_INCREF(Py_None); resultobj = Py_None; | |
2369 | return resultobj; | |
2370 | fail: | |
2371 | return NULL; | |
2372 | } | |
2373 | ||
2374 | ||
2375 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2376 | PyObject *resultobj; | |
2377 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2378 | wxColour *arg2 = 0 ; | |
2379 | wxColour temp2 ; | |
2380 | PyObject * obj0 = 0 ; | |
2381 | PyObject * obj1 = 0 ; | |
2382 | char *kwnames[] = { | |
2383 | (char *) "self",(char *) "col", NULL | |
2384 | }; | |
2385 | ||
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2388 | { | |
2389 | arg2 = &temp2; | |
2390 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2391 | } | |
2392 | { | |
2393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2394 | (arg1)->SetColour((wxColour const &)*arg2); | |
2395 | ||
2396 | wxPyEndAllowThreads(__tstate); | |
2397 | if (PyErr_Occurred()) SWIG_fail; | |
2398 | } | |
2399 | Py_INCREF(Py_None); resultobj = Py_None; | |
2400 | return resultobj; | |
2401 | fail: | |
2402 | return NULL; | |
2403 | } | |
2404 | ||
2405 | ||
2406 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2407 | PyObject *resultobj; | |
2408 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2409 | int arg2 ; | |
2410 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2412 | char *kwnames[] = { |
2413 | (char *) "self",(char *) "style", NULL | |
2414 | }; | |
2415 | ||
8edf1c75 | 2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2418 | { |
2419 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
2421 | } | |
d14a1e28 RD |
2422 | { |
2423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2424 | (arg1)->SetStyle(arg2); | |
2425 | ||
2426 | wxPyEndAllowThreads(__tstate); | |
2427 | if (PyErr_Occurred()) SWIG_fail; | |
2428 | } | |
2429 | Py_INCREF(Py_None); resultobj = Py_None; | |
2430 | return resultobj; | |
2431 | fail: | |
2432 | return NULL; | |
2433 | } | |
2434 | ||
2435 | ||
2436 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2437 | PyObject *resultobj; | |
2438 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2439 | wxBitmap *arg2 = 0 ; | |
2440 | PyObject * obj0 = 0 ; | |
2441 | PyObject * obj1 = 0 ; | |
2442 | char *kwnames[] = { | |
2443 | (char *) "self",(char *) "stipple", NULL | |
2444 | }; | |
2445 | ||
2446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2448 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2449 | if (arg2 == NULL) { | |
2450 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2451 | } | |
2452 | { | |
2453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2454 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2455 | ||
2456 | wxPyEndAllowThreads(__tstate); | |
2457 | if (PyErr_Occurred()) SWIG_fail; | |
2458 | } | |
2459 | Py_INCREF(Py_None); resultobj = Py_None; | |
2460 | return resultobj; | |
2461 | fail: | |
2462 | return NULL; | |
2463 | } | |
2464 | ||
2465 | ||
2466 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2467 | PyObject *resultobj; | |
2468 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2469 | wxColour result; | |
2470 | PyObject * obj0 = 0 ; | |
2471 | char *kwnames[] = { | |
2472 | (char *) "self", NULL | |
2473 | }; | |
2474 | ||
2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2477 | { | |
2478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2479 | result = ((wxBrush const *)arg1)->GetColour(); | |
2480 | ||
2481 | wxPyEndAllowThreads(__tstate); | |
2482 | if (PyErr_Occurred()) SWIG_fail; | |
2483 | } | |
2484 | { | |
2485 | wxColour * resultptr; | |
2486 | resultptr = new wxColour((wxColour &) result); | |
2487 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2488 | } | |
2489 | return resultobj; | |
2490 | fail: | |
2491 | return NULL; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2498 | int result; | |
2499 | PyObject * obj0 = 0 ; | |
2500 | char *kwnames[] = { | |
2501 | (char *) "self", NULL | |
2502 | }; | |
2503 | ||
2504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2506 | { | |
2507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2508 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2509 | ||
2510 | wxPyEndAllowThreads(__tstate); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
8edf1c75 | 2513 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2514 | return resultobj; |
2515 | fail: | |
2516 | return NULL; | |
2517 | } | |
2518 | ||
2519 | ||
2520 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2521 | PyObject *resultobj; | |
2522 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2523 | wxBitmap *result; | |
2524 | PyObject * obj0 = 0 ; | |
2525 | char *kwnames[] = { | |
2526 | (char *) "self", NULL | |
2527 | }; | |
2528 | ||
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2533 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2534 | ||
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) SWIG_fail; | |
2537 | } | |
2538 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2539 | return resultobj; | |
2540 | fail: | |
2541 | return NULL; | |
2542 | } | |
2543 | ||
2544 | ||
2545 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject *resultobj; | |
2547 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2548 | bool result; | |
2549 | PyObject * obj0 = 0 ; | |
2550 | char *kwnames[] = { | |
2551 | (char *) "self", NULL | |
2552 | }; | |
2553 | ||
2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2556 | { | |
2557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2558 | result = (bool)(arg1)->Ok(); | |
2559 | ||
2560 | wxPyEndAllowThreads(__tstate); | |
2561 | if (PyErr_Occurred()) SWIG_fail; | |
2562 | } | |
4e760a36 | 2563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
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_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2824 | PyObject *resultobj; | |
2825 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2826 | wxPalette *arg2 = 0 ; | |
2827 | PyObject * obj0 = 0 ; | |
2828 | PyObject * obj1 = 0 ; | |
2829 | char *kwnames[] = { | |
2830 | (char *) "self",(char *) "palette", NULL | |
2831 | }; | |
2832 | ||
2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2835 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2836 | if (arg2 == NULL) { | |
2837 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2838 | } | |
2839 | { | |
2840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2841 | (arg1)->SetPalette(*arg2); | |
2842 | ||
2843 | wxPyEndAllowThreads(__tstate); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | } | |
2846 | Py_INCREF(Py_None); resultobj = Py_None; | |
2847 | return resultobj; | |
2848 | fail: | |
2849 | return NULL; | |
2850 | } | |
2851 | ||
2852 | ||
2853 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2854 | PyObject *resultobj; | |
2855 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2856 | long result; | |
2857 | PyObject * obj0 = 0 ; | |
2858 | char *kwnames[] = { | |
2859 | (char *) "self", NULL | |
2860 | }; | |
2861 | ||
2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; | |
2863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2864 | { | |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2866 | result = (long)(arg1)->GetHandle(); | |
2867 | ||
2868 | wxPyEndAllowThreads(__tstate); | |
2869 | if (PyErr_Occurred()) SWIG_fail; | |
2870 | } | |
8edf1c75 | 2871 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
2872 | return resultobj; |
2873 | fail: | |
2874 | return NULL; | |
2875 | } | |
2876 | ||
2877 | ||
2878 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2879 | PyObject *resultobj; | |
2880 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2881 | long arg2 ; | |
2882 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2884 | char *kwnames[] = { |
2885 | (char *) "self",(char *) "handle", NULL | |
2886 | }; | |
2887 | ||
8edf1c75 | 2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2890 | { |
2891 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
2892 | if (PyErr_Occurred()) SWIG_fail; | |
2893 | } | |
d14a1e28 RD |
2894 | { |
2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2896 | (arg1)->SetHandle(arg2); | |
2897 | ||
2898 | wxPyEndAllowThreads(__tstate); | |
2899 | if (PyErr_Occurred()) SWIG_fail; | |
2900 | } | |
2901 | Py_INCREF(Py_None); resultobj = Py_None; | |
2902 | return resultobj; | |
2903 | fail: | |
2904 | return NULL; | |
2905 | } | |
2906 | ||
2907 | ||
2908 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2909 | PyObject *resultobj; | |
2910 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2911 | bool result; | |
2912 | PyObject * obj0 = 0 ; | |
2913 | char *kwnames[] = { | |
2914 | (char *) "self", NULL | |
2915 | }; | |
2916 | ||
2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2919 | { | |
2920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2921 | result = (bool)(arg1)->Ok(); | |
2922 | ||
2923 | wxPyEndAllowThreads(__tstate); | |
2924 | if (PyErr_Occurred()) SWIG_fail; | |
2925 | } | |
4e760a36 | 2926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2927 | return resultobj; |
2928 | fail: | |
2929 | return NULL; | |
2930 | } | |
2931 | ||
2932 | ||
2933 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2934 | PyObject *resultobj; | |
2935 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2936 | int result; | |
2937 | PyObject * obj0 = 0 ; | |
2938 | char *kwnames[] = { | |
2939 | (char *) "self", NULL | |
2940 | }; | |
2941 | ||
2942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2944 | { | |
2945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2946 | result = (int)(arg1)->GetWidth(); | |
2947 | ||
2948 | wxPyEndAllowThreads(__tstate); | |
2949 | if (PyErr_Occurred()) SWIG_fail; | |
2950 | } | |
8edf1c75 | 2951 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2952 | return resultobj; |
2953 | fail: | |
2954 | return NULL; | |
2955 | } | |
2956 | ||
2957 | ||
2958 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2959 | PyObject *resultobj; | |
2960 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2961 | int result; | |
2962 | PyObject * obj0 = 0 ; | |
2963 | char *kwnames[] = { | |
2964 | (char *) "self", NULL | |
2965 | }; | |
2966 | ||
2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2969 | { | |
2970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2971 | result = (int)(arg1)->GetHeight(); | |
2972 | ||
2973 | wxPyEndAllowThreads(__tstate); | |
2974 | if (PyErr_Occurred()) SWIG_fail; | |
2975 | } | |
8edf1c75 | 2976 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2977 | return resultobj; |
2978 | fail: | |
2979 | return NULL; | |
2980 | } | |
2981 | ||
2982 | ||
2983 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject *resultobj; | |
2985 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2986 | int result; | |
2987 | PyObject * obj0 = 0 ; | |
2988 | char *kwnames[] = { | |
2989 | (char *) "self", NULL | |
2990 | }; | |
2991 | ||
2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2994 | { | |
2995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2996 | result = (int)(arg1)->GetDepth(); | |
2997 | ||
2998 | wxPyEndAllowThreads(__tstate); | |
2999 | if (PyErr_Occurred()) SWIG_fail; | |
3000 | } | |
8edf1c75 | 3001 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3002 | return resultobj; |
3003 | fail: | |
3004 | return NULL; | |
3005 | } | |
3006 | ||
3007 | ||
3008 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3009 | PyObject *resultobj; | |
3010 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3011 | SwigValueWrapper< wxImage > result; | |
3012 | PyObject * obj0 = 0 ; | |
3013 | char *kwnames[] = { | |
3014 | (char *) "self", NULL | |
3015 | }; | |
3016 | ||
3017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
3018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3019 | { | |
3020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3021 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3022 | ||
3023 | wxPyEndAllowThreads(__tstate); | |
3024 | if (PyErr_Occurred()) SWIG_fail; | |
3025 | } | |
3026 | { | |
3027 | wxImage * resultptr; | |
3028 | resultptr = new wxImage((wxImage &) result); | |
3029 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
3030 | } | |
3031 | return resultobj; | |
3032 | fail: | |
3033 | return NULL; | |
3034 | } | |
3035 | ||
3036 | ||
3037 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3038 | PyObject *resultobj; | |
3039 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3040 | wxMask *result; | |
3041 | PyObject * obj0 = 0 ; | |
3042 | char *kwnames[] = { | |
3043 | (char *) "self", NULL | |
3044 | }; | |
3045 | ||
3046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3048 | { | |
3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3050 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3051 | ||
3052 | wxPyEndAllowThreads(__tstate); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
3056 | return resultobj; | |
3057 | fail: | |
3058 | return NULL; | |
3059 | } | |
3060 | ||
3061 | ||
3062 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3063 | PyObject *resultobj; | |
3064 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3065 | wxMask *arg2 = (wxMask *) 0 ; | |
3066 | PyObject * obj0 = 0 ; | |
3067 | PyObject * obj1 = 0 ; | |
3068 | char *kwnames[] = { | |
3069 | (char *) "self",(char *) "mask", NULL | |
3070 | }; | |
3071 | ||
3072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3074 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3075 | { | |
3076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3077 | (arg1)->SetMask(arg2); | |
3078 | ||
3079 | wxPyEndAllowThreads(__tstate); | |
3080 | if (PyErr_Occurred()) SWIG_fail; | |
3081 | } | |
3082 | Py_INCREF(Py_None); resultobj = Py_None; | |
3083 | return resultobj; | |
3084 | fail: | |
3085 | return NULL; | |
3086 | } | |
3087 | ||
3088 | ||
3089 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3090 | PyObject *resultobj; | |
3091 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3092 | wxColour *arg2 = 0 ; | |
3093 | wxColour temp2 ; | |
3094 | PyObject * obj0 = 0 ; | |
3095 | PyObject * obj1 = 0 ; | |
3096 | char *kwnames[] = { | |
3097 | (char *) "self",(char *) "colour", NULL | |
3098 | }; | |
3099 | ||
3100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3102 | { | |
3103 | arg2 = &temp2; | |
3104 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3105 | } | |
3106 | { | |
3107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3108 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3109 | ||
3110 | wxPyEndAllowThreads(__tstate); | |
3111 | if (PyErr_Occurred()) SWIG_fail; | |
3112 | } | |
3113 | Py_INCREF(Py_None); resultobj = Py_None; | |
3114 | return resultobj; | |
3115 | fail: | |
3116 | return NULL; | |
3117 | } | |
3118 | ||
3119 | ||
3120 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3121 | PyObject *resultobj; | |
3122 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3123 | wxRect *arg2 = 0 ; | |
3124 | SwigValueWrapper< wxBitmap > result; | |
3125 | wxRect temp2 ; | |
3126 | PyObject * obj0 = 0 ; | |
3127 | PyObject * obj1 = 0 ; | |
3128 | char *kwnames[] = { | |
3129 | (char *) "self",(char *) "rect", NULL | |
3130 | }; | |
3131 | ||
3132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3134 | { | |
3135 | arg2 = &temp2; | |
3136 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3137 | } | |
3138 | { | |
3139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3140 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3141 | ||
3142 | wxPyEndAllowThreads(__tstate); | |
3143 | if (PyErr_Occurred()) SWIG_fail; | |
3144 | } | |
3145 | { | |
3146 | wxBitmap * resultptr; | |
3147 | resultptr = new wxBitmap((wxBitmap &) result); | |
3148 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
3149 | } | |
3150 | return resultobj; | |
3151 | fail: | |
3152 | return NULL; | |
3153 | } | |
3154 | ||
3155 | ||
3156 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3157 | PyObject *resultobj; | |
3158 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3159 | wxString *arg2 = 0 ; | |
3160 | int arg3 ; | |
3161 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
3162 | bool result; | |
423f194a | 3163 | bool temp2 = False ; |
d14a1e28 RD |
3164 | PyObject * obj0 = 0 ; |
3165 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3166 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3167 | PyObject * obj3 = 0 ; |
3168 | char *kwnames[] = { | |
3169 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3170 | }; | |
3171 | ||
8edf1c75 | 3172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3174 | { | |
3175 | arg2 = wxString_in_helper(obj1); | |
3176 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3177 | temp2 = True; |
d14a1e28 | 3178 | } |
8edf1c75 RD |
3179 | { |
3180 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
d14a1e28 RD |
3183 | if (obj3) { |
3184 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3185 | } | |
3186 | { | |
3187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3188 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3189 | ||
3190 | wxPyEndAllowThreads(__tstate); | |
3191 | if (PyErr_Occurred()) SWIG_fail; | |
3192 | } | |
4e760a36 | 3193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3194 | { |
3195 | if (temp2) | |
3196 | delete arg2; | |
3197 | } | |
3198 | return resultobj; | |
3199 | fail: | |
3200 | { | |
3201 | if (temp2) | |
3202 | delete arg2; | |
3203 | } | |
3204 | return NULL; | |
3205 | } | |
3206 | ||
3207 | ||
3208 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3209 | PyObject *resultobj; | |
3210 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3211 | wxString *arg2 = 0 ; | |
3212 | int arg3 ; | |
3213 | bool result; | |
423f194a | 3214 | bool temp2 = False ; |
d14a1e28 RD |
3215 | PyObject * obj0 = 0 ; |
3216 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3217 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3218 | char *kwnames[] = { |
3219 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3220 | }; | |
3221 | ||
8edf1c75 | 3222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3224 | { | |
3225 | arg2 = wxString_in_helper(obj1); | |
3226 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3227 | temp2 = True; |
d14a1e28 | 3228 | } |
8edf1c75 RD |
3229 | { |
3230 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3231 | if (PyErr_Occurred()) SWIG_fail; | |
3232 | } | |
d14a1e28 RD |
3233 | { |
3234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3235 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3236 | ||
3237 | wxPyEndAllowThreads(__tstate); | |
3238 | if (PyErr_Occurred()) SWIG_fail; | |
3239 | } | |
4e760a36 | 3240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3241 | { |
3242 | if (temp2) | |
3243 | delete arg2; | |
3244 | } | |
3245 | return resultobj; | |
3246 | fail: | |
3247 | { | |
3248 | if (temp2) | |
3249 | delete arg2; | |
3250 | } | |
3251 | return NULL; | |
3252 | } | |
3253 | ||
3254 | ||
3255 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3256 | PyObject *resultobj; | |
3257 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3258 | wxIcon *arg2 = 0 ; | |
3259 | bool result; | |
3260 | PyObject * obj0 = 0 ; | |
3261 | PyObject * obj1 = 0 ; | |
3262 | char *kwnames[] = { | |
3263 | (char *) "self",(char *) "icon", NULL | |
3264 | }; | |
3265 | ||
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3268 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3269 | if (arg2 == NULL) { | |
3270 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3271 | } | |
3272 | { | |
3273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3274 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3275 | ||
3276 | wxPyEndAllowThreads(__tstate); | |
3277 | if (PyErr_Occurred()) SWIG_fail; | |
3278 | } | |
4e760a36 | 3279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3280 | return resultobj; |
3281 | fail: | |
3282 | return NULL; | |
3283 | } | |
3284 | ||
3285 | ||
3286 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject *resultobj; | |
3288 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3289 | int arg2 ; | |
3290 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3291 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3292 | char *kwnames[] = { |
3293 | (char *) "self",(char *) "height", NULL | |
3294 | }; | |
3295 | ||
8edf1c75 | 3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3298 | { |
3299 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3300 | if (PyErr_Occurred()) SWIG_fail; | |
3301 | } | |
d14a1e28 RD |
3302 | { |
3303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3304 | (arg1)->SetHeight(arg2); | |
3305 | ||
3306 | wxPyEndAllowThreads(__tstate); | |
3307 | if (PyErr_Occurred()) SWIG_fail; | |
3308 | } | |
3309 | Py_INCREF(Py_None); resultobj = Py_None; | |
3310 | return resultobj; | |
3311 | fail: | |
3312 | return NULL; | |
3313 | } | |
3314 | ||
3315 | ||
3316 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject *resultobj; | |
3318 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3319 | int arg2 ; | |
3320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3321 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3322 | char *kwnames[] = { |
3323 | (char *) "self",(char *) "width", NULL | |
3324 | }; | |
3325 | ||
8edf1c75 | 3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3328 | { |
3329 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3330 | if (PyErr_Occurred()) SWIG_fail; | |
3331 | } | |
d14a1e28 RD |
3332 | { |
3333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3334 | (arg1)->SetWidth(arg2); | |
3335 | ||
3336 | wxPyEndAllowThreads(__tstate); | |
3337 | if (PyErr_Occurred()) SWIG_fail; | |
3338 | } | |
3339 | Py_INCREF(Py_None); resultobj = Py_None; | |
3340 | return resultobj; | |
3341 | fail: | |
3342 | return NULL; | |
3343 | } | |
3344 | ||
3345 | ||
3346 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3347 | PyObject *resultobj; | |
3348 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3349 | int arg2 ; | |
3350 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3351 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3352 | char *kwnames[] = { |
3353 | (char *) "self",(char *) "depth", NULL | |
3354 | }; | |
3355 | ||
8edf1c75 | 3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3358 | { |
3359 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
d14a1e28 RD |
3362 | { |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3364 | (arg1)->SetDepth(arg2); | |
3365 | ||
3366 | wxPyEndAllowThreads(__tstate); | |
3367 | if (PyErr_Occurred()) SWIG_fail; | |
3368 | } | |
3369 | Py_INCREF(Py_None); resultobj = Py_None; | |
3370 | return resultobj; | |
3371 | fail: | |
3372 | return NULL; | |
3373 | } | |
3374 | ||
3375 | ||
3376 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3377 | PyObject *resultobj; | |
3378 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3379 | wxCursor *arg2 = 0 ; | |
3380 | bool result; | |
3381 | PyObject * obj0 = 0 ; | |
3382 | PyObject * obj1 = 0 ; | |
3383 | char *kwnames[] = { | |
3384 | (char *) "self",(char *) "cursor", NULL | |
3385 | }; | |
3386 | ||
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
3388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3389 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3390 | if (arg2 == NULL) { | |
3391 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3392 | } | |
3393 | { | |
3394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3395 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
3396 | ||
3397 | wxPyEndAllowThreads(__tstate); | |
3398 | if (PyErr_Occurred()) SWIG_fail; | |
3399 | } | |
4e760a36 | 3400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3401 | return resultobj; |
3402 | fail: | |
3403 | return NULL; | |
3404 | } | |
3405 | ||
3406 | ||
3407 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3408 | PyObject *resultobj; | |
3409 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3410 | int result; | |
3411 | PyObject * obj0 = 0 ; | |
3412 | char *kwnames[] = { | |
3413 | (char *) "self", NULL | |
3414 | }; | |
3415 | ||
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
3417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3418 | { | |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | result = (int)(arg1)->GetQuality(); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
8edf1c75 | 3425 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3426 | return resultobj; |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
3432 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject *resultobj; | |
3434 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3435 | int arg2 ; | |
3436 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3438 | char *kwnames[] = { |
3439 | (char *) "self",(char *) "q", NULL | |
3440 | }; | |
3441 | ||
8edf1c75 | 3442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3444 | { | |
8edf1c75 RD |
3445 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
3446 | if (PyErr_Occurred()) SWIG_fail; | |
3447 | } | |
3448 | { | |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3450 | (arg1)->SetQuality(arg2); | |
d14a1e28 RD |
3451 | |
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
3455 | Py_INCREF(Py_None); resultobj = Py_None; | |
3456 | return resultobj; | |
3457 | fail: | |
3458 | return NULL; | |
3459 | } | |
3460 | ||
3461 | ||
3462 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3463 | PyObject *obj; | |
3464 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3465 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3466 | Py_INCREF(obj); | |
3467 | return Py_BuildValue((char *)""); | |
3468 | } | |
3469 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3470 | PyObject *resultobj; | |
3471 | wxBitmap *arg1 = 0 ; | |
0ffb2aa6 RD |
3472 | wxColour const &arg2_defvalue = wxNullColour ; |
3473 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3474 | wxMask *result; |
3475 | wxColour temp2 ; | |
3476 | PyObject * obj0 = 0 ; | |
3477 | PyObject * obj1 = 0 ; | |
3478 | char *kwnames[] = { | |
3479 | (char *) "bitmap",(char *) "colour", NULL | |
3480 | }; | |
3481 | ||
0ffb2aa6 | 3482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3484 | if (arg1 == NULL) { | |
3485 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3486 | } | |
0ffb2aa6 RD |
3487 | if (obj1) { |
3488 | { | |
3489 | arg2 = &temp2; | |
3490 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3491 | } | |
d14a1e28 RD |
3492 | } |
3493 | { | |
3494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 3495 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3496 | |
3497 | wxPyEndAllowThreads(__tstate); | |
3498 | if (PyErr_Occurred()) SWIG_fail; | |
3499 | } | |
3500 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3501 | return resultobj; | |
3502 | fail: | |
3503 | return NULL; | |
3504 | } | |
3505 | ||
3506 | ||
3507 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3508 | PyObject *obj; | |
3509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3510 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3511 | Py_INCREF(obj); | |
3512 | return Py_BuildValue((char *)""); | |
3513 | } | |
3514 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3515 | PyObject *resultobj; | |
3516 | wxString *arg1 = 0 ; | |
eb9b6107 | 3517 | int arg2 ; |
d14a1e28 RD |
3518 | int arg3 = (int) -1 ; |
3519 | int arg4 = (int) -1 ; | |
3520 | wxIcon *result; | |
423f194a | 3521 | bool temp1 = False ; |
d14a1e28 | 3522 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3523 | PyObject * obj1 = 0 ; |
3524 | PyObject * obj2 = 0 ; | |
3525 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3526 | char *kwnames[] = { |
eb9b6107 | 3527 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3528 | }; |
3529 | ||
8edf1c75 | 3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3531 | { |
3532 | arg1 = wxString_in_helper(obj0); | |
3533 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3534 | temp1 = True; |
d14a1e28 | 3535 | } |
8edf1c75 RD |
3536 | { |
3537 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); | |
3538 | if (PyErr_Occurred()) SWIG_fail; | |
3539 | } | |
3540 | if (obj2) { | |
3541 | { | |
3542 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
3544 | } | |
3545 | } | |
3546 | if (obj3) { | |
3547 | { | |
3548 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
3551 | } | |
d14a1e28 RD |
3552 | { |
3553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
eb9b6107 | 3554 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); |
d14a1e28 RD |
3555 | |
3556 | wxPyEndAllowThreads(__tstate); | |
3557 | if (PyErr_Occurred()) SWIG_fail; | |
3558 | } | |
3559 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3560 | { | |
3561 | if (temp1) | |
3562 | delete arg1; | |
3563 | } | |
3564 | return resultobj; | |
3565 | fail: | |
3566 | { | |
3567 | if (temp1) | |
3568 | delete arg1; | |
3569 | } | |
3570 | return NULL; | |
3571 | } | |
3572 | ||
3573 | ||
3574 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3575 | PyObject *resultobj; | |
3576 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3577 | PyObject * obj0 = 0 ; | |
3578 | char *kwnames[] = { | |
3579 | (char *) "self", NULL | |
3580 | }; | |
3581 | ||
3582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3584 | { | |
3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3586 | delete arg1; | |
3587 | ||
3588 | wxPyEndAllowThreads(__tstate); | |
3589 | if (PyErr_Occurred()) SWIG_fail; | |
3590 | } | |
3591 | Py_INCREF(Py_None); resultobj = Py_None; | |
3592 | return resultobj; | |
3593 | fail: | |
3594 | return NULL; | |
3595 | } | |
3596 | ||
3597 | ||
3598 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3599 | PyObject *resultobj; | |
3600 | wxIcon *result; | |
3601 | char *kwnames[] = { | |
3602 | NULL | |
3603 | }; | |
3604 | ||
3605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3606 | { | |
3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3608 | result = (wxIcon *)new wxIcon(); | |
3609 | ||
3610 | wxPyEndAllowThreads(__tstate); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
3613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3614 | return resultobj; | |
3615 | fail: | |
3616 | return NULL; | |
3617 | } | |
3618 | ||
3619 | ||
3620 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3621 | PyObject *resultobj; | |
3622 | wxIconLocation *arg1 = 0 ; | |
3623 | wxIcon *result; | |
3624 | PyObject * obj0 = 0 ; | |
3625 | char *kwnames[] = { | |
3626 | (char *) "loc", NULL | |
3627 | }; | |
3628 | ||
3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3631 | if (arg1 == NULL) { | |
3632 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3633 | } | |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3637 | ||
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) SWIG_fail; | |
3640 | } | |
3641 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3642 | return resultobj; | |
3643 | fail: | |
3644 | return NULL; | |
3645 | } | |
3646 | ||
3647 | ||
3648 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3649 | PyObject *resultobj; | |
3650 | wxBitmap *arg1 = 0 ; | |
3651 | wxIcon *result; | |
3652 | PyObject * obj0 = 0 ; | |
3653 | char *kwnames[] = { | |
3654 | (char *) "bmp", NULL | |
3655 | }; | |
3656 | ||
3657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3659 | if (arg1 == NULL) { | |
3660 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3661 | } | |
3662 | { | |
3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3664 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3665 | ||
3666 | wxPyEndAllowThreads(__tstate); | |
3667 | if (PyErr_Occurred()) SWIG_fail; | |
3668 | } | |
3669 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3670 | return resultobj; | |
3671 | fail: | |
3672 | return NULL; | |
3673 | } | |
3674 | ||
3675 | ||
3676 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3677 | PyObject *resultobj; | |
3678 | PyObject *arg1 = (PyObject *) 0 ; | |
3679 | wxIcon *result; | |
3680 | PyObject * obj0 = 0 ; | |
3681 | char *kwnames[] = { | |
3682 | (char *) "listOfStrings", NULL | |
3683 | }; | |
3684 | ||
3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3686 | arg1 = obj0; | |
3687 | { | |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | result = (wxIcon *)new_wxIcon(arg1); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
3694 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3695 | return resultobj; | |
3696 | fail: | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
3701 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3702 | PyObject *resultobj; | |
3703 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3704 | wxString *arg2 = 0 ; | |
eb9b6107 | 3705 | int arg3 ; |
d14a1e28 | 3706 | bool result; |
423f194a | 3707 | bool temp2 = False ; |
d14a1e28 RD |
3708 | PyObject * obj0 = 0 ; |
3709 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3710 | PyObject * obj2 = 0 ; |
d14a1e28 | 3711 | char *kwnames[] = { |
eb9b6107 | 3712 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3713 | }; |
3714 | ||
8edf1c75 | 3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3717 | { | |
3718 | arg2 = wxString_in_helper(obj1); | |
3719 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3720 | temp2 = True; |
d14a1e28 | 3721 | } |
8edf1c75 RD |
3722 | { |
3723 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3724 | if (PyErr_Occurred()) SWIG_fail; | |
3725 | } | |
d14a1e28 RD |
3726 | { |
3727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
eb9b6107 | 3728 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3729 | |
3730 | wxPyEndAllowThreads(__tstate); | |
3731 | if (PyErr_Occurred()) SWIG_fail; | |
3732 | } | |
4e760a36 | 3733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3734 | { |
3735 | if (temp2) | |
3736 | delete arg2; | |
3737 | } | |
3738 | return resultobj; | |
3739 | fail: | |
3740 | { | |
3741 | if (temp2) | |
3742 | delete arg2; | |
3743 | } | |
3744 | return NULL; | |
3745 | } | |
3746 | ||
3747 | ||
3748 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3749 | PyObject *resultobj; | |
3750 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3751 | long result; | |
3752 | PyObject * obj0 = 0 ; | |
3753 | char *kwnames[] = { | |
3754 | (char *) "self", NULL | |
3755 | }; | |
3756 | ||
3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3759 | { | |
3760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3761 | result = (long)(arg1)->GetHandle(); | |
3762 | ||
3763 | wxPyEndAllowThreads(__tstate); | |
3764 | if (PyErr_Occurred()) SWIG_fail; | |
3765 | } | |
8edf1c75 | 3766 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3767 | return resultobj; |
3768 | fail: | |
3769 | return NULL; | |
3770 | } | |
3771 | ||
3772 | ||
3773 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3774 | PyObject *resultobj; | |
3775 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3776 | long arg2 ; | |
3777 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3778 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3779 | char *kwnames[] = { |
3780 | (char *) "self",(char *) "handle", NULL | |
3781 | }; | |
3782 | ||
8edf1c75 | 3783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3785 | { |
3786 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3787 | if (PyErr_Occurred()) SWIG_fail; | |
3788 | } | |
d14a1e28 RD |
3789 | { |
3790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3791 | (arg1)->SetHandle(arg2); | |
3792 | ||
3793 | wxPyEndAllowThreads(__tstate); | |
3794 | if (PyErr_Occurred()) SWIG_fail; | |
3795 | } | |
3796 | Py_INCREF(Py_None); resultobj = Py_None; | |
3797 | return resultobj; | |
3798 | fail: | |
3799 | return NULL; | |
3800 | } | |
3801 | ||
3802 | ||
3803 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3804 | PyObject *resultobj; | |
3805 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3806 | bool result; | |
3807 | PyObject * obj0 = 0 ; | |
3808 | char *kwnames[] = { | |
3809 | (char *) "self", NULL | |
3810 | }; | |
3811 | ||
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3814 | { | |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3816 | result = (bool)(arg1)->Ok(); | |
3817 | ||
3818 | wxPyEndAllowThreads(__tstate); | |
3819 | if (PyErr_Occurred()) SWIG_fail; | |
3820 | } | |
4e760a36 | 3821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3822 | return resultobj; |
3823 | fail: | |
3824 | return NULL; | |
3825 | } | |
3826 | ||
3827 | ||
3828 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3829 | PyObject *resultobj; | |
3830 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3831 | int result; | |
3832 | PyObject * obj0 = 0 ; | |
3833 | char *kwnames[] = { | |
3834 | (char *) "self", NULL | |
3835 | }; | |
3836 | ||
3837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3839 | { | |
3840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3841 | result = (int)(arg1)->GetWidth(); | |
3842 | ||
3843 | wxPyEndAllowThreads(__tstate); | |
3844 | if (PyErr_Occurred()) SWIG_fail; | |
3845 | } | |
8edf1c75 | 3846 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3847 | return resultobj; |
3848 | fail: | |
3849 | return NULL; | |
3850 | } | |
3851 | ||
3852 | ||
3853 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3854 | PyObject *resultobj; | |
3855 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3856 | int result; | |
3857 | PyObject * obj0 = 0 ; | |
3858 | char *kwnames[] = { | |
3859 | (char *) "self", NULL | |
3860 | }; | |
3861 | ||
3862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3864 | { | |
3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3866 | result = (int)(arg1)->GetHeight(); | |
3867 | ||
3868 | wxPyEndAllowThreads(__tstate); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
8edf1c75 | 3871 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3872 | return resultobj; |
3873 | fail: | |
3874 | return NULL; | |
3875 | } | |
3876 | ||
3877 | ||
3878 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3879 | PyObject *resultobj; | |
3880 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3881 | int result; | |
3882 | PyObject * obj0 = 0 ; | |
3883 | char *kwnames[] = { | |
3884 | (char *) "self", NULL | |
3885 | }; | |
3886 | ||
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3889 | { | |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | result = (int)(arg1)->GetDepth(); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
8edf1c75 | 3896 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3897 | return resultobj; |
3898 | fail: | |
3899 | return NULL; | |
3900 | } | |
3901 | ||
3902 | ||
3903 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3904 | PyObject *resultobj; | |
3905 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3906 | int arg2 ; | |
3907 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3908 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3909 | char *kwnames[] = { |
3910 | (char *) "self",(char *) "w", NULL | |
3911 | }; | |
3912 | ||
8edf1c75 | 3913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3915 | { |
3916 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3917 | if (PyErr_Occurred()) SWIG_fail; | |
3918 | } | |
d14a1e28 RD |
3919 | { |
3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3921 | (arg1)->SetWidth(arg2); | |
3922 | ||
3923 | wxPyEndAllowThreads(__tstate); | |
3924 | if (PyErr_Occurred()) SWIG_fail; | |
3925 | } | |
3926 | Py_INCREF(Py_None); resultobj = Py_None; | |
3927 | return resultobj; | |
3928 | fail: | |
3929 | return NULL; | |
3930 | } | |
3931 | ||
3932 | ||
3933 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3934 | PyObject *resultobj; | |
3935 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3936 | int arg2 ; | |
3937 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3939 | char *kwnames[] = { |
3940 | (char *) "self",(char *) "h", NULL | |
3941 | }; | |
3942 | ||
8edf1c75 | 3943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3945 | { |
3946 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
d14a1e28 RD |
3949 | { |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | (arg1)->SetHeight(arg2); | |
3952 | ||
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | Py_INCREF(Py_None); resultobj = Py_None; | |
3957 | return resultobj; | |
3958 | fail: | |
3959 | return NULL; | |
3960 | } | |
3961 | ||
3962 | ||
3963 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3964 | PyObject *resultobj; | |
3965 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3966 | int arg2 ; | |
3967 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3968 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3969 | char *kwnames[] = { |
3970 | (char *) "self",(char *) "d", NULL | |
3971 | }; | |
3972 | ||
8edf1c75 | 3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3975 | { |
3976 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
3978 | } | |
d14a1e28 RD |
3979 | { |
3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3981 | (arg1)->SetDepth(arg2); | |
3982 | ||
3983 | wxPyEndAllowThreads(__tstate); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
3985 | } | |
3986 | Py_INCREF(Py_None); resultobj = Py_None; | |
3987 | return resultobj; | |
3988 | fail: | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
3993 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3994 | PyObject *resultobj; | |
3995 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3996 | wxSize *arg2 = 0 ; | |
3997 | wxSize temp2 ; | |
3998 | PyObject * obj0 = 0 ; | |
3999 | PyObject * obj1 = 0 ; | |
4000 | char *kwnames[] = { | |
4001 | (char *) "self",(char *) "size", NULL | |
4002 | }; | |
4003 | ||
4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4006 | { | |
4007 | arg2 = &temp2; | |
4008 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4009 | } | |
4010 | { | |
4011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4012 | (arg1)->SetSize((wxSize const &)*arg2); | |
4013 | ||
4014 | wxPyEndAllowThreads(__tstate); | |
4015 | if (PyErr_Occurred()) SWIG_fail; | |
4016 | } | |
4017 | Py_INCREF(Py_None); resultobj = Py_None; | |
4018 | return resultobj; | |
4019 | fail: | |
4020 | return NULL; | |
4021 | } | |
4022 | ||
4023 | ||
4024 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4025 | PyObject *resultobj; | |
4026 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4027 | wxBitmap *arg2 = 0 ; | |
4028 | PyObject * obj0 = 0 ; | |
4029 | PyObject * obj1 = 0 ; | |
4030 | char *kwnames[] = { | |
4031 | (char *) "self",(char *) "bmp", NULL | |
4032 | }; | |
4033 | ||
4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4036 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4037 | if (arg2 == NULL) { | |
4038 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4039 | } | |
4040 | { | |
4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4042 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4043 | ||
4044 | wxPyEndAllowThreads(__tstate); | |
4045 | if (PyErr_Occurred()) SWIG_fail; | |
4046 | } | |
4047 | Py_INCREF(Py_None); resultobj = Py_None; | |
4048 | return resultobj; | |
4049 | fail: | |
4050 | return NULL; | |
4051 | } | |
4052 | ||
4053 | ||
4054 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
4055 | PyObject *obj; | |
4056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4057 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4058 | Py_INCREF(obj); | |
4059 | return Py_BuildValue((char *)""); | |
4060 | } | |
4061 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4062 | PyObject *resultobj; | |
4063 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4064 | int arg2 = (int) 0 ; | |
4065 | wxIconLocation *result; | |
f775c30d | 4066 | bool temp1 = False ; |
d14a1e28 | 4067 | PyObject * obj0 = 0 ; |
8edf1c75 | 4068 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4069 | char *kwnames[] = { |
4070 | (char *) "filename",(char *) "num", NULL | |
4071 | }; | |
4072 | ||
8edf1c75 | 4073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4074 | if (obj0) { |
f775c30d RD |
4075 | { |
4076 | arg1 = wxString_in_helper(obj0); | |
4077 | if (arg1 == NULL) SWIG_fail; | |
4078 | temp1 = True; | |
4079 | } | |
d14a1e28 | 4080 | } |
8edf1c75 RD |
4081 | if (obj1) { |
4082 | { | |
4083 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4084 | if (PyErr_Occurred()) SWIG_fail; | |
4085 | } | |
4086 | } | |
d14a1e28 RD |
4087 | { |
4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4089 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4090 | ||
4091 | wxPyEndAllowThreads(__tstate); | |
4092 | if (PyErr_Occurred()) SWIG_fail; | |
4093 | } | |
4094 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
f775c30d RD |
4095 | { |
4096 | if (temp1) | |
4097 | delete arg1; | |
4098 | } | |
d14a1e28 RD |
4099 | return resultobj; |
4100 | fail: | |
f775c30d RD |
4101 | { |
4102 | if (temp1) | |
4103 | delete arg1; | |
4104 | } | |
d14a1e28 RD |
4105 | return NULL; |
4106 | } | |
4107 | ||
4108 | ||
4109 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4110 | PyObject *resultobj; | |
4111 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4112 | PyObject * obj0 = 0 ; | |
4113 | char *kwnames[] = { | |
4114 | (char *) "self", NULL | |
4115 | }; | |
4116 | ||
4117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
4118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4119 | { | |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4121 | delete arg1; | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
4125 | } | |
4126 | Py_INCREF(Py_None); resultobj = Py_None; | |
4127 | return resultobj; | |
4128 | fail: | |
4129 | return NULL; | |
4130 | } | |
4131 | ||
4132 | ||
4133 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4134 | PyObject *resultobj; | |
4135 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4136 | bool result; | |
4137 | PyObject * obj0 = 0 ; | |
4138 | char *kwnames[] = { | |
4139 | (char *) "self", NULL | |
4140 | }; | |
4141 | ||
4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
4143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4144 | { | |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4146 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4147 | ||
4148 | wxPyEndAllowThreads(__tstate); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
4e760a36 | 4151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4152 | return resultobj; |
4153 | fail: | |
4154 | return NULL; | |
4155 | } | |
4156 | ||
4157 | ||
4158 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4159 | PyObject *resultobj; | |
4160 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4161 | wxString *arg2 = 0 ; | |
423f194a | 4162 | bool temp2 = False ; |
d14a1e28 RD |
4163 | PyObject * obj0 = 0 ; |
4164 | PyObject * obj1 = 0 ; | |
4165 | char *kwnames[] = { | |
4166 | (char *) "self",(char *) "filename", NULL | |
4167 | }; | |
4168 | ||
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4171 | { | |
4172 | arg2 = wxString_in_helper(obj1); | |
4173 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4174 | temp2 = True; |
d14a1e28 RD |
4175 | } |
4176 | { | |
4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4178 | (arg1)->SetFileName((wxString const &)*arg2); | |
4179 | ||
4180 | wxPyEndAllowThreads(__tstate); | |
4181 | if (PyErr_Occurred()) SWIG_fail; | |
4182 | } | |
4183 | Py_INCREF(Py_None); resultobj = Py_None; | |
4184 | { | |
4185 | if (temp2) | |
4186 | delete arg2; | |
4187 | } | |
4188 | return resultobj; | |
4189 | fail: | |
4190 | { | |
4191 | if (temp2) | |
4192 | delete arg2; | |
4193 | } | |
4194 | return NULL; | |
4195 | } | |
4196 | ||
4197 | ||
4198 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4199 | PyObject *resultobj; | |
4200 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4201 | wxString *result; | |
4202 | PyObject * obj0 = 0 ; | |
4203 | char *kwnames[] = { | |
4204 | (char *) "self", NULL | |
4205 | }; | |
4206 | ||
4207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4209 | { | |
4210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4211 | { | |
4212 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4213 | result = (wxString *) &_result_ref; | |
4214 | } | |
4215 | ||
4216 | wxPyEndAllowThreads(__tstate); | |
4217 | if (PyErr_Occurred()) SWIG_fail; | |
4218 | } | |
f0983263 RD |
4219 | { |
4220 | #if wxUSE_UNICODE | |
4221 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4222 | #else | |
4223 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4224 | #endif | |
4225 | } | |
d14a1e28 RD |
4226 | return resultobj; |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj; | |
4234 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4235 | int arg2 ; | |
4236 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4237 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4238 | char *kwnames[] = { |
4239 | (char *) "self",(char *) "num", NULL | |
4240 | }; | |
4241 | ||
8edf1c75 | 4242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4244 | { |
4245 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
4247 | } | |
d14a1e28 RD |
4248 | { |
4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4250 | wxIconLocation_SetIndex(arg1,arg2); | |
4251 | ||
4252 | wxPyEndAllowThreads(__tstate); | |
4253 | if (PyErr_Occurred()) SWIG_fail; | |
4254 | } | |
4255 | Py_INCREF(Py_None); resultobj = Py_None; | |
4256 | return resultobj; | |
4257 | fail: | |
4258 | return NULL; | |
4259 | } | |
4260 | ||
4261 | ||
4262 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4263 | PyObject *resultobj; | |
4264 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4265 | int result; | |
4266 | PyObject * obj0 = 0 ; | |
4267 | char *kwnames[] = { | |
4268 | (char *) "self", NULL | |
4269 | }; | |
4270 | ||
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4273 | { | |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4275 | result = (int)wxIconLocation_GetIndex(arg1); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
8edf1c75 | 4280 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4281 | return resultobj; |
4282 | fail: | |
4283 | return NULL; | |
4284 | } | |
4285 | ||
4286 | ||
4287 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
4288 | PyObject *obj; | |
4289 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4290 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4291 | Py_INCREF(obj); | |
4292 | return Py_BuildValue((char *)""); | |
4293 | } | |
4294 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj; | |
4296 | wxIconBundle *result; | |
4297 | char *kwnames[] = { | |
4298 | NULL | |
4299 | }; | |
4300 | ||
4301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4302 | { | |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4304 | result = (wxIconBundle *)new wxIconBundle(); | |
4305 | ||
4306 | wxPyEndAllowThreads(__tstate); | |
4307 | if (PyErr_Occurred()) SWIG_fail; | |
4308 | } | |
4309 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4310 | return resultobj; | |
4311 | fail: | |
4312 | return NULL; | |
4313 | } | |
4314 | ||
4315 | ||
4316 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject *resultobj; | |
4318 | wxString *arg1 = 0 ; | |
4319 | long arg2 ; | |
4320 | wxIconBundle *result; | |
423f194a | 4321 | bool temp1 = False ; |
d14a1e28 | 4322 | PyObject * obj0 = 0 ; |
8edf1c75 | 4323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4324 | char *kwnames[] = { |
4325 | (char *) "file",(char *) "type", NULL | |
4326 | }; | |
4327 | ||
8edf1c75 | 4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4329 | { |
4330 | arg1 = wxString_in_helper(obj0); | |
4331 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4332 | temp1 = True; |
d14a1e28 | 4333 | } |
8edf1c75 RD |
4334 | { |
4335 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4336 | if (PyErr_Occurred()) SWIG_fail; | |
4337 | } | |
d14a1e28 RD |
4338 | { |
4339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4340 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4341 | ||
4342 | wxPyEndAllowThreads(__tstate); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4346 | { | |
4347 | if (temp1) | |
4348 | delete arg1; | |
4349 | } | |
4350 | return resultobj; | |
4351 | fail: | |
4352 | { | |
4353 | if (temp1) | |
4354 | delete arg1; | |
4355 | } | |
4356 | return NULL; | |
4357 | } | |
4358 | ||
4359 | ||
4360 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4361 | PyObject *resultobj; | |
4362 | wxIcon *arg1 = 0 ; | |
4363 | wxIconBundle *result; | |
4364 | PyObject * obj0 = 0 ; | |
4365 | char *kwnames[] = { | |
4366 | (char *) "icon", NULL | |
4367 | }; | |
4368 | ||
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4371 | if (arg1 == NULL) { | |
4372 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4373 | } | |
4374 | { | |
4375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4376 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4377 | ||
4378 | wxPyEndAllowThreads(__tstate); | |
4379 | if (PyErr_Occurred()) SWIG_fail; | |
4380 | } | |
4381 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4382 | return resultobj; | |
4383 | fail: | |
4384 | return NULL; | |
4385 | } | |
4386 | ||
4387 | ||
4388 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4389 | PyObject *resultobj; | |
4390 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4391 | PyObject * obj0 = 0 ; | |
4392 | char *kwnames[] = { | |
4393 | (char *) "self", NULL | |
4394 | }; | |
4395 | ||
4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4398 | { | |
4399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4400 | delete arg1; | |
4401 | ||
4402 | wxPyEndAllowThreads(__tstate); | |
4403 | if (PyErr_Occurred()) SWIG_fail; | |
4404 | } | |
4405 | Py_INCREF(Py_None); resultobj = Py_None; | |
4406 | return resultobj; | |
4407 | fail: | |
4408 | return NULL; | |
4409 | } | |
4410 | ||
4411 | ||
4412 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4413 | PyObject *resultobj; | |
4414 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4415 | wxIcon *arg2 = 0 ; | |
4416 | PyObject * obj0 = 0 ; | |
4417 | PyObject * obj1 = 0 ; | |
4418 | char *kwnames[] = { | |
4419 | (char *) "self",(char *) "icon", NULL | |
4420 | }; | |
4421 | ||
4422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4424 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4425 | if (arg2 == NULL) { | |
4426 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4427 | } | |
4428 | { | |
4429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4430 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4431 | ||
4432 | wxPyEndAllowThreads(__tstate); | |
4433 | if (PyErr_Occurred()) SWIG_fail; | |
4434 | } | |
4435 | Py_INCREF(Py_None); resultobj = Py_None; | |
4436 | return resultobj; | |
4437 | fail: | |
4438 | return NULL; | |
4439 | } | |
4440 | ||
4441 | ||
4442 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4443 | PyObject *resultobj; | |
4444 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4445 | wxString *arg2 = 0 ; | |
4446 | long arg3 ; | |
423f194a | 4447 | bool temp2 = False ; |
d14a1e28 RD |
4448 | PyObject * obj0 = 0 ; |
4449 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4450 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4451 | char *kwnames[] = { |
4452 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4453 | }; | |
4454 | ||
8edf1c75 | 4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4457 | { | |
4458 | arg2 = wxString_in_helper(obj1); | |
4459 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4460 | temp2 = True; |
d14a1e28 | 4461 | } |
8edf1c75 RD |
4462 | { |
4463 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
4464 | if (PyErr_Occurred()) SWIG_fail; | |
4465 | } | |
d14a1e28 RD |
4466 | { |
4467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4468 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4469 | ||
4470 | wxPyEndAllowThreads(__tstate); | |
4471 | if (PyErr_Occurred()) SWIG_fail; | |
4472 | } | |
4473 | Py_INCREF(Py_None); resultobj = Py_None; | |
4474 | { | |
4475 | if (temp2) | |
4476 | delete arg2; | |
4477 | } | |
4478 | return resultobj; | |
4479 | fail: | |
4480 | { | |
4481 | if (temp2) | |
4482 | delete arg2; | |
4483 | } | |
4484 | return NULL; | |
4485 | } | |
4486 | ||
4487 | ||
4488 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4489 | PyObject *resultobj; | |
4490 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4491 | wxSize *arg2 = 0 ; | |
4492 | wxIcon *result; | |
4493 | wxSize temp2 ; | |
4494 | PyObject * obj0 = 0 ; | |
4495 | PyObject * obj1 = 0 ; | |
4496 | char *kwnames[] = { | |
4497 | (char *) "self",(char *) "size", NULL | |
4498 | }; | |
4499 | ||
4500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4502 | { | |
4503 | arg2 = &temp2; | |
4504 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4505 | } | |
4506 | { | |
4507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4508 | { | |
4509 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4510 | result = (wxIcon *) &_result_ref; | |
4511 | } | |
4512 | ||
4513 | wxPyEndAllowThreads(__tstate); | |
4514 | if (PyErr_Occurred()) SWIG_fail; | |
4515 | } | |
4516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
4517 | return resultobj; | |
4518 | fail: | |
4519 | return NULL; | |
4520 | } | |
4521 | ||
4522 | ||
4523 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4524 | PyObject *obj; | |
4525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4526 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4527 | Py_INCREF(obj); | |
4528 | return Py_BuildValue((char *)""); | |
4529 | } | |
4530 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4531 | PyObject *resultobj; | |
4532 | wxString *arg1 = (wxString *) 0 ; | |
4533 | long arg2 ; | |
4534 | int arg3 = (int) 0 ; | |
4535 | int arg4 = (int) 0 ; | |
4536 | wxCursor *result; | |
f775c30d | 4537 | bool temp1 = False ; |
d14a1e28 | 4538 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4539 | PyObject * obj1 = 0 ; |
4540 | PyObject * obj2 = 0 ; | |
4541 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4542 | char *kwnames[] = { |
4543 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4544 | }; | |
4545 | ||
8edf1c75 | 4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
f775c30d RD |
4547 | { |
4548 | arg1 = wxString_in_helper(obj0); | |
4549 | if (arg1 == NULL) SWIG_fail; | |
4550 | temp1 = True; | |
4551 | } | |
8edf1c75 RD |
4552 | { |
4553 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4554 | if (PyErr_Occurred()) SWIG_fail; | |
4555 | } | |
4556 | if (obj2) { | |
4557 | { | |
4558 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4559 | if (PyErr_Occurred()) SWIG_fail; | |
4560 | } | |
4561 | } | |
4562 | if (obj3) { | |
4563 | { | |
4564 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
4566 | } | |
4567 | } | |
d14a1e28 RD |
4568 | { |
4569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4570 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4571 | ||
4572 | wxPyEndAllowThreads(__tstate); | |
4573 | if (PyErr_Occurred()) SWIG_fail; | |
4574 | } | |
4575 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
f775c30d RD |
4576 | { |
4577 | if (temp1) | |
4578 | delete arg1; | |
4579 | } | |
d14a1e28 RD |
4580 | return resultobj; |
4581 | fail: | |
f775c30d RD |
4582 | { |
4583 | if (temp1) | |
4584 | delete arg1; | |
4585 | } | |
d14a1e28 RD |
4586 | return NULL; |
4587 | } | |
4588 | ||
4589 | ||
4590 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4591 | PyObject *resultobj; | |
4592 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4593 | PyObject * obj0 = 0 ; | |
4594 | char *kwnames[] = { | |
4595 | (char *) "self", NULL | |
4596 | }; | |
4597 | ||
4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4600 | { | |
4601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4602 | delete arg1; | |
4603 | ||
4604 | wxPyEndAllowThreads(__tstate); | |
4605 | if (PyErr_Occurred()) SWIG_fail; | |
4606 | } | |
4607 | Py_INCREF(Py_None); resultobj = Py_None; | |
4608 | return resultobj; | |
4609 | fail: | |
4610 | return NULL; | |
4611 | } | |
4612 | ||
4613 | ||
4614 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4615 | PyObject *resultobj; | |
4616 | int arg1 ; | |
4617 | wxCursor *result; | |
8edf1c75 | 4618 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4619 | char *kwnames[] = { |
4620 | (char *) "id", NULL | |
4621 | }; | |
4622 | ||
8edf1c75 RD |
4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
4624 | { | |
4625 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4626 | if (PyErr_Occurred()) SWIG_fail; | |
4627 | } | |
d14a1e28 RD |
4628 | { |
4629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4630 | result = (wxCursor *)new wxCursor(arg1); | |
4631 | ||
4632 | wxPyEndAllowThreads(__tstate); | |
4633 | if (PyErr_Occurred()) SWIG_fail; | |
4634 | } | |
4635 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4636 | return resultobj; | |
4637 | fail: | |
4638 | return NULL; | |
4639 | } | |
4640 | ||
4641 | ||
4642 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4643 | PyObject *resultobj; | |
4644 | wxImage *arg1 = 0 ; | |
4645 | wxCursor *result; | |
4646 | PyObject * obj0 = 0 ; | |
4647 | char *kwnames[] = { | |
4648 | (char *) "image", NULL | |
4649 | }; | |
4650 | ||
4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4653 | if (arg1 == NULL) { | |
4654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4655 | } | |
4656 | { | |
4657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4658 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4659 | ||
4660 | wxPyEndAllowThreads(__tstate); | |
4661 | if (PyErr_Occurred()) SWIG_fail; | |
4662 | } | |
4663 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4664 | return resultobj; | |
4665 | fail: | |
4666 | return NULL; | |
4667 | } | |
4668 | ||
4669 | ||
4670 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4671 | PyObject *resultobj; | |
4672 | PyObject *arg1 = (PyObject *) 0 ; | |
4673 | int arg2 ; | |
4674 | int arg3 ; | |
4675 | int arg4 = (int) -1 ; | |
4676 | int arg5 = (int) -1 ; | |
4677 | PyObject *arg6 = (PyObject *) 0 ; | |
4678 | wxCursor *result; | |
4679 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4680 | PyObject * obj1 = 0 ; |
4681 | PyObject * obj2 = 0 ; | |
4682 | PyObject * obj3 = 0 ; | |
4683 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4684 | PyObject * obj5 = 0 ; |
4685 | char *kwnames[] = { | |
4686 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4687 | }; | |
4688 | ||
8edf1c75 | 4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4690 | arg1 = obj0; |
8edf1c75 RD |
4691 | { |
4692 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4693 | if (PyErr_Occurred()) SWIG_fail; | |
4694 | } | |
4695 | { | |
4696 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4697 | if (PyErr_Occurred()) SWIG_fail; | |
4698 | } | |
4699 | if (obj3) { | |
4700 | { | |
4701 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4702 | if (PyErr_Occurred()) SWIG_fail; | |
4703 | } | |
4704 | } | |
4705 | if (obj4) { | |
4706 | { | |
4707 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4708 | if (PyErr_Occurred()) SWIG_fail; | |
4709 | } | |
4710 | } | |
d14a1e28 RD |
4711 | if (obj5) { |
4712 | arg6 = obj5; | |
4713 | } | |
4714 | { | |
4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4716 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4717 | ||
4718 | wxPyEndAllowThreads(__tstate); | |
4719 | if (PyErr_Occurred()) SWIG_fail; | |
4720 | } | |
4721 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4722 | return resultobj; | |
4723 | fail: | |
4724 | return NULL; | |
4725 | } | |
4726 | ||
4727 | ||
4728 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4729 | PyObject *resultobj; | |
4730 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4731 | long result; | |
4732 | PyObject * obj0 = 0 ; | |
4733 | char *kwnames[] = { | |
4734 | (char *) "self", NULL | |
4735 | }; | |
4736 | ||
4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4739 | { | |
4740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4741 | result = (long)(arg1)->GetHandle(); | |
4742 | ||
4743 | wxPyEndAllowThreads(__tstate); | |
4744 | if (PyErr_Occurred()) SWIG_fail; | |
4745 | } | |
8edf1c75 | 4746 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
4747 | return resultobj; |
4748 | fail: | |
4749 | return NULL; | |
4750 | } | |
4751 | ||
4752 | ||
4753 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4754 | PyObject *resultobj; | |
4755 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4756 | long arg2 ; | |
4757 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4759 | char *kwnames[] = { |
4760 | (char *) "self",(char *) "handle", NULL | |
4761 | }; | |
4762 | ||
8edf1c75 | 4763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4765 | { |
4766 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
d14a1e28 RD |
4769 | { |
4770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4771 | (arg1)->SetHandle(arg2); | |
4772 | ||
4773 | wxPyEndAllowThreads(__tstate); | |
4774 | if (PyErr_Occurred()) SWIG_fail; | |
4775 | } | |
4776 | Py_INCREF(Py_None); resultobj = Py_None; | |
4777 | return resultobj; | |
4778 | fail: | |
4779 | return NULL; | |
4780 | } | |
4781 | ||
4782 | ||
4783 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4784 | PyObject *resultobj; | |
4785 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4786 | bool result; | |
4787 | PyObject * obj0 = 0 ; | |
4788 | char *kwnames[] = { | |
4789 | (char *) "self", NULL | |
4790 | }; | |
4791 | ||
4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4794 | { | |
4795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4796 | result = (bool)(arg1)->Ok(); | |
4797 | ||
4798 | wxPyEndAllowThreads(__tstate); | |
4799 | if (PyErr_Occurred()) SWIG_fail; | |
4800 | } | |
4e760a36 | 4801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4802 | return resultobj; |
4803 | fail: | |
4804 | return NULL; | |
4805 | } | |
4806 | ||
4807 | ||
4808 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4809 | PyObject *resultobj; | |
4810 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4811 | int result; | |
4812 | PyObject * obj0 = 0 ; | |
4813 | char *kwnames[] = { | |
4814 | (char *) "self", NULL | |
4815 | }; | |
4816 | ||
4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4819 | { | |
4820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4821 | result = (int)(arg1)->GetWidth(); | |
4822 | ||
4823 | wxPyEndAllowThreads(__tstate); | |
4824 | if (PyErr_Occurred()) SWIG_fail; | |
4825 | } | |
8edf1c75 | 4826 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4827 | return resultobj; |
4828 | fail: | |
4829 | return NULL; | |
4830 | } | |
4831 | ||
4832 | ||
4833 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4834 | PyObject *resultobj; | |
4835 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4836 | int result; | |
4837 | PyObject * obj0 = 0 ; | |
4838 | char *kwnames[] = { | |
4839 | (char *) "self", NULL | |
4840 | }; | |
4841 | ||
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
4843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4844 | { | |
4845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4846 | result = (int)(arg1)->GetHeight(); | |
4847 | ||
4848 | wxPyEndAllowThreads(__tstate); | |
4849 | if (PyErr_Occurred()) SWIG_fail; | |
4850 | } | |
8edf1c75 | 4851 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4852 | return resultobj; |
4853 | fail: | |
4854 | return NULL; | |
4855 | } | |
4856 | ||
4857 | ||
4858 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject *resultobj; | |
4860 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4861 | int result; | |
4862 | PyObject * obj0 = 0 ; | |
4863 | char *kwnames[] = { | |
4864 | (char *) "self", NULL | |
4865 | }; | |
4866 | ||
4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
4868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4869 | { | |
4870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4871 | result = (int)(arg1)->GetDepth(); | |
4872 | ||
4873 | wxPyEndAllowThreads(__tstate); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
8edf1c75 | 4876 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4877 | return resultobj; |
4878 | fail: | |
4879 | return NULL; | |
4880 | } | |
4881 | ||
4882 | ||
4883 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4884 | PyObject *resultobj; | |
4885 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4886 | int arg2 ; | |
4887 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4889 | char *kwnames[] = { |
4890 | (char *) "self",(char *) "w", NULL | |
4891 | }; | |
4892 | ||
8edf1c75 | 4893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4895 | { |
4896 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4897 | if (PyErr_Occurred()) SWIG_fail; | |
4898 | } | |
d14a1e28 RD |
4899 | { |
4900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4901 | (arg1)->SetWidth(arg2); | |
4902 | ||
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
4906 | Py_INCREF(Py_None); resultobj = Py_None; | |
4907 | return resultobj; | |
4908 | fail: | |
4909 | return NULL; | |
4910 | } | |
4911 | ||
4912 | ||
4913 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject *resultobj; | |
4915 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4916 | int arg2 ; | |
4917 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4918 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4919 | char *kwnames[] = { |
4920 | (char *) "self",(char *) "h", NULL | |
4921 | }; | |
4922 | ||
8edf1c75 | 4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4925 | { |
4926 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4927 | if (PyErr_Occurred()) SWIG_fail; | |
4928 | } | |
d14a1e28 RD |
4929 | { |
4930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4931 | (arg1)->SetHeight(arg2); | |
4932 | ||
4933 | wxPyEndAllowThreads(__tstate); | |
4934 | if (PyErr_Occurred()) SWIG_fail; | |
4935 | } | |
4936 | Py_INCREF(Py_None); resultobj = Py_None; | |
4937 | return resultobj; | |
4938 | fail: | |
4939 | return NULL; | |
4940 | } | |
4941 | ||
4942 | ||
4943 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4944 | PyObject *resultobj; | |
4945 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4946 | int arg2 ; | |
4947 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4949 | char *kwnames[] = { |
4950 | (char *) "self",(char *) "d", NULL | |
4951 | }; | |
4952 | ||
8edf1c75 | 4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4955 | { |
4956 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
d14a1e28 RD |
4959 | { |
4960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4961 | (arg1)->SetDepth(arg2); | |
4962 | ||
4963 | wxPyEndAllowThreads(__tstate); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
4965 | } | |
4966 | Py_INCREF(Py_None); resultobj = Py_None; | |
4967 | return resultobj; | |
4968 | fail: | |
4969 | return NULL; | |
4970 | } | |
4971 | ||
4972 | ||
4973 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4974 | PyObject *resultobj; | |
4975 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4976 | wxSize *arg2 = 0 ; | |
4977 | wxSize temp2 ; | |
4978 | PyObject * obj0 = 0 ; | |
4979 | PyObject * obj1 = 0 ; | |
4980 | char *kwnames[] = { | |
4981 | (char *) "self",(char *) "size", NULL | |
4982 | }; | |
4983 | ||
4984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4986 | { | |
4987 | arg2 = &temp2; | |
4988 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4989 | } | |
4990 | { | |
4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4992 | (arg1)->SetSize((wxSize const &)*arg2); | |
4993 | ||
4994 | wxPyEndAllowThreads(__tstate); | |
4995 | if (PyErr_Occurred()) SWIG_fail; | |
4996 | } | |
4997 | Py_INCREF(Py_None); resultobj = Py_None; | |
4998 | return resultobj; | |
4999 | fail: | |
5000 | return NULL; | |
5001 | } | |
5002 | ||
5003 | ||
5004 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
5005 | PyObject *obj; | |
5006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5007 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
5008 | Py_INCREF(obj); | |
5009 | return Py_BuildValue((char *)""); | |
5010 | } | |
5011 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5012 | PyObject *resultobj; | |
423f194a RD |
5013 | int arg1 = (int) 0 ; |
5014 | int arg2 = (int) 0 ; | |
5015 | int arg3 = (int) 0 ; | |
5016 | int arg4 = (int) 0 ; | |
d14a1e28 | 5017 | wxRegion *result; |
8edf1c75 RD |
5018 | PyObject * obj0 = 0 ; |
5019 | PyObject * obj1 = 0 ; | |
5020 | PyObject * obj2 = 0 ; | |
5021 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5022 | char *kwnames[] = { |
5023 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5024 | }; | |
5025 | ||
8edf1c75 RD |
5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
5027 | if (obj0) { | |
5028 | { | |
5029 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
5030 | if (PyErr_Occurred()) SWIG_fail; | |
5031 | } | |
5032 | } | |
5033 | if (obj1) { | |
5034 | { | |
5035 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
5038 | } | |
5039 | if (obj2) { | |
5040 | { | |
5041 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5042 | if (PyErr_Occurred()) SWIG_fail; | |
5043 | } | |
5044 | } | |
5045 | if (obj3) { | |
5046 | { | |
5047 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5048 | if (PyErr_Occurred()) SWIG_fail; | |
5049 | } | |
5050 | } | |
d14a1e28 RD |
5051 | { |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5053 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
5054 | ||
5055 | wxPyEndAllowThreads(__tstate); | |
5056 | if (PyErr_Occurred()) SWIG_fail; | |
5057 | } | |
5058 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
5059 | return resultobj; | |
5060 | fail: | |
5061 | return NULL; | |
5062 | } | |
5063 | ||
5064 | ||
5065 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5066 | PyObject *resultobj; | |
5067 | wxBitmap *arg1 = 0 ; | |
5068 | wxColour const &arg2_defvalue = wxNullColour ; | |
5069 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5070 | int arg3 = (int) 0 ; | |
5071 | wxRegion *result; | |
5072 | wxColour temp2 ; | |
5073 | PyObject * obj0 = 0 ; | |
5074 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5075 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5076 | char *kwnames[] = { |
5077 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5078 | }; | |
5079 | ||
8edf1c75 | 5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5082 | if (arg1 == NULL) { | |
5083 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5084 | } | |
5085 | if (obj1) { | |
5086 | { | |
5087 | arg2 = &temp2; | |
5088 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5089 | } | |
5090 | } | |
8edf1c75 RD |
5091 | if (obj2) { |
5092 | { | |
5093 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5094 | if (PyErr_Occurred()) SWIG_fail; | |
5095 | } | |
5096 | } | |
d14a1e28 RD |
5097 | { |
5098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5099 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
5100 | ||
5101 | wxPyEndAllowThreads(__tstate); | |
5102 | if (PyErr_Occurred()) SWIG_fail; | |
5103 | } | |
5104 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
5105 | return resultobj; | |
5106 | fail: | |
5107 | return NULL; | |
5108 | } | |
5109 | ||
5110 | ||
5111 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5112 | PyObject *resultobj; | |
5113 | int arg1 ; | |
5114 | wxPoint *arg2 = (wxPoint *) 0 ; | |
5115 | int arg3 = (int) wxWINDING_RULE ; | |
5116 | wxRegion *result; | |
5117 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5118 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5119 | char *kwnames[] = { |
5120 | (char *) "points",(char *) "fillStyle", NULL | |
5121 | }; | |
5122 | ||
8edf1c75 | 5123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
5124 | { |
5125 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
5126 | if (arg2 == NULL) SWIG_fail; | |
5127 | } | |
8edf1c75 RD |
5128 | if (obj1) { |
5129 | { | |
5130 | arg3 = (int) SWIG_PyObj_AsInt(obj1); | |
5131 | if (PyErr_Occurred()) SWIG_fail; | |
5132 | } | |
5133 | } | |
d14a1e28 RD |
5134 | { |
5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5136 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
5137 | ||
5138 | wxPyEndAllowThreads(__tstate); | |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
5140 | } | |
5141 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
5142 | { | |
5143 | if (arg2) delete [] arg2; | |
5144 | } | |
5145 | return resultobj; | |
5146 | fail: | |
5147 | { | |
5148 | if (arg2) delete [] arg2; | |
5149 | } | |
5150 | return NULL; | |
5151 | } | |
5152 | ||
5153 | ||
5154 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5155 | PyObject *resultobj; | |
5156 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5157 | PyObject * obj0 = 0 ; | |
5158 | char *kwnames[] = { | |
5159 | (char *) "self", NULL | |
5160 | }; | |
5161 | ||
5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
5163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5164 | { | |
5165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5166 | delete arg1; | |
5167 | ||
5168 | wxPyEndAllowThreads(__tstate); | |
5169 | if (PyErr_Occurred()) SWIG_fail; | |
5170 | } | |
5171 | Py_INCREF(Py_None); resultobj = Py_None; | |
5172 | return resultobj; | |
5173 | fail: | |
5174 | return NULL; | |
5175 | } | |
5176 | ||
5177 | ||
5178 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5179 | PyObject *resultobj; | |
5180 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5181 | PyObject * obj0 = 0 ; | |
5182 | char *kwnames[] = { | |
5183 | (char *) "self", NULL | |
5184 | }; | |
5185 | ||
5186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
5187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5188 | { | |
5189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5190 | (arg1)->Clear(); | |
5191 | ||
5192 | wxPyEndAllowThreads(__tstate); | |
5193 | if (PyErr_Occurred()) SWIG_fail; | |
5194 | } | |
5195 | Py_INCREF(Py_None); resultobj = Py_None; | |
5196 | return resultobj; | |
5197 | fail: | |
5198 | return NULL; | |
5199 | } | |
5200 | ||
5201 | ||
5202 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5203 | PyObject *resultobj; | |
5204 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5205 | int arg2 ; |
5206 | int arg3 ; | |
d14a1e28 RD |
5207 | bool result; |
5208 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5209 | PyObject * obj1 = 0 ; |
5210 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5211 | char *kwnames[] = { |
5212 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5213 | }; | |
5214 | ||
8edf1c75 | 5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5217 | { |
5218 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5219 | if (PyErr_Occurred()) SWIG_fail; | |
5220 | } | |
5221 | { | |
5222 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5223 | if (PyErr_Occurred()) SWIG_fail; | |
5224 | } | |
d14a1e28 RD |
5225 | { |
5226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5227 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5228 | ||
5229 | wxPyEndAllowThreads(__tstate); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
4e760a36 | 5232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5233 | return resultobj; |
5234 | fail: | |
5235 | return NULL; | |
5236 | } | |
5237 | ||
5238 | ||
5239 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5240 | PyObject *resultobj; | |
5241 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5242 | int arg2 ; |
5243 | int arg3 ; | |
d14a1e28 RD |
5244 | int result; |
5245 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5246 | PyObject * obj1 = 0 ; |
5247 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5248 | char *kwnames[] = { |
5249 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5250 | }; | |
5251 | ||
8edf1c75 | 5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5254 | { |
5255 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
5258 | { | |
5259 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5260 | if (PyErr_Occurred()) SWIG_fail; | |
5261 | } | |
d14a1e28 RD |
5262 | { |
5263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5264 | result = (int)(arg1)->Contains(arg2,arg3); | |
5265 | ||
5266 | wxPyEndAllowThreads(__tstate); | |
5267 | if (PyErr_Occurred()) SWIG_fail; | |
5268 | } | |
8edf1c75 | 5269 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5270 | return resultobj; |
5271 | fail: | |
5272 | return NULL; | |
5273 | } | |
5274 | ||
5275 | ||
5276 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5277 | PyObject *resultobj; | |
5278 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5279 | wxPoint *arg2 = 0 ; | |
5280 | int result; | |
5281 | wxPoint temp2 ; | |
5282 | PyObject * obj0 = 0 ; | |
5283 | PyObject * obj1 = 0 ; | |
5284 | char *kwnames[] = { | |
5285 | (char *) "self",(char *) "pt", NULL | |
5286 | }; | |
5287 | ||
5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
5289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5290 | { | |
5291 | arg2 = &temp2; | |
5292 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5293 | } | |
5294 | { | |
5295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5296 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5297 | ||
5298 | wxPyEndAllowThreads(__tstate); | |
5299 | if (PyErr_Occurred()) SWIG_fail; | |
5300 | } | |
8edf1c75 | 5301 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5302 | return resultobj; |
5303 | fail: | |
5304 | return NULL; | |
5305 | } | |
5306 | ||
5307 | ||
5308 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5309 | PyObject *resultobj; | |
5310 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5311 | wxRect *arg2 = 0 ; | |
5312 | int result; | |
5313 | wxRect temp2 ; | |
5314 | PyObject * obj0 = 0 ; | |
5315 | PyObject * obj1 = 0 ; | |
5316 | char *kwnames[] = { | |
5317 | (char *) "self",(char *) "rect", NULL | |
5318 | }; | |
5319 | ||
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
5321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5322 | { | |
5323 | arg2 = &temp2; | |
5324 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5325 | } | |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
8edf1c75 | 5333 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5334 | return resultobj; |
5335 | fail: | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
5340 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject *resultobj; | |
5342 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5343 | int arg2 ; |
5344 | int arg3 ; | |
5345 | int arg4 ; | |
5346 | int arg5 ; | |
d14a1e28 RD |
5347 | int result; |
5348 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5349 | PyObject * obj1 = 0 ; |
5350 | PyObject * obj2 = 0 ; | |
5351 | PyObject * obj3 = 0 ; | |
5352 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5353 | char *kwnames[] = { |
5354 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5355 | }; | |
5356 | ||
8edf1c75 | 5357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5359 | { |
5360 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5361 | if (PyErr_Occurred()) SWIG_fail; | |
5362 | } | |
5363 | { | |
5364 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | { | |
5368 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
5371 | { | |
5372 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5373 | if (PyErr_Occurred()) SWIG_fail; | |
5374 | } | |
d14a1e28 RD |
5375 | { |
5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5377 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5378 | ||
5379 | wxPyEndAllowThreads(__tstate); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
8edf1c75 | 5382 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5383 | return resultobj; |
5384 | fail: | |
5385 | return NULL; | |
5386 | } | |
5387 | ||
5388 | ||
5389 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5390 | PyObject *resultobj; | |
5391 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5392 | wxRect result; | |
5393 | PyObject * obj0 = 0 ; | |
5394 | char *kwnames[] = { | |
5395 | (char *) "self", NULL | |
5396 | }; | |
5397 | ||
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
5399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5400 | { | |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5402 | result = (arg1)->GetBox(); | |
5403 | ||
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) SWIG_fail; | |
5406 | } | |
5407 | { | |
5408 | wxRect * resultptr; | |
5409 | resultptr = new wxRect((wxRect &) result); | |
5410 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5411 | } | |
5412 | return resultobj; | |
5413 | fail: | |
5414 | return NULL; | |
5415 | } | |
5416 | ||
5417 | ||
5418 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5419 | PyObject *resultobj; | |
5420 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5421 | int arg2 ; |
5422 | int arg3 ; | |
5423 | int arg4 ; | |
5424 | int arg5 ; | |
d14a1e28 RD |
5425 | bool result; |
5426 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5427 | PyObject * obj1 = 0 ; |
5428 | PyObject * obj2 = 0 ; | |
5429 | PyObject * obj3 = 0 ; | |
5430 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5431 | char *kwnames[] = { |
5432 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5433 | }; | |
5434 | ||
8edf1c75 | 5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5437 | { |
5438 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
5441 | { | |
5442 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
5444 | } | |
5445 | { | |
5446 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5447 | if (PyErr_Occurred()) SWIG_fail; | |
5448 | } | |
5449 | { | |
5450 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | } | |
d14a1e28 RD |
5453 | { |
5454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5455 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5456 | ||
5457 | wxPyEndAllowThreads(__tstate); | |
5458 | if (PyErr_Occurred()) SWIG_fail; | |
5459 | } | |
4e760a36 | 5460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5461 | return resultobj; |
5462 | fail: | |
5463 | return NULL; | |
5464 | } | |
5465 | ||
5466 | ||
5467 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5468 | PyObject *resultobj; | |
5469 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5470 | wxRect *arg2 = 0 ; | |
5471 | bool result; | |
5472 | wxRect temp2 ; | |
5473 | PyObject * obj0 = 0 ; | |
5474 | PyObject * obj1 = 0 ; | |
5475 | char *kwnames[] = { | |
5476 | (char *) "self",(char *) "rect", NULL | |
5477 | }; | |
5478 | ||
5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5481 | { | |
5482 | arg2 = &temp2; | |
5483 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5484 | } | |
5485 | { | |
5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5487 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5488 | ||
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
4e760a36 | 5492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5493 | return resultobj; |
5494 | fail: | |
5495 | return NULL; | |
5496 | } | |
5497 | ||
5498 | ||
5499 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5500 | PyObject *resultobj; | |
5501 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5502 | wxRegion *arg2 = 0 ; | |
5503 | bool result; | |
5504 | PyObject * obj0 = 0 ; | |
5505 | PyObject * obj1 = 0 ; | |
5506 | char *kwnames[] = { | |
5507 | (char *) "self",(char *) "region", NULL | |
5508 | }; | |
5509 | ||
5510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5513 | if (arg2 == NULL) { | |
5514 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5515 | } | |
5516 | { | |
5517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5518 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5519 | ||
5520 | wxPyEndAllowThreads(__tstate); | |
5521 | if (PyErr_Occurred()) SWIG_fail; | |
5522 | } | |
4e760a36 | 5523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5524 | return resultobj; |
5525 | fail: | |
5526 | return NULL; | |
5527 | } | |
5528 | ||
5529 | ||
5530 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5531 | PyObject *resultobj; | |
5532 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5533 | bool result; | |
5534 | PyObject * obj0 = 0 ; | |
5535 | char *kwnames[] = { | |
5536 | (char *) "self", NULL | |
5537 | }; | |
5538 | ||
5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5541 | { | |
5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5543 | result = (bool)(arg1)->IsEmpty(); | |
5544 | ||
5545 | wxPyEndAllowThreads(__tstate); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | } | |
4e760a36 | 5548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5549 | return resultobj; |
5550 | fail: | |
5551 | return NULL; | |
5552 | } | |
5553 | ||
5554 | ||
5555 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5556 | PyObject *resultobj; | |
5557 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5558 | int arg2 ; |
5559 | int arg3 ; | |
5560 | int arg4 ; | |
5561 | int arg5 ; | |
d14a1e28 RD |
5562 | bool result; |
5563 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5564 | PyObject * obj1 = 0 ; |
5565 | PyObject * obj2 = 0 ; | |
5566 | PyObject * obj3 = 0 ; | |
5567 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5568 | char *kwnames[] = { |
5569 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5570 | }; | |
5571 | ||
8edf1c75 | 5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5574 | { |
5575 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5576 | if (PyErr_Occurred()) SWIG_fail; | |
5577 | } | |
5578 | { | |
5579 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5580 | if (PyErr_Occurred()) SWIG_fail; | |
5581 | } | |
5582 | { | |
5583 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5584 | if (PyErr_Occurred()) SWIG_fail; | |
5585 | } | |
5586 | { | |
5587 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
d14a1e28 RD |
5590 | { |
5591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5592 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5593 | ||
5594 | wxPyEndAllowThreads(__tstate); | |
5595 | if (PyErr_Occurred()) SWIG_fail; | |
5596 | } | |
4e760a36 | 5597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5598 | return resultobj; |
5599 | fail: | |
5600 | return NULL; | |
5601 | } | |
5602 | ||
5603 | ||
5604 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5605 | PyObject *resultobj; | |
5606 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5607 | wxRect *arg2 = 0 ; | |
5608 | bool result; | |
5609 | wxRect temp2 ; | |
5610 | PyObject * obj0 = 0 ; | |
5611 | PyObject * obj1 = 0 ; | |
5612 | char *kwnames[] = { | |
5613 | (char *) "self",(char *) "rect", NULL | |
5614 | }; | |
5615 | ||
5616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5618 | { | |
5619 | arg2 = &temp2; | |
5620 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5621 | } | |
5622 | { | |
5623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5624 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5625 | ||
5626 | wxPyEndAllowThreads(__tstate); | |
5627 | if (PyErr_Occurred()) SWIG_fail; | |
5628 | } | |
4e760a36 | 5629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5630 | return resultobj; |
5631 | fail: | |
5632 | return NULL; | |
5633 | } | |
5634 | ||
5635 | ||
5636 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5637 | PyObject *resultobj; | |
5638 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5639 | wxRegion *arg2 = 0 ; | |
5640 | bool result; | |
5641 | PyObject * obj0 = 0 ; | |
5642 | PyObject * obj1 = 0 ; | |
5643 | char *kwnames[] = { | |
5644 | (char *) "self",(char *) "region", NULL | |
5645 | }; | |
5646 | ||
5647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5649 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5650 | if (arg2 == NULL) { | |
5651 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5652 | } | |
5653 | { | |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5656 | ||
5657 | wxPyEndAllowThreads(__tstate); | |
5658 | if (PyErr_Occurred()) SWIG_fail; | |
5659 | } | |
4e760a36 | 5660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5661 | return resultobj; |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
5667 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5668 | PyObject *resultobj; | |
5669 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5670 | int arg2 ; |
5671 | int arg3 ; | |
5672 | int arg4 ; | |
5673 | int arg5 ; | |
d14a1e28 RD |
5674 | bool result; |
5675 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5676 | PyObject * obj1 = 0 ; |
5677 | PyObject * obj2 = 0 ; | |
5678 | PyObject * obj3 = 0 ; | |
5679 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5680 | char *kwnames[] = { |
5681 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5682 | }; | |
5683 | ||
8edf1c75 | 5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5686 | { |
5687 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
5690 | { | |
5691 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5692 | if (PyErr_Occurred()) SWIG_fail; | |
5693 | } | |
5694 | { | |
5695 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5696 | if (PyErr_Occurred()) SWIG_fail; | |
5697 | } | |
5698 | { | |
5699 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5700 | if (PyErr_Occurred()) SWIG_fail; | |
5701 | } | |
d14a1e28 RD |
5702 | { |
5703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5704 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5705 | ||
5706 | wxPyEndAllowThreads(__tstate); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
4e760a36 | 5709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5710 | return resultobj; |
5711 | fail: | |
5712 | return NULL; | |
5713 | } | |
5714 | ||
5715 | ||
5716 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject *resultobj; | |
5718 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5719 | wxRect *arg2 = 0 ; | |
5720 | bool result; | |
5721 | wxRect temp2 ; | |
5722 | PyObject * obj0 = 0 ; | |
5723 | PyObject * obj1 = 0 ; | |
5724 | char *kwnames[] = { | |
5725 | (char *) "self",(char *) "rect", NULL | |
5726 | }; | |
5727 | ||
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5730 | { | |
5731 | arg2 = &temp2; | |
5732 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5733 | } | |
5734 | { | |
5735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5736 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5737 | ||
5738 | wxPyEndAllowThreads(__tstate); | |
5739 | if (PyErr_Occurred()) SWIG_fail; | |
5740 | } | |
4e760a36 | 5741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5742 | return resultobj; |
5743 | fail: | |
5744 | return NULL; | |
5745 | } | |
5746 | ||
5747 | ||
5748 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5749 | PyObject *resultobj; | |
5750 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5751 | wxRegion *arg2 = 0 ; | |
5752 | bool result; | |
5753 | PyObject * obj0 = 0 ; | |
5754 | PyObject * obj1 = 0 ; | |
5755 | char *kwnames[] = { | |
5756 | (char *) "self",(char *) "region", NULL | |
5757 | }; | |
5758 | ||
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5761 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5762 | if (arg2 == NULL) { | |
5763 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5764 | } | |
5765 | { | |
5766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5767 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5768 | ||
5769 | wxPyEndAllowThreads(__tstate); | |
5770 | if (PyErr_Occurred()) SWIG_fail; | |
5771 | } | |
4e760a36 | 5772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5773 | return resultobj; |
5774 | fail: | |
5775 | return NULL; | |
5776 | } | |
5777 | ||
5778 | ||
5779 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject *resultobj; | |
5781 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5782 | int arg2 ; |
5783 | int arg3 ; | |
5784 | int arg4 ; | |
5785 | int arg5 ; | |
d14a1e28 RD |
5786 | bool result; |
5787 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5788 | PyObject * obj1 = 0 ; |
5789 | PyObject * obj2 = 0 ; | |
5790 | PyObject * obj3 = 0 ; | |
5791 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5792 | char *kwnames[] = { |
5793 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5794 | }; | |
5795 | ||
8edf1c75 | 5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5798 | { |
5799 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
5801 | } | |
5802 | { | |
5803 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5804 | if (PyErr_Occurred()) SWIG_fail; | |
5805 | } | |
5806 | { | |
5807 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5808 | if (PyErr_Occurred()) SWIG_fail; | |
5809 | } | |
5810 | { | |
5811 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5812 | if (PyErr_Occurred()) SWIG_fail; | |
5813 | } | |
d14a1e28 RD |
5814 | { |
5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5816 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5817 | ||
5818 | wxPyEndAllowThreads(__tstate); | |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
5820 | } | |
4e760a36 | 5821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5822 | return resultobj; |
5823 | fail: | |
5824 | return NULL; | |
5825 | } | |
5826 | ||
5827 | ||
5828 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject *resultobj; | |
5830 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5831 | wxRect *arg2 = 0 ; | |
5832 | bool result; | |
5833 | wxRect temp2 ; | |
5834 | PyObject * obj0 = 0 ; | |
5835 | PyObject * obj1 = 0 ; | |
5836 | char *kwnames[] = { | |
5837 | (char *) "self",(char *) "rect", NULL | |
5838 | }; | |
5839 | ||
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5842 | { | |
5843 | arg2 = &temp2; | |
5844 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5845 | } | |
5846 | { | |
5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5848 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5849 | ||
5850 | wxPyEndAllowThreads(__tstate); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
4e760a36 | 5853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5854 | return resultobj; |
5855 | fail: | |
5856 | return NULL; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject *resultobj; | |
5862 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5863 | wxRegion *arg2 = 0 ; | |
5864 | bool result; | |
5865 | PyObject * obj0 = 0 ; | |
5866 | PyObject * obj1 = 0 ; | |
5867 | char *kwnames[] = { | |
5868 | (char *) "self",(char *) "region", NULL | |
5869 | }; | |
5870 | ||
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5873 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5874 | if (arg2 == NULL) { | |
5875 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5876 | } | |
5877 | { | |
5878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5879 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5880 | ||
5881 | wxPyEndAllowThreads(__tstate); | |
5882 | if (PyErr_Occurred()) SWIG_fail; | |
5883 | } | |
4e760a36 | 5884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5885 | return resultobj; |
5886 | fail: | |
5887 | return NULL; | |
5888 | } | |
5889 | ||
5890 | ||
5891 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5892 | PyObject *resultobj; | |
5893 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5894 | SwigValueWrapper< wxBitmap > result; | |
5895 | PyObject * obj0 = 0 ; | |
5896 | char *kwnames[] = { | |
5897 | (char *) "self", NULL | |
5898 | }; | |
5899 | ||
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5902 | { | |
5903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5904 | result = (arg1)->ConvertToBitmap(); | |
5905 | ||
5906 | wxPyEndAllowThreads(__tstate); | |
5907 | if (PyErr_Occurred()) SWIG_fail; | |
5908 | } | |
5909 | { | |
5910 | wxBitmap * resultptr; | |
5911 | resultptr = new wxBitmap((wxBitmap &) result); | |
5912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5913 | } | |
5914 | return resultobj; | |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
5920 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5921 | PyObject *resultobj; | |
5922 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5923 | wxBitmap *arg2 = 0 ; | |
5924 | wxColour const &arg3_defvalue = wxNullColour ; | |
5925 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5926 | int arg4 = (int) 0 ; | |
5927 | bool result; | |
5928 | wxColour temp3 ; | |
5929 | PyObject * obj0 = 0 ; | |
5930 | PyObject * obj1 = 0 ; | |
5931 | PyObject * obj2 = 0 ; | |
8edf1c75 | 5932 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5933 | char *kwnames[] = { |
5934 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5935 | }; | |
5936 | ||
8edf1c75 | 5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5939 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5940 | if (arg2 == NULL) { | |
5941 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5942 | } | |
5943 | if (obj2) { | |
5944 | { | |
5945 | arg3 = &temp3; | |
5946 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5947 | } | |
5948 | } | |
8edf1c75 RD |
5949 | if (obj3) { |
5950 | { | |
5951 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5952 | if (PyErr_Occurred()) SWIG_fail; | |
5953 | } | |
5954 | } | |
d14a1e28 RD |
5955 | { |
5956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5957 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5958 | ||
5959 | wxPyEndAllowThreads(__tstate); | |
5960 | if (PyErr_Occurred()) SWIG_fail; | |
5961 | } | |
4e760a36 | 5962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5963 | return resultobj; |
5964 | fail: | |
5965 | return NULL; | |
5966 | } | |
5967 | ||
5968 | ||
5969 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5970 | PyObject *obj; | |
5971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5972 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5973 | Py_INCREF(obj); | |
5974 | return Py_BuildValue((char *)""); | |
5975 | } | |
5976 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5977 | PyObject *resultobj; | |
5978 | wxRegion *arg1 = 0 ; | |
5979 | wxRegionIterator *result; | |
5980 | PyObject * obj0 = 0 ; | |
5981 | char *kwnames[] = { | |
5982 | (char *) "region", NULL | |
5983 | }; | |
5984 | ||
5985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5987 | if (arg1 == NULL) { | |
5988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5989 | } | |
5990 | { | |
5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5992 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5993 | ||
5994 | wxPyEndAllowThreads(__tstate); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
5996 | } | |
5997 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5998 | return resultobj; | |
5999 | fail: | |
6000 | return NULL; | |
6001 | } | |
6002 | ||
6003 | ||
6004 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6005 | PyObject *resultobj; | |
6006 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | char *kwnames[] = { | |
6009 | (char *) "self", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
6013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6014 | { | |
6015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6016 | delete arg1; | |
6017 | ||
6018 | wxPyEndAllowThreads(__tstate); | |
6019 | if (PyErr_Occurred()) SWIG_fail; | |
6020 | } | |
6021 | Py_INCREF(Py_None); resultobj = Py_None; | |
6022 | return resultobj; | |
6023 | fail: | |
6024 | return NULL; | |
6025 | } | |
6026 | ||
6027 | ||
6028 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6029 | PyObject *resultobj; | |
6030 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6031 | int result; |
d14a1e28 RD |
6032 | PyObject * obj0 = 0 ; |
6033 | char *kwnames[] = { | |
6034 | (char *) "self", NULL | |
6035 | }; | |
6036 | ||
6037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
6038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6039 | { | |
6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6041 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
6042 | |
6043 | wxPyEndAllowThreads(__tstate); | |
6044 | if (PyErr_Occurred()) SWIG_fail; | |
6045 | } | |
8edf1c75 | 6046 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6047 | return resultobj; |
6048 | fail: | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
6053 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6054 | PyObject *resultobj; | |
6055 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6056 | int result; |
d14a1e28 RD |
6057 | PyObject * obj0 = 0 ; |
6058 | char *kwnames[] = { | |
6059 | (char *) "self", NULL | |
6060 | }; | |
6061 | ||
6062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
6063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6064 | { | |
6065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6066 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
6067 | |
6068 | wxPyEndAllowThreads(__tstate); | |
6069 | if (PyErr_Occurred()) SWIG_fail; | |
6070 | } | |
8edf1c75 | 6071 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6072 | return resultobj; |
6073 | fail: | |
6074 | return NULL; | |
6075 | } | |
6076 | ||
6077 | ||
6078 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6079 | PyObject *resultobj; | |
6080 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6081 | int result; |
d14a1e28 RD |
6082 | PyObject * obj0 = 0 ; |
6083 | char *kwnames[] = { | |
6084 | (char *) "self", NULL | |
6085 | }; | |
6086 | ||
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
6088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6089 | { | |
6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6091 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
6092 | |
6093 | wxPyEndAllowThreads(__tstate); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
8edf1c75 | 6096 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6097 | return resultobj; |
6098 | fail: | |
6099 | return NULL; | |
6100 | } | |
6101 | ||
6102 | ||
6103 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6104 | PyObject *resultobj; | |
6105 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6106 | int result; |
d14a1e28 RD |
6107 | PyObject * obj0 = 0 ; |
6108 | char *kwnames[] = { | |
6109 | (char *) "self", NULL | |
6110 | }; | |
6111 | ||
6112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
6113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6114 | { | |
6115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6116 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
6117 | |
6118 | wxPyEndAllowThreads(__tstate); | |
6119 | if (PyErr_Occurred()) SWIG_fail; | |
6120 | } | |
8edf1c75 | 6121 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6122 | return resultobj; |
6123 | fail: | |
6124 | return NULL; | |
6125 | } | |
6126 | ||
6127 | ||
6128 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6129 | PyObject *resultobj; | |
6130 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6131 | int result; |
d14a1e28 RD |
6132 | PyObject * obj0 = 0 ; |
6133 | char *kwnames[] = { | |
6134 | (char *) "self", NULL | |
6135 | }; | |
6136 | ||
6137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
6138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6139 | { | |
6140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6141 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
6142 | |
6143 | wxPyEndAllowThreads(__tstate); | |
6144 | if (PyErr_Occurred()) SWIG_fail; | |
6145 | } | |
8edf1c75 | 6146 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6147 | return resultobj; |
6148 | fail: | |
6149 | return NULL; | |
6150 | } | |
6151 | ||
6152 | ||
6153 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6154 | PyObject *resultobj; | |
6155 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6156 | int result; |
d14a1e28 RD |
6157 | PyObject * obj0 = 0 ; |
6158 | char *kwnames[] = { | |
6159 | (char *) "self", NULL | |
6160 | }; | |
6161 | ||
6162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
6163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6164 | { | |
6165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6166 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
6167 | |
6168 | wxPyEndAllowThreads(__tstate); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
8edf1c75 | 6171 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6172 | return resultobj; |
6173 | fail: | |
6174 | return NULL; | |
6175 | } | |
6176 | ||
6177 | ||
6178 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6179 | PyObject *resultobj; | |
6180 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6181 | wxRect result; | |
6182 | PyObject * obj0 = 0 ; | |
6183 | char *kwnames[] = { | |
6184 | (char *) "self", NULL | |
6185 | }; | |
6186 | ||
6187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
6188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6189 | { | |
6190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6191 | result = (arg1)->GetRect(); | |
6192 | ||
6193 | wxPyEndAllowThreads(__tstate); | |
6194 | if (PyErr_Occurred()) SWIG_fail; | |
6195 | } | |
6196 | { | |
6197 | wxRect * resultptr; | |
6198 | resultptr = new wxRect((wxRect &) result); | |
6199 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
6200 | } | |
6201 | return resultobj; | |
6202 | fail: | |
6203 | return NULL; | |
6204 | } | |
6205 | ||
6206 | ||
6207 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject *resultobj; | |
6209 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6210 | bool result; | |
6211 | PyObject * obj0 = 0 ; | |
6212 | char *kwnames[] = { | |
6213 | (char *) "self", NULL | |
6214 | }; | |
6215 | ||
6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
6217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6218 | { | |
6219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6220 | result = (bool)(arg1)->HaveRects(); | |
6221 | ||
6222 | wxPyEndAllowThreads(__tstate); | |
6223 | if (PyErr_Occurred()) SWIG_fail; | |
6224 | } | |
4e760a36 | 6225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6226 | return resultobj; |
6227 | fail: | |
6228 | return NULL; | |
6229 | } | |
6230 | ||
6231 | ||
6232 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6233 | PyObject *resultobj; | |
6234 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6235 | PyObject * obj0 = 0 ; | |
6236 | char *kwnames[] = { | |
6237 | (char *) "self", NULL | |
6238 | }; | |
6239 | ||
6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
6241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6242 | { | |
6243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6244 | (arg1)->Reset(); | |
6245 | ||
6246 | wxPyEndAllowThreads(__tstate); | |
6247 | if (PyErr_Occurred()) SWIG_fail; | |
6248 | } | |
6249 | Py_INCREF(Py_None); resultobj = Py_None; | |
6250 | return resultobj; | |
6251 | fail: | |
6252 | return NULL; | |
6253 | } | |
6254 | ||
6255 | ||
6256 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6257 | PyObject *resultobj; | |
6258 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6259 | PyObject * obj0 = 0 ; | |
6260 | char *kwnames[] = { | |
6261 | (char *) "self", NULL | |
6262 | }; | |
6263 | ||
6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
6265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6266 | { | |
6267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6268 | wxRegionIterator_Next(arg1); | |
6269 | ||
6270 | wxPyEndAllowThreads(__tstate); | |
6271 | if (PyErr_Occurred()) SWIG_fail; | |
6272 | } | |
6273 | Py_INCREF(Py_None); resultobj = Py_None; | |
6274 | return resultobj; | |
6275 | fail: | |
6276 | return NULL; | |
6277 | } | |
6278 | ||
6279 | ||
6280 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6281 | PyObject *resultobj; | |
6282 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6283 | bool result; | |
6284 | PyObject * obj0 = 0 ; | |
6285 | char *kwnames[] = { | |
6286 | (char *) "self", NULL | |
6287 | }; | |
6288 | ||
6289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
6290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6291 | { | |
6292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6293 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6294 | ||
6295 | wxPyEndAllowThreads(__tstate); | |
6296 | if (PyErr_Occurred()) SWIG_fail; | |
6297 | } | |
4e760a36 | 6298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6299 | return resultobj; |
6300 | fail: | |
6301 | return NULL; | |
6302 | } | |
6303 | ||
6304 | ||
6305 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
6306 | PyObject *obj; | |
6307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6308 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6309 | Py_INCREF(obj); | |
6310 | return Py_BuildValue((char *)""); | |
6311 | } | |
6312 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6313 | PyObject *resultobj; | |
6314 | wxNativeFontInfo *result; | |
6315 | char *kwnames[] = { | |
6316 | NULL | |
6317 | }; | |
6318 | ||
6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6320 | { | |
6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6322 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6323 | ||
6324 | wxPyEndAllowThreads(__tstate); | |
6325 | if (PyErr_Occurred()) SWIG_fail; | |
6326 | } | |
6327 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
6328 | return resultobj; | |
6329 | fail: | |
6330 | return NULL; | |
6331 | } | |
6332 | ||
6333 | ||
6334 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6335 | PyObject *resultobj; | |
6336 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | char *kwnames[] = { | |
6339 | (char *) "self", NULL | |
6340 | }; | |
6341 | ||
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
6343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6344 | { | |
6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6346 | delete arg1; | |
6347 | ||
6348 | wxPyEndAllowThreads(__tstate); | |
6349 | if (PyErr_Occurred()) SWIG_fail; | |
6350 | } | |
6351 | Py_INCREF(Py_None); resultobj = Py_None; | |
6352 | return resultobj; | |
6353 | fail: | |
6354 | return NULL; | |
6355 | } | |
6356 | ||
6357 | ||
6358 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6359 | PyObject *resultobj; | |
6360 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6361 | PyObject * obj0 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "self", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",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 | (arg1)->Init(); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | Py_INCREF(Py_None); resultobj = Py_None; | |
6376 | return resultobj; | |
6377 | fail: | |
6378 | return NULL; | |
6379 | } | |
6380 | ||
6381 | ||
6382 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6383 | PyObject *resultobj; | |
6384 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6385 | wxFont *arg2 = 0 ; | |
6386 | PyObject * obj0 = 0 ; | |
6387 | PyObject * obj1 = 0 ; | |
6388 | char *kwnames[] = { | |
6389 | (char *) "self",(char *) "font", NULL | |
6390 | }; | |
6391 | ||
6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
6393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6394 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6395 | if (arg2 == NULL) { | |
6396 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6397 | } | |
6398 | { | |
6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6400 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6401 | ||
6402 | wxPyEndAllowThreads(__tstate); | |
6403 | if (PyErr_Occurred()) SWIG_fail; | |
6404 | } | |
6405 | Py_INCREF(Py_None); resultobj = Py_None; | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj; | |
6414 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6415 | int result; | |
6416 | PyObject * obj0 = 0 ; | |
6417 | char *kwnames[] = { | |
6418 | (char *) "self", NULL | |
6419 | }; | |
6420 | ||
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
6422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
8edf1c75 | 6430 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6431 | return resultobj; |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
6437 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6438 | PyObject *resultobj; | |
6439 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6440 | int result; | |
6441 | PyObject * obj0 = 0 ; | |
6442 | char *kwnames[] = { | |
6443 | (char *) "self", NULL | |
6444 | }; | |
6445 | ||
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6448 | { | |
6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6450 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6451 | ||
6452 | wxPyEndAllowThreads(__tstate); | |
6453 | if (PyErr_Occurred()) SWIG_fail; | |
6454 | } | |
8edf1c75 | 6455 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6456 | return resultobj; |
6457 | fail: | |
6458 | return NULL; | |
6459 | } | |
6460 | ||
6461 | ||
6462 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6463 | PyObject *resultobj; | |
6464 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6465 | int result; | |
6466 | PyObject * obj0 = 0 ; | |
6467 | char *kwnames[] = { | |
6468 | (char *) "self", NULL | |
6469 | }; | |
6470 | ||
6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
8edf1c75 | 6480 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6481 | return resultobj; |
6482 | fail: | |
6483 | return NULL; | |
6484 | } | |
6485 | ||
6486 | ||
6487 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6488 | PyObject *resultobj; | |
6489 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6490 | bool result; | |
6491 | PyObject * obj0 = 0 ; | |
6492 | char *kwnames[] = { | |
6493 | (char *) "self", NULL | |
6494 | }; | |
6495 | ||
6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6498 | { | |
6499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6500 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6501 | ||
6502 | wxPyEndAllowThreads(__tstate); | |
6503 | if (PyErr_Occurred()) SWIG_fail; | |
6504 | } | |
4e760a36 | 6505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6506 | return resultobj; |
6507 | fail: | |
6508 | return NULL; | |
6509 | } | |
6510 | ||
6511 | ||
6512 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6513 | PyObject *resultobj; | |
6514 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6515 | wxString result; | |
6516 | PyObject * obj0 = 0 ; | |
6517 | char *kwnames[] = { | |
6518 | (char *) "self", NULL | |
6519 | }; | |
6520 | ||
6521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
6522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6523 | { | |
6524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6525 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6526 | ||
6527 | wxPyEndAllowThreads(__tstate); | |
6528 | if (PyErr_Occurred()) SWIG_fail; | |
6529 | } | |
6530 | { | |
6531 | #if wxUSE_UNICODE | |
6532 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6533 | #else | |
6534 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6535 | #endif | |
6536 | } | |
6537 | return resultobj; | |
6538 | fail: | |
6539 | return NULL; | |
6540 | } | |
6541 | ||
6542 | ||
6543 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6544 | PyObject *resultobj; | |
6545 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6546 | int result; | |
6547 | PyObject * obj0 = 0 ; | |
6548 | char *kwnames[] = { | |
6549 | (char *) "self", NULL | |
6550 | }; | |
6551 | ||
6552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6554 | { | |
6555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6556 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6557 | ||
6558 | wxPyEndAllowThreads(__tstate); | |
6559 | if (PyErr_Occurred()) SWIG_fail; | |
6560 | } | |
8edf1c75 | 6561 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6562 | return resultobj; |
6563 | fail: | |
6564 | return NULL; | |
6565 | } | |
6566 | ||
6567 | ||
6568 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6569 | PyObject *resultobj; | |
6570 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6571 | int result; | |
6572 | PyObject * obj0 = 0 ; | |
6573 | char *kwnames[] = { | |
6574 | (char *) "self", NULL | |
6575 | }; | |
6576 | ||
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6579 | { | |
6580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6581 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6582 | ||
6583 | wxPyEndAllowThreads(__tstate); | |
6584 | if (PyErr_Occurred()) SWIG_fail; | |
6585 | } | |
8edf1c75 | 6586 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6587 | return resultobj; |
6588 | fail: | |
6589 | return NULL; | |
6590 | } | |
6591 | ||
6592 | ||
6593 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6594 | PyObject *resultobj; | |
6595 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6596 | int arg2 ; | |
6597 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6598 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6599 | char *kwnames[] = { |
6600 | (char *) "self",(char *) "pointsize", NULL | |
6601 | }; | |
6602 | ||
8edf1c75 | 6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
6604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6605 | { | |
8edf1c75 RD |
6606 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
6607 | if (PyErr_Occurred()) SWIG_fail; | |
6608 | } | |
6609 | { | |
6610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6611 | (arg1)->SetPointSize(arg2); | |
d14a1e28 RD |
6612 | |
6613 | wxPyEndAllowThreads(__tstate); | |
6614 | if (PyErr_Occurred()) SWIG_fail; | |
6615 | } | |
6616 | Py_INCREF(Py_None); resultobj = Py_None; | |
6617 | return resultobj; | |
6618 | fail: | |
6619 | return NULL; | |
6620 | } | |
6621 | ||
6622 | ||
6623 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6624 | PyObject *resultobj; | |
6625 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6626 | int arg2 ; | |
6627 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6628 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6629 | char *kwnames[] = { |
6630 | (char *) "self",(char *) "style", NULL | |
6631 | }; | |
6632 | ||
8edf1c75 | 6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6635 | { |
6636 | arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1); | |
6637 | if (PyErr_Occurred()) SWIG_fail; | |
6638 | } | |
d14a1e28 RD |
6639 | { |
6640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6641 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6642 | ||
6643 | wxPyEndAllowThreads(__tstate); | |
6644 | if (PyErr_Occurred()) SWIG_fail; | |
6645 | } | |
6646 | Py_INCREF(Py_None); resultobj = Py_None; | |
6647 | return resultobj; | |
6648 | fail: | |
6649 | return NULL; | |
6650 | } | |
6651 | ||
6652 | ||
6653 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6654 | PyObject *resultobj; | |
6655 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6656 | int arg2 ; | |
6657 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6658 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6659 | char *kwnames[] = { |
6660 | (char *) "self",(char *) "weight", NULL | |
6661 | }; | |
6662 | ||
8edf1c75 | 6663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6665 | { |
6666 | arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1); | |
6667 | if (PyErr_Occurred()) SWIG_fail; | |
6668 | } | |
d14a1e28 RD |
6669 | { |
6670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6671 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6672 | ||
6673 | wxPyEndAllowThreads(__tstate); | |
6674 | if (PyErr_Occurred()) SWIG_fail; | |
6675 | } | |
6676 | Py_INCREF(Py_None); resultobj = Py_None; | |
6677 | return resultobj; | |
6678 | fail: | |
6679 | return NULL; | |
6680 | } | |
6681 | ||
6682 | ||
6683 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6684 | PyObject *resultobj; | |
6685 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6686 | bool arg2 ; | |
6687 | PyObject * obj0 = 0 ; | |
6688 | PyObject * obj1 = 0 ; | |
6689 | char *kwnames[] = { | |
6690 | (char *) "self",(char *) "underlined", NULL | |
6691 | }; | |
6692 | ||
6693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 6695 | { |
8edf1c75 | 6696 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
6697 | if (PyErr_Occurred()) SWIG_fail; |
6698 | } | |
d14a1e28 RD |
6699 | { |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | (arg1)->SetUnderlined(arg2); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | Py_INCREF(Py_None); resultobj = Py_None; | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
6713 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject *resultobj; | |
6715 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6716 | wxString arg2 ; | |
d14a1e28 RD |
6717 | PyObject * obj0 = 0 ; |
6718 | PyObject * obj1 = 0 ; | |
6719 | char *kwnames[] = { | |
6720 | (char *) "self",(char *) "facename", NULL | |
6721 | }; | |
6722 | ||
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
6725 | { |
6726 | wxString* sptr = wxString_in_helper(obj1); | |
6727 | if (sptr == NULL) SWIG_fail; | |
6728 | arg2 = *sptr; | |
6729 | delete sptr; | |
6730 | } | |
d14a1e28 RD |
6731 | { |
6732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6733 | (arg1)->SetFaceName(arg2); | |
6734 | ||
6735 | wxPyEndAllowThreads(__tstate); | |
6736 | if (PyErr_Occurred()) SWIG_fail; | |
6737 | } | |
6738 | Py_INCREF(Py_None); resultobj = Py_None; | |
6739 | return resultobj; | |
6740 | fail: | |
6741 | return NULL; | |
6742 | } | |
6743 | ||
6744 | ||
6745 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6746 | PyObject *resultobj; | |
6747 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6748 | int arg2 ; | |
6749 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6750 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6751 | char *kwnames[] = { |
6752 | (char *) "self",(char *) "family", NULL | |
6753 | }; | |
6754 | ||
8edf1c75 | 6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6757 | { |
6758 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
6759 | if (PyErr_Occurred()) SWIG_fail; | |
6760 | } | |
d14a1e28 RD |
6761 | { |
6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6763 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6764 | ||
6765 | wxPyEndAllowThreads(__tstate); | |
6766 | if (PyErr_Occurred()) SWIG_fail; | |
6767 | } | |
6768 | Py_INCREF(Py_None); resultobj = Py_None; | |
6769 | return resultobj; | |
6770 | fail: | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
6775 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject *resultobj; | |
6777 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6778 | int arg2 ; | |
6779 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6780 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6781 | char *kwnames[] = { |
6782 | (char *) "self",(char *) "encoding", NULL | |
6783 | }; | |
6784 | ||
8edf1c75 | 6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6787 | { |
6788 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
d14a1e28 RD |
6791 | { |
6792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6793 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6794 | ||
6795 | wxPyEndAllowThreads(__tstate); | |
6796 | if (PyErr_Occurred()) SWIG_fail; | |
6797 | } | |
6798 | Py_INCREF(Py_None); resultobj = Py_None; | |
6799 | return resultobj; | |
6800 | fail: | |
6801 | return NULL; | |
6802 | } | |
6803 | ||
6804 | ||
6805 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6806 | PyObject *resultobj; | |
6807 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6808 | wxString *arg2 = 0 ; | |
6809 | bool result; | |
423f194a | 6810 | bool temp2 = False ; |
d14a1e28 RD |
6811 | PyObject * obj0 = 0 ; |
6812 | PyObject * obj1 = 0 ; | |
6813 | char *kwnames[] = { | |
6814 | (char *) "self",(char *) "s", NULL | |
6815 | }; | |
6816 | ||
6817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6819 | { | |
6820 | arg2 = wxString_in_helper(obj1); | |
6821 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6822 | temp2 = True; |
d14a1e28 RD |
6823 | } |
6824 | { | |
6825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6826 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6827 | ||
6828 | wxPyEndAllowThreads(__tstate); | |
6829 | if (PyErr_Occurred()) SWIG_fail; | |
6830 | } | |
4e760a36 | 6831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6832 | { |
6833 | if (temp2) | |
6834 | delete arg2; | |
6835 | } | |
6836 | return resultobj; | |
6837 | fail: | |
6838 | { | |
6839 | if (temp2) | |
6840 | delete arg2; | |
6841 | } | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
6846 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject *resultobj; | |
6848 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6849 | wxString result; | |
6850 | PyObject * obj0 = 0 ; | |
6851 | char *kwnames[] = { | |
6852 | (char *) "self", NULL | |
6853 | }; | |
6854 | ||
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6857 | { | |
6858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6859 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6860 | ||
6861 | wxPyEndAllowThreads(__tstate); | |
6862 | if (PyErr_Occurred()) SWIG_fail; | |
6863 | } | |
6864 | { | |
6865 | #if wxUSE_UNICODE | |
6866 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6867 | #else | |
6868 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6869 | #endif | |
6870 | } | |
6871 | return resultobj; | |
6872 | fail: | |
6873 | return NULL; | |
6874 | } | |
6875 | ||
6876 | ||
6877 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6878 | PyObject *resultobj; | |
6879 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6880 | wxString result; | |
6881 | PyObject * obj0 = 0 ; | |
6882 | char *kwnames[] = { | |
6883 | (char *) "self", NULL | |
6884 | }; | |
6885 | ||
6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6888 | { | |
6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6890 | result = wxNativeFontInfo___str__(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_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject *resultobj; | |
6910 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6911 | wxString *arg2 = 0 ; | |
6912 | bool result; | |
423f194a | 6913 | bool temp2 = False ; |
d14a1e28 RD |
6914 | PyObject * obj0 = 0 ; |
6915 | PyObject * obj1 = 0 ; | |
6916 | char *kwnames[] = { | |
6917 | (char *) "self",(char *) "s", NULL | |
6918 | }; | |
6919 | ||
6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6922 | { | |
6923 | arg2 = wxString_in_helper(obj1); | |
6924 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6925 | temp2 = True; |
d14a1e28 RD |
6926 | } |
6927 | { | |
6928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6929 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6930 | ||
6931 | wxPyEndAllowThreads(__tstate); | |
6932 | if (PyErr_Occurred()) SWIG_fail; | |
6933 | } | |
4e760a36 | 6934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6935 | { |
6936 | if (temp2) | |
6937 | delete arg2; | |
6938 | } | |
6939 | return resultobj; | |
6940 | fail: | |
6941 | { | |
6942 | if (temp2) | |
6943 | delete arg2; | |
6944 | } | |
6945 | return NULL; | |
6946 | } | |
6947 | ||
6948 | ||
6949 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6950 | PyObject *resultobj; | |
6951 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6952 | wxString result; | |
6953 | PyObject * obj0 = 0 ; | |
6954 | char *kwnames[] = { | |
6955 | (char *) "self", NULL | |
6956 | }; | |
6957 | ||
6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6960 | { | |
6961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6962 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6963 | ||
6964 | wxPyEndAllowThreads(__tstate); | |
6965 | if (PyErr_Occurred()) SWIG_fail; | |
6966 | } | |
6967 | { | |
6968 | #if wxUSE_UNICODE | |
6969 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6970 | #else | |
6971 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6972 | #endif | |
6973 | } | |
6974 | return resultobj; | |
6975 | fail: | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
6980 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6981 | PyObject *obj; | |
6982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6983 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6984 | Py_INCREF(obj); | |
6985 | return Py_BuildValue((char *)""); | |
6986 | } | |
6987 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6988 | PyObject *resultobj; | |
6989 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 6990 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 6991 | bool temp2 = False ; |
d14a1e28 RD |
6992 | PyObject * obj0 = 0 ; |
6993 | PyObject * obj1 = 0 ; | |
6994 | char *kwnames[] = { | |
6995 | (char *) "self",(char *) "facename", NULL | |
6996 | }; | |
6997 | ||
6998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
7000 | { |
7001 | arg2 = wxString_in_helper(obj1); | |
7002 | if (arg2 == NULL) SWIG_fail; | |
7003 | temp2 = True; | |
7004 | } | |
d03fd34d | 7005 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
7006 | |
7007 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
7008 | { |
7009 | if (temp2) | |
7010 | delete arg2; | |
7011 | } | |
d14a1e28 RD |
7012 | return resultobj; |
7013 | fail: | |
f775c30d RD |
7014 | { |
7015 | if (temp2) | |
7016 | delete arg2; | |
7017 | } | |
d14a1e28 RD |
7018 | return NULL; |
7019 | } | |
7020 | ||
7021 | ||
7022 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7023 | PyObject *resultobj; | |
7024 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 7025 | wxString *result; |
d14a1e28 RD |
7026 | PyObject * obj0 = 0 ; |
7027 | char *kwnames[] = { | |
7028 | (char *) "self", NULL | |
7029 | }; | |
7030 | ||
7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
7032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 7033 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
7034 | |
7035 | { | |
7036 | #if wxUSE_UNICODE | |
d03fd34d | 7037 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 7038 | #else |
d03fd34d | 7039 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
7040 | #endif |
7041 | } | |
7042 | return resultobj; | |
7043 | fail: | |
7044 | return NULL; | |
7045 | } | |
7046 | ||
7047 | ||
7048 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7049 | PyObject *resultobj; | |
7050 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7051 | int arg2 ; | |
7052 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7053 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7054 | char *kwnames[] = { |
7055 | (char *) "self",(char *) "encoding", NULL | |
7056 | }; | |
7057 | ||
8edf1c75 | 7058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7060 | { |
7061 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
d14a1e28 RD |
7064 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
7065 | ||
7066 | Py_INCREF(Py_None); resultobj = Py_None; | |
7067 | return resultobj; | |
7068 | fail: | |
7069 | return NULL; | |
7070 | } | |
7071 | ||
7072 | ||
7073 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7074 | PyObject *resultobj; | |
7075 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7076 | int result; | |
7077 | PyObject * obj0 = 0 ; | |
7078 | char *kwnames[] = { | |
7079 | (char *) "self", NULL | |
7080 | }; | |
7081 | ||
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
7083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7084 | result = (int) ((arg1)->encoding); | |
7085 | ||
8edf1c75 | 7086 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7087 | return resultobj; |
7088 | fail: | |
7089 | return NULL; | |
7090 | } | |
7091 | ||
7092 | ||
7093 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7094 | PyObject *resultobj; | |
7095 | wxNativeEncodingInfo *result; | |
7096 | char *kwnames[] = { | |
7097 | NULL | |
7098 | }; | |
7099 | ||
7100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7101 | { | |
7102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7103 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7104 | ||
7105 | wxPyEndAllowThreads(__tstate); | |
7106 | if (PyErr_Occurred()) SWIG_fail; | |
7107 | } | |
7108 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
7109 | return resultobj; | |
7110 | fail: | |
7111 | return NULL; | |
7112 | } | |
7113 | ||
7114 | ||
7115 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7116 | PyObject *resultobj; | |
7117 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7118 | PyObject * obj0 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "self", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
7124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7125 | { | |
7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7127 | delete arg1; | |
7128 | ||
7129 | wxPyEndAllowThreads(__tstate); | |
7130 | if (PyErr_Occurred()) SWIG_fail; | |
7131 | } | |
7132 | Py_INCREF(Py_None); resultobj = Py_None; | |
7133 | return resultobj; | |
7134 | fail: | |
7135 | return NULL; | |
7136 | } | |
7137 | ||
7138 | ||
7139 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject *resultobj; | |
7141 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7142 | wxString *arg2 = 0 ; | |
7143 | bool result; | |
423f194a | 7144 | bool temp2 = False ; |
d14a1e28 RD |
7145 | PyObject * obj0 = 0 ; |
7146 | PyObject * obj1 = 0 ; | |
7147 | char *kwnames[] = { | |
7148 | (char *) "self",(char *) "s", NULL | |
7149 | }; | |
7150 | ||
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7153 | { | |
7154 | arg2 = wxString_in_helper(obj1); | |
7155 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7156 | temp2 = True; |
d14a1e28 RD |
7157 | } |
7158 | { | |
7159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7160 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7161 | ||
7162 | wxPyEndAllowThreads(__tstate); | |
7163 | if (PyErr_Occurred()) SWIG_fail; | |
7164 | } | |
4e760a36 | 7165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7166 | { |
7167 | if (temp2) | |
7168 | delete arg2; | |
7169 | } | |
7170 | return resultobj; | |
7171 | fail: | |
7172 | { | |
7173 | if (temp2) | |
7174 | delete arg2; | |
7175 | } | |
7176 | return NULL; | |
7177 | } | |
7178 | ||
7179 | ||
7180 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7181 | PyObject *resultobj; | |
7182 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7183 | wxString result; | |
7184 | PyObject * obj0 = 0 ; | |
7185 | char *kwnames[] = { | |
7186 | (char *) "self", NULL | |
7187 | }; | |
7188 | ||
7189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
7190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7191 | { | |
7192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7193 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7194 | ||
7195 | wxPyEndAllowThreads(__tstate); | |
7196 | if (PyErr_Occurred()) SWIG_fail; | |
7197 | } | |
7198 | { | |
7199 | #if wxUSE_UNICODE | |
7200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7201 | #else | |
7202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7203 | #endif | |
7204 | } | |
7205 | return resultobj; | |
7206 | fail: | |
7207 | return NULL; | |
7208 | } | |
7209 | ||
7210 | ||
7211 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
7212 | PyObject *obj; | |
7213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7214 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7215 | Py_INCREF(obj); | |
7216 | return Py_BuildValue((char *)""); | |
7217 | } | |
7218 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7219 | PyObject *resultobj; | |
7220 | int arg1 ; | |
7221 | wxNativeEncodingInfo *result; | |
8edf1c75 | 7222 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7223 | char *kwnames[] = { |
7224 | (char *) "encoding", NULL | |
7225 | }; | |
7226 | ||
8edf1c75 RD |
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
7228 | { | |
7229 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
7230 | if (PyErr_Occurred()) SWIG_fail; | |
7231 | } | |
d14a1e28 RD |
7232 | { |
7233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7234 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7235 | ||
7236 | wxPyEndAllowThreads(__tstate); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | } | |
7239 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
7246 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7247 | PyObject *resultobj; | |
7248 | wxNativeEncodingInfo *arg1 = 0 ; | |
7249 | bool result; | |
7250 | PyObject * obj0 = 0 ; | |
7251 | char *kwnames[] = { | |
7252 | (char *) "info", NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
7256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7257 | if (arg1 == NULL) { | |
7258 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7259 | } | |
7260 | { | |
7261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7262 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7263 | ||
7264 | wxPyEndAllowThreads(__tstate); | |
7265 | if (PyErr_Occurred()) SWIG_fail; | |
7266 | } | |
4e760a36 | 7267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7268 | return resultobj; |
7269 | fail: | |
7270 | return NULL; | |
7271 | } | |
7272 | ||
7273 | ||
7274 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7275 | PyObject *resultobj; | |
7276 | wxFontMapper *result; | |
7277 | char *kwnames[] = { | |
7278 | NULL | |
7279 | }; | |
7280 | ||
7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7282 | { | |
7283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7284 | result = (wxFontMapper *)new wxFontMapper(); | |
7285 | ||
7286 | wxPyEndAllowThreads(__tstate); | |
7287 | if (PyErr_Occurred()) SWIG_fail; | |
7288 | } | |
7289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
7290 | return resultobj; | |
7291 | fail: | |
7292 | return NULL; | |
7293 | } | |
7294 | ||
7295 | ||
7296 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7297 | PyObject *resultobj; | |
7298 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7299 | PyObject * obj0 = 0 ; | |
7300 | char *kwnames[] = { | |
7301 | (char *) "self", NULL | |
7302 | }; | |
7303 | ||
7304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
7305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7306 | { | |
7307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7308 | delete arg1; | |
7309 | ||
7310 | wxPyEndAllowThreads(__tstate); | |
7311 | if (PyErr_Occurred()) SWIG_fail; | |
7312 | } | |
7313 | Py_INCREF(Py_None); resultobj = Py_None; | |
7314 | return resultobj; | |
7315 | fail: | |
7316 | return NULL; | |
7317 | } | |
7318 | ||
7319 | ||
7320 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7321 | PyObject *resultobj; | |
7322 | wxFontMapper *result; | |
7323 | char *kwnames[] = { | |
7324 | NULL | |
7325 | }; | |
7326 | ||
7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7328 | { | |
7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7330 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7331 | ||
7332 | wxPyEndAllowThreads(__tstate); | |
7333 | if (PyErr_Occurred()) SWIG_fail; | |
7334 | } | |
7335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
7336 | return resultobj; | |
7337 | fail: | |
7338 | return NULL; | |
7339 | } | |
7340 | ||
7341 | ||
7342 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7343 | PyObject *resultobj; | |
7344 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7345 | wxFontMapper *result; | |
7346 | PyObject * obj0 = 0 ; | |
7347 | char *kwnames[] = { | |
7348 | (char *) "mapper", NULL | |
7349 | }; | |
7350 | ||
7351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
7352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7353 | { | |
7354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7355 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7356 | ||
7357 | wxPyEndAllowThreads(__tstate); | |
7358 | if (PyErr_Occurred()) SWIG_fail; | |
7359 | } | |
7360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
7361 | return resultobj; | |
7362 | fail: | |
7363 | return NULL; | |
7364 | } | |
7365 | ||
7366 | ||
7367 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7368 | PyObject *resultobj; | |
7369 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7370 | wxString *arg2 = 0 ; | |
423f194a | 7371 | bool arg3 = (bool) True ; |
d14a1e28 | 7372 | int result; |
423f194a | 7373 | bool temp2 = False ; |
d14a1e28 RD |
7374 | PyObject * obj0 = 0 ; |
7375 | PyObject * obj1 = 0 ; | |
7376 | PyObject * obj2 = 0 ; | |
7377 | char *kwnames[] = { | |
7378 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7379 | }; | |
7380 | ||
7381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7383 | { | |
7384 | arg2 = wxString_in_helper(obj1); | |
7385 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7386 | temp2 = True; |
d14a1e28 RD |
7387 | } |
7388 | if (obj2) { | |
83448d71 | 7389 | { |
8edf1c75 | 7390 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
7391 | if (PyErr_Occurred()) SWIG_fail; |
7392 | } | |
d14a1e28 RD |
7393 | } |
7394 | { | |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7397 | ||
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
8edf1c75 | 7401 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7402 | { |
7403 | if (temp2) | |
7404 | delete arg2; | |
7405 | } | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | { | |
7409 | if (temp2) | |
7410 | delete arg2; | |
7411 | } | |
7412 | return NULL; | |
7413 | } | |
7414 | ||
7415 | ||
7416 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7417 | PyObject *resultobj; | |
7418 | size_t result; | |
7419 | char *kwnames[] = { | |
7420 | NULL | |
7421 | }; | |
7422 | ||
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7424 | { | |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
8edf1c75 | 7431 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7432 | return resultobj; |
7433 | fail: | |
7434 | return NULL; | |
7435 | } | |
7436 | ||
7437 | ||
7438 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7439 | PyObject *resultobj; | |
7440 | size_t arg1 ; | |
7441 | int result; | |
7442 | PyObject * obj0 = 0 ; | |
7443 | char *kwnames[] = { | |
7444 | (char *) "n", NULL | |
7445 | }; | |
7446 | ||
7447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
83448d71 | 7448 | { |
8edf1c75 | 7449 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
83448d71 RD |
7450 | if (PyErr_Occurred()) SWIG_fail; |
7451 | } | |
d14a1e28 RD |
7452 | { |
7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7454 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7455 | ||
7456 | wxPyEndAllowThreads(__tstate); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | } | |
8edf1c75 | 7459 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7460 | return resultobj; |
7461 | fail: | |
7462 | return NULL; | |
7463 | } | |
7464 | ||
7465 | ||
7466 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7467 | PyObject *resultobj; | |
7468 | int arg1 ; | |
7469 | wxString result; | |
8edf1c75 | 7470 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7471 | char *kwnames[] = { |
7472 | (char *) "encoding", NULL | |
7473 | }; | |
7474 | ||
8edf1c75 RD |
7475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
7476 | { | |
7477 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
7478 | if (PyErr_Occurred()) SWIG_fail; | |
7479 | } | |
d14a1e28 RD |
7480 | { |
7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7482 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7483 | ||
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | { | |
7488 | #if wxUSE_UNICODE | |
7489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7490 | #else | |
7491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7492 | #endif | |
7493 | } | |
7494 | return resultobj; | |
7495 | fail: | |
7496 | return NULL; | |
7497 | } | |
7498 | ||
7499 | ||
7500 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7501 | PyObject *resultobj; | |
7502 | int arg1 ; | |
7503 | wxString result; | |
8edf1c75 | 7504 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7505 | char *kwnames[] = { |
7506 | (char *) "encoding", NULL | |
7507 | }; | |
7508 | ||
8edf1c75 RD |
7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
7510 | { | |
7511 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
7513 | } | |
d14a1e28 RD |
7514 | { |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | { | |
7522 | #if wxUSE_UNICODE | |
7523 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7524 | #else | |
7525 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7526 | #endif | |
7527 | } | |
7528 | return resultobj; | |
7529 | fail: | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
7534 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7535 | PyObject *resultobj; | |
7536 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7537 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7538 | PyObject * obj0 = 0 ; | |
7539 | PyObject * obj1 = 0 ; | |
7540 | char *kwnames[] = { | |
7541 | (char *) "self",(char *) "config", NULL | |
7542 | }; | |
7543 | ||
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7546 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7547 | { | |
7548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7549 | (arg1)->SetConfig(arg2); | |
7550 | ||
7551 | wxPyEndAllowThreads(__tstate); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | } | |
7554 | Py_INCREF(Py_None); resultobj = Py_None; | |
7555 | return resultobj; | |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
7561 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7562 | PyObject *resultobj; | |
7563 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7564 | wxString *arg2 = 0 ; | |
423f194a | 7565 | bool temp2 = False ; |
d14a1e28 RD |
7566 | PyObject * obj0 = 0 ; |
7567 | PyObject * obj1 = 0 ; | |
7568 | char *kwnames[] = { | |
7569 | (char *) "self",(char *) "prefix", NULL | |
7570 | }; | |
7571 | ||
7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
7573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7574 | { | |
7575 | arg2 = wxString_in_helper(obj1); | |
7576 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7577 | temp2 = True; |
d14a1e28 RD |
7578 | } |
7579 | { | |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | Py_INCREF(Py_None); resultobj = Py_None; | |
7587 | { | |
7588 | if (temp2) | |
7589 | delete arg2; | |
7590 | } | |
7591 | return resultobj; | |
7592 | fail: | |
7593 | { | |
7594 | if (temp2) | |
7595 | delete arg2; | |
7596 | } | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
7601 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7602 | PyObject *resultobj; | |
7603 | wxString result; | |
7604 | char *kwnames[] = { | |
7605 | NULL | |
7606 | }; | |
7607 | ||
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7609 | { | |
7610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7611 | result = wxFontMapper::GetDefaultConfigPath(); | |
7612 | ||
7613 | wxPyEndAllowThreads(__tstate); | |
7614 | if (PyErr_Occurred()) SWIG_fail; | |
7615 | } | |
7616 | { | |
7617 | #if wxUSE_UNICODE | |
7618 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7619 | #else | |
7620 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7621 | #endif | |
7622 | } | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
7629 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject *resultobj; | |
7631 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7632 | int arg2 ; | |
7633 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7634 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 7635 | bool arg4 = (bool) True ; |
d14a1e28 | 7636 | PyObject *result; |
423f194a | 7637 | bool temp3 = False ; |
d14a1e28 | 7638 | PyObject * obj0 = 0 ; |
8edf1c75 | 7639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7640 | PyObject * obj2 = 0 ; |
7641 | PyObject * obj3 = 0 ; | |
7642 | char *kwnames[] = { | |
7643 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7644 | }; | |
7645 | ||
8edf1c75 | 7646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7648 | { |
7649 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
d14a1e28 RD |
7652 | if (obj2) { |
7653 | { | |
7654 | arg3 = wxString_in_helper(obj2); | |
7655 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7656 | temp3 = True; |
d14a1e28 RD |
7657 | } |
7658 | } | |
7659 | if (obj3) { | |
83448d71 | 7660 | { |
8edf1c75 | 7661 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
7662 | if (PyErr_Occurred()) SWIG_fail; |
7663 | } | |
d14a1e28 RD |
7664 | } |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | resultobj = result; | |
7673 | { | |
7674 | if (temp3) | |
7675 | delete arg3; | |
7676 | } | |
7677 | return resultobj; | |
7678 | fail: | |
7679 | { | |
7680 | if (temp3) | |
7681 | delete arg3; | |
7682 | } | |
7683 | return NULL; | |
7684 | } | |
7685 | ||
7686 | ||
7687 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7688 | PyObject *resultobj; | |
7689 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7690 | int arg2 ; | |
7691 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7692 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7693 | bool result; | |
423f194a | 7694 | bool temp3 = False ; |
d14a1e28 | 7695 | PyObject * obj0 = 0 ; |
8edf1c75 | 7696 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7697 | PyObject * obj2 = 0 ; |
7698 | char *kwnames[] = { | |
7699 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7700 | }; | |
7701 | ||
8edf1c75 | 7702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7704 | { |
7705 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7706 | if (PyErr_Occurred()) SWIG_fail; | |
7707 | } | |
d14a1e28 RD |
7708 | if (obj2) { |
7709 | { | |
7710 | arg3 = wxString_in_helper(obj2); | |
7711 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7712 | temp3 = True; |
d14a1e28 RD |
7713 | } |
7714 | } | |
7715 | { | |
7716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7717 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7718 | ||
7719 | wxPyEndAllowThreads(__tstate); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
4e760a36 | 7722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7723 | { |
7724 | if (temp3) | |
7725 | delete arg3; | |
7726 | } | |
7727 | return resultobj; | |
7728 | fail: | |
7729 | { | |
7730 | if (temp3) | |
7731 | delete arg3; | |
7732 | } | |
7733 | return NULL; | |
7734 | } | |
7735 | ||
7736 | ||
7737 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7738 | PyObject *resultobj; | |
7739 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7740 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7741 | PyObject * obj0 = 0 ; | |
7742 | PyObject * obj1 = 0 ; | |
7743 | char *kwnames[] = { | |
7744 | (char *) "self",(char *) "parent", NULL | |
7745 | }; | |
7746 | ||
7747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7750 | { | |
7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7752 | (arg1)->SetDialogParent(arg2); | |
7753 | ||
7754 | wxPyEndAllowThreads(__tstate); | |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
7756 | } | |
7757 | Py_INCREF(Py_None); resultobj = Py_None; | |
7758 | return resultobj; | |
7759 | fail: | |
7760 | return NULL; | |
7761 | } | |
7762 | ||
7763 | ||
7764 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7765 | PyObject *resultobj; | |
7766 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7767 | wxString *arg2 = 0 ; | |
423f194a | 7768 | bool temp2 = False ; |
d14a1e28 RD |
7769 | PyObject * obj0 = 0 ; |
7770 | PyObject * obj1 = 0 ; | |
7771 | char *kwnames[] = { | |
7772 | (char *) "self",(char *) "title", NULL | |
7773 | }; | |
7774 | ||
7775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7777 | { | |
7778 | arg2 = wxString_in_helper(obj1); | |
7779 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7780 | temp2 = True; |
d14a1e28 RD |
7781 | } |
7782 | { | |
7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7784 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7785 | ||
7786 | wxPyEndAllowThreads(__tstate); | |
7787 | if (PyErr_Occurred()) SWIG_fail; | |
7788 | } | |
7789 | Py_INCREF(Py_None); resultobj = Py_None; | |
7790 | { | |
7791 | if (temp2) | |
7792 | delete arg2; | |
7793 | } | |
7794 | return resultobj; | |
7795 | fail: | |
7796 | { | |
7797 | if (temp2) | |
7798 | delete arg2; | |
7799 | } | |
7800 | return NULL; | |
7801 | } | |
7802 | ||
7803 | ||
7804 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7805 | PyObject *obj; | |
7806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7807 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7808 | Py_INCREF(obj); | |
7809 | return Py_BuildValue((char *)""); | |
7810 | } | |
7811 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject *resultobj; | |
7813 | int arg1 ; | |
7814 | int arg2 ; | |
7815 | int arg3 ; | |
7816 | int arg4 ; | |
423f194a | 7817 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7818 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7819 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7820 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7821 | wxFont *result; | |
423f194a | 7822 | bool temp6 = False ; |
8edf1c75 RD |
7823 | PyObject * obj0 = 0 ; |
7824 | PyObject * obj1 = 0 ; | |
7825 | PyObject * obj2 = 0 ; | |
7826 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7827 | PyObject * obj4 = 0 ; |
7828 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7829 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7830 | char *kwnames[] = { |
7831 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7832 | }; | |
7833 | ||
8edf1c75 RD |
7834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
7835 | { | |
7836 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7837 | if (PyErr_Occurred()) SWIG_fail; | |
7838 | } | |
7839 | { | |
7840 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7841 | if (PyErr_Occurred()) SWIG_fail; | |
7842 | } | |
7843 | { | |
7844 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7845 | if (PyErr_Occurred()) SWIG_fail; | |
7846 | } | |
7847 | { | |
7848 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
d14a1e28 | 7851 | if (obj4) { |
83448d71 | 7852 | { |
8edf1c75 | 7853 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
83448d71 RD |
7854 | if (PyErr_Occurred()) SWIG_fail; |
7855 | } | |
d14a1e28 RD |
7856 | } |
7857 | if (obj5) { | |
7858 | { | |
7859 | arg6 = wxString_in_helper(obj5); | |
7860 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 7861 | temp6 = True; |
d14a1e28 RD |
7862 | } |
7863 | } | |
8edf1c75 RD |
7864 | if (obj6) { |
7865 | { | |
7866 | arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
7869 | } | |
d14a1e28 RD |
7870 | { |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7872 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7873 | ||
7874 | wxPyEndAllowThreads(__tstate); | |
7875 | if (PyErr_Occurred()) SWIG_fail; | |
7876 | } | |
7877 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7878 | { | |
7879 | if (temp6) | |
7880 | delete arg6; | |
7881 | } | |
7882 | return resultobj; | |
7883 | fail: | |
7884 | { | |
7885 | if (temp6) | |
7886 | delete arg6; | |
7887 | } | |
7888 | return NULL; | |
7889 | } | |
7890 | ||
7891 | ||
7892 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7893 | PyObject *resultobj; | |
7894 | wxFont *arg1 = (wxFont *) 0 ; | |
7895 | PyObject * obj0 = 0 ; | |
7896 | char *kwnames[] = { | |
7897 | (char *) "self", NULL | |
7898 | }; | |
7899 | ||
7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7902 | { | |
7903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7904 | delete arg1; | |
7905 | ||
7906 | wxPyEndAllowThreads(__tstate); | |
7907 | if (PyErr_Occurred()) SWIG_fail; | |
7908 | } | |
7909 | Py_INCREF(Py_None); resultobj = Py_None; | |
7910 | return resultobj; | |
7911 | fail: | |
7912 | return NULL; | |
7913 | } | |
7914 | ||
7915 | ||
7916 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7917 | PyObject *resultobj; | |
7918 | wxNativeFontInfo *arg1 = 0 ; | |
7919 | wxFont *result; | |
7920 | PyObject * obj0 = 0 ; | |
7921 | char *kwnames[] = { | |
7922 | (char *) "info", NULL | |
7923 | }; | |
7924 | ||
7925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7927 | if (arg1 == NULL) { | |
7928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7929 | } | |
7930 | { | |
7931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7932 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7933 | ||
7934 | wxPyEndAllowThreads(__tstate); | |
7935 | if (PyErr_Occurred()) SWIG_fail; | |
7936 | } | |
7937 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7938 | return resultobj; | |
7939 | fail: | |
7940 | return NULL; | |
7941 | } | |
7942 | ||
7943 | ||
7944 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7945 | PyObject *resultobj; | |
7946 | wxString *arg1 = 0 ; | |
7947 | wxFont *result; | |
423f194a | 7948 | bool temp1 = False ; |
d14a1e28 RD |
7949 | PyObject * obj0 = 0 ; |
7950 | char *kwnames[] = { | |
7951 | (char *) "info", NULL | |
7952 | }; | |
7953 | ||
7954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7955 | { | |
7956 | arg1 = wxString_in_helper(obj0); | |
7957 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7958 | temp1 = True; |
d14a1e28 RD |
7959 | } |
7960 | { | |
7961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7962 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7963 | ||
7964 | wxPyEndAllowThreads(__tstate); | |
7965 | if (PyErr_Occurred()) SWIG_fail; | |
7966 | } | |
7967 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7968 | { | |
7969 | if (temp1) | |
7970 | delete arg1; | |
7971 | } | |
7972 | return resultobj; | |
7973 | fail: | |
7974 | { | |
7975 | if (temp1) | |
7976 | delete arg1; | |
7977 | } | |
7978 | return NULL; | |
7979 | } | |
7980 | ||
7981 | ||
7982 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7983 | PyObject *resultobj; | |
7984 | int arg1 ; | |
7985 | int arg2 ; | |
7986 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7987 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7988 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7989 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7990 | wxFont *result; | |
423f194a | 7991 | bool temp4 = False ; |
8edf1c75 RD |
7992 | PyObject * obj0 = 0 ; |
7993 | PyObject * obj1 = 0 ; | |
7994 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7995 | PyObject * obj3 = 0 ; |
8edf1c75 | 7996 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7997 | char *kwnames[] = { |
7998 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7999 | }; | |
8000 | ||
8edf1c75 RD |
8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
8002 | { | |
8003 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8004 | if (PyErr_Occurred()) SWIG_fail; | |
8005 | } | |
8006 | { | |
8007 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
8008 | if (PyErr_Occurred()) SWIG_fail; | |
8009 | } | |
8010 | if (obj2) { | |
8011 | { | |
8012 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8013 | if (PyErr_Occurred()) SWIG_fail; | |
8014 | } | |
8015 | } | |
d14a1e28 RD |
8016 | if (obj3) { |
8017 | { | |
8018 | arg4 = wxString_in_helper(obj3); | |
8019 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8020 | temp4 = True; |
d14a1e28 RD |
8021 | } |
8022 | } | |
8edf1c75 RD |
8023 | if (obj4) { |
8024 | { | |
8025 | arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4); | |
8026 | if (PyErr_Occurred()) SWIG_fail; | |
8027 | } | |
8028 | } | |
d14a1e28 RD |
8029 | { |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8032 | ||
8033 | wxPyEndAllowThreads(__tstate); | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | } | |
8036 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
8037 | { | |
8038 | if (temp4) | |
8039 | delete arg4; | |
8040 | } | |
8041 | return resultobj; | |
8042 | fail: | |
8043 | { | |
8044 | if (temp4) | |
8045 | delete arg4; | |
8046 | } | |
8047 | return NULL; | |
8048 | } | |
8049 | ||
8050 | ||
8051 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8052 | PyObject *resultobj; | |
8053 | wxFont *arg1 = (wxFont *) 0 ; | |
8054 | bool result; | |
8055 | PyObject * obj0 = 0 ; | |
8056 | char *kwnames[] = { | |
8057 | (char *) "self", NULL | |
8058 | }; | |
8059 | ||
8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
8061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8062 | { | |
8063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8064 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8065 | ||
8066 | wxPyEndAllowThreads(__tstate); | |
8067 | if (PyErr_Occurred()) SWIG_fail; | |
8068 | } | |
4e760a36 | 8069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8070 | return resultobj; |
8071 | fail: | |
8072 | return NULL; | |
8073 | } | |
8074 | ||
8075 | ||
8076 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8077 | PyObject *resultobj; | |
8078 | wxFont *arg1 = (wxFont *) 0 ; | |
328fcd84 | 8079 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8080 | bool result; |
8081 | PyObject * obj0 = 0 ; | |
8082 | PyObject * obj1 = 0 ; | |
8083 | char *kwnames[] = { | |
328fcd84 | 8084 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8085 | }; |
8086 | ||
8087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
8088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
8090 | { |
8091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 8092 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8093 | |
8094 | wxPyEndAllowThreads(__tstate); | |
8095 | if (PyErr_Occurred()) SWIG_fail; | |
8096 | } | |
4e760a36 | 8097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8098 | return resultobj; |
8099 | fail: | |
8100 | return NULL; | |
8101 | } | |
8102 | ||
8103 | ||
8104 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8105 | PyObject *resultobj; | |
8106 | wxFont *arg1 = (wxFont *) 0 ; | |
328fcd84 | 8107 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8108 | bool result; |
8109 | PyObject * obj0 = 0 ; | |
8110 | PyObject * obj1 = 0 ; | |
8111 | char *kwnames[] = { | |
328fcd84 | 8112 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8113 | }; |
8114 | ||
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
8116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8117 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
8118 | { |
8119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 8120 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8121 | |
8122 | wxPyEndAllowThreads(__tstate); | |
8123 | if (PyErr_Occurred()) SWIG_fail; | |
8124 | } | |
4e760a36 | 8125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8126 | return resultobj; |
8127 | fail: | |
8128 | return NULL; | |
8129 | } | |
8130 | ||
8131 | ||
8132 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8133 | PyObject *resultobj; | |
8134 | wxFont *arg1 = (wxFont *) 0 ; | |
8135 | int result; | |
8136 | PyObject * obj0 = 0 ; | |
8137 | char *kwnames[] = { | |
8138 | (char *) "self", NULL | |
8139 | }; | |
8140 | ||
8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
8142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8143 | { | |
8144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8145 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8146 | ||
8147 | wxPyEndAllowThreads(__tstate); | |
8148 | if (PyErr_Occurred()) SWIG_fail; | |
8149 | } | |
8edf1c75 | 8150 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8151 | return resultobj; |
8152 | fail: | |
8153 | return NULL; | |
8154 | } | |
8155 | ||
8156 | ||
8157 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject *resultobj; | |
8159 | wxFont *arg1 = (wxFont *) 0 ; | |
8160 | int result; | |
8161 | PyObject * obj0 = 0 ; | |
8162 | char *kwnames[] = { | |
8163 | (char *) "self", NULL | |
8164 | }; | |
8165 | ||
8166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
8167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8edf1c75 | 8175 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8176 | return resultobj; |
8177 | fail: | |
8178 | return NULL; | |
8179 | } | |
8180 | ||
8181 | ||
8182 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8183 | PyObject *resultobj; | |
8184 | wxFont *arg1 = (wxFont *) 0 ; | |
8185 | int result; | |
8186 | PyObject * obj0 = 0 ; | |
8187 | char *kwnames[] = { | |
8188 | (char *) "self", NULL | |
8189 | }; | |
8190 | ||
8191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
8192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8193 | { | |
8194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8195 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8196 | ||
8197 | wxPyEndAllowThreads(__tstate); | |
8198 | if (PyErr_Occurred()) SWIG_fail; | |
8199 | } | |
8edf1c75 | 8200 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8201 | return resultobj; |
8202 | fail: | |
8203 | return NULL; | |
8204 | } | |
8205 | ||
8206 | ||
8207 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8208 | PyObject *resultobj; | |
8209 | wxFont *arg1 = (wxFont *) 0 ; | |
8210 | int result; | |
8211 | PyObject * obj0 = 0 ; | |
8212 | char *kwnames[] = { | |
8213 | (char *) "self", NULL | |
8214 | }; | |
8215 | ||
8216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
8217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8218 | { | |
8219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8220 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8221 | ||
8222 | wxPyEndAllowThreads(__tstate); | |
8223 | if (PyErr_Occurred()) SWIG_fail; | |
8224 | } | |
8edf1c75 | 8225 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8226 | return resultobj; |
8227 | fail: | |
8228 | return NULL; | |
8229 | } | |
8230 | ||
8231 | ||
8232 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8233 | PyObject *resultobj; | |
8234 | wxFont *arg1 = (wxFont *) 0 ; | |
8235 | bool result; | |
8236 | PyObject * obj0 = 0 ; | |
8237 | char *kwnames[] = { | |
8238 | (char *) "self", NULL | |
8239 | }; | |
8240 | ||
8241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
8242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8243 | { | |
8244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8245 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8246 | ||
8247 | wxPyEndAllowThreads(__tstate); | |
8248 | if (PyErr_Occurred()) SWIG_fail; | |
8249 | } | |
4e760a36 | 8250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8251 | return resultobj; |
8252 | fail: | |
8253 | return NULL; | |
8254 | } | |
8255 | ||
8256 | ||
8257 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8258 | PyObject *resultobj; | |
8259 | wxFont *arg1 = (wxFont *) 0 ; | |
8260 | wxString result; | |
8261 | PyObject * obj0 = 0 ; | |
8262 | char *kwnames[] = { | |
8263 | (char *) "self", NULL | |
8264 | }; | |
8265 | ||
8266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
8267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8268 | { | |
8269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8270 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8271 | ||
8272 | wxPyEndAllowThreads(__tstate); | |
8273 | if (PyErr_Occurred()) SWIG_fail; | |
8274 | } | |
8275 | { | |
8276 | #if wxUSE_UNICODE | |
8277 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8278 | #else | |
8279 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8280 | #endif | |
8281 | } | |
8282 | return resultobj; | |
8283 | fail: | |
8284 | return NULL; | |
8285 | } | |
8286 | ||
8287 | ||
8288 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8289 | PyObject *resultobj; | |
8290 | wxFont *arg1 = (wxFont *) 0 ; | |
8291 | int result; | |
8292 | PyObject * obj0 = 0 ; | |
8293 | char *kwnames[] = { | |
8294 | (char *) "self", NULL | |
8295 | }; | |
8296 | ||
8297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",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 = (int)((wxFont const *)arg1)->GetEncoding(); | |
8302 | ||
8303 | wxPyEndAllowThreads(__tstate); | |
8304 | if (PyErr_Occurred()) SWIG_fail; | |
8305 | } | |
8edf1c75 | 8306 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8307 | return resultobj; |
8308 | fail: | |
8309 | return NULL; | |
8310 | } | |
8311 | ||
8312 | ||
8313 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8314 | PyObject *resultobj; | |
8315 | wxFont *arg1 = (wxFont *) 0 ; | |
8316 | wxNativeFontInfo *result; | |
8317 | PyObject * obj0 = 0 ; | |
8318 | char *kwnames[] = { | |
8319 | (char *) "self", NULL | |
8320 | }; | |
8321 | ||
8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
8323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8324 | { | |
8325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8326 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8327 | ||
8328 | wxPyEndAllowThreads(__tstate); | |
8329 | if (PyErr_Occurred()) SWIG_fail; | |
8330 | } | |
8331 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
8332 | return resultobj; | |
8333 | fail: | |
8334 | return NULL; | |
8335 | } | |
8336 | ||
8337 | ||
8338 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8339 | PyObject *resultobj; | |
8340 | wxFont *arg1 = (wxFont *) 0 ; | |
8341 | bool result; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | char *kwnames[] = { | |
8344 | (char *) "self", NULL | |
8345 | }; | |
8346 | ||
8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
8348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8349 | { | |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8352 | ||
8353 | wxPyEndAllowThreads(__tstate); | |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
8355 | } | |
4e760a36 | 8356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8357 | return resultobj; |
8358 | fail: | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
8363 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxFont *arg1 = (wxFont *) 0 ; | |
8366 | wxString result; | |
8367 | PyObject * obj0 = 0 ; | |
8368 | char *kwnames[] = { | |
8369 | (char *) "self", NULL | |
8370 | }; | |
8371 | ||
8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
8373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8374 | { | |
8375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8376 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8377 | ||
8378 | wxPyEndAllowThreads(__tstate); | |
8379 | if (PyErr_Occurred()) SWIG_fail; | |
8380 | } | |
8381 | { | |
8382 | #if wxUSE_UNICODE | |
8383 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8384 | #else | |
8385 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8386 | #endif | |
8387 | } | |
8388 | return resultobj; | |
8389 | fail: | |
8390 | return NULL; | |
8391 | } | |
8392 | ||
8393 | ||
8394 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8395 | PyObject *resultobj; | |
8396 | wxFont *arg1 = (wxFont *) 0 ; | |
8397 | wxString result; | |
8398 | PyObject * obj0 = 0 ; | |
8399 | char *kwnames[] = { | |
8400 | (char *) "self", NULL | |
8401 | }; | |
8402 | ||
8403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
8404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8405 | { | |
8406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8407 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8408 | ||
8409 | wxPyEndAllowThreads(__tstate); | |
8410 | if (PyErr_Occurred()) SWIG_fail; | |
8411 | } | |
8412 | { | |
8413 | #if wxUSE_UNICODE | |
8414 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8415 | #else | |
8416 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8417 | #endif | |
8418 | } | |
8419 | return resultobj; | |
8420 | fail: | |
8421 | return NULL; | |
8422 | } | |
8423 | ||
8424 | ||
8425 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8426 | PyObject *resultobj; | |
8427 | wxFont *arg1 = (wxFont *) 0 ; | |
8428 | int arg2 ; | |
8429 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8430 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8431 | char *kwnames[] = { |
8432 | (char *) "self",(char *) "pointSize", NULL | |
8433 | }; | |
8434 | ||
8edf1c75 | 8435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8437 | { |
8438 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8439 | if (PyErr_Occurred()) SWIG_fail; | |
8440 | } | |
d14a1e28 RD |
8441 | { |
8442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8443 | (arg1)->SetPointSize(arg2); | |
8444 | ||
8445 | wxPyEndAllowThreads(__tstate); | |
8446 | if (PyErr_Occurred()) SWIG_fail; | |
8447 | } | |
8448 | Py_INCREF(Py_None); resultobj = Py_None; | |
8449 | return resultobj; | |
8450 | fail: | |
8451 | return NULL; | |
8452 | } | |
8453 | ||
8454 | ||
8455 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8456 | PyObject *resultobj; | |
8457 | wxFont *arg1 = (wxFont *) 0 ; | |
8458 | int arg2 ; | |
8459 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8460 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8461 | char *kwnames[] = { |
8462 | (char *) "self",(char *) "family", NULL | |
8463 | }; | |
8464 | ||
8edf1c75 | 8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8467 | { |
8468 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
d14a1e28 RD |
8471 | { |
8472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8473 | (arg1)->SetFamily(arg2); | |
8474 | ||
8475 | wxPyEndAllowThreads(__tstate); | |
8476 | if (PyErr_Occurred()) SWIG_fail; | |
8477 | } | |
8478 | Py_INCREF(Py_None); resultobj = Py_None; | |
8479 | return resultobj; | |
8480 | fail: | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
8485 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8486 | PyObject *resultobj; | |
8487 | wxFont *arg1 = (wxFont *) 0 ; | |
8488 | int arg2 ; | |
8489 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8491 | char *kwnames[] = { |
8492 | (char *) "self",(char *) "style", NULL | |
8493 | }; | |
8494 | ||
8edf1c75 | 8495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8497 | { |
8498 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8499 | if (PyErr_Occurred()) SWIG_fail; | |
8500 | } | |
d14a1e28 RD |
8501 | { |
8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8503 | (arg1)->SetStyle(arg2); | |
8504 | ||
8505 | wxPyEndAllowThreads(__tstate); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | Py_INCREF(Py_None); resultobj = Py_None; | |
8509 | return resultobj; | |
8510 | fail: | |
8511 | return NULL; | |
8512 | } | |
8513 | ||
8514 | ||
8515 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8516 | PyObject *resultobj; | |
8517 | wxFont *arg1 = (wxFont *) 0 ; | |
8518 | int arg2 ; | |
8519 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8521 | char *kwnames[] = { |
8522 | (char *) "self",(char *) "weight", NULL | |
8523 | }; | |
8524 | ||
8edf1c75 | 8525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8527 | { |
8528 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8529 | if (PyErr_Occurred()) SWIG_fail; | |
8530 | } | |
d14a1e28 RD |
8531 | { |
8532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8533 | (arg1)->SetWeight(arg2); | |
8534 | ||
8535 | wxPyEndAllowThreads(__tstate); | |
8536 | if (PyErr_Occurred()) SWIG_fail; | |
8537 | } | |
8538 | Py_INCREF(Py_None); resultobj = Py_None; | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8546 | PyObject *resultobj; | |
8547 | wxFont *arg1 = (wxFont *) 0 ; | |
8548 | wxString *arg2 = 0 ; | |
423f194a | 8549 | bool temp2 = False ; |
d14a1e28 RD |
8550 | PyObject * obj0 = 0 ; |
8551 | PyObject * obj1 = 0 ; | |
8552 | char *kwnames[] = { | |
8553 | (char *) "self",(char *) "faceName", NULL | |
8554 | }; | |
8555 | ||
8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
8557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8558 | { | |
8559 | arg2 = wxString_in_helper(obj1); | |
8560 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8561 | temp2 = True; |
d14a1e28 RD |
8562 | } |
8563 | { | |
8564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8565 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8566 | ||
8567 | wxPyEndAllowThreads(__tstate); | |
8568 | if (PyErr_Occurred()) SWIG_fail; | |
8569 | } | |
8570 | Py_INCREF(Py_None); resultobj = Py_None; | |
8571 | { | |
8572 | if (temp2) | |
8573 | delete arg2; | |
8574 | } | |
8575 | return resultobj; | |
8576 | fail: | |
8577 | { | |
8578 | if (temp2) | |
8579 | delete arg2; | |
8580 | } | |
8581 | return NULL; | |
8582 | } | |
8583 | ||
8584 | ||
8585 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8586 | PyObject *resultobj; | |
8587 | wxFont *arg1 = (wxFont *) 0 ; | |
8588 | bool arg2 ; | |
8589 | PyObject * obj0 = 0 ; | |
8590 | PyObject * obj1 = 0 ; | |
8591 | char *kwnames[] = { | |
8592 | (char *) "self",(char *) "underlined", NULL | |
8593 | }; | |
8594 | ||
8595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8597 | { |
8edf1c75 | 8598 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
8599 | if (PyErr_Occurred()) SWIG_fail; |
8600 | } | |
d14a1e28 RD |
8601 | { |
8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8603 | (arg1)->SetUnderlined(arg2); | |
8604 | ||
8605 | wxPyEndAllowThreads(__tstate); | |
8606 | if (PyErr_Occurred()) SWIG_fail; | |
8607 | } | |
8608 | Py_INCREF(Py_None); resultobj = Py_None; | |
8609 | return resultobj; | |
8610 | fail: | |
8611 | return NULL; | |
8612 | } | |
8613 | ||
8614 | ||
8615 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8616 | PyObject *resultobj; | |
8617 | wxFont *arg1 = (wxFont *) 0 ; | |
8618 | int arg2 ; | |
8619 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8621 | char *kwnames[] = { |
8622 | (char *) "self",(char *) "encoding", NULL | |
8623 | }; | |
8624 | ||
8edf1c75 | 8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8627 | { |
8628 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
d14a1e28 RD |
8631 | { |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8634 | ||
8635 | wxPyEndAllowThreads(__tstate); | |
8636 | if (PyErr_Occurred()) SWIG_fail; | |
8637 | } | |
8638 | Py_INCREF(Py_None); resultobj = Py_None; | |
8639 | return resultobj; | |
8640 | fail: | |
8641 | return NULL; | |
8642 | } | |
8643 | ||
8644 | ||
8645 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject *resultobj; | |
8647 | wxFont *arg1 = (wxFont *) 0 ; | |
8648 | wxNativeFontInfo *arg2 = 0 ; | |
8649 | PyObject * obj0 = 0 ; | |
8650 | PyObject * obj1 = 0 ; | |
8651 | char *kwnames[] = { | |
8652 | (char *) "self",(char *) "info", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
8656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8657 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8658 | if (arg2 == NULL) { | |
8659 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8660 | } | |
8661 | { | |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8664 | ||
8665 | wxPyEndAllowThreads(__tstate); | |
8666 | if (PyErr_Occurred()) SWIG_fail; | |
8667 | } | |
8668 | Py_INCREF(Py_None); resultobj = Py_None; | |
8669 | return resultobj; | |
8670 | fail: | |
8671 | return NULL; | |
8672 | } | |
8673 | ||
8674 | ||
8675 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8676 | PyObject *resultobj; | |
8677 | wxFont *arg1 = (wxFont *) 0 ; | |
8678 | wxString *arg2 = 0 ; | |
423f194a | 8679 | bool temp2 = False ; |
d14a1e28 RD |
8680 | PyObject * obj0 = 0 ; |
8681 | PyObject * obj1 = 0 ; | |
8682 | char *kwnames[] = { | |
8683 | (char *) "self",(char *) "info", NULL | |
8684 | }; | |
8685 | ||
8686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
8687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8688 | { | |
8689 | arg2 = wxString_in_helper(obj1); | |
8690 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8691 | temp2 = True; |
d14a1e28 RD |
8692 | } |
8693 | { | |
8694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8695 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8696 | ||
8697 | wxPyEndAllowThreads(__tstate); | |
8698 | if (PyErr_Occurred()) SWIG_fail; | |
8699 | } | |
8700 | Py_INCREF(Py_None); resultobj = Py_None; | |
8701 | { | |
8702 | if (temp2) | |
8703 | delete arg2; | |
8704 | } | |
8705 | return resultobj; | |
8706 | fail: | |
8707 | { | |
8708 | if (temp2) | |
8709 | delete arg2; | |
8710 | } | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
8715 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8716 | PyObject *resultobj; | |
8717 | wxFont *arg1 = (wxFont *) 0 ; | |
8718 | wxString *arg2 = 0 ; | |
423f194a | 8719 | bool temp2 = False ; |
d14a1e28 RD |
8720 | PyObject * obj0 = 0 ; |
8721 | PyObject * obj1 = 0 ; | |
8722 | char *kwnames[] = { | |
8723 | (char *) "self",(char *) "info", NULL | |
8724 | }; | |
8725 | ||
8726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8728 | { | |
8729 | arg2 = wxString_in_helper(obj1); | |
8730 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8731 | temp2 = True; |
d14a1e28 RD |
8732 | } |
8733 | { | |
8734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8735 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8736 | ||
8737 | wxPyEndAllowThreads(__tstate); | |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8739 | } | |
8740 | Py_INCREF(Py_None); resultobj = Py_None; | |
8741 | { | |
8742 | if (temp2) | |
8743 | delete arg2; | |
8744 | } | |
8745 | return resultobj; | |
8746 | fail: | |
8747 | { | |
8748 | if (temp2) | |
8749 | delete arg2; | |
8750 | } | |
8751 | return NULL; | |
8752 | } | |
8753 | ||
8754 | ||
8755 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8756 | PyObject *resultobj; | |
8757 | wxFont *arg1 = (wxFont *) 0 ; | |
8758 | wxString result; | |
8759 | PyObject * obj0 = 0 ; | |
8760 | char *kwnames[] = { | |
8761 | (char *) "self", NULL | |
8762 | }; | |
8763 | ||
8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8766 | { | |
8767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8768 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8769 | ||
8770 | wxPyEndAllowThreads(__tstate); | |
8771 | if (PyErr_Occurred()) SWIG_fail; | |
8772 | } | |
8773 | { | |
8774 | #if wxUSE_UNICODE | |
8775 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8776 | #else | |
8777 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8778 | #endif | |
8779 | } | |
8780 | return resultobj; | |
8781 | fail: | |
8782 | return NULL; | |
8783 | } | |
8784 | ||
8785 | ||
8786 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8787 | PyObject *resultobj; | |
8788 | wxFont *arg1 = (wxFont *) 0 ; | |
8789 | wxString result; | |
8790 | PyObject * obj0 = 0 ; | |
8791 | char *kwnames[] = { | |
8792 | (char *) "self", NULL | |
8793 | }; | |
8794 | ||
8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8797 | { | |
8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8799 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8800 | ||
8801 | wxPyEndAllowThreads(__tstate); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | { | |
8805 | #if wxUSE_UNICODE | |
8806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8807 | #else | |
8808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8809 | #endif | |
8810 | } | |
8811 | return resultobj; | |
8812 | fail: | |
8813 | return NULL; | |
8814 | } | |
8815 | ||
8816 | ||
8817 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject *resultobj; | |
8819 | wxFont *arg1 = (wxFont *) 0 ; | |
8820 | wxString result; | |
8821 | PyObject * obj0 = 0 ; | |
8822 | char *kwnames[] = { | |
8823 | (char *) "self", NULL | |
8824 | }; | |
8825 | ||
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8828 | { | |
8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8830 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8831 | ||
8832 | wxPyEndAllowThreads(__tstate); | |
8833 | if (PyErr_Occurred()) SWIG_fail; | |
8834 | } | |
8835 | { | |
8836 | #if wxUSE_UNICODE | |
8837 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8838 | #else | |
8839 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8840 | #endif | |
8841 | } | |
8842 | return resultobj; | |
8843 | fail: | |
8844 | return NULL; | |
8845 | } | |
8846 | ||
8847 | ||
8848 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8849 | PyObject *resultobj; | |
8850 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 8851 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8852 | PyObject * obj0 = 0 ; |
8853 | PyObject * obj1 = 0 ; | |
8854 | char *kwnames[] = { | |
8855 | (char *) "self",(char *) "no", NULL | |
8856 | }; | |
8857 | ||
8858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8860 | if (obj1) { | |
83448d71 | 8861 | { |
8edf1c75 | 8862 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
8863 | if (PyErr_Occurred()) SWIG_fail; |
8864 | } | |
d14a1e28 RD |
8865 | } |
8866 | { | |
8867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8868 | (arg1)->SetNoAntiAliasing(arg2); | |
8869 | ||
8870 | wxPyEndAllowThreads(__tstate); | |
8871 | if (PyErr_Occurred()) SWIG_fail; | |
8872 | } | |
8873 | Py_INCREF(Py_None); resultobj = Py_None; | |
8874 | return resultobj; | |
8875 | fail: | |
8876 | return NULL; | |
8877 | } | |
8878 | ||
8879 | ||
8880 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8881 | PyObject *resultobj; | |
8882 | wxFont *arg1 = (wxFont *) 0 ; | |
8883 | bool result; | |
8884 | PyObject * obj0 = 0 ; | |
8885 | char *kwnames[] = { | |
8886 | (char *) "self", NULL | |
8887 | }; | |
8888 | ||
8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8891 | { | |
8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8893 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8894 | ||
8895 | wxPyEndAllowThreads(__tstate); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
4e760a36 | 8898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8899 | return resultobj; |
8900 | fail: | |
8901 | return NULL; | |
8902 | } | |
8903 | ||
8904 | ||
8905 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8906 | PyObject *resultobj; | |
8907 | int result; | |
8908 | char *kwnames[] = { | |
8909 | NULL | |
8910 | }; | |
8911 | ||
8912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8913 | { | |
8914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8915 | result = (int)wxFont::GetDefaultEncoding(); | |
8916 | ||
8917 | wxPyEndAllowThreads(__tstate); | |
8918 | if (PyErr_Occurred()) SWIG_fail; | |
8919 | } | |
8edf1c75 | 8920 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8921 | return resultobj; |
8922 | fail: | |
8923 | return NULL; | |
8924 | } | |
8925 | ||
8926 | ||
8927 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8928 | PyObject *resultobj; | |
8929 | int arg1 ; | |
8edf1c75 | 8930 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8931 | char *kwnames[] = { |
8932 | (char *) "encoding", NULL | |
8933 | }; | |
8934 | ||
8edf1c75 RD |
8935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
8936 | { | |
8937 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
d14a1e28 RD |
8940 | { |
8941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8942 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8943 | ||
8944 | wxPyEndAllowThreads(__tstate); | |
8945 | if (PyErr_Occurred()) SWIG_fail; | |
8946 | } | |
8947 | Py_INCREF(Py_None); resultobj = Py_None; | |
8948 | return resultobj; | |
8949 | fail: | |
8950 | return NULL; | |
8951 | } | |
8952 | ||
8953 | ||
8954 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8955 | PyObject *obj; | |
8956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8957 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8958 | Py_INCREF(obj); | |
8959 | return Py_BuildValue((char *)""); | |
8960 | } | |
8961 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8962 | PyObject *resultobj; | |
8963 | wxPyFontEnumerator *result; | |
8964 | char *kwnames[] = { | |
8965 | NULL | |
8966 | }; | |
8967 | ||
8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8969 | { | |
8970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8971 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8972 | ||
8973 | wxPyEndAllowThreads(__tstate); | |
8974 | if (PyErr_Occurred()) SWIG_fail; | |
8975 | } | |
8976 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8977 | return resultobj; | |
8978 | fail: | |
8979 | return NULL; | |
8980 | } | |
8981 | ||
8982 | ||
8983 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8984 | PyObject *resultobj; | |
8985 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8986 | PyObject * obj0 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8993 | { | |
8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8995 | delete arg1; | |
8996 | ||
8997 | wxPyEndAllowThreads(__tstate); | |
8998 | if (PyErr_Occurred()) SWIG_fail; | |
8999 | } | |
9000 | Py_INCREF(Py_None); resultobj = Py_None; | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject *resultobj; | |
9009 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9010 | PyObject *arg2 = (PyObject *) 0 ; | |
9011 | PyObject *arg3 = (PyObject *) 0 ; | |
9012 | bool arg4 ; | |
9013 | PyObject * obj0 = 0 ; | |
9014 | PyObject * obj1 = 0 ; | |
9015 | PyObject * obj2 = 0 ; | |
9016 | PyObject * obj3 = 0 ; | |
9017 | char *kwnames[] = { | |
9018 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9019 | }; | |
9020 | ||
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9023 | arg2 = obj1; | |
9024 | arg3 = obj2; | |
83448d71 | 9025 | { |
8edf1c75 | 9026 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
9027 | if (PyErr_Occurred()) SWIG_fail; |
9028 | } | |
d14a1e28 RD |
9029 | { |
9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9031 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9032 | ||
9033 | wxPyEndAllowThreads(__tstate); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
9036 | Py_INCREF(Py_None); resultobj = Py_None; | |
9037 | return resultobj; | |
9038 | fail: | |
9039 | return NULL; | |
9040 | } | |
9041 | ||
9042 | ||
9043 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9044 | PyObject *resultobj; | |
9045 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9046 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 9047 | bool arg3 = (bool) False ; |
d14a1e28 RD |
9048 | bool result; |
9049 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9051 | PyObject * obj2 = 0 ; |
9052 | char *kwnames[] = { | |
9053 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9054 | }; | |
9055 | ||
8edf1c75 | 9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9058 | if (obj1) { |
9059 | { | |
9060 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9061 | if (PyErr_Occurred()) SWIG_fail; | |
9062 | } | |
9063 | } | |
d14a1e28 | 9064 | if (obj2) { |
83448d71 | 9065 | { |
8edf1c75 | 9066 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
9067 | if (PyErr_Occurred()) SWIG_fail; |
9068 | } | |
d14a1e28 RD |
9069 | } |
9070 | { | |
9071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9072 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9073 | ||
9074 | wxPyEndAllowThreads(__tstate); | |
9075 | if (PyErr_Occurred()) SWIG_fail; | |
9076 | } | |
4e760a36 | 9077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9078 | return resultobj; |
9079 | fail: | |
9080 | return NULL; | |
9081 | } | |
9082 | ||
9083 | ||
9084 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9085 | PyObject *resultobj; | |
9086 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9087 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9088 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9089 | bool result; | |
423f194a | 9090 | bool temp2 = False ; |
d14a1e28 RD |
9091 | PyObject * obj0 = 0 ; |
9092 | PyObject * obj1 = 0 ; | |
9093 | char *kwnames[] = { | |
9094 | (char *) "self",(char *) "facename", NULL | |
9095 | }; | |
9096 | ||
9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
9098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9099 | if (obj1) { | |
9100 | { | |
9101 | arg2 = wxString_in_helper(obj1); | |
9102 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9103 | temp2 = True; |
d14a1e28 RD |
9104 | } |
9105 | } | |
9106 | { | |
9107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9108 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9109 | ||
9110 | wxPyEndAllowThreads(__tstate); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | } | |
4e760a36 | 9113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9114 | { |
9115 | if (temp2) | |
9116 | delete arg2; | |
9117 | } | |
9118 | return resultobj; | |
9119 | fail: | |
9120 | { | |
9121 | if (temp2) | |
9122 | delete arg2; | |
9123 | } | |
9124 | return NULL; | |
9125 | } | |
9126 | ||
9127 | ||
9128 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject *resultobj; | |
9130 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9131 | PyObject *result; | |
9132 | PyObject * obj0 = 0 ; | |
9133 | char *kwnames[] = { | |
9134 | (char *) "self", NULL | |
9135 | }; | |
9136 | ||
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
9138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9139 | { | |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
9146 | resultobj = result; | |
9147 | return resultobj; | |
9148 | fail: | |
9149 | return NULL; | |
9150 | } | |
9151 | ||
9152 | ||
9153 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9154 | PyObject *resultobj; | |
9155 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9156 | PyObject *result; | |
9157 | PyObject * obj0 = 0 ; | |
9158 | char *kwnames[] = { | |
9159 | (char *) "self", NULL | |
9160 | }; | |
9161 | ||
9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
9163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9164 | { | |
9165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9166 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9167 | ||
9168 | wxPyEndAllowThreads(__tstate); | |
9169 | if (PyErr_Occurred()) SWIG_fail; | |
9170 | } | |
9171 | resultobj = result; | |
9172 | return resultobj; | |
9173 | fail: | |
9174 | return NULL; | |
9175 | } | |
9176 | ||
9177 | ||
9178 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
9179 | PyObject *obj; | |
9180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9181 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9182 | Py_INCREF(obj); | |
9183 | return Py_BuildValue((char *)""); | |
9184 | } | |
9185 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9186 | PyObject *resultobj; | |
9187 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9188 | int arg2 ; | |
9189 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9190 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9191 | char *kwnames[] = { |
9192 | (char *) "self",(char *) "Language", NULL | |
9193 | }; | |
9194 | ||
8edf1c75 | 9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9197 | { |
9198 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | } | |
d14a1e28 RD |
9201 | if (arg1) (arg1)->Language = arg2; |
9202 | ||
9203 | Py_INCREF(Py_None); resultobj = Py_None; | |
9204 | return resultobj; | |
9205 | fail: | |
9206 | return NULL; | |
9207 | } | |
9208 | ||
9209 | ||
9210 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9211 | PyObject *resultobj; | |
9212 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9213 | int result; | |
9214 | PyObject * obj0 = 0 ; | |
9215 | char *kwnames[] = { | |
9216 | (char *) "self", NULL | |
9217 | }; | |
9218 | ||
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
9220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9221 | result = (int) ((arg1)->Language); | |
9222 | ||
8edf1c75 | 9223 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9224 | return resultobj; |
9225 | fail: | |
9226 | return NULL; | |
9227 | } | |
9228 | ||
9229 | ||
9230 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject *resultobj; | |
9232 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9233 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 9234 | bool temp2 = False ; |
d14a1e28 RD |
9235 | PyObject * obj0 = 0 ; |
9236 | PyObject * obj1 = 0 ; | |
9237 | char *kwnames[] = { | |
9238 | (char *) "self",(char *) "CanonicalName", NULL | |
9239 | }; | |
9240 | ||
9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
9242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
9243 | { |
9244 | arg2 = wxString_in_helper(obj1); | |
9245 | if (arg2 == NULL) SWIG_fail; | |
9246 | temp2 = True; | |
9247 | } | |
d03fd34d | 9248 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
9249 | |
9250 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
9251 | { |
9252 | if (temp2) | |
9253 | delete arg2; | |
9254 | } | |
d14a1e28 RD |
9255 | return resultobj; |
9256 | fail: | |
f775c30d RD |
9257 | { |
9258 | if (temp2) | |
9259 | delete arg2; | |
9260 | } | |
d14a1e28 RD |
9261 | return NULL; |
9262 | } | |
9263 | ||
9264 | ||
9265 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9266 | PyObject *resultobj; | |
9267 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9268 | wxString *result; |
d14a1e28 RD |
9269 | PyObject * obj0 = 0 ; |
9270 | char *kwnames[] = { | |
9271 | (char *) "self", NULL | |
9272 | }; | |
9273 | ||
9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
9275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 9276 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
9277 | |
9278 | { | |
9279 | #if wxUSE_UNICODE | |
d03fd34d | 9280 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9281 | #else |
d03fd34d | 9282 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9283 | #endif |
9284 | } | |
9285 | return resultobj; | |
9286 | fail: | |
9287 | return NULL; | |
9288 | } | |
9289 | ||
9290 | ||
9291 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9292 | PyObject *resultobj; | |
9293 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9294 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 9295 | bool temp2 = False ; |
d14a1e28 RD |
9296 | PyObject * obj0 = 0 ; |
9297 | PyObject * obj1 = 0 ; | |
9298 | char *kwnames[] = { | |
9299 | (char *) "self",(char *) "Description", NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
9303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
f775c30d RD |
9304 | { |
9305 | arg2 = wxString_in_helper(obj1); | |
9306 | if (arg2 == NULL) SWIG_fail; | |
9307 | temp2 = True; | |
9308 | } | |
d03fd34d | 9309 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
9310 | |
9311 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
9312 | { |
9313 | if (temp2) | |
9314 | delete arg2; | |
9315 | } | |
d14a1e28 RD |
9316 | return resultobj; |
9317 | fail: | |
f775c30d RD |
9318 | { |
9319 | if (temp2) | |
9320 | delete arg2; | |
9321 | } | |
d14a1e28 RD |
9322 | return NULL; |
9323 | } | |
9324 | ||
9325 | ||
9326 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9327 | PyObject *resultobj; | |
9328 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9329 | wxString *result; |
d14a1e28 RD |
9330 | PyObject * obj0 = 0 ; |
9331 | char *kwnames[] = { | |
9332 | (char *) "self", NULL | |
9333 | }; | |
9334 | ||
9335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
9336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d03fd34d | 9337 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
9338 | |
9339 | { | |
9340 | #if wxUSE_UNICODE | |
d03fd34d | 9341 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9342 | #else |
d03fd34d | 9343 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9344 | #endif |
9345 | } | |
9346 | return resultobj; | |
9347 | fail: | |
9348 | return NULL; | |
9349 | } | |
9350 | ||
9351 | ||
9352 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
9353 | PyObject *obj; | |
9354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9355 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9356 | Py_INCREF(obj); | |
9357 | return Py_BuildValue((char *)""); | |
9358 | } | |
9359 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9360 | PyObject *resultobj; | |
9361 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
9362 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9363 | wxLocale *result; | |
8edf1c75 RD |
9364 | PyObject * obj0 = 0 ; |
9365 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9366 | char *kwnames[] = { |
9367 | (char *) "language",(char *) "flags", NULL | |
9368 | }; | |
9369 | ||
8edf1c75 RD |
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
9371 | if (obj0) { | |
9372 | { | |
9373 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | } | |
9377 | if (obj1) { | |
9378 | { | |
9379 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9380 | if (PyErr_Occurred()) SWIG_fail; | |
9381 | } | |
9382 | } | |
d14a1e28 RD |
9383 | { |
9384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9385 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
9386 | ||
9387 | wxPyEndAllowThreads(__tstate); | |
9388 | if (PyErr_Occurred()) SWIG_fail; | |
9389 | } | |
9390 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
9391 | return resultobj; | |
9392 | fail: | |
9393 | return NULL; | |
9394 | } | |
9395 | ||
9396 | ||
9397 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9398 | PyObject *resultobj; | |
9399 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9400 | PyObject * obj0 = 0 ; | |
9401 | char *kwnames[] = { | |
9402 | (char *) "self", NULL | |
9403 | }; | |
9404 | ||
9405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
9406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | delete arg1; | |
9410 | ||
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
9414 | Py_INCREF(Py_None); resultobj = Py_None; | |
9415 | return resultobj; | |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
9421 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9422 | PyObject *resultobj; | |
9423 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9424 | wxString *arg2 = 0 ; | |
9425 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9426 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9427 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9428 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
9429 | bool arg5 = (bool) True ; |
9430 | bool arg6 = (bool) False ; | |
d14a1e28 | 9431 | bool result; |
423f194a RD |
9432 | bool temp2 = False ; |
9433 | bool temp3 = False ; | |
9434 | bool temp4 = False ; | |
d14a1e28 RD |
9435 | PyObject * obj0 = 0 ; |
9436 | PyObject * obj1 = 0 ; | |
9437 | PyObject * obj2 = 0 ; | |
9438 | PyObject * obj3 = 0 ; | |
9439 | PyObject * obj4 = 0 ; | |
9440 | PyObject * obj5 = 0 ; | |
9441 | char *kwnames[] = { | |
9442 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9443 | }; | |
9444 | ||
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9447 | { | |
9448 | arg2 = wxString_in_helper(obj1); | |
9449 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9450 | temp2 = True; |
d14a1e28 RD |
9451 | } |
9452 | if (obj2) { | |
9453 | { | |
9454 | arg3 = wxString_in_helper(obj2); | |
9455 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9456 | temp3 = True; |
d14a1e28 RD |
9457 | } |
9458 | } | |
9459 | if (obj3) { | |
9460 | { | |
9461 | arg4 = wxString_in_helper(obj3); | |
9462 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 9463 | temp4 = True; |
d14a1e28 RD |
9464 | } |
9465 | } | |
9466 | if (obj4) { | |
83448d71 | 9467 | { |
8edf1c75 | 9468 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
83448d71 RD |
9469 | if (PyErr_Occurred()) SWIG_fail; |
9470 | } | |
d14a1e28 RD |
9471 | } |
9472 | if (obj5) { | |
83448d71 | 9473 | { |
8edf1c75 | 9474 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
83448d71 RD |
9475 | if (PyErr_Occurred()) SWIG_fail; |
9476 | } | |
d14a1e28 RD |
9477 | } |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
4e760a36 | 9485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9486 | { |
9487 | if (temp2) | |
9488 | delete arg2; | |
9489 | } | |
9490 | { | |
9491 | if (temp3) | |
9492 | delete arg3; | |
9493 | } | |
9494 | { | |
9495 | if (temp4) | |
9496 | delete arg4; | |
9497 | } | |
9498 | return resultobj; | |
9499 | fail: | |
9500 | { | |
9501 | if (temp2) | |
9502 | delete arg2; | |
9503 | } | |
9504 | { | |
9505 | if (temp3) | |
9506 | delete arg3; | |
9507 | } | |
9508 | { | |
9509 | if (temp4) | |
9510 | delete arg4; | |
9511 | } | |
9512 | return NULL; | |
9513 | } | |
9514 | ||
9515 | ||
9516 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9517 | PyObject *resultobj; | |
9518 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9519 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9520 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9521 | bool result; | |
9522 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9523 | PyObject * obj1 = 0 ; |
9524 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9525 | char *kwnames[] = { |
9526 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9527 | }; | |
9528 | ||
8edf1c75 | 9529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9531 | if (obj1) { |
9532 | { | |
9533 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9534 | if (PyErr_Occurred()) SWIG_fail; | |
9535 | } | |
9536 | } | |
9537 | if (obj2) { | |
9538 | { | |
9539 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
9542 | } | |
d14a1e28 RD |
9543 | { |
9544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9545 | result = (bool)(arg1)->Init(arg2,arg3); | |
9546 | ||
9547 | wxPyEndAllowThreads(__tstate); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | } | |
4e760a36 | 9550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9551 | return resultobj; |
9552 | fail: | |
9553 | return NULL; | |
9554 | } | |
9555 | ||
9556 | ||
9557 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9558 | PyObject *resultobj; | |
9559 | int result; | |
9560 | char *kwnames[] = { | |
9561 | NULL | |
9562 | }; | |
9563 | ||
9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9565 | { | |
9566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9567 | result = (int)wxLocale::GetSystemLanguage(); | |
9568 | ||
9569 | wxPyEndAllowThreads(__tstate); | |
9570 | if (PyErr_Occurred()) SWIG_fail; | |
9571 | } | |
8edf1c75 | 9572 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9573 | return resultobj; |
9574 | fail: | |
9575 | return NULL; | |
9576 | } | |
9577 | ||
9578 | ||
9579 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9580 | PyObject *resultobj; | |
9581 | int result; | |
9582 | char *kwnames[] = { | |
9583 | NULL | |
9584 | }; | |
9585 | ||
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9587 | { | |
9588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9589 | result = (int)wxLocale::GetSystemEncoding(); | |
9590 | ||
9591 | wxPyEndAllowThreads(__tstate); | |
9592 | if (PyErr_Occurred()) SWIG_fail; | |
9593 | } | |
8edf1c75 | 9594 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9595 | return resultobj; |
9596 | fail: | |
9597 | return NULL; | |
9598 | } | |
9599 | ||
9600 | ||
9601 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9602 | PyObject *resultobj; | |
9603 | wxString result; | |
9604 | char *kwnames[] = { | |
9605 | NULL | |
9606 | }; | |
9607 | ||
9608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9609 | { | |
9610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9611 | result = wxLocale::GetSystemEncodingName(); | |
9612 | ||
9613 | wxPyEndAllowThreads(__tstate); | |
9614 | if (PyErr_Occurred()) SWIG_fail; | |
9615 | } | |
9616 | { | |
9617 | #if wxUSE_UNICODE | |
9618 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9619 | #else | |
9620 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9621 | #endif | |
9622 | } | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | return NULL; | |
9626 | } | |
9627 | ||
9628 | ||
9629 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9630 | PyObject *resultobj; | |
9631 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9632 | bool result; | |
9633 | PyObject * obj0 = 0 ; | |
9634 | char *kwnames[] = { | |
9635 | (char *) "self", NULL | |
9636 | }; | |
9637 | ||
9638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9640 | { | |
9641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9642 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9643 | ||
9644 | wxPyEndAllowThreads(__tstate); | |
9645 | if (PyErr_Occurred()) SWIG_fail; | |
9646 | } | |
4e760a36 | 9647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9648 | return resultobj; |
9649 | fail: | |
9650 | return NULL; | |
9651 | } | |
9652 | ||
9653 | ||
9654 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9655 | PyObject *resultobj; | |
9656 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9657 | wxString result; | |
9658 | PyObject * obj0 = 0 ; | |
9659 | char *kwnames[] = { | |
9660 | (char *) "self", NULL | |
9661 | }; | |
9662 | ||
9663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
9664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9665 | { | |
9666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9667 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9668 | ||
9669 | wxPyEndAllowThreads(__tstate); | |
9670 | if (PyErr_Occurred()) SWIG_fail; | |
9671 | } | |
9672 | { | |
9673 | #if wxUSE_UNICODE | |
9674 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9675 | #else | |
9676 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9677 | #endif | |
9678 | } | |
9679 | return resultobj; | |
9680 | fail: | |
9681 | return NULL; | |
9682 | } | |
9683 | ||
9684 | ||
9685 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9686 | PyObject *resultobj; | |
9687 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9688 | int result; | |
9689 | PyObject * obj0 = 0 ; | |
9690 | char *kwnames[] = { | |
9691 | (char *) "self", NULL | |
9692 | }; | |
9693 | ||
9694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9696 | { | |
9697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9698 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9699 | ||
9700 | wxPyEndAllowThreads(__tstate); | |
9701 | if (PyErr_Occurred()) SWIG_fail; | |
9702 | } | |
8edf1c75 | 9703 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9704 | return resultobj; |
9705 | fail: | |
9706 | return NULL; | |
9707 | } | |
9708 | ||
9709 | ||
9710 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9711 | PyObject *resultobj; | |
9712 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9713 | wxString result; | |
9714 | PyObject * obj0 = 0 ; | |
9715 | char *kwnames[] = { | |
9716 | (char *) "self", NULL | |
9717 | }; | |
9718 | ||
9719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9721 | { | |
9722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9723 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9724 | ||
9725 | wxPyEndAllowThreads(__tstate); | |
9726 | if (PyErr_Occurred()) SWIG_fail; | |
9727 | } | |
9728 | { | |
9729 | #if wxUSE_UNICODE | |
9730 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9731 | #else | |
9732 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9733 | #endif | |
9734 | } | |
9735 | return resultobj; | |
9736 | fail: | |
9737 | return NULL; | |
9738 | } | |
9739 | ||
9740 | ||
9741 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9742 | PyObject *resultobj; | |
9743 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9744 | wxString result; | |
9745 | PyObject * obj0 = 0 ; | |
9746 | char *kwnames[] = { | |
9747 | (char *) "self", NULL | |
9748 | }; | |
9749 | ||
9750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9752 | { | |
9753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9754 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9755 | ||
9756 | wxPyEndAllowThreads(__tstate); | |
9757 | if (PyErr_Occurred()) SWIG_fail; | |
9758 | } | |
9759 | { | |
9760 | #if wxUSE_UNICODE | |
9761 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9762 | #else | |
9763 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9764 | #endif | |
9765 | } | |
9766 | return resultobj; | |
9767 | fail: | |
9768 | return NULL; | |
9769 | } | |
9770 | ||
9771 | ||
9772 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9773 | PyObject *resultobj; | |
9774 | wxString *arg1 = 0 ; | |
423f194a | 9775 | bool temp1 = False ; |
d14a1e28 RD |
9776 | PyObject * obj0 = 0 ; |
9777 | char *kwnames[] = { | |
9778 | (char *) "prefix", NULL | |
9779 | }; | |
9780 | ||
9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9782 | { | |
9783 | arg1 = wxString_in_helper(obj0); | |
9784 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9785 | temp1 = True; |
d14a1e28 RD |
9786 | } |
9787 | { | |
9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9789 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9790 | ||
9791 | wxPyEndAllowThreads(__tstate); | |
9792 | if (PyErr_Occurred()) SWIG_fail; | |
9793 | } | |
9794 | Py_INCREF(Py_None); resultobj = Py_None; | |
9795 | { | |
9796 | if (temp1) | |
9797 | delete arg1; | |
9798 | } | |
9799 | return resultobj; | |
9800 | fail: | |
9801 | { | |
9802 | if (temp1) | |
9803 | delete arg1; | |
9804 | } | |
9805 | return NULL; | |
9806 | } | |
9807 | ||
9808 | ||
9809 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9810 | PyObject *resultobj; | |
9811 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9812 | wxString *arg2 = 0 ; | |
9813 | bool result; | |
423f194a | 9814 | bool temp2 = False ; |
d14a1e28 RD |
9815 | PyObject * obj0 = 0 ; |
9816 | PyObject * obj1 = 0 ; | |
9817 | char *kwnames[] = { | |
9818 | (char *) "self",(char *) "szDomain", NULL | |
9819 | }; | |
9820 | ||
9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9823 | { | |
9824 | arg2 = wxString_in_helper(obj1); | |
9825 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9826 | temp2 = True; |
d14a1e28 RD |
9827 | } |
9828 | { | |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9830 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9831 | ||
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) SWIG_fail; | |
9834 | } | |
4e760a36 | 9835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9836 | { |
9837 | if (temp2) | |
9838 | delete arg2; | |
9839 | } | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | { | |
9843 | if (temp2) | |
9844 | delete arg2; | |
9845 | } | |
9846 | return NULL; | |
9847 | } | |
9848 | ||
9849 | ||
9850 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9851 | PyObject *resultobj; | |
9852 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9853 | wxString *arg2 = 0 ; | |
9854 | bool result; | |
423f194a | 9855 | bool temp2 = False ; |
d14a1e28 RD |
9856 | PyObject * obj0 = 0 ; |
9857 | PyObject * obj1 = 0 ; | |
9858 | char *kwnames[] = { | |
9859 | (char *) "self",(char *) "szDomain", NULL | |
9860 | }; | |
9861 | ||
9862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9864 | { | |
9865 | arg2 = wxString_in_helper(obj1); | |
9866 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9867 | temp2 = True; |
d14a1e28 RD |
9868 | } |
9869 | { | |
9870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9871 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9872 | ||
9873 | wxPyEndAllowThreads(__tstate); | |
9874 | if (PyErr_Occurred()) SWIG_fail; | |
9875 | } | |
4e760a36 | 9876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9877 | { |
9878 | if (temp2) | |
9879 | delete arg2; | |
9880 | } | |
9881 | return resultobj; | |
9882 | fail: | |
9883 | { | |
9884 | if (temp2) | |
9885 | delete arg2; | |
9886 | } | |
9887 | return NULL; | |
9888 | } | |
9889 | ||
9890 | ||
9891 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9892 | PyObject *resultobj; | |
9893 | int arg1 ; | |
9894 | wxLanguageInfo *result; | |
8edf1c75 | 9895 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9896 | char *kwnames[] = { |
9897 | (char *) "lang", NULL | |
9898 | }; | |
9899 | ||
8edf1c75 RD |
9900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
9901 | { | |
9902 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9903 | if (PyErr_Occurred()) SWIG_fail; | |
9904 | } | |
d14a1e28 RD |
9905 | { |
9906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9907 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9908 | ||
9909 | wxPyEndAllowThreads(__tstate); | |
9910 | if (PyErr_Occurred()) SWIG_fail; | |
9911 | } | |
9912 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9913 | return resultobj; | |
9914 | fail: | |
9915 | return NULL; | |
9916 | } | |
9917 | ||
9918 | ||
9919 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9920 | PyObject *resultobj; | |
9921 | int arg1 ; | |
9922 | wxString result; | |
8edf1c75 | 9923 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9924 | char *kwnames[] = { |
9925 | (char *) "lang", NULL | |
9926 | }; | |
9927 | ||
8edf1c75 RD |
9928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
9929 | { | |
9930 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9931 | if (PyErr_Occurred()) SWIG_fail; | |
9932 | } | |
d14a1e28 RD |
9933 | { |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | result = wxLocale::GetLanguageName(arg1); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | { | |
9941 | #if wxUSE_UNICODE | |
9942 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9943 | #else | |
9944 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9945 | #endif | |
9946 | } | |
9947 | return resultobj; | |
9948 | fail: | |
9949 | return NULL; | |
9950 | } | |
9951 | ||
9952 | ||
9953 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9954 | PyObject *resultobj; | |
9955 | wxString *arg1 = 0 ; | |
9956 | wxLanguageInfo *result; | |
423f194a | 9957 | bool temp1 = False ; |
d14a1e28 RD |
9958 | PyObject * obj0 = 0 ; |
9959 | char *kwnames[] = { | |
9960 | (char *) "locale", NULL | |
9961 | }; | |
9962 | ||
9963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9964 | { | |
9965 | arg1 = wxString_in_helper(obj0); | |
9966 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9967 | temp1 = True; |
d14a1e28 RD |
9968 | } |
9969 | { | |
9970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9971 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9972 | ||
9973 | wxPyEndAllowThreads(__tstate); | |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
9976 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9977 | { | |
9978 | if (temp1) | |
9979 | delete arg1; | |
9980 | } | |
9981 | return resultobj; | |
9982 | fail: | |
9983 | { | |
9984 | if (temp1) | |
9985 | delete arg1; | |
9986 | } | |
9987 | return NULL; | |
9988 | } | |
9989 | ||
9990 | ||
9991 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9992 | PyObject *resultobj; | |
9993 | wxLanguageInfo *arg1 = 0 ; | |
9994 | PyObject * obj0 = 0 ; | |
9995 | char *kwnames[] = { | |
9996 | (char *) "info", NULL | |
9997 | }; | |
9998 | ||
9999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
10000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10001 | if (arg1 == NULL) { | |
10002 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10003 | } | |
10004 | { | |
10005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10006 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10007 | ||
10008 | wxPyEndAllowThreads(__tstate); | |
10009 | if (PyErr_Occurred()) SWIG_fail; | |
10010 | } | |
10011 | Py_INCREF(Py_None); resultobj = Py_None; | |
10012 | return resultobj; | |
10013 | fail: | |
10014 | return NULL; | |
10015 | } | |
10016 | ||
10017 | ||
10018 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10019 | PyObject *resultobj; | |
10020 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10021 | wxString *arg2 = 0 ; | |
10022 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10023 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10024 | wxString result; | |
423f194a RD |
10025 | bool temp2 = False ; |
10026 | bool temp3 = False ; | |
d14a1e28 RD |
10027 | PyObject * obj0 = 0 ; |
10028 | PyObject * obj1 = 0 ; | |
10029 | PyObject * obj2 = 0 ; | |
10030 | char *kwnames[] = { | |
10031 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10032 | }; | |
10033 | ||
10034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10036 | { | |
10037 | arg2 = wxString_in_helper(obj1); | |
10038 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10039 | temp2 = True; |
d14a1e28 RD |
10040 | } |
10041 | if (obj2) { | |
10042 | { | |
10043 | arg3 = wxString_in_helper(obj2); | |
10044 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10045 | temp3 = True; |
d14a1e28 RD |
10046 | } |
10047 | } | |
10048 | { | |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | #if wxUSE_UNICODE | |
10057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10058 | #else | |
10059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10060 | #endif | |
10061 | } | |
10062 | { | |
10063 | if (temp2) | |
10064 | delete arg2; | |
10065 | } | |
10066 | { | |
10067 | if (temp3) | |
10068 | delete arg3; | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | { | |
10073 | if (temp2) | |
10074 | delete arg2; | |
10075 | } | |
10076 | { | |
10077 | if (temp3) | |
10078 | delete arg3; | |
10079 | } | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
10084 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10085 | PyObject *resultobj; | |
10086 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10087 | wxString *result; | |
10088 | PyObject * obj0 = 0 ; | |
10089 | char *kwnames[] = { | |
10090 | (char *) "self", NULL | |
10091 | }; | |
10092 | ||
10093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
10094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | { | |
10098 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10099 | result = (wxString *) &_result_ref; | |
10100 | } | |
10101 | ||
10102 | wxPyEndAllowThreads(__tstate); | |
10103 | if (PyErr_Occurred()) SWIG_fail; | |
10104 | } | |
f0983263 RD |
10105 | { |
10106 | #if wxUSE_UNICODE | |
10107 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10108 | #else | |
10109 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10110 | #endif | |
10111 | } | |
d14a1e28 RD |
10112 | return resultobj; |
10113 | fail: | |
10114 | return NULL; | |
10115 | } | |
10116 | ||
10117 | ||
10118 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
10119 | PyObject *obj; | |
10120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10121 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10122 | Py_INCREF(obj); | |
10123 | return Py_BuildValue((char *)""); | |
10124 | } | |
10125 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10126 | PyObject *resultobj; | |
10127 | wxLocale *result; | |
10128 | char *kwnames[] = { | |
10129 | NULL | |
10130 | }; | |
10131 | ||
10132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10133 | { | |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10135 | result = (wxLocale *)wxGetLocale(); | |
10136 | ||
10137 | wxPyEndAllowThreads(__tstate); | |
10138 | if (PyErr_Occurred()) SWIG_fail; | |
10139 | } | |
10140 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
10141 | return resultobj; | |
10142 | fail: | |
10143 | return NULL; | |
10144 | } | |
10145 | ||
10146 | ||
10147 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
10148 | PyObject *resultobj; | |
10149 | wxString *arg1 = 0 ; | |
10150 | wxString result; | |
423f194a | 10151 | bool temp1 = False ; |
d14a1e28 RD |
10152 | PyObject * obj0 = 0 ; |
10153 | ||
10154 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10155 | { | |
10156 | arg1 = wxString_in_helper(obj0); | |
10157 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10158 | temp1 = True; |
d14a1e28 RD |
10159 | } |
10160 | { | |
10161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10162 | result = wxGetTranslation((wxString const &)*arg1); | |
10163 | ||
10164 | wxPyEndAllowThreads(__tstate); | |
10165 | if (PyErr_Occurred()) SWIG_fail; | |
10166 | } | |
10167 | { | |
10168 | #if wxUSE_UNICODE | |
10169 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10170 | #else | |
10171 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10172 | #endif | |
10173 | } | |
10174 | { | |
10175 | if (temp1) | |
10176 | delete arg1; | |
10177 | } | |
10178 | return resultobj; | |
10179 | fail: | |
10180 | { | |
10181 | if (temp1) | |
10182 | delete arg1; | |
10183 | } | |
10184 | return NULL; | |
10185 | } | |
10186 | ||
10187 | ||
10188 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
10189 | PyObject *resultobj; | |
10190 | wxString *arg1 = 0 ; | |
10191 | wxString *arg2 = 0 ; | |
10192 | size_t arg3 ; | |
10193 | wxString result; | |
423f194a RD |
10194 | bool temp1 = False ; |
10195 | bool temp2 = False ; | |
d14a1e28 RD |
10196 | PyObject * obj0 = 0 ; |
10197 | PyObject * obj1 = 0 ; | |
10198 | PyObject * obj2 = 0 ; | |
10199 | ||
10200 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10201 | { | |
10202 | arg1 = wxString_in_helper(obj0); | |
10203 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10204 | temp1 = True; |
d14a1e28 RD |
10205 | } |
10206 | { | |
10207 | arg2 = wxString_in_helper(obj1); | |
10208 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10209 | temp2 = True; |
d14a1e28 | 10210 | } |
83448d71 | 10211 | { |
8edf1c75 | 10212 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
83448d71 RD |
10213 | if (PyErr_Occurred()) SWIG_fail; |
10214 | } | |
d14a1e28 RD |
10215 | { |
10216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10217 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10218 | ||
10219 | wxPyEndAllowThreads(__tstate); | |
10220 | if (PyErr_Occurred()) SWIG_fail; | |
10221 | } | |
10222 | { | |
10223 | #if wxUSE_UNICODE | |
10224 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10225 | #else | |
10226 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10227 | #endif | |
10228 | } | |
10229 | { | |
10230 | if (temp1) | |
10231 | delete arg1; | |
10232 | } | |
10233 | { | |
10234 | if (temp2) | |
10235 | delete arg2; | |
10236 | } | |
10237 | return resultobj; | |
10238 | fail: | |
10239 | { | |
10240 | if (temp1) | |
10241 | delete arg1; | |
10242 | } | |
10243 | { | |
10244 | if (temp2) | |
10245 | delete arg2; | |
10246 | } | |
10247 | return NULL; | |
10248 | } | |
10249 | ||
10250 | ||
10251 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10252 | int argc; | |
10253 | PyObject *argv[4]; | |
10254 | int ii; | |
10255 | ||
10256 | argc = PyObject_Length(args); | |
10257 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10258 | argv[ii] = PyTuple_GetItem(args,ii); | |
10259 | } | |
10260 | if (argc == 1) { | |
10261 | int _v; | |
10262 | { | |
4e760a36 | 10263 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10264 | } |
10265 | if (_v) { | |
10266 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10267 | } | |
10268 | } | |
10269 | if (argc == 3) { | |
10270 | int _v; | |
10271 | { | |
4e760a36 | 10272 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10273 | } |
10274 | if (_v) { | |
10275 | { | |
4e760a36 | 10276 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
10277 | } |
10278 | if (_v) { | |
10279 | { | |
8edf1c75 | 10280 | SWIG_PyObj_AsUnsignedLong(argv[2]); |
83448d71 RD |
10281 | if (PyErr_Occurred()) { |
10282 | _v = 0; | |
10283 | PyErr_Clear(); | |
10284 | } else { | |
10285 | _v = 1; | |
10286 | } | |
d14a1e28 RD |
10287 | } |
10288 | if (_v) { | |
10289 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10290 | } | |
10291 | } | |
10292 | } | |
10293 | } | |
10294 | ||
10295 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10296 | return NULL; | |
10297 | } | |
10298 | ||
10299 | ||
10300 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10301 | PyObject *resultobj; | |
10302 | wxEncodingConverter *result; | |
10303 | char *kwnames[] = { | |
10304 | NULL | |
10305 | }; | |
10306 | ||
10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | return NULL; | |
10319 | } | |
10320 | ||
10321 | ||
10322 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject *resultobj; | |
10324 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10325 | PyObject * obj0 = 0 ; | |
10326 | char *kwnames[] = { | |
10327 | (char *) "self", NULL | |
10328 | }; | |
10329 | ||
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
10331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10332 | { | |
10333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10334 | delete arg1; | |
10335 | ||
10336 | wxPyEndAllowThreads(__tstate); | |
10337 | if (PyErr_Occurred()) SWIG_fail; | |
10338 | } | |
10339 | Py_INCREF(Py_None); resultobj = Py_None; | |
10340 | return resultobj; | |
10341 | fail: | |
10342 | return NULL; | |
10343 | } | |
10344 | ||
10345 | ||
10346 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10347 | PyObject *resultobj; | |
10348 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10349 | int arg2 ; | |
10350 | int arg3 ; | |
10351 | int arg4 = (int) wxCONVERT_STRICT ; | |
10352 | bool result; | |
10353 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10354 | PyObject * obj1 = 0 ; |
10355 | PyObject * obj2 = 0 ; | |
10356 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10357 | char *kwnames[] = { |
10358 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10359 | }; | |
10360 | ||
8edf1c75 | 10361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 10362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10363 | { |
10364 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
10365 | if (PyErr_Occurred()) SWIG_fail; | |
10366 | } | |
10367 | { | |
10368 | arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2); | |
10369 | if (PyErr_Occurred()) SWIG_fail; | |
10370 | } | |
10371 | if (obj3) { | |
10372 | { | |
10373 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10374 | if (PyErr_Occurred()) SWIG_fail; | |
10375 | } | |
10376 | } | |
d14a1e28 RD |
10377 | { |
10378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10379 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10380 | ||
10381 | wxPyEndAllowThreads(__tstate); | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
10383 | } | |
4e760a36 | 10384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10385 | return resultobj; |
10386 | fail: | |
10387 | return NULL; | |
10388 | } | |
10389 | ||
10390 | ||
10391 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10392 | PyObject *resultobj; | |
10393 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10394 | wxString *arg2 = 0 ; | |
10395 | wxString result; | |
423f194a | 10396 | bool temp2 = False ; |
d14a1e28 RD |
10397 | PyObject * obj0 = 0 ; |
10398 | PyObject * obj1 = 0 ; | |
10399 | char *kwnames[] = { | |
10400 | (char *) "self",(char *) "input", NULL | |
10401 | }; | |
10402 | ||
10403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
10404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10405 | { | |
10406 | arg2 = wxString_in_helper(obj1); | |
10407 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10408 | temp2 = True; |
d14a1e28 RD |
10409 | } |
10410 | { | |
10411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10412 | result = (arg1)->Convert((wxString const &)*arg2); | |
10413 | ||
10414 | wxPyEndAllowThreads(__tstate); | |
10415 | if (PyErr_Occurred()) SWIG_fail; | |
10416 | } | |
10417 | { | |
10418 | #if wxUSE_UNICODE | |
10419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10420 | #else | |
10421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10422 | #endif | |
10423 | } | |
10424 | { | |
10425 | if (temp2) | |
10426 | delete arg2; | |
10427 | } | |
10428 | return resultobj; | |
10429 | fail: | |
10430 | { | |
10431 | if (temp2) | |
10432 | delete arg2; | |
10433 | } | |
10434 | return NULL; | |
10435 | } | |
10436 | ||
10437 | ||
10438 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10439 | PyObject *resultobj; | |
10440 | int arg1 ; | |
10441 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10442 | wxFontEncodingArray result; | |
8edf1c75 RD |
10443 | PyObject * obj0 = 0 ; |
10444 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10445 | char *kwnames[] = { |
10446 | (char *) "enc",(char *) "platform", NULL | |
10447 | }; | |
10448 | ||
8edf1c75 RD |
10449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
10450 | { | |
10451 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
10453 | } | |
10454 | if (obj1) { | |
10455 | { | |
10456 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10457 | if (PyErr_Occurred()) SWIG_fail; | |
10458 | } | |
10459 | } | |
d14a1e28 RD |
10460 | { |
10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10462 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10463 | ||
10464 | wxPyEndAllowThreads(__tstate); | |
10465 | if (PyErr_Occurred()) SWIG_fail; | |
10466 | } | |
10467 | { | |
10468 | resultobj = PyList_New(0); | |
10469 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10470 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10471 | PyList_Append(resultobj, number); | |
10472 | Py_DECREF(number); | |
10473 | } | |
10474 | } | |
10475 | return resultobj; | |
10476 | fail: | |
10477 | return NULL; | |
10478 | } | |
10479 | ||
10480 | ||
10481 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10482 | PyObject *resultobj; | |
10483 | int arg1 ; | |
10484 | wxFontEncodingArray result; | |
8edf1c75 | 10485 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10486 | char *kwnames[] = { |
10487 | (char *) "enc", NULL | |
10488 | }; | |
10489 | ||
8edf1c75 RD |
10490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
10491 | { | |
10492 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
d14a1e28 RD |
10495 | { |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10497 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10498 | ||
10499 | wxPyEndAllowThreads(__tstate); | |
10500 | if (PyErr_Occurred()) SWIG_fail; | |
10501 | } | |
10502 | { | |
10503 | resultobj = PyList_New(0); | |
10504 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10505 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10506 | PyList_Append(resultobj, number); | |
10507 | Py_DECREF(number); | |
10508 | } | |
10509 | } | |
10510 | return resultobj; | |
10511 | fail: | |
10512 | return NULL; | |
10513 | } | |
10514 | ||
10515 | ||
10516 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10517 | PyObject *resultobj; | |
10518 | int arg1 ; | |
10519 | int arg2 ; | |
10520 | bool result; | |
8edf1c75 RD |
10521 | PyObject * obj0 = 0 ; |
10522 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10523 | char *kwnames[] = { |
10524 | (char *) "encIn",(char *) "encOut", NULL | |
10525 | }; | |
10526 | ||
8edf1c75 RD |
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
10528 | { | |
10529 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
10530 | if (PyErr_Occurred()) SWIG_fail; | |
10531 | } | |
10532 | { | |
10533 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
10534 | if (PyErr_Occurred()) SWIG_fail; | |
10535 | } | |
d14a1e28 RD |
10536 | { |
10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10538 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10539 | ||
10540 | wxPyEndAllowThreads(__tstate); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | } | |
4e760a36 | 10543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10544 | return resultobj; |
10545 | fail: | |
10546 | return NULL; | |
10547 | } | |
10548 | ||
10549 | ||
10550 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10551 | PyObject *obj; | |
10552 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10553 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10554 | Py_INCREF(obj); | |
10555 | return Py_BuildValue((char *)""); | |
10556 | } | |
10557 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10558 | PyObject *resultobj; | |
10559 | wxDC *arg1 = (wxDC *) 0 ; | |
10560 | PyObject * obj0 = 0 ; | |
10561 | char *kwnames[] = { | |
10562 | (char *) "self", NULL | |
10563 | }; | |
10564 | ||
10565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
10566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10567 | { | |
10568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10569 | delete arg1; | |
10570 | ||
10571 | wxPyEndAllowThreads(__tstate); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
10574 | Py_INCREF(Py_None); resultobj = Py_None; | |
10575 | return resultobj; | |
10576 | fail: | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
10581 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10582 | PyObject *resultobj; | |
10583 | wxDC *arg1 = (wxDC *) 0 ; | |
10584 | PyObject * obj0 = 0 ; | |
10585 | char *kwnames[] = { | |
10586 | (char *) "self", NULL | |
10587 | }; | |
10588 | ||
10589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
10590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10591 | { | |
10592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10593 | (arg1)->BeginDrawing(); | |
10594 | ||
10595 | wxPyEndAllowThreads(__tstate); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | } | |
10598 | Py_INCREF(Py_None); resultobj = Py_None; | |
10599 | return resultobj; | |
10600 | fail: | |
10601 | return NULL; | |
10602 | } | |
10603 | ||
10604 | ||
10605 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10606 | PyObject *resultobj; | |
10607 | wxDC *arg1 = (wxDC *) 0 ; | |
10608 | PyObject * obj0 = 0 ; | |
10609 | char *kwnames[] = { | |
10610 | (char *) "self", NULL | |
10611 | }; | |
10612 | ||
10613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10615 | { | |
10616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10617 | (arg1)->EndDrawing(); | |
10618 | ||
10619 | wxPyEndAllowThreads(__tstate); | |
10620 | if (PyErr_Occurred()) SWIG_fail; | |
10621 | } | |
10622 | Py_INCREF(Py_None); resultobj = Py_None; | |
10623 | return resultobj; | |
10624 | fail: | |
10625 | return NULL; | |
10626 | } | |
10627 | ||
10628 | ||
10629 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10630 | PyObject *resultobj; | |
10631 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10632 | int arg2 ; |
10633 | int arg3 ; | |
d14a1e28 RD |
10634 | wxColour *arg4 = 0 ; |
10635 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10636 | bool result; | |
10637 | wxColour temp4 ; | |
10638 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10639 | PyObject * obj1 = 0 ; |
10640 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10641 | PyObject * obj3 = 0 ; |
8edf1c75 | 10642 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10643 | char *kwnames[] = { |
10644 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10645 | }; | |
10646 | ||
8edf1c75 | 10647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10649 | { |
10650 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
10652 | } | |
10653 | { | |
10654 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10655 | if (PyErr_Occurred()) SWIG_fail; | |
10656 | } | |
d14a1e28 RD |
10657 | { |
10658 | arg4 = &temp4; | |
10659 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10660 | } | |
8edf1c75 RD |
10661 | if (obj4) { |
10662 | { | |
10663 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10664 | if (PyErr_Occurred()) SWIG_fail; | |
10665 | } | |
10666 | } | |
d14a1e28 RD |
10667 | { |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10670 | ||
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
4e760a36 | 10674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10675 | return resultobj; |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
10681 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10682 | PyObject *resultobj; | |
10683 | wxDC *arg1 = (wxDC *) 0 ; | |
10684 | wxPoint *arg2 = 0 ; | |
10685 | wxColour *arg3 = 0 ; | |
10686 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10687 | bool result; | |
10688 | wxPoint temp2 ; | |
10689 | wxColour temp3 ; | |
10690 | PyObject * obj0 = 0 ; | |
10691 | PyObject * obj1 = 0 ; | |
10692 | PyObject * obj2 = 0 ; | |
8edf1c75 | 10693 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10694 | char *kwnames[] = { |
10695 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10696 | }; | |
10697 | ||
8edf1c75 | 10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10700 | { | |
10701 | arg2 = &temp2; | |
10702 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10703 | } | |
10704 | { | |
10705 | arg3 = &temp3; | |
10706 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10707 | } | |
8edf1c75 RD |
10708 | if (obj3) { |
10709 | { | |
10710 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | } | |
d14a1e28 RD |
10714 | { |
10715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10716 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10717 | ||
10718 | wxPyEndAllowThreads(__tstate); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | } | |
4e760a36 | 10721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10722 | return resultobj; |
10723 | fail: | |
10724 | return NULL; | |
10725 | } | |
10726 | ||
10727 | ||
10728 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10729 | PyObject *resultobj; | |
10730 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10731 | int arg2 ; |
10732 | int arg3 ; | |
d14a1e28 RD |
10733 | wxColour result; |
10734 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10735 | PyObject * obj1 = 0 ; |
10736 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10737 | char *kwnames[] = { |
10738 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10739 | }; | |
10740 | ||
8edf1c75 | 10741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10743 | { |
10744 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10745 | if (PyErr_Occurred()) SWIG_fail; | |
10746 | } | |
10747 | { | |
10748 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
10750 | } | |
d14a1e28 RD |
10751 | { |
10752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10753 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10754 | ||
10755 | wxPyEndAllowThreads(__tstate); | |
10756 | if (PyErr_Occurred()) SWIG_fail; | |
10757 | } | |
10758 | { | |
10759 | wxColour * resultptr; | |
10760 | resultptr = new wxColour((wxColour &) result); | |
10761 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10762 | } | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
10769 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10770 | PyObject *resultobj; | |
10771 | wxDC *arg1 = (wxDC *) 0 ; | |
10772 | wxPoint *arg2 = 0 ; | |
10773 | wxColour result; | |
10774 | wxPoint temp2 ; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | PyObject * obj1 = 0 ; | |
10777 | char *kwnames[] = { | |
10778 | (char *) "self",(char *) "pt", NULL | |
10779 | }; | |
10780 | ||
10781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
10782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10783 | { | |
10784 | arg2 = &temp2; | |
10785 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10786 | } | |
10787 | { | |
10788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10789 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10790 | ||
10791 | wxPyEndAllowThreads(__tstate); | |
10792 | if (PyErr_Occurred()) SWIG_fail; | |
10793 | } | |
10794 | { | |
10795 | wxColour * resultptr; | |
10796 | resultptr = new wxColour((wxColour &) result); | |
10797 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10798 | } | |
10799 | return resultobj; | |
10800 | fail: | |
10801 | return NULL; | |
10802 | } | |
10803 | ||
10804 | ||
10805 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10806 | PyObject *resultobj; | |
10807 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10808 | int arg2 ; |
10809 | int arg3 ; | |
10810 | int arg4 ; | |
10811 | int arg5 ; | |
d14a1e28 | 10812 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10813 | PyObject * obj1 = 0 ; |
10814 | PyObject * obj2 = 0 ; | |
10815 | PyObject * obj3 = 0 ; | |
10816 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10817 | char *kwnames[] = { |
10818 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10819 | }; | |
10820 | ||
8edf1c75 | 10821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10823 | { |
10824 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10825 | if (PyErr_Occurred()) SWIG_fail; | |
10826 | } | |
10827 | { | |
10828 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10829 | if (PyErr_Occurred()) SWIG_fail; | |
10830 | } | |
10831 | { | |
10832 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10833 | if (PyErr_Occurred()) SWIG_fail; | |
10834 | } | |
10835 | { | |
10836 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10837 | if (PyErr_Occurred()) SWIG_fail; | |
10838 | } | |
d14a1e28 RD |
10839 | { |
10840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10841 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10842 | ||
10843 | wxPyEndAllowThreads(__tstate); | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
10845 | } | |
10846 | Py_INCREF(Py_None); resultobj = Py_None; | |
10847 | return resultobj; | |
10848 | fail: | |
10849 | return NULL; | |
10850 | } | |
10851 | ||
10852 | ||
10853 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10854 | PyObject *resultobj; | |
10855 | wxDC *arg1 = (wxDC *) 0 ; | |
10856 | wxPoint *arg2 = 0 ; | |
10857 | wxPoint *arg3 = 0 ; | |
10858 | wxPoint temp2 ; | |
10859 | wxPoint temp3 ; | |
10860 | PyObject * obj0 = 0 ; | |
10861 | PyObject * obj1 = 0 ; | |
10862 | PyObject * obj2 = 0 ; | |
10863 | char *kwnames[] = { | |
10864 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10865 | }; | |
10866 | ||
10867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10869 | { | |
10870 | arg2 = &temp2; | |
10871 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10872 | } | |
10873 | { | |
10874 | arg3 = &temp3; | |
10875 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10876 | } | |
10877 | { | |
10878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10879 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10880 | ||
10881 | wxPyEndAllowThreads(__tstate); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | } | |
10884 | Py_INCREF(Py_None); resultobj = Py_None; | |
10885 | return resultobj; | |
10886 | fail: | |
10887 | return NULL; | |
10888 | } | |
10889 | ||
10890 | ||
10891 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10892 | PyObject *resultobj; | |
10893 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10894 | int arg2 ; |
10895 | int arg3 ; | |
d14a1e28 | 10896 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10897 | PyObject * obj1 = 0 ; |
10898 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10899 | char *kwnames[] = { |
10900 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10901 | }; | |
10902 | ||
8edf1c75 | 10903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10905 | { |
10906 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
10908 | } | |
10909 | { | |
10910 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | } | |
d14a1e28 RD |
10913 | { |
10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10915 | (arg1)->CrossHair(arg2,arg3); | |
10916 | ||
10917 | wxPyEndAllowThreads(__tstate); | |
10918 | if (PyErr_Occurred()) SWIG_fail; | |
10919 | } | |
10920 | Py_INCREF(Py_None); resultobj = Py_None; | |
10921 | return resultobj; | |
10922 | fail: | |
10923 | return NULL; | |
10924 | } | |
10925 | ||
10926 | ||
10927 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10928 | PyObject *resultobj; | |
10929 | wxDC *arg1 = (wxDC *) 0 ; | |
10930 | wxPoint *arg2 = 0 ; | |
10931 | wxPoint temp2 ; | |
10932 | PyObject * obj0 = 0 ; | |
10933 | PyObject * obj1 = 0 ; | |
10934 | char *kwnames[] = { | |
10935 | (char *) "self",(char *) "pt", NULL | |
10936 | }; | |
10937 | ||
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
10939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10940 | { | |
10941 | arg2 = &temp2; | |
10942 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10943 | } | |
10944 | { | |
10945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10946 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10947 | ||
10948 | wxPyEndAllowThreads(__tstate); | |
10949 | if (PyErr_Occurred()) SWIG_fail; | |
10950 | } | |
10951 | Py_INCREF(Py_None); resultobj = Py_None; | |
10952 | return resultobj; | |
10953 | fail: | |
10954 | return NULL; | |
10955 | } | |
10956 | ||
10957 | ||
10958 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10959 | PyObject *resultobj; | |
10960 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10961 | int arg2 ; |
10962 | int arg3 ; | |
10963 | int arg4 ; | |
10964 | int arg5 ; | |
10965 | int arg6 ; | |
10966 | int arg7 ; | |
d14a1e28 | 10967 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10968 | PyObject * obj1 = 0 ; |
10969 | PyObject * obj2 = 0 ; | |
10970 | PyObject * obj3 = 0 ; | |
10971 | PyObject * obj4 = 0 ; | |
10972 | PyObject * obj5 = 0 ; | |
10973 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10974 | char *kwnames[] = { |
10975 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10976 | }; | |
10977 | ||
8edf1c75 | 10978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
10979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10980 | { | |
8edf1c75 | 10981 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
d14a1e28 RD |
10982 | if (PyErr_Occurred()) SWIG_fail; |
10983 | } | |
8edf1c75 RD |
10984 | { |
10985 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10986 | if (PyErr_Occurred()) SWIG_fail; | |
10987 | } | |
10988 | { | |
10989 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | } | |
10992 | { | |
10993 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
10996 | { | |
10997 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
10998 | if (PyErr_Occurred()) SWIG_fail; | |
10999 | } | |
11000 | { | |
11001 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
11002 | if (PyErr_Occurred()) SWIG_fail; | |
11003 | } | |
11004 | { | |
11005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11006 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11007 | ||
11008 | wxPyEndAllowThreads(__tstate); | |
11009 | if (PyErr_Occurred()) SWIG_fail; | |
11010 | } | |
11011 | Py_INCREF(Py_None); resultobj = Py_None; | |
11012 | return resultobj; | |
11013 | fail: | |
11014 | return NULL; | |
11015 | } | |
d14a1e28 RD |
11016 | |
11017 | ||
11018 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj; | |
11020 | wxDC *arg1 = (wxDC *) 0 ; | |
11021 | wxPoint *arg2 = 0 ; | |
11022 | wxPoint *arg3 = 0 ; | |
11023 | wxPoint *arg4 = 0 ; | |
11024 | wxPoint temp2 ; | |
11025 | wxPoint temp3 ; | |
11026 | wxPoint temp4 ; | |
11027 | PyObject * obj0 = 0 ; | |
11028 | PyObject * obj1 = 0 ; | |
11029 | PyObject * obj2 = 0 ; | |
11030 | PyObject * obj3 = 0 ; | |
11031 | char *kwnames[] = { | |
11032 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
11033 | }; | |
11034 | ||
11035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11037 | { | |
11038 | arg2 = &temp2; | |
11039 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11040 | } | |
11041 | { | |
11042 | arg3 = &temp3; | |
11043 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11044 | } | |
11045 | { | |
11046 | arg4 = &temp4; | |
11047 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11048 | } | |
11049 | { | |
11050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11051 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11052 | ||
11053 | wxPyEndAllowThreads(__tstate); | |
11054 | if (PyErr_Occurred()) SWIG_fail; | |
11055 | } | |
11056 | Py_INCREF(Py_None); resultobj = Py_None; | |
11057 | return resultobj; | |
11058 | fail: | |
11059 | return NULL; | |
11060 | } | |
11061 | ||
11062 | ||
11063 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11064 | PyObject *resultobj; | |
11065 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11066 | int arg2 ; |
11067 | int arg3 ; | |
11068 | int arg4 ; | |
11069 | int arg5 ; | |
d14a1e28 | 11070 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11071 | PyObject * obj1 = 0 ; |
11072 | PyObject * obj2 = 0 ; | |
11073 | PyObject * obj3 = 0 ; | |
11074 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11075 | char *kwnames[] = { |
11076 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11077 | }; | |
11078 | ||
8edf1c75 | 11079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11081 | { |
11082 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11083 | if (PyErr_Occurred()) SWIG_fail; | |
11084 | } | |
11085 | { | |
11086 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
11089 | { | |
11090 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11091 | if (PyErr_Occurred()) SWIG_fail; | |
11092 | } | |
11093 | { | |
11094 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
d14a1e28 RD |
11097 | { |
11098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11099 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11100 | ||
11101 | wxPyEndAllowThreads(__tstate); | |
11102 | if (PyErr_Occurred()) SWIG_fail; | |
11103 | } | |
11104 | Py_INCREF(Py_None); resultobj = Py_None; | |
11105 | return resultobj; | |
11106 | fail: | |
11107 | return NULL; | |
11108 | } | |
11109 | ||
11110 | ||
11111 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11112 | PyObject *resultobj; | |
11113 | wxDC *arg1 = (wxDC *) 0 ; | |
11114 | wxRect *arg2 = 0 ; | |
11115 | wxRect temp2 ; | |
11116 | PyObject * obj0 = 0 ; | |
11117 | PyObject * obj1 = 0 ; | |
11118 | char *kwnames[] = { | |
11119 | (char *) "self",(char *) "rect", NULL | |
11120 | }; | |
11121 | ||
11122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
11123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11124 | { | |
11125 | arg2 = &temp2; | |
11126 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11127 | } | |
11128 | { | |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | Py_INCREF(Py_None); resultobj = Py_None; | |
11136 | return resultobj; | |
11137 | fail: | |
11138 | return NULL; | |
11139 | } | |
11140 | ||
11141 | ||
11142 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11143 | PyObject *resultobj; | |
11144 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11145 | int arg2 ; |
11146 | int arg3 ; | |
11147 | int arg4 ; | |
11148 | int arg5 ; | |
d14a1e28 RD |
11149 | double arg6 ; |
11150 | double arg7 ; | |
11151 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11152 | PyObject * obj1 = 0 ; |
11153 | PyObject * obj2 = 0 ; | |
11154 | PyObject * obj3 = 0 ; | |
11155 | PyObject * obj4 = 0 ; | |
11156 | PyObject * obj5 = 0 ; | |
11157 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
11158 | char *kwnames[] = { |
11159 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
11160 | }; | |
11161 | ||
8edf1c75 | 11162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 11163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11164 | { |
11165 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | } | |
11168 | { | |
11169 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11170 | if (PyErr_Occurred()) SWIG_fail; | |
11171 | } | |
11172 | { | |
11173 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | { | |
11177 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11178 | if (PyErr_Occurred()) SWIG_fail; | |
11179 | } | |
11180 | { | |
11181 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
11182 | if (PyErr_Occurred()) SWIG_fail; | |
11183 | } | |
11184 | { | |
11185 | arg7 = (double) SWIG_PyObj_AsDouble(obj6); | |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
11187 | } | |
d14a1e28 RD |
11188 | { |
11189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11190 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11191 | ||
11192 | wxPyEndAllowThreads(__tstate); | |
11193 | if (PyErr_Occurred()) SWIG_fail; | |
11194 | } | |
11195 | Py_INCREF(Py_None); resultobj = Py_None; | |
11196 | return resultobj; | |
11197 | fail: | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
11202 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11203 | PyObject *resultobj; | |
11204 | wxDC *arg1 = (wxDC *) 0 ; | |
11205 | wxPoint *arg2 = 0 ; | |
11206 | wxSize *arg3 = 0 ; | |
11207 | double arg4 ; | |
11208 | double arg5 ; | |
11209 | wxPoint temp2 ; | |
11210 | wxSize temp3 ; | |
11211 | PyObject * obj0 = 0 ; | |
11212 | PyObject * obj1 = 0 ; | |
11213 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
11214 | PyObject * obj3 = 0 ; |
11215 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11216 | char *kwnames[] = { |
11217 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
11218 | }; | |
11219 | ||
8edf1c75 | 11220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11222 | { | |
11223 | arg2 = &temp2; | |
11224 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11225 | } | |
11226 | { | |
11227 | arg3 = &temp3; | |
11228 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11229 | } | |
8edf1c75 RD |
11230 | { |
11231 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
11234 | { | |
11235 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
11236 | if (PyErr_Occurred()) SWIG_fail; | |
11237 | } | |
d14a1e28 RD |
11238 | { |
11239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11240 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11241 | ||
11242 | wxPyEndAllowThreads(__tstate); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | } | |
11245 | Py_INCREF(Py_None); resultobj = Py_None; | |
11246 | return resultobj; | |
11247 | fail: | |
11248 | return NULL; | |
11249 | } | |
11250 | ||
11251 | ||
11252 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11253 | PyObject *resultobj; | |
11254 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11255 | int arg2 ; |
11256 | int arg3 ; | |
d14a1e28 | 11257 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11258 | PyObject * obj1 = 0 ; |
11259 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11260 | char *kwnames[] = { |
11261 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11262 | }; | |
11263 | ||
8edf1c75 | 11264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 11265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11266 | { |
11267 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11268 | if (PyErr_Occurred()) SWIG_fail; | |
11269 | } | |
11270 | { | |
11271 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
d14a1e28 RD |
11274 | { |
11275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11276 | (arg1)->DrawPoint(arg2,arg3); | |
11277 | ||
11278 | wxPyEndAllowThreads(__tstate); | |
11279 | if (PyErr_Occurred()) SWIG_fail; | |
11280 | } | |
11281 | Py_INCREF(Py_None); resultobj = Py_None; | |
11282 | return resultobj; | |
11283 | fail: | |
11284 | return NULL; | |
11285 | } | |
11286 | ||
11287 | ||
11288 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject *resultobj; | |
11290 | wxDC *arg1 = (wxDC *) 0 ; | |
11291 | wxPoint *arg2 = 0 ; | |
11292 | wxPoint temp2 ; | |
11293 | PyObject * obj0 = 0 ; | |
11294 | PyObject * obj1 = 0 ; | |
11295 | char *kwnames[] = { | |
11296 | (char *) "self",(char *) "pt", NULL | |
11297 | }; | |
11298 | ||
11299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
11300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11301 | { | |
11302 | arg2 = &temp2; | |
11303 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11304 | } | |
11305 | { | |
11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11307 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11308 | ||
11309 | wxPyEndAllowThreads(__tstate); | |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
11311 | } | |
11312 | Py_INCREF(Py_None); resultobj = Py_None; | |
11313 | return resultobj; | |
11314 | fail: | |
11315 | return NULL; | |
11316 | } | |
11317 | ||
11318 | ||
11319 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11320 | PyObject *resultobj; | |
11321 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11322 | int arg2 ; |
11323 | int arg3 ; | |
11324 | int arg4 ; | |
11325 | int arg5 ; | |
d14a1e28 | 11326 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11327 | PyObject * obj1 = 0 ; |
11328 | PyObject * obj2 = 0 ; | |
11329 | PyObject * obj3 = 0 ; | |
11330 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11331 | char *kwnames[] = { |
11332 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11333 | }; | |
11334 | ||
8edf1c75 | 11335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11337 | { |
11338 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11339 | if (PyErr_Occurred()) SWIG_fail; | |
11340 | } | |
11341 | { | |
11342 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | { | |
11346 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11347 | if (PyErr_Occurred()) SWIG_fail; | |
11348 | } | |
11349 | { | |
11350 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11351 | if (PyErr_Occurred()) SWIG_fail; | |
11352 | } | |
d14a1e28 RD |
11353 | { |
11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11355 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11356 | ||
11357 | wxPyEndAllowThreads(__tstate); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
11360 | Py_INCREF(Py_None); resultobj = Py_None; | |
11361 | return resultobj; | |
11362 | fail: | |
11363 | return NULL; | |
11364 | } | |
11365 | ||
11366 | ||
11367 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11368 | PyObject *resultobj; | |
11369 | wxDC *arg1 = (wxDC *) 0 ; | |
11370 | wxPoint *arg2 = 0 ; | |
11371 | wxSize *arg3 = 0 ; | |
11372 | wxPoint temp2 ; | |
11373 | wxSize temp3 ; | |
11374 | PyObject * obj0 = 0 ; | |
11375 | PyObject * obj1 = 0 ; | |
11376 | PyObject * obj2 = 0 ; | |
11377 | char *kwnames[] = { | |
11378 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11379 | }; | |
11380 | ||
11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11383 | { | |
11384 | arg2 = &temp2; | |
11385 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11386 | } | |
11387 | { | |
11388 | arg3 = &temp3; | |
11389 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11390 | } | |
11391 | { | |
11392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11393 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11394 | ||
11395 | wxPyEndAllowThreads(__tstate); | |
11396 | if (PyErr_Occurred()) SWIG_fail; | |
11397 | } | |
11398 | Py_INCREF(Py_None); resultobj = Py_None; | |
11399 | return resultobj; | |
11400 | fail: | |
11401 | return NULL; | |
11402 | } | |
11403 | ||
11404 | ||
11405 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11406 | PyObject *resultobj; | |
11407 | wxDC *arg1 = (wxDC *) 0 ; | |
11408 | wxRect *arg2 = 0 ; | |
11409 | wxRect temp2 ; | |
11410 | PyObject * obj0 = 0 ; | |
11411 | PyObject * obj1 = 0 ; | |
11412 | char *kwnames[] = { | |
11413 | (char *) "self",(char *) "rect", NULL | |
11414 | }; | |
11415 | ||
11416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
11417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11418 | { | |
11419 | arg2 = &temp2; | |
11420 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11421 | } | |
11422 | { | |
11423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11424 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
11425 | ||
11426 | wxPyEndAllowThreads(__tstate); | |
11427 | if (PyErr_Occurred()) SWIG_fail; | |
11428 | } | |
11429 | Py_INCREF(Py_None); resultobj = Py_None; | |
11430 | return resultobj; | |
11431 | fail: | |
11432 | return NULL; | |
11433 | } | |
11434 | ||
11435 | ||
11436 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11437 | PyObject *resultobj; | |
11438 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11439 | int arg2 ; |
11440 | int arg3 ; | |
11441 | int arg4 ; | |
11442 | int arg5 ; | |
d14a1e28 RD |
11443 | double arg6 ; |
11444 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11445 | PyObject * obj1 = 0 ; |
11446 | PyObject * obj2 = 0 ; | |
11447 | PyObject * obj3 = 0 ; | |
11448 | PyObject * obj4 = 0 ; | |
11449 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11450 | char *kwnames[] = { |
11451 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11452 | }; | |
11453 | ||
8edf1c75 | 11454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 11455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11456 | { |
11457 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11458 | if (PyErr_Occurred()) SWIG_fail; | |
11459 | } | |
11460 | { | |
11461 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | { | |
11465 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11466 | if (PyErr_Occurred()) SWIG_fail; | |
11467 | } | |
11468 | { | |
11469 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11470 | if (PyErr_Occurred()) SWIG_fail; | |
11471 | } | |
11472 | { | |
11473 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
11474 | if (PyErr_Occurred()) SWIG_fail; | |
11475 | } | |
d14a1e28 RD |
11476 | { |
11477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11478 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11479 | ||
11480 | wxPyEndAllowThreads(__tstate); | |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
11482 | } | |
11483 | Py_INCREF(Py_None); resultobj = Py_None; | |
11484 | return resultobj; | |
11485 | fail: | |
11486 | return NULL; | |
11487 | } | |
11488 | ||
11489 | ||
11490 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11491 | PyObject *resultobj; | |
11492 | wxDC *arg1 = (wxDC *) 0 ; | |
11493 | wxPoint *arg2 = 0 ; | |
11494 | wxSize *arg3 = 0 ; | |
11495 | double arg4 ; | |
11496 | wxPoint temp2 ; | |
11497 | wxSize temp3 ; | |
11498 | PyObject * obj0 = 0 ; | |
11499 | PyObject * obj1 = 0 ; | |
11500 | PyObject * obj2 = 0 ; | |
8edf1c75 | 11501 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11502 | char *kwnames[] = { |
11503 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
11504 | }; | |
11505 | ||
8edf1c75 | 11506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11508 | { | |
11509 | arg2 = &temp2; | |
11510 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11511 | } | |
11512 | { | |
11513 | arg3 = &temp3; | |
11514 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11515 | } | |
8edf1c75 RD |
11516 | { |
11517 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
d14a1e28 RD |
11520 | { |
11521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11522 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
11523 | ||
11524 | wxPyEndAllowThreads(__tstate); | |
11525 | if (PyErr_Occurred()) SWIG_fail; | |
11526 | } | |
11527 | Py_INCREF(Py_None); resultobj = Py_None; | |
11528 | return resultobj; | |
11529 | fail: | |
11530 | return NULL; | |
11531 | } | |
11532 | ||
11533 | ||
11534 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11535 | PyObject *resultobj; | |
11536 | wxDC *arg1 = (wxDC *) 0 ; | |
11537 | wxRect *arg2 = 0 ; | |
11538 | double arg3 ; | |
11539 | wxRect temp2 ; | |
11540 | PyObject * obj0 = 0 ; | |
11541 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11542 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11543 | char *kwnames[] = { |
11544 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
11545 | }; | |
11546 | ||
8edf1c75 | 11547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11549 | { | |
11550 | arg2 = &temp2; | |
11551 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11552 | } | |
8edf1c75 RD |
11553 | { |
11554 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
11555 | if (PyErr_Occurred()) SWIG_fail; | |
11556 | } | |
d14a1e28 RD |
11557 | { |
11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11559 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
11560 | ||
11561 | wxPyEndAllowThreads(__tstate); | |
11562 | if (PyErr_Occurred()) SWIG_fail; | |
11563 | } | |
11564 | Py_INCREF(Py_None); resultobj = Py_None; | |
11565 | return resultobj; | |
11566 | fail: | |
11567 | return NULL; | |
11568 | } | |
11569 | ||
11570 | ||
11571 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11572 | PyObject *resultobj; | |
11573 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11574 | int arg2 ; |
11575 | int arg3 ; | |
11576 | int arg4 ; | |
d14a1e28 | 11577 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11578 | PyObject * obj1 = 0 ; |
11579 | PyObject * obj2 = 0 ; | |
11580 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11581 | char *kwnames[] = { |
11582 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11583 | }; | |
11584 | ||
8edf1c75 | 11585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11587 | { |
11588 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11589 | if (PyErr_Occurred()) SWIG_fail; | |
11590 | } | |
11591 | { | |
11592 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11593 | if (PyErr_Occurred()) SWIG_fail; | |
11594 | } | |
11595 | { | |
11596 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
11598 | } | |
d14a1e28 RD |
11599 | { |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11602 | ||
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | Py_INCREF(Py_None); resultobj = Py_None; | |
11607 | return resultobj; | |
11608 | fail: | |
11609 | return NULL; | |
11610 | } | |
11611 | ||
11612 | ||
11613 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11614 | PyObject *resultobj; | |
11615 | wxDC *arg1 = (wxDC *) 0 ; | |
11616 | wxPoint *arg2 = 0 ; | |
423f194a | 11617 | int arg3 ; |
d14a1e28 RD |
11618 | wxPoint temp2 ; |
11619 | PyObject * obj0 = 0 ; | |
11620 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11621 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11622 | char *kwnames[] = { |
11623 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11624 | }; | |
11625 | ||
8edf1c75 | 11626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11628 | { | |
11629 | arg2 = &temp2; | |
11630 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11631 | } | |
8edf1c75 RD |
11632 | { |
11633 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
11635 | } | |
d14a1e28 RD |
11636 | { |
11637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11638 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11639 | ||
11640 | wxPyEndAllowThreads(__tstate); | |
11641 | if (PyErr_Occurred()) SWIG_fail; | |
11642 | } | |
11643 | Py_INCREF(Py_None); resultobj = Py_None; | |
11644 | return resultobj; | |
11645 | fail: | |
11646 | return NULL; | |
11647 | } | |
11648 | ||
11649 | ||
11650 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11651 | PyObject *resultobj; | |
11652 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11653 | int arg2 ; |
11654 | int arg3 ; | |
11655 | int arg4 ; | |
11656 | int arg5 ; | |
d14a1e28 | 11657 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11658 | PyObject * obj1 = 0 ; |
11659 | PyObject * obj2 = 0 ; | |
11660 | PyObject * obj3 = 0 ; | |
11661 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11662 | char *kwnames[] = { |
11663 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11664 | }; | |
11665 | ||
8edf1c75 | 11666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11668 | { |
11669 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11670 | if (PyErr_Occurred()) SWIG_fail; | |
11671 | } | |
11672 | { | |
11673 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11674 | if (PyErr_Occurred()) SWIG_fail; | |
11675 | } | |
11676 | { | |
11677 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11678 | if (PyErr_Occurred()) SWIG_fail; | |
11679 | } | |
11680 | { | |
11681 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11682 | if (PyErr_Occurred()) SWIG_fail; | |
11683 | } | |
d14a1e28 RD |
11684 | { |
11685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11686 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11687 | ||
11688 | wxPyEndAllowThreads(__tstate); | |
11689 | if (PyErr_Occurred()) SWIG_fail; | |
11690 | } | |
11691 | Py_INCREF(Py_None); resultobj = Py_None; | |
11692 | return resultobj; | |
11693 | fail: | |
11694 | return NULL; | |
11695 | } | |
11696 | ||
11697 | ||
11698 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11699 | PyObject *resultobj; | |
11700 | wxDC *arg1 = (wxDC *) 0 ; | |
11701 | wxPoint *arg2 = 0 ; | |
11702 | wxSize *arg3 = 0 ; | |
11703 | wxPoint temp2 ; | |
11704 | wxSize temp3 ; | |
11705 | PyObject * obj0 = 0 ; | |
11706 | PyObject * obj1 = 0 ; | |
11707 | PyObject * obj2 = 0 ; | |
11708 | char *kwnames[] = { | |
11709 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11710 | }; | |
11711 | ||
11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11714 | { | |
11715 | arg2 = &temp2; | |
11716 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11717 | } | |
11718 | { | |
11719 | arg3 = &temp3; | |
11720 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11721 | } | |
11722 | { | |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11725 | ||
11726 | wxPyEndAllowThreads(__tstate); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | Py_INCREF(Py_None); resultobj = Py_None; | |
11730 | return resultobj; | |
11731 | fail: | |
11732 | return NULL; | |
11733 | } | |
11734 | ||
11735 | ||
11736 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11737 | PyObject *resultobj; | |
11738 | wxDC *arg1 = (wxDC *) 0 ; | |
11739 | wxRect *arg2 = 0 ; | |
11740 | wxRect temp2 ; | |
11741 | PyObject * obj0 = 0 ; | |
11742 | PyObject * obj1 = 0 ; | |
11743 | char *kwnames[] = { | |
11744 | (char *) "self",(char *) "rect", NULL | |
11745 | }; | |
11746 | ||
11747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
11748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11749 | { | |
11750 | arg2 = &temp2; | |
11751 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11752 | } | |
11753 | { | |
11754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11755 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11756 | ||
11757 | wxPyEndAllowThreads(__tstate); | |
11758 | if (PyErr_Occurred()) SWIG_fail; | |
11759 | } | |
11760 | Py_INCREF(Py_None); resultobj = Py_None; | |
11761 | return resultobj; | |
11762 | fail: | |
11763 | return NULL; | |
11764 | } | |
11765 | ||
11766 | ||
11767 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11768 | PyObject *resultobj; | |
11769 | wxDC *arg1 = (wxDC *) 0 ; | |
11770 | wxIcon *arg2 = 0 ; | |
423f194a RD |
11771 | int arg3 ; |
11772 | int arg4 ; | |
d14a1e28 RD |
11773 | PyObject * obj0 = 0 ; |
11774 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11775 | PyObject * obj2 = 0 ; |
11776 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11777 | char *kwnames[] = { |
11778 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11779 | }; | |
11780 | ||
8edf1c75 | 11781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11783 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11784 | if (arg2 == NULL) { | |
11785 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11786 | } | |
8edf1c75 RD |
11787 | { |
11788 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11789 | if (PyErr_Occurred()) SWIG_fail; | |
11790 | } | |
11791 | { | |
11792 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11793 | if (PyErr_Occurred()) SWIG_fail; | |
11794 | } | |
d14a1e28 RD |
11795 | { |
11796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11797 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11798 | ||
11799 | wxPyEndAllowThreads(__tstate); | |
11800 | if (PyErr_Occurred()) SWIG_fail; | |
11801 | } | |
11802 | Py_INCREF(Py_None); resultobj = Py_None; | |
11803 | return resultobj; | |
11804 | fail: | |
11805 | return NULL; | |
11806 | } | |
11807 | ||
11808 | ||
11809 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11810 | PyObject *resultobj; | |
11811 | wxDC *arg1 = (wxDC *) 0 ; | |
11812 | wxIcon *arg2 = 0 ; | |
11813 | wxPoint *arg3 = 0 ; | |
11814 | wxPoint temp3 ; | |
11815 | PyObject * obj0 = 0 ; | |
11816 | PyObject * obj1 = 0 ; | |
11817 | PyObject * obj2 = 0 ; | |
11818 | char *kwnames[] = { | |
11819 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11820 | }; | |
11821 | ||
11822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11824 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11825 | if (arg2 == NULL) { | |
11826 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11827 | } | |
11828 | { | |
11829 | arg3 = &temp3; | |
11830 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11831 | } | |
11832 | { | |
11833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11834 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11835 | ||
11836 | wxPyEndAllowThreads(__tstate); | |
11837 | if (PyErr_Occurred()) SWIG_fail; | |
11838 | } | |
11839 | Py_INCREF(Py_None); resultobj = Py_None; | |
11840 | return resultobj; | |
11841 | fail: | |
11842 | return NULL; | |
11843 | } | |
11844 | ||
11845 | ||
11846 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11847 | PyObject *resultobj; | |
11848 | wxDC *arg1 = (wxDC *) 0 ; | |
11849 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
11850 | int arg3 ; |
11851 | int arg4 ; | |
11852 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11853 | PyObject * obj0 = 0 ; |
11854 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11855 | PyObject * obj2 = 0 ; |
11856 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11857 | PyObject * obj4 = 0 ; |
11858 | char *kwnames[] = { | |
11859 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11860 | }; | |
11861 | ||
8edf1c75 | 11862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",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 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11865 | if (arg2 == NULL) { | |
11866 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11867 | } | |
8edf1c75 RD |
11868 | { |
11869 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | { | |
11873 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
d14a1e28 | 11876 | if (obj4) { |
83448d71 | 11877 | { |
8edf1c75 | 11878 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
83448d71 RD |
11879 | if (PyErr_Occurred()) SWIG_fail; |
11880 | } | |
d14a1e28 RD |
11881 | } |
11882 | { | |
11883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11884 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11885 | ||
11886 | wxPyEndAllowThreads(__tstate); | |
11887 | if (PyErr_Occurred()) SWIG_fail; | |
11888 | } | |
11889 | Py_INCREF(Py_None); resultobj = Py_None; | |
11890 | return resultobj; | |
11891 | fail: | |
11892 | return NULL; | |
11893 | } | |
11894 | ||
11895 | ||
11896 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11897 | PyObject *resultobj; | |
11898 | wxDC *arg1 = (wxDC *) 0 ; | |
11899 | wxBitmap *arg2 = 0 ; | |
11900 | wxPoint *arg3 = 0 ; | |
423f194a | 11901 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11902 | wxPoint temp3 ; |
11903 | PyObject * obj0 = 0 ; | |
11904 | PyObject * obj1 = 0 ; | |
11905 | PyObject * obj2 = 0 ; | |
11906 | PyObject * obj3 = 0 ; | |
11907 | char *kwnames[] = { | |
11908 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11909 | }; | |
11910 | ||
11911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11913 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11914 | if (arg2 == NULL) { | |
11915 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11916 | } | |
11917 | { | |
11918 | arg3 = &temp3; | |
11919 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11920 | } | |
11921 | if (obj3) { | |
83448d71 | 11922 | { |
8edf1c75 | 11923 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
11924 | if (PyErr_Occurred()) SWIG_fail; |
11925 | } | |
d14a1e28 RD |
11926 | } |
11927 | { | |
11928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11929 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11930 | ||
11931 | wxPyEndAllowThreads(__tstate); | |
11932 | if (PyErr_Occurred()) SWIG_fail; | |
11933 | } | |
11934 | Py_INCREF(Py_None); resultobj = Py_None; | |
11935 | return resultobj; | |
11936 | fail: | |
11937 | return NULL; | |
11938 | } | |
11939 | ||
11940 | ||
11941 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11942 | PyObject *resultobj; | |
11943 | wxDC *arg1 = (wxDC *) 0 ; | |
11944 | wxString *arg2 = 0 ; | |
423f194a RD |
11945 | int arg3 ; |
11946 | int arg4 ; | |
11947 | bool temp2 = False ; | |
d14a1e28 RD |
11948 | PyObject * obj0 = 0 ; |
11949 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11950 | PyObject * obj2 = 0 ; |
11951 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11952 | char *kwnames[] = { |
11953 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11954 | }; | |
11955 | ||
8edf1c75 | 11956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11958 | { | |
11959 | arg2 = wxString_in_helper(obj1); | |
11960 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11961 | temp2 = True; |
d14a1e28 | 11962 | } |
8edf1c75 RD |
11963 | { |
11964 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
11967 | { | |
11968 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
d14a1e28 RD |
11971 | { |
11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11973 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11974 | ||
11975 | wxPyEndAllowThreads(__tstate); | |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
11977 | } | |
11978 | Py_INCREF(Py_None); resultobj = Py_None; | |
11979 | { | |
11980 | if (temp2) | |
11981 | delete arg2; | |
11982 | } | |
11983 | return resultobj; | |
11984 | fail: | |
11985 | { | |
11986 | if (temp2) | |
11987 | delete arg2; | |
11988 | } | |
11989 | return NULL; | |
11990 | } | |
11991 | ||
11992 | ||
11993 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11994 | PyObject *resultobj; | |
11995 | wxDC *arg1 = (wxDC *) 0 ; | |
11996 | wxString *arg2 = 0 ; | |
11997 | wxPoint *arg3 = 0 ; | |
423f194a | 11998 | bool temp2 = False ; |
d14a1e28 RD |
11999 | wxPoint temp3 ; |
12000 | PyObject * obj0 = 0 ; | |
12001 | PyObject * obj1 = 0 ; | |
12002 | PyObject * obj2 = 0 ; | |
12003 | char *kwnames[] = { | |
12004 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12005 | }; | |
12006 | ||
12007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12009 | { | |
12010 | arg2 = wxString_in_helper(obj1); | |
12011 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12012 | temp2 = True; |
d14a1e28 RD |
12013 | } |
12014 | { | |
12015 | arg3 = &temp3; | |
12016 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12017 | } | |
12018 | { | |
12019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12020 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12021 | ||
12022 | wxPyEndAllowThreads(__tstate); | |
12023 | if (PyErr_Occurred()) SWIG_fail; | |
12024 | } | |
12025 | Py_INCREF(Py_None); resultobj = Py_None; | |
12026 | { | |
12027 | if (temp2) | |
12028 | delete arg2; | |
12029 | } | |
12030 | return resultobj; | |
12031 | fail: | |
12032 | { | |
12033 | if (temp2) | |
12034 | delete arg2; | |
12035 | } | |
12036 | return NULL; | |
12037 | } | |
12038 | ||
12039 | ||
12040 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12041 | PyObject *resultobj; | |
12042 | wxDC *arg1 = (wxDC *) 0 ; | |
12043 | wxString *arg2 = 0 ; | |
423f194a RD |
12044 | int arg3 ; |
12045 | int arg4 ; | |
d14a1e28 | 12046 | double arg5 ; |
423f194a | 12047 | bool temp2 = False ; |
d14a1e28 RD |
12048 | PyObject * obj0 = 0 ; |
12049 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12050 | PyObject * obj2 = 0 ; |
12051 | PyObject * obj3 = 0 ; | |
12052 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12053 | char *kwnames[] = { |
12054 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12055 | }; | |
12056 | ||
8edf1c75 | 12057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
12058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12059 | { | |
12060 | arg2 = wxString_in_helper(obj1); | |
12061 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12062 | temp2 = True; |
d14a1e28 | 12063 | } |
8edf1c75 RD |
12064 | { |
12065 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12066 | if (PyErr_Occurred()) SWIG_fail; | |
12067 | } | |
12068 | { | |
12069 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12070 | if (PyErr_Occurred()) SWIG_fail; | |
12071 | } | |
12072 | { | |
12073 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
d14a1e28 RD |
12076 | { |
12077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12078 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12079 | ||
12080 | wxPyEndAllowThreads(__tstate); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | } | |
12083 | Py_INCREF(Py_None); resultobj = Py_None; | |
12084 | { | |
12085 | if (temp2) | |
12086 | delete arg2; | |
12087 | } | |
12088 | return resultobj; | |
12089 | fail: | |
12090 | { | |
12091 | if (temp2) | |
12092 | delete arg2; | |
12093 | } | |
12094 | return NULL; | |
12095 | } | |
12096 | ||
12097 | ||
12098 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12099 | PyObject *resultobj; | |
12100 | wxDC *arg1 = (wxDC *) 0 ; | |
12101 | wxString *arg2 = 0 ; | |
12102 | wxPoint *arg3 = 0 ; | |
12103 | double arg4 ; | |
423f194a | 12104 | bool temp2 = False ; |
d14a1e28 RD |
12105 | wxPoint temp3 ; |
12106 | PyObject * obj0 = 0 ; | |
12107 | PyObject * obj1 = 0 ; | |
12108 | PyObject * obj2 = 0 ; | |
8edf1c75 | 12109 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
12110 | char *kwnames[] = { |
12111 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12112 | }; | |
12113 | ||
8edf1c75 | 12114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
12115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12116 | { | |
12117 | arg2 = wxString_in_helper(obj1); | |
12118 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12119 | temp2 = True; |
d14a1e28 RD |
12120 | } |
12121 | { | |
12122 | arg3 = &temp3; | |
12123 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12124 | } | |
8edf1c75 RD |
12125 | { |
12126 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
12127 | if (PyErr_Occurred()) SWIG_fail; | |
12128 | } | |
d14a1e28 RD |
12129 | { |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12131 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12132 | ||
12133 | wxPyEndAllowThreads(__tstate); | |
12134 | if (PyErr_Occurred()) SWIG_fail; | |
12135 | } | |
12136 | Py_INCREF(Py_None); resultobj = Py_None; | |
12137 | { | |
12138 | if (temp2) | |
12139 | delete arg2; | |
12140 | } | |
12141 | return resultobj; | |
12142 | fail: | |
12143 | { | |
12144 | if (temp2) | |
12145 | delete arg2; | |
12146 | } | |
12147 | return NULL; | |
12148 | } | |
12149 | ||
12150 | ||
12151 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12152 | PyObject *resultobj; | |
12153 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12154 | int arg2 ; |
12155 | int arg3 ; | |
12156 | int arg4 ; | |
12157 | int arg5 ; | |
d14a1e28 | 12158 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
12159 | int arg7 ; |
12160 | int arg8 ; | |
d14a1e28 | 12161 | int arg9 = (int) wxCOPY ; |
423f194a RD |
12162 | bool arg10 = (bool) False ; |
12163 | int arg11 = (int) -1 ; | |
12164 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
12165 | bool result; |
12166 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12167 | PyObject * obj1 = 0 ; |
12168 | PyObject * obj2 = 0 ; | |
12169 | PyObject * obj3 = 0 ; | |
12170 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12171 | PyObject * obj5 = 0 ; |
8edf1c75 RD |
12172 | PyObject * obj6 = 0 ; |
12173 | PyObject * obj7 = 0 ; | |
12174 | PyObject * obj8 = 0 ; | |
d14a1e28 | 12175 | PyObject * obj9 = 0 ; |
8edf1c75 RD |
12176 | PyObject * obj10 = 0 ; |
12177 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
12178 | char *kwnames[] = { |
12179 | (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 | |
12180 | }; | |
12181 | ||
8edf1c75 | 12182 | 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 | 12183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12184 | { |
12185 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12186 | if (PyErr_Occurred()) SWIG_fail; | |
12187 | } | |
12188 | { | |
12189 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
12192 | { | |
12193 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
12196 | { | |
12197 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12198 | if (PyErr_Occurred()) SWIG_fail; | |
12199 | } | |
d14a1e28 | 12200 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12201 | { |
12202 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
12203 | if (PyErr_Occurred()) SWIG_fail; | |
12204 | } | |
12205 | { | |
12206 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
12207 | if (PyErr_Occurred()) SWIG_fail; | |
12208 | } | |
12209 | if (obj8) { | |
12210 | { | |
12211 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
12212 | if (PyErr_Occurred()) SWIG_fail; | |
12213 | } | |
12214 | } | |
d14a1e28 | 12215 | if (obj9) { |
83448d71 | 12216 | { |
8edf1c75 RD |
12217 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
12220 | } | |
12221 | if (obj10) { | |
12222 | { | |
12223 | arg11 = (int) SWIG_PyObj_AsInt(obj10); | |
12224 | if (PyErr_Occurred()) SWIG_fail; | |
12225 | } | |
12226 | } | |
12227 | if (obj11) { | |
12228 | { | |
12229 | arg12 = (int) SWIG_PyObj_AsInt(obj11); | |
83448d71 RD |
12230 | if (PyErr_Occurred()) SWIG_fail; |
12231 | } | |
d14a1e28 RD |
12232 | } |
12233 | { | |
12234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12235 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12236 | ||
12237 | wxPyEndAllowThreads(__tstate); | |
12238 | if (PyErr_Occurred()) SWIG_fail; | |
12239 | } | |
4e760a36 | 12240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12241 | return resultobj; |
12242 | fail: | |
12243 | return NULL; | |
12244 | } | |
12245 | ||
12246 | ||
12247 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12248 | PyObject *resultobj; | |
12249 | wxDC *arg1 = (wxDC *) 0 ; | |
12250 | wxPoint *arg2 = 0 ; | |
12251 | wxSize *arg3 = 0 ; | |
12252 | wxDC *arg4 = (wxDC *) 0 ; | |
12253 | wxPoint *arg5 = 0 ; | |
12254 | int arg6 = (int) wxCOPY ; | |
423f194a | 12255 | bool arg7 = (bool) False ; |
d14a1e28 RD |
12256 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
12257 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12258 | bool result; | |
12259 | wxPoint temp2 ; | |
12260 | wxSize temp3 ; | |
12261 | wxPoint temp5 ; | |
12262 | wxPoint temp8 ; | |
12263 | PyObject * obj0 = 0 ; | |
12264 | PyObject * obj1 = 0 ; | |
12265 | PyObject * obj2 = 0 ; | |
12266 | PyObject * obj3 = 0 ; | |
12267 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12268 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12269 | PyObject * obj6 = 0 ; |
12270 | PyObject * obj7 = 0 ; | |
12271 | char *kwnames[] = { | |
12272 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12273 | }; | |
12274 | ||
8edf1c75 | 12275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
12276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12277 | { | |
12278 | arg2 = &temp2; | |
12279 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12280 | } | |
12281 | { | |
12282 | arg3 = &temp3; | |
12283 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12284 | } | |
12285 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12286 | { | |
12287 | arg5 = &temp5; | |
12288 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12289 | } | |
8edf1c75 RD |
12290 | if (obj5) { |
12291 | { | |
12292 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
12293 | if (PyErr_Occurred()) SWIG_fail; | |
12294 | } | |
12295 | } | |
d14a1e28 | 12296 | if (obj6) { |
83448d71 | 12297 | { |
8edf1c75 | 12298 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
83448d71 RD |
12299 | if (PyErr_Occurred()) SWIG_fail; |
12300 | } | |
d14a1e28 RD |
12301 | } |
12302 | if (obj7) { | |
12303 | { | |
12304 | arg8 = &temp8; | |
12305 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12306 | } | |
12307 | } | |
12308 | { | |
12309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12310 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
12311 | ||
12312 | wxPyEndAllowThreads(__tstate); | |
12313 | if (PyErr_Occurred()) SWIG_fail; | |
12314 | } | |
4e760a36 | 12315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12316 | return resultobj; |
12317 | fail: | |
12318 | return NULL; | |
12319 | } | |
12320 | ||
12321 | ||
12322 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12323 | PyObject *resultobj; | |
12324 | wxDC *arg1 = (wxDC *) 0 ; | |
12325 | int arg2 ; | |
12326 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
12327 | int arg4 = (int) 0 ; |
12328 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
12329 | PyObject * obj0 = 0 ; |
12330 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12331 | PyObject * obj2 = 0 ; |
12332 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12333 | char *kwnames[] = { |
12334 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12335 | }; | |
12336 | ||
8edf1c75 | 12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
12338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12339 | { | |
12340 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12341 | if (arg3 == NULL) SWIG_fail; | |
12342 | } | |
8edf1c75 RD |
12343 | if (obj2) { |
12344 | { | |
12345 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | } | |
12349 | if (obj3) { | |
12350 | { | |
12351 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
12352 | if (PyErr_Occurred()) SWIG_fail; | |
12353 | } | |
12354 | } | |
d14a1e28 RD |
12355 | { |
12356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12357 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12358 | ||
12359 | wxPyEndAllowThreads(__tstate); | |
12360 | if (PyErr_Occurred()) SWIG_fail; | |
12361 | } | |
12362 | Py_INCREF(Py_None); resultobj = Py_None; | |
12363 | { | |
12364 | if (arg3) delete [] arg3; | |
12365 | } | |
12366 | return resultobj; | |
12367 | fail: | |
12368 | { | |
12369 | if (arg3) delete [] arg3; | |
12370 | } | |
12371 | return NULL; | |
12372 | } | |
12373 | ||
12374 | ||
12375 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12376 | PyObject *resultobj; | |
12377 | wxDC *arg1 = (wxDC *) 0 ; | |
12378 | int arg2 ; | |
12379 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
12380 | int arg4 = (int) 0 ; |
12381 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
12382 | int arg6 = (int) wxODDEVEN_RULE ; |
12383 | PyObject * obj0 = 0 ; | |
12384 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12385 | PyObject * obj2 = 0 ; |
12386 | PyObject * obj3 = 0 ; | |
12387 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12388 | char *kwnames[] = { |
12389 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12390 | }; | |
12391 | ||
8edf1c75 | 12392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
12393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12394 | { | |
12395 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12396 | if (arg3 == NULL) SWIG_fail; | |
12397 | } | |
8edf1c75 RD |
12398 | if (obj2) { |
12399 | { | |
12400 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
12403 | } | |
12404 | if (obj3) { | |
12405 | { | |
12406 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
12408 | } | |
12409 | } | |
12410 | if (obj4) { | |
12411 | { | |
12412 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
12413 | if (PyErr_Occurred()) SWIG_fail; | |
12414 | } | |
12415 | } | |
d14a1e28 RD |
12416 | { |
12417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12418 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12419 | ||
12420 | wxPyEndAllowThreads(__tstate); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
12422 | } | |
12423 | Py_INCREF(Py_None); resultobj = Py_None; | |
12424 | { | |
12425 | if (arg3) delete [] arg3; | |
12426 | } | |
12427 | return resultobj; | |
12428 | fail: | |
12429 | { | |
12430 | if (arg3) delete [] arg3; | |
12431 | } | |
12432 | return NULL; | |
12433 | } | |
12434 | ||
12435 | ||
12436 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12437 | PyObject *resultobj; | |
12438 | wxDC *arg1 = (wxDC *) 0 ; | |
12439 | wxString *arg2 = 0 ; | |
12440 | wxRect *arg3 = 0 ; | |
12441 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12442 | int arg5 = (int) -1 ; | |
423f194a | 12443 | bool temp2 = False ; |
d14a1e28 RD |
12444 | wxRect temp3 ; |
12445 | PyObject * obj0 = 0 ; | |
12446 | PyObject * obj1 = 0 ; | |
12447 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
12448 | PyObject * obj3 = 0 ; |
12449 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12450 | char *kwnames[] = { |
12451 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12452 | }; | |
12453 | ||
8edf1c75 | 12454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
12455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12456 | { | |
12457 | arg2 = wxString_in_helper(obj1); | |
12458 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12459 | temp2 = True; |
d14a1e28 RD |
12460 | } |
12461 | { | |
12462 | arg3 = &temp3; | |
12463 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12464 | } | |
8edf1c75 RD |
12465 | if (obj3) { |
12466 | { | |
12467 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12468 | if (PyErr_Occurred()) SWIG_fail; | |
12469 | } | |
12470 | } | |
12471 | if (obj4) { | |
12472 | { | |
12473 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | } | |
d14a1e28 RD |
12477 | { |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | Py_INCREF(Py_None); resultobj = Py_None; | |
12485 | { | |
12486 | if (temp2) | |
12487 | delete arg2; | |
12488 | } | |
12489 | return resultobj; | |
12490 | fail: | |
12491 | { | |
12492 | if (temp2) | |
12493 | delete arg2; | |
12494 | } | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
12499 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12500 | PyObject *resultobj; | |
12501 | wxDC *arg1 = (wxDC *) 0 ; | |
12502 | wxString *arg2 = 0 ; | |
12503 | wxBitmap *arg3 = 0 ; | |
12504 | wxRect *arg4 = 0 ; | |
12505 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12506 | int arg6 = (int) -1 ; | |
12507 | wxRect result; | |
423f194a | 12508 | bool temp2 = False ; |
d14a1e28 RD |
12509 | wxRect temp4 ; |
12510 | PyObject * obj0 = 0 ; | |
12511 | PyObject * obj1 = 0 ; | |
12512 | PyObject * obj2 = 0 ; | |
12513 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
12514 | PyObject * obj4 = 0 ; |
12515 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12516 | char *kwnames[] = { |
12517 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12518 | }; | |
12519 | ||
8edf1c75 | 12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
12521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12522 | { | |
12523 | arg2 = wxString_in_helper(obj1); | |
12524 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12525 | temp2 = True; |
d14a1e28 RD |
12526 | } |
12527 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12528 | if (arg3 == NULL) { | |
12529 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12530 | } | |
12531 | { | |
12532 | arg4 = &temp4; | |
12533 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12534 | } | |
8edf1c75 RD |
12535 | if (obj4) { |
12536 | { | |
12537 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12538 | if (PyErr_Occurred()) SWIG_fail; | |
12539 | } | |
12540 | } | |
12541 | if (obj5) { | |
12542 | { | |
12543 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
12544 | if (PyErr_Occurred()) SWIG_fail; | |
12545 | } | |
12546 | } | |
d14a1e28 RD |
12547 | { |
12548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12549 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12550 | ||
12551 | wxPyEndAllowThreads(__tstate); | |
12552 | if (PyErr_Occurred()) SWIG_fail; | |
12553 | } | |
12554 | { | |
12555 | wxRect * resultptr; | |
12556 | resultptr = new wxRect((wxRect &) result); | |
12557 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
12558 | } | |
12559 | { | |
12560 | if (temp2) | |
12561 | delete arg2; | |
12562 | } | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | { | |
12566 | if (temp2) | |
12567 | delete arg2; | |
12568 | } | |
12569 | return NULL; | |
12570 | } | |
12571 | ||
12572 | ||
12573 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12574 | PyObject *resultobj; | |
12575 | wxDC *arg1 = (wxDC *) 0 ; | |
12576 | int arg2 ; | |
12577 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12578 | PyObject * obj0 = 0 ; | |
12579 | PyObject * obj1 = 0 ; | |
12580 | char *kwnames[] = { | |
12581 | (char *) "self",(char *) "points", NULL | |
12582 | }; | |
12583 | ||
12584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
12585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12586 | { | |
12587 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12588 | if (arg3 == NULL) SWIG_fail; | |
12589 | } | |
12590 | { | |
12591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12592 | (arg1)->DrawSpline(arg2,arg3); | |
12593 | ||
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | Py_INCREF(Py_None); resultobj = Py_None; | |
12598 | { | |
12599 | if (arg3) delete [] arg3; | |
12600 | } | |
12601 | return resultobj; | |
12602 | fail: | |
12603 | { | |
12604 | if (arg3) delete [] arg3; | |
12605 | } | |
12606 | return NULL; | |
12607 | } | |
12608 | ||
12609 | ||
12610 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12611 | PyObject *resultobj; | |
12612 | wxDC *arg1 = (wxDC *) 0 ; | |
12613 | PyObject * obj0 = 0 ; | |
12614 | char *kwnames[] = { | |
12615 | (char *) "self", NULL | |
12616 | }; | |
12617 | ||
12618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
12619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12620 | { | |
12621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12622 | (arg1)->Clear(); | |
12623 | ||
12624 | wxPyEndAllowThreads(__tstate); | |
12625 | if (PyErr_Occurred()) SWIG_fail; | |
12626 | } | |
12627 | Py_INCREF(Py_None); resultobj = Py_None; | |
12628 | return resultobj; | |
12629 | fail: | |
12630 | return NULL; | |
12631 | } | |
12632 | ||
12633 | ||
12634 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12635 | PyObject *resultobj; | |
12636 | wxDC *arg1 = (wxDC *) 0 ; | |
12637 | wxString *arg2 = 0 ; | |
12638 | bool result; | |
423f194a | 12639 | bool temp2 = False ; |
d14a1e28 RD |
12640 | PyObject * obj0 = 0 ; |
12641 | PyObject * obj1 = 0 ; | |
12642 | char *kwnames[] = { | |
12643 | (char *) "self",(char *) "message", NULL | |
12644 | }; | |
12645 | ||
12646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
12647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12648 | { | |
12649 | arg2 = wxString_in_helper(obj1); | |
12650 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12651 | temp2 = True; |
d14a1e28 RD |
12652 | } |
12653 | { | |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12656 | ||
12657 | wxPyEndAllowThreads(__tstate); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
12659 | } | |
4e760a36 | 12660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12661 | { |
12662 | if (temp2) | |
12663 | delete arg2; | |
12664 | } | |
12665 | return resultobj; | |
12666 | fail: | |
12667 | { | |
12668 | if (temp2) | |
12669 | delete arg2; | |
12670 | } | |
12671 | return NULL; | |
12672 | } | |
12673 | ||
12674 | ||
12675 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12676 | PyObject *resultobj; | |
12677 | wxDC *arg1 = (wxDC *) 0 ; | |
12678 | PyObject * obj0 = 0 ; | |
12679 | char *kwnames[] = { | |
12680 | (char *) "self", NULL | |
12681 | }; | |
12682 | ||
12683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
12684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12685 | { | |
12686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12687 | (arg1)->EndDoc(); | |
12688 | ||
12689 | wxPyEndAllowThreads(__tstate); | |
12690 | if (PyErr_Occurred()) SWIG_fail; | |
12691 | } | |
12692 | Py_INCREF(Py_None); resultobj = Py_None; | |
12693 | return resultobj; | |
12694 | fail: | |
12695 | return NULL; | |
12696 | } | |
12697 | ||
12698 | ||
12699 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12700 | PyObject *resultobj; | |
12701 | wxDC *arg1 = (wxDC *) 0 ; | |
12702 | PyObject * obj0 = 0 ; | |
12703 | char *kwnames[] = { | |
12704 | (char *) "self", NULL | |
12705 | }; | |
12706 | ||
12707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12709 | { | |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12711 | (arg1)->StartPage(); | |
12712 | ||
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
12716 | Py_INCREF(Py_None); resultobj = Py_None; | |
12717 | return resultobj; | |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
12723 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12724 | PyObject *resultobj; | |
12725 | wxDC *arg1 = (wxDC *) 0 ; | |
12726 | PyObject * obj0 = 0 ; | |
12727 | char *kwnames[] = { | |
12728 | (char *) "self", NULL | |
12729 | }; | |
12730 | ||
12731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12733 | { | |
12734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12735 | (arg1)->EndPage(); | |
12736 | ||
12737 | wxPyEndAllowThreads(__tstate); | |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
12739 | } | |
12740 | Py_INCREF(Py_None); resultobj = Py_None; | |
12741 | return resultobj; | |
12742 | fail: | |
12743 | return NULL; | |
12744 | } | |
12745 | ||
12746 | ||
12747 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12748 | PyObject *resultobj; | |
12749 | wxDC *arg1 = (wxDC *) 0 ; | |
12750 | wxFont *arg2 = 0 ; | |
12751 | PyObject * obj0 = 0 ; | |
12752 | PyObject * obj1 = 0 ; | |
12753 | char *kwnames[] = { | |
12754 | (char *) "self",(char *) "font", NULL | |
12755 | }; | |
12756 | ||
12757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
12758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12759 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12760 | if (arg2 == NULL) { | |
12761 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12762 | } | |
12763 | { | |
12764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12765 | (arg1)->SetFont((wxFont const &)*arg2); | |
12766 | ||
12767 | wxPyEndAllowThreads(__tstate); | |
12768 | if (PyErr_Occurred()) SWIG_fail; | |
12769 | } | |
12770 | Py_INCREF(Py_None); resultobj = Py_None; | |
12771 | return resultobj; | |
12772 | fail: | |
12773 | return NULL; | |
12774 | } | |
12775 | ||
12776 | ||
12777 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12778 | PyObject *resultobj; | |
12779 | wxDC *arg1 = (wxDC *) 0 ; | |
12780 | wxPen *arg2 = 0 ; | |
12781 | PyObject * obj0 = 0 ; | |
12782 | PyObject * obj1 = 0 ; | |
12783 | char *kwnames[] = { | |
12784 | (char *) "self",(char *) "pen", NULL | |
12785 | }; | |
12786 | ||
12787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
12788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12789 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12790 | if (arg2 == NULL) { | |
12791 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12792 | } | |
12793 | { | |
12794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12795 | (arg1)->SetPen((wxPen const &)*arg2); | |
12796 | ||
12797 | wxPyEndAllowThreads(__tstate); | |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
12799 | } | |
12800 | Py_INCREF(Py_None); resultobj = Py_None; | |
12801 | return resultobj; | |
12802 | fail: | |
12803 | return NULL; | |
12804 | } | |
12805 | ||
12806 | ||
12807 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12808 | PyObject *resultobj; | |
12809 | wxDC *arg1 = (wxDC *) 0 ; | |
12810 | wxBrush *arg2 = 0 ; | |
12811 | PyObject * obj0 = 0 ; | |
12812 | PyObject * obj1 = 0 ; | |
12813 | char *kwnames[] = { | |
12814 | (char *) "self",(char *) "brush", NULL | |
12815 | }; | |
12816 | ||
12817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
12818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12819 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12820 | if (arg2 == NULL) { | |
12821 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12822 | } | |
12823 | { | |
12824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12825 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12826 | ||
12827 | wxPyEndAllowThreads(__tstate); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | } | |
12830 | Py_INCREF(Py_None); resultobj = Py_None; | |
12831 | return resultobj; | |
12832 | fail: | |
12833 | return NULL; | |
12834 | } | |
12835 | ||
12836 | ||
12837 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12838 | PyObject *resultobj; | |
12839 | wxDC *arg1 = (wxDC *) 0 ; | |
12840 | wxBrush *arg2 = 0 ; | |
12841 | PyObject * obj0 = 0 ; | |
12842 | PyObject * obj1 = 0 ; | |
12843 | char *kwnames[] = { | |
12844 | (char *) "self",(char *) "brush", NULL | |
12845 | }; | |
12846 | ||
12847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
12848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12849 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12850 | if (arg2 == NULL) { | |
12851 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12852 | } | |
12853 | { | |
12854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12855 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12856 | ||
12857 | wxPyEndAllowThreads(__tstate); | |
12858 | if (PyErr_Occurred()) SWIG_fail; | |
12859 | } | |
12860 | Py_INCREF(Py_None); resultobj = Py_None; | |
12861 | return resultobj; | |
12862 | fail: | |
12863 | return NULL; | |
12864 | } | |
12865 | ||
12866 | ||
12867 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12868 | PyObject *resultobj; | |
12869 | wxDC *arg1 = (wxDC *) 0 ; | |
12870 | int arg2 ; | |
12871 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12872 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12873 | char *kwnames[] = { |
12874 | (char *) "self",(char *) "mode", NULL | |
12875 | }; | |
12876 | ||
8edf1c75 | 12877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12879 | { |
12880 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
12882 | } | |
d14a1e28 RD |
12883 | { |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | (arg1)->SetBackgroundMode(arg2); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | Py_INCREF(Py_None); resultobj = Py_None; | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
12897 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12898 | PyObject *resultobj; | |
12899 | wxDC *arg1 = (wxDC *) 0 ; | |
12900 | wxPalette *arg2 = 0 ; | |
12901 | PyObject * obj0 = 0 ; | |
12902 | PyObject * obj1 = 0 ; | |
12903 | char *kwnames[] = { | |
12904 | (char *) "self",(char *) "palette", NULL | |
12905 | }; | |
12906 | ||
12907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
12908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12909 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12910 | if (arg2 == NULL) { | |
12911 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12912 | } | |
12913 | { | |
12914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12915 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12916 | ||
12917 | wxPyEndAllowThreads(__tstate); | |
12918 | if (PyErr_Occurred()) SWIG_fail; | |
12919 | } | |
12920 | Py_INCREF(Py_None); resultobj = Py_None; | |
12921 | return resultobj; | |
12922 | fail: | |
12923 | return NULL; | |
12924 | } | |
12925 | ||
12926 | ||
f0983263 | 12927 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12928 | PyObject *resultobj; |
12929 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12930 | int arg2 ; |
12931 | int arg3 ; | |
12932 | int arg4 ; | |
12933 | int arg5 ; | |
d14a1e28 | 12934 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12935 | PyObject * obj1 = 0 ; |
12936 | PyObject * obj2 = 0 ; | |
12937 | PyObject * obj3 = 0 ; | |
12938 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12939 | char *kwnames[] = { |
12940 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12941 | }; | |
12942 | ||
8edf1c75 | 12943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12945 | { |
12946 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12947 | if (PyErr_Occurred()) SWIG_fail; | |
12948 | } | |
12949 | { | |
12950 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
12953 | { | |
12954 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12955 | if (PyErr_Occurred()) SWIG_fail; | |
12956 | } | |
12957 | { | |
12958 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
d14a1e28 RD |
12961 | { |
12962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12963 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12964 | ||
12965 | wxPyEndAllowThreads(__tstate); | |
12966 | if (PyErr_Occurred()) SWIG_fail; | |
12967 | } | |
12968 | Py_INCREF(Py_None); resultobj = Py_None; | |
12969 | return resultobj; | |
12970 | fail: | |
12971 | return NULL; | |
12972 | } | |
12973 | ||
12974 | ||
f0983263 RD |
12975 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12976 | PyObject *resultobj; | |
12977 | wxDC *arg1 = (wxDC *) 0 ; | |
12978 | wxPoint *arg2 = 0 ; | |
12979 | wxSize *arg3 = 0 ; | |
12980 | wxPoint temp2 ; | |
12981 | wxSize temp3 ; | |
12982 | PyObject * obj0 = 0 ; | |
12983 | PyObject * obj1 = 0 ; | |
12984 | PyObject * obj2 = 0 ; | |
12985 | char *kwnames[] = { | |
12986 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12987 | }; | |
12988 | ||
12989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12991 | { | |
12992 | arg2 = &temp2; | |
12993 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12994 | } | |
12995 | { | |
12996 | arg3 = &temp3; | |
12997 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12998 | } | |
12999 | { | |
13000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13001 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
13002 | ||
13003 | wxPyEndAllowThreads(__tstate); | |
13004 | if (PyErr_Occurred()) SWIG_fail; | |
13005 | } | |
13006 | Py_INCREF(Py_None); resultobj = Py_None; | |
13007 | return resultobj; | |
13008 | fail: | |
13009 | return NULL; | |
13010 | } | |
13011 | ||
13012 | ||
d14a1e28 RD |
13013 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
13014 | PyObject *resultobj; | |
13015 | wxDC *arg1 = (wxDC *) 0 ; | |
13016 | wxRect *arg2 = 0 ; | |
13017 | wxRect temp2 ; | |
13018 | PyObject * obj0 = 0 ; | |
13019 | PyObject * obj1 = 0 ; | |
13020 | char *kwnames[] = { | |
13021 | (char *) "self",(char *) "rect", NULL | |
13022 | }; | |
13023 | ||
13024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
13025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13026 | { | |
13027 | arg2 = &temp2; | |
13028 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13029 | } | |
13030 | { | |
13031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13032 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
13033 | ||
13034 | wxPyEndAllowThreads(__tstate); | |
13035 | if (PyErr_Occurred()) SWIG_fail; | |
13036 | } | |
13037 | Py_INCREF(Py_None); resultobj = Py_None; | |
13038 | return resultobj; | |
13039 | fail: | |
13040 | return NULL; | |
13041 | } | |
13042 | ||
13043 | ||
13044 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13045 | PyObject *resultobj; | |
13046 | wxDC *arg1 = (wxDC *) 0 ; | |
13047 | wxRegion *arg2 = 0 ; | |
13048 | PyObject * obj0 = 0 ; | |
13049 | PyObject * obj1 = 0 ; | |
13050 | char *kwnames[] = { | |
13051 | (char *) "self",(char *) "region", NULL | |
13052 | }; | |
13053 | ||
13054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
13055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13056 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13057 | if (arg2 == NULL) { | |
13058 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13059 | } | |
13060 | { | |
13061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13062 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
13063 | ||
13064 | wxPyEndAllowThreads(__tstate); | |
13065 | if (PyErr_Occurred()) SWIG_fail; | |
13066 | } | |
13067 | Py_INCREF(Py_None); resultobj = Py_None; | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | return NULL; | |
13071 | } | |
13072 | ||
13073 | ||
13074 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13075 | PyObject *resultobj; | |
13076 | wxDC *arg1 = (wxDC *) 0 ; | |
13077 | PyObject * obj0 = 0 ; | |
13078 | char *kwnames[] = { | |
13079 | (char *) "self", NULL | |
13080 | }; | |
13081 | ||
13082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
13083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13084 | { | |
13085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13086 | (arg1)->DestroyClippingRegion(); | |
13087 | ||
13088 | wxPyEndAllowThreads(__tstate); | |
13089 | if (PyErr_Occurred()) SWIG_fail; | |
13090 | } | |
13091 | Py_INCREF(Py_None); resultobj = Py_None; | |
13092 | return resultobj; | |
13093 | fail: | |
13094 | return NULL; | |
13095 | } | |
13096 | ||
13097 | ||
13098 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13099 | PyObject *resultobj; | |
13100 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13101 | int *arg2 = (int *) 0 ; |
13102 | int *arg3 = (int *) 0 ; | |
13103 | int *arg4 = (int *) 0 ; | |
13104 | int *arg5 = (int *) 0 ; | |
13105 | int temp2 ; | |
13106 | int temp3 ; | |
13107 | int temp4 ; | |
13108 | int temp5 ; | |
d14a1e28 RD |
13109 | PyObject * obj0 = 0 ; |
13110 | char *kwnames[] = { | |
13111 | (char *) "self", NULL | |
13112 | }; | |
13113 | ||
13114 | arg2 = &temp2; | |
13115 | arg3 = &temp3; | |
13116 | arg4 = &temp4; | |
13117 | arg5 = &temp5; | |
13118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
13119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13120 | { | |
13121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13122 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13123 | ||
13124 | wxPyEndAllowThreads(__tstate); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
13127 | Py_INCREF(Py_None); resultobj = Py_None; | |
13128 | { | |
13129 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13130 | resultobj = t_output_helper(resultobj,o); | |
13131 | } | |
13132 | { | |
13133 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13134 | resultobj = t_output_helper(resultobj,o); | |
13135 | } | |
13136 | { | |
13137 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13138 | resultobj = t_output_helper(resultobj,o); | |
13139 | } | |
13140 | { | |
13141 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13142 | resultobj = t_output_helper(resultobj,o); | |
13143 | } | |
13144 | return resultobj; | |
13145 | fail: | |
13146 | return NULL; | |
13147 | } | |
13148 | ||
13149 | ||
13150 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13151 | PyObject *resultobj; | |
13152 | wxDC *arg1 = (wxDC *) 0 ; | |
13153 | wxRect result; | |
13154 | PyObject * obj0 = 0 ; | |
13155 | char *kwnames[] = { | |
13156 | (char *) "self", NULL | |
13157 | }; | |
13158 | ||
13159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
13160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13161 | { | |
13162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13163 | result = wxDC_GetClippingRect(arg1); | |
13164 | ||
13165 | wxPyEndAllowThreads(__tstate); | |
13166 | if (PyErr_Occurred()) SWIG_fail; | |
13167 | } | |
13168 | { | |
13169 | wxRect * resultptr; | |
13170 | resultptr = new wxRect((wxRect &) result); | |
13171 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
13172 | } | |
13173 | return resultobj; | |
13174 | fail: | |
13175 | return NULL; | |
13176 | } | |
13177 | ||
13178 | ||
13179 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13180 | PyObject *resultobj; | |
13181 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13182 | int result; |
d14a1e28 RD |
13183 | PyObject * obj0 = 0 ; |
13184 | char *kwnames[] = { | |
13185 | (char *) "self", NULL | |
13186 | }; | |
13187 | ||
13188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
13189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13190 | { | |
13191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13192 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
13193 | |
13194 | wxPyEndAllowThreads(__tstate); | |
13195 | if (PyErr_Occurred()) SWIG_fail; | |
13196 | } | |
8edf1c75 | 13197 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13198 | return resultobj; |
13199 | fail: | |
13200 | return NULL; | |
13201 | } | |
13202 | ||
13203 | ||
13204 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13205 | PyObject *resultobj; | |
13206 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13207 | int result; |
d14a1e28 RD |
13208 | PyObject * obj0 = 0 ; |
13209 | char *kwnames[] = { | |
13210 | (char *) "self", NULL | |
13211 | }; | |
13212 | ||
13213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
13214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13215 | { | |
13216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13217 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
13218 | |
13219 | wxPyEndAllowThreads(__tstate); | |
13220 | if (PyErr_Occurred()) SWIG_fail; | |
13221 | } | |
8edf1c75 | 13222 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13223 | return resultobj; |
13224 | fail: | |
13225 | return NULL; | |
13226 | } | |
13227 | ||
13228 | ||
13229 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13230 | PyObject *resultobj; | |
13231 | wxDC *arg1 = (wxDC *) 0 ; | |
13232 | wxString *arg2 = 0 ; | |
423f194a RD |
13233 | int *arg3 = (int *) 0 ; |
13234 | int *arg4 = (int *) 0 ; | |
13235 | bool temp2 = False ; | |
13236 | int temp3 ; | |
13237 | int temp4 ; | |
d14a1e28 RD |
13238 | PyObject * obj0 = 0 ; |
13239 | PyObject * obj1 = 0 ; | |
13240 | char *kwnames[] = { | |
13241 | (char *) "self",(char *) "string", NULL | |
13242 | }; | |
13243 | ||
13244 | arg3 = &temp3; | |
13245 | arg4 = &temp4; | |
13246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
13247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13248 | { | |
13249 | arg2 = wxString_in_helper(obj1); | |
13250 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13251 | temp2 = True; |
d14a1e28 RD |
13252 | } |
13253 | { | |
13254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13255 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13256 | ||
13257 | wxPyEndAllowThreads(__tstate); | |
13258 | if (PyErr_Occurred()) SWIG_fail; | |
13259 | } | |
13260 | Py_INCREF(Py_None); resultobj = Py_None; | |
13261 | { | |
13262 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13263 | resultobj = t_output_helper(resultobj,o); | |
13264 | } | |
13265 | { | |
13266 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13267 | resultobj = t_output_helper(resultobj,o); | |
13268 | } | |
13269 | { | |
13270 | if (temp2) | |
13271 | delete arg2; | |
13272 | } | |
13273 | return resultobj; | |
13274 | fail: | |
13275 | { | |
13276 | if (temp2) | |
13277 | delete arg2; | |
13278 | } | |
13279 | return NULL; | |
13280 | } | |
13281 | ||
13282 | ||
13283 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13284 | PyObject *resultobj; | |
13285 | wxDC *arg1 = (wxDC *) 0 ; | |
13286 | wxString *arg2 = 0 ; | |
423f194a RD |
13287 | int *arg3 = (int *) 0 ; |
13288 | int *arg4 = (int *) 0 ; | |
13289 | int *arg5 = (int *) 0 ; | |
13290 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 13291 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
13292 | bool temp2 = False ; |
13293 | int temp3 ; | |
13294 | int temp4 ; | |
13295 | int temp5 ; | |
13296 | int temp6 ; | |
d14a1e28 RD |
13297 | PyObject * obj0 = 0 ; |
13298 | PyObject * obj1 = 0 ; | |
13299 | PyObject * obj2 = 0 ; | |
13300 | char *kwnames[] = { | |
13301 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13302 | }; | |
13303 | ||
13304 | arg3 = &temp3; | |
13305 | arg4 = &temp4; | |
13306 | arg5 = &temp5; | |
13307 | arg6 = &temp6; | |
13308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13310 | { | |
13311 | arg2 = wxString_in_helper(obj1); | |
13312 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13313 | temp2 = True; |
d14a1e28 RD |
13314 | } |
13315 | if (obj2) { | |
13316 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13317 | } | |
13318 | { | |
13319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13320 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13321 | ||
13322 | wxPyEndAllowThreads(__tstate); | |
13323 | if (PyErr_Occurred()) SWIG_fail; | |
13324 | } | |
13325 | Py_INCREF(Py_None); resultobj = Py_None; | |
13326 | { | |
13327 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13328 | resultobj = t_output_helper(resultobj,o); | |
13329 | } | |
13330 | { | |
13331 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13332 | resultobj = t_output_helper(resultobj,o); | |
13333 | } | |
13334 | { | |
13335 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13336 | resultobj = t_output_helper(resultobj,o); | |
13337 | } | |
13338 | { | |
13339 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
13340 | resultobj = t_output_helper(resultobj,o); | |
13341 | } | |
13342 | { | |
13343 | if (temp2) | |
13344 | delete arg2; | |
13345 | } | |
13346 | return resultobj; | |
13347 | fail: | |
13348 | { | |
13349 | if (temp2) | |
13350 | delete arg2; | |
13351 | } | |
13352 | return NULL; | |
13353 | } | |
13354 | ||
13355 | ||
13356 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13357 | PyObject *resultobj; | |
13358 | wxDC *arg1 = (wxDC *) 0 ; | |
13359 | wxString *arg2 = 0 ; | |
423f194a RD |
13360 | int *arg3 = (int *) 0 ; |
13361 | int *arg4 = (int *) 0 ; | |
13362 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 13363 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
13364 | bool temp2 = False ; |
13365 | int temp3 ; | |
13366 | int temp4 ; | |
13367 | int temp5 ; | |
d14a1e28 RD |
13368 | PyObject * obj0 = 0 ; |
13369 | PyObject * obj1 = 0 ; | |
13370 | PyObject * obj2 = 0 ; | |
13371 | char *kwnames[] = { | |
13372 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13373 | }; | |
13374 | ||
13375 | arg3 = &temp3; | |
13376 | arg4 = &temp4; | |
13377 | arg5 = &temp5; | |
13378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13380 | { | |
13381 | arg2 = wxString_in_helper(obj1); | |
13382 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13383 | temp2 = True; |
d14a1e28 RD |
13384 | } |
13385 | if (obj2) { | |
13386 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13387 | } | |
13388 | { | |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13391 | ||
13392 | wxPyEndAllowThreads(__tstate); | |
13393 | if (PyErr_Occurred()) SWIG_fail; | |
13394 | } | |
13395 | Py_INCREF(Py_None); resultobj = Py_None; | |
13396 | { | |
13397 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13398 | resultobj = t_output_helper(resultobj,o); | |
13399 | } | |
13400 | { | |
13401 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13402 | resultobj = t_output_helper(resultobj,o); | |
13403 | } | |
13404 | { | |
13405 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13406 | resultobj = t_output_helper(resultobj,o); | |
13407 | } | |
13408 | { | |
13409 | if (temp2) | |
13410 | delete arg2; | |
13411 | } | |
13412 | return resultobj; | |
13413 | fail: | |
13414 | { | |
13415 | if (temp2) | |
13416 | delete arg2; | |
13417 | } | |
13418 | return NULL; | |
13419 | } | |
13420 | ||
13421 | ||
db914595 RD |
13422 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { |
13423 | PyObject *resultobj; | |
13424 | wxDC *arg1 = (wxDC *) 0 ; | |
13425 | wxString *arg2 = 0 ; | |
13426 | wxArrayInt result; | |
13427 | bool temp2 = False ; | |
13428 | PyObject * obj0 = 0 ; | |
13429 | PyObject * obj1 = 0 ; | |
13430 | char *kwnames[] = { | |
13431 | (char *) "self",(char *) "text", NULL | |
13432 | }; | |
13433 | ||
13434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
13435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13436 | { | |
13437 | arg2 = wxString_in_helper(obj1); | |
13438 | if (arg2 == NULL) SWIG_fail; | |
13439 | temp2 = True; | |
13440 | } | |
13441 | { | |
13442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13443 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13444 | ||
13445 | wxPyEndAllowThreads(__tstate); | |
13446 | if (PyErr_Occurred()) SWIG_fail; | |
13447 | } | |
13448 | { | |
13449 | resultobj = PyList_New(0); | |
13450 | size_t idx; | |
13451 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13452 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13453 | PyList_Append(resultobj, val); | |
13454 | Py_DECREF(val); | |
13455 | } | |
13456 | } | |
13457 | { | |
13458 | if (temp2) | |
13459 | delete arg2; | |
13460 | } | |
13461 | return resultobj; | |
13462 | fail: | |
13463 | { | |
13464 | if (temp2) | |
13465 | delete arg2; | |
13466 | } | |
13467 | return NULL; | |
13468 | } | |
13469 | ||
13470 | ||
44127b65 RD |
13471 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
13472 | PyObject *resultobj; | |
13473 | wxDC *arg1 = (wxDC *) 0 ; | |
13474 | wxSize result; | |
13475 | PyObject * obj0 = 0 ; | |
13476 | char *kwnames[] = { | |
13477 | (char *) "self", NULL | |
13478 | }; | |
13479 | ||
13480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",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 | result = (arg1)->GetSize(); | |
13485 | ||
13486 | wxPyEndAllowThreads(__tstate); | |
13487 | if (PyErr_Occurred()) SWIG_fail; | |
13488 | } | |
13489 | { | |
13490 | wxSize * resultptr; | |
13491 | resultptr = new wxSize((wxSize &) result); | |
13492 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13493 | } | |
13494 | return resultobj; | |
13495 | fail: | |
13496 | return NULL; | |
13497 | } | |
13498 | ||
13499 | ||
d14a1e28 RD |
13500 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
13501 | PyObject *resultobj; | |
13502 | wxDC *arg1 = (wxDC *) 0 ; | |
13503 | int *arg2 = (int *) 0 ; | |
13504 | int *arg3 = (int *) 0 ; | |
13505 | int temp2 ; | |
13506 | int temp3 ; | |
13507 | PyObject * obj0 = 0 ; | |
13508 | char *kwnames[] = { | |
13509 | (char *) "self", NULL | |
13510 | }; | |
13511 | ||
13512 | arg2 = &temp2; | |
13513 | arg3 = &temp3; | |
13514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
13515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13516 | { | |
13517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13518 | (arg1)->GetSize(arg2,arg3); | |
13519 | ||
13520 | wxPyEndAllowThreads(__tstate); | |
13521 | if (PyErr_Occurred()) SWIG_fail; | |
13522 | } | |
13523 | Py_INCREF(Py_None); resultobj = Py_None; | |
13524 | { | |
13525 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13526 | resultobj = t_output_helper(resultobj,o); | |
13527 | } | |
13528 | { | |
13529 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13530 | resultobj = t_output_helper(resultobj,o); | |
13531 | } | |
13532 | return resultobj; | |
13533 | fail: | |
13534 | return NULL; | |
13535 | } | |
13536 | ||
13537 | ||
44127b65 | 13538 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13539 | PyObject *resultobj; |
13540 | wxDC *arg1 = (wxDC *) 0 ; | |
13541 | wxSize result; | |
13542 | PyObject * obj0 = 0 ; | |
13543 | char *kwnames[] = { | |
13544 | (char *) "self", NULL | |
13545 | }; | |
13546 | ||
44127b65 | 13547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13549 | { | |
13550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13551 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
13552 | |
13553 | wxPyEndAllowThreads(__tstate); | |
13554 | if (PyErr_Occurred()) SWIG_fail; | |
13555 | } | |
13556 | { | |
13557 | wxSize * resultptr; | |
13558 | resultptr = new wxSize((wxSize &) result); | |
13559 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13560 | } | |
13561 | return resultobj; | |
13562 | fail: | |
13563 | return NULL; | |
13564 | } | |
13565 | ||
13566 | ||
44127b65 | 13567 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13568 | PyObject *resultobj; |
13569 | wxDC *arg1 = (wxDC *) 0 ; | |
13570 | int *arg2 = (int *) 0 ; | |
13571 | int *arg3 = (int *) 0 ; | |
13572 | int temp2 ; | |
13573 | int temp3 ; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | char *kwnames[] = { | |
13576 | (char *) "self", NULL | |
13577 | }; | |
13578 | ||
13579 | arg2 = &temp2; | |
13580 | arg3 = &temp3; | |
44127b65 | 13581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13583 | { | |
13584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13585 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13586 | ||
13587 | wxPyEndAllowThreads(__tstate); | |
13588 | if (PyErr_Occurred()) SWIG_fail; | |
13589 | } | |
13590 | Py_INCREF(Py_None); resultobj = Py_None; | |
13591 | { | |
13592 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13593 | resultobj = t_output_helper(resultobj,o); | |
13594 | } | |
13595 | { | |
13596 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13597 | resultobj = t_output_helper(resultobj,o); | |
13598 | } | |
13599 | return resultobj; | |
13600 | fail: | |
13601 | return NULL; | |
13602 | } | |
13603 | ||
13604 | ||
d14a1e28 RD |
13605 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
13606 | PyObject *resultobj; | |
13607 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13608 | int arg2 ; |
13609 | int result; | |
d14a1e28 | 13610 | PyObject * obj0 = 0 ; |
8edf1c75 | 13611 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13612 | char *kwnames[] = { |
13613 | (char *) "self",(char *) "x", NULL | |
13614 | }; | |
13615 | ||
8edf1c75 | 13616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13618 | { |
13619 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13620 | if (PyErr_Occurred()) SWIG_fail; | |
13621 | } | |
d14a1e28 RD |
13622 | { |
13623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13624 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13625 | |
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
8edf1c75 | 13629 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13630 | return resultobj; |
13631 | fail: | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
13636 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13637 | PyObject *resultobj; | |
13638 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13639 | int arg2 ; |
13640 | int result; | |
d14a1e28 | 13641 | PyObject * obj0 = 0 ; |
8edf1c75 | 13642 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13643 | char *kwnames[] = { |
13644 | (char *) "self",(char *) "y", NULL | |
13645 | }; | |
13646 | ||
8edf1c75 | 13647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13649 | { |
13650 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13651 | if (PyErr_Occurred()) SWIG_fail; | |
13652 | } | |
d14a1e28 RD |
13653 | { |
13654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13655 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13656 | |
13657 | wxPyEndAllowThreads(__tstate); | |
13658 | if (PyErr_Occurred()) SWIG_fail; | |
13659 | } | |
8edf1c75 | 13660 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13661 | return resultobj; |
13662 | fail: | |
13663 | return NULL; | |
13664 | } | |
13665 | ||
13666 | ||
13667 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13668 | PyObject *resultobj; | |
13669 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13670 | int arg2 ; |
13671 | int result; | |
d14a1e28 | 13672 | PyObject * obj0 = 0 ; |
8edf1c75 | 13673 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13674 | char *kwnames[] = { |
13675 | (char *) "self",(char *) "x", NULL | |
13676 | }; | |
13677 | ||
8edf1c75 | 13678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13680 | { |
13681 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13682 | if (PyErr_Occurred()) SWIG_fail; | |
13683 | } | |
d14a1e28 RD |
13684 | { |
13685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13686 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13687 | |
13688 | wxPyEndAllowThreads(__tstate); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
8edf1c75 | 13691 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13692 | return resultobj; |
13693 | fail: | |
13694 | return NULL; | |
13695 | } | |
13696 | ||
13697 | ||
13698 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13699 | PyObject *resultobj; | |
13700 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13701 | int arg2 ; |
13702 | int result; | |
d14a1e28 | 13703 | PyObject * obj0 = 0 ; |
8edf1c75 | 13704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13705 | char *kwnames[] = { |
13706 | (char *) "self",(char *) "y", NULL | |
13707 | }; | |
13708 | ||
8edf1c75 | 13709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13711 | { |
13712 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13713 | if (PyErr_Occurred()) SWIG_fail; | |
13714 | } | |
d14a1e28 RD |
13715 | { |
13716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13717 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13718 | |
13719 | wxPyEndAllowThreads(__tstate); | |
13720 | if (PyErr_Occurred()) SWIG_fail; | |
13721 | } | |
8edf1c75 | 13722 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13723 | return resultobj; |
13724 | fail: | |
13725 | return NULL; | |
13726 | } | |
13727 | ||
13728 | ||
13729 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13730 | PyObject *resultobj; | |
13731 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13732 | int arg2 ; |
13733 | int result; | |
d14a1e28 | 13734 | PyObject * obj0 = 0 ; |
8edf1c75 | 13735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13736 | char *kwnames[] = { |
13737 | (char *) "self",(char *) "x", NULL | |
13738 | }; | |
13739 | ||
8edf1c75 | 13740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13742 | { |
13743 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13744 | if (PyErr_Occurred()) SWIG_fail; | |
13745 | } | |
d14a1e28 RD |
13746 | { |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13748 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13749 | |
13750 | wxPyEndAllowThreads(__tstate); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
8edf1c75 | 13753 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13754 | return resultobj; |
13755 | fail: | |
13756 | return NULL; | |
13757 | } | |
13758 | ||
13759 | ||
13760 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13761 | PyObject *resultobj; | |
13762 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13763 | int arg2 ; |
13764 | int result; | |
d14a1e28 | 13765 | PyObject * obj0 = 0 ; |
8edf1c75 | 13766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13767 | char *kwnames[] = { |
13768 | (char *) "self",(char *) "y", NULL | |
13769 | }; | |
13770 | ||
8edf1c75 | 13771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13773 | { |
13774 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
13776 | } | |
d14a1e28 RD |
13777 | { |
13778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13779 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13780 | |
13781 | wxPyEndAllowThreads(__tstate); | |
13782 | if (PyErr_Occurred()) SWIG_fail; | |
13783 | } | |
8edf1c75 | 13784 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13785 | return resultobj; |
13786 | fail: | |
13787 | return NULL; | |
13788 | } | |
13789 | ||
13790 | ||
13791 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13792 | PyObject *resultobj; | |
13793 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13794 | int arg2 ; |
13795 | int result; | |
d14a1e28 | 13796 | PyObject * obj0 = 0 ; |
8edf1c75 | 13797 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13798 | char *kwnames[] = { |
13799 | (char *) "self",(char *) "x", NULL | |
13800 | }; | |
13801 | ||
8edf1c75 | 13802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13804 | { |
13805 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13806 | if (PyErr_Occurred()) SWIG_fail; | |
13807 | } | |
d14a1e28 RD |
13808 | { |
13809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13810 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13811 | |
13812 | wxPyEndAllowThreads(__tstate); | |
13813 | if (PyErr_Occurred()) SWIG_fail; | |
13814 | } | |
8edf1c75 | 13815 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13816 | return resultobj; |
13817 | fail: | |
13818 | return NULL; | |
13819 | } | |
13820 | ||
13821 | ||
13822 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13823 | PyObject *resultobj; | |
13824 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13825 | int arg2 ; |
13826 | int result; | |
d14a1e28 | 13827 | PyObject * obj0 = 0 ; |
8edf1c75 | 13828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13829 | char *kwnames[] = { |
13830 | (char *) "self",(char *) "y", NULL | |
13831 | }; | |
13832 | ||
8edf1c75 | 13833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13835 | { |
13836 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | } | |
d14a1e28 RD |
13839 | { |
13840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13841 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13842 | |
13843 | wxPyEndAllowThreads(__tstate); | |
13844 | if (PyErr_Occurred()) SWIG_fail; | |
13845 | } | |
8edf1c75 | 13846 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13847 | return resultobj; |
13848 | fail: | |
13849 | return NULL; | |
13850 | } | |
13851 | ||
13852 | ||
13853 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13854 | PyObject *resultobj; | |
13855 | wxDC *arg1 = (wxDC *) 0 ; | |
13856 | bool result; | |
13857 | PyObject * obj0 = 0 ; | |
13858 | char *kwnames[] = { | |
13859 | (char *) "self", NULL | |
13860 | }; | |
13861 | ||
13862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13864 | { | |
13865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13866 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13867 | ||
13868 | wxPyEndAllowThreads(__tstate); | |
13869 | if (PyErr_Occurred()) SWIG_fail; | |
13870 | } | |
4e760a36 | 13871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13872 | return resultobj; |
13873 | fail: | |
13874 | return NULL; | |
13875 | } | |
13876 | ||
13877 | ||
13878 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13879 | PyObject *resultobj; | |
13880 | wxDC *arg1 = (wxDC *) 0 ; | |
13881 | bool result; | |
13882 | PyObject * obj0 = 0 ; | |
13883 | char *kwnames[] = { | |
13884 | (char *) "self", NULL | |
13885 | }; | |
13886 | ||
13887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13889 | { | |
13890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13891 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13892 | ||
13893 | wxPyEndAllowThreads(__tstate); | |
13894 | if (PyErr_Occurred()) SWIG_fail; | |
13895 | } | |
4e760a36 | 13896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13897 | return resultobj; |
13898 | fail: | |
13899 | return NULL; | |
13900 | } | |
13901 | ||
13902 | ||
13903 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13904 | PyObject *resultobj; | |
13905 | wxDC *arg1 = (wxDC *) 0 ; | |
13906 | int result; | |
13907 | PyObject * obj0 = 0 ; | |
13908 | char *kwnames[] = { | |
13909 | (char *) "self", NULL | |
13910 | }; | |
13911 | ||
13912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
13913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13914 | { | |
13915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13916 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13917 | ||
13918 | wxPyEndAllowThreads(__tstate); | |
13919 | if (PyErr_Occurred()) SWIG_fail; | |
13920 | } | |
8edf1c75 | 13921 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13922 | return resultobj; |
13923 | fail: | |
13924 | return NULL; | |
13925 | } | |
13926 | ||
13927 | ||
13928 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13929 | PyObject *resultobj; | |
13930 | wxDC *arg1 = (wxDC *) 0 ; | |
13931 | wxSize result; | |
13932 | PyObject * obj0 = 0 ; | |
13933 | char *kwnames[] = { | |
13934 | (char *) "self", NULL | |
13935 | }; | |
13936 | ||
13937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
13938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13939 | { | |
13940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13941 | result = ((wxDC const *)arg1)->GetPPI(); | |
13942 | ||
13943 | wxPyEndAllowThreads(__tstate); | |
13944 | if (PyErr_Occurred()) SWIG_fail; | |
13945 | } | |
13946 | { | |
13947 | wxSize * resultptr; | |
13948 | resultptr = new wxSize((wxSize &) result); | |
13949 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13950 | } | |
13951 | return resultobj; | |
13952 | fail: | |
13953 | return NULL; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13958 | PyObject *resultobj; | |
13959 | wxDC *arg1 = (wxDC *) 0 ; | |
13960 | bool result; | |
13961 | PyObject * obj0 = 0 ; | |
13962 | char *kwnames[] = { | |
13963 | (char *) "self", NULL | |
13964 | }; | |
13965 | ||
13966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
13967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13968 | { | |
13969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13970 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13971 | ||
13972 | wxPyEndAllowThreads(__tstate); | |
13973 | if (PyErr_Occurred()) SWIG_fail; | |
13974 | } | |
4e760a36 | 13975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13976 | return resultobj; |
13977 | fail: | |
13978 | return NULL; | |
13979 | } | |
13980 | ||
13981 | ||
13982 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13983 | PyObject *resultobj; | |
13984 | wxDC *arg1 = (wxDC *) 0 ; | |
13985 | int result; | |
13986 | PyObject * obj0 = 0 ; | |
13987 | char *kwnames[] = { | |
13988 | (char *) "self", NULL | |
13989 | }; | |
13990 | ||
13991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
13992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13993 | { | |
13994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13995 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13996 | ||
13997 | wxPyEndAllowThreads(__tstate); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
8edf1c75 | 14000 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14001 | return resultobj; |
14002 | fail: | |
14003 | return NULL; | |
14004 | } | |
14005 | ||
14006 | ||
14007 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14008 | PyObject *resultobj; | |
14009 | wxDC *arg1 = (wxDC *) 0 ; | |
14010 | wxBrush *result; | |
14011 | PyObject * obj0 = 0 ; | |
14012 | char *kwnames[] = { | |
14013 | (char *) "self", NULL | |
14014 | }; | |
14015 | ||
14016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
14017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14018 | { | |
14019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14020 | { | |
14021 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14022 | result = (wxBrush *) &_result_ref; | |
14023 | } | |
14024 | ||
14025 | wxPyEndAllowThreads(__tstate); | |
14026 | if (PyErr_Occurred()) SWIG_fail; | |
14027 | } | |
14028 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
14029 | return resultobj; | |
14030 | fail: | |
14031 | return NULL; | |
14032 | } | |
14033 | ||
14034 | ||
14035 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14036 | PyObject *resultobj; | |
14037 | wxDC *arg1 = (wxDC *) 0 ; | |
14038 | wxBrush *result; | |
14039 | PyObject * obj0 = 0 ; | |
14040 | char *kwnames[] = { | |
14041 | (char *) "self", NULL | |
14042 | }; | |
14043 | ||
14044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
14045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14046 | { | |
14047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14048 | { | |
14049 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14050 | result = (wxBrush *) &_result_ref; | |
14051 | } | |
14052 | ||
14053 | wxPyEndAllowThreads(__tstate); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | } | |
14056 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
14057 | return resultobj; | |
14058 | fail: | |
14059 | return NULL; | |
14060 | } | |
14061 | ||
14062 | ||
14063 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14064 | PyObject *resultobj; | |
14065 | wxDC *arg1 = (wxDC *) 0 ; | |
14066 | wxFont *result; | |
14067 | PyObject * obj0 = 0 ; | |
14068 | char *kwnames[] = { | |
14069 | (char *) "self", NULL | |
14070 | }; | |
14071 | ||
14072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
14073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14074 | { | |
14075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14076 | { | |
14077 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14078 | result = (wxFont *) &_result_ref; | |
14079 | } | |
14080 | ||
14081 | wxPyEndAllowThreads(__tstate); | |
14082 | if (PyErr_Occurred()) SWIG_fail; | |
14083 | } | |
14084 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
14085 | return resultobj; | |
14086 | fail: | |
14087 | return NULL; | |
14088 | } | |
14089 | ||
14090 | ||
14091 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14092 | PyObject *resultobj; | |
14093 | wxDC *arg1 = (wxDC *) 0 ; | |
14094 | wxPen *result; | |
14095 | PyObject * obj0 = 0 ; | |
14096 | char *kwnames[] = { | |
14097 | (char *) "self", NULL | |
14098 | }; | |
14099 | ||
14100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
14101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14102 | { | |
14103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14104 | { | |
14105 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14106 | result = (wxPen *) &_result_ref; | |
14107 | } | |
14108 | ||
14109 | wxPyEndAllowThreads(__tstate); | |
14110 | if (PyErr_Occurred()) SWIG_fail; | |
14111 | } | |
14112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
14113 | return resultobj; | |
14114 | fail: | |
14115 | return NULL; | |
14116 | } | |
14117 | ||
14118 | ||
14119 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14120 | PyObject *resultobj; | |
14121 | wxDC *arg1 = (wxDC *) 0 ; | |
14122 | wxColour *result; | |
14123 | PyObject * obj0 = 0 ; | |
14124 | char *kwnames[] = { | |
14125 | (char *) "self", NULL | |
14126 | }; | |
14127 | ||
14128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
14129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14130 | { | |
14131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14132 | { | |
14133 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14134 | result = (wxColour *) &_result_ref; | |
14135 | } | |
14136 | ||
14137 | wxPyEndAllowThreads(__tstate); | |
14138 | if (PyErr_Occurred()) SWIG_fail; | |
14139 | } | |
14140 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
14141 | return resultobj; | |
14142 | fail: | |
14143 | return NULL; | |
14144 | } | |
14145 | ||
14146 | ||
14147 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14148 | PyObject *resultobj; | |
14149 | wxDC *arg1 = (wxDC *) 0 ; | |
14150 | wxColour *result; | |
14151 | PyObject * obj0 = 0 ; | |
14152 | char *kwnames[] = { | |
14153 | (char *) "self", NULL | |
14154 | }; | |
14155 | ||
14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
14157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14158 | { | |
14159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14160 | { | |
14161 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14162 | result = (wxColour *) &_result_ref; | |
14163 | } | |
14164 | ||
14165 | wxPyEndAllowThreads(__tstate); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
14168 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
14169 | return resultobj; | |
14170 | fail: | |
14171 | return NULL; | |
14172 | } | |
14173 | ||
14174 | ||
14175 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14176 | PyObject *resultobj; | |
14177 | wxDC *arg1 = (wxDC *) 0 ; | |
14178 | wxColour *arg2 = 0 ; | |
14179 | wxColour temp2 ; | |
14180 | PyObject * obj0 = 0 ; | |
14181 | PyObject * obj1 = 0 ; | |
14182 | char *kwnames[] = { | |
14183 | (char *) "self",(char *) "colour", NULL | |
14184 | }; | |
14185 | ||
14186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
14187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14188 | { | |
14189 | arg2 = &temp2; | |
14190 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14191 | } | |
14192 | { | |
14193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14194 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14195 | ||
14196 | wxPyEndAllowThreads(__tstate); | |
14197 | if (PyErr_Occurred()) SWIG_fail; | |
14198 | } | |
14199 | Py_INCREF(Py_None); resultobj = Py_None; | |
14200 | return resultobj; | |
14201 | fail: | |
14202 | return NULL; | |
14203 | } | |
14204 | ||
14205 | ||
14206 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14207 | PyObject *resultobj; | |
14208 | wxDC *arg1 = (wxDC *) 0 ; | |
14209 | wxColour *arg2 = 0 ; | |
14210 | wxColour temp2 ; | |
14211 | PyObject * obj0 = 0 ; | |
14212 | PyObject * obj1 = 0 ; | |
14213 | char *kwnames[] = { | |
14214 | (char *) "self",(char *) "colour", NULL | |
14215 | }; | |
14216 | ||
14217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
14218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14219 | { | |
14220 | arg2 = &temp2; | |
14221 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14222 | } | |
14223 | { | |
14224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14225 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14226 | ||
14227 | wxPyEndAllowThreads(__tstate); | |
14228 | if (PyErr_Occurred()) SWIG_fail; | |
14229 | } | |
14230 | Py_INCREF(Py_None); resultobj = Py_None; | |
14231 | return resultobj; | |
14232 | fail: | |
14233 | return NULL; | |
14234 | } | |
14235 | ||
14236 | ||
14237 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14238 | PyObject *resultobj; | |
14239 | wxDC *arg1 = (wxDC *) 0 ; | |
14240 | int result; | |
14241 | PyObject * obj0 = 0 ; | |
14242 | char *kwnames[] = { | |
14243 | (char *) "self", NULL | |
14244 | }; | |
14245 | ||
14246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
14247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14248 | { | |
14249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14250 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14251 | ||
14252 | wxPyEndAllowThreads(__tstate); | |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | } | |
8edf1c75 | 14255 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14256 | return resultobj; |
14257 | fail: | |
14258 | return NULL; | |
14259 | } | |
14260 | ||
14261 | ||
14262 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14263 | PyObject *resultobj; | |
14264 | wxDC *arg1 = (wxDC *) 0 ; | |
14265 | int arg2 ; | |
14266 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14267 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14268 | char *kwnames[] = { |
14269 | (char *) "self",(char *) "mode", NULL | |
14270 | }; | |
14271 | ||
8edf1c75 | 14272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14274 | { |
14275 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14276 | if (PyErr_Occurred()) SWIG_fail; | |
14277 | } | |
d14a1e28 RD |
14278 | { |
14279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14280 | (arg1)->SetMapMode(arg2); | |
14281 | ||
14282 | wxPyEndAllowThreads(__tstate); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | } | |
14285 | Py_INCREF(Py_None); resultobj = Py_None; | |
14286 | return resultobj; | |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
14292 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxDC *arg1 = (wxDC *) 0 ; | |
14295 | double *arg2 = (double *) 0 ; | |
14296 | double *arg3 = (double *) 0 ; | |
14297 | double temp2 ; | |
14298 | double temp3 ; | |
14299 | PyObject * obj0 = 0 ; | |
14300 | char *kwnames[] = { | |
14301 | (char *) "self", NULL | |
14302 | }; | |
14303 | ||
14304 | arg2 = &temp2; | |
14305 | arg3 = &temp3; | |
14306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
14307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14308 | { | |
14309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14310 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14311 | ||
14312 | wxPyEndAllowThreads(__tstate); | |
14313 | if (PyErr_Occurred()) SWIG_fail; | |
14314 | } | |
14315 | Py_INCREF(Py_None); resultobj = Py_None; | |
14316 | { | |
14317 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14318 | resultobj = t_output_helper(resultobj,o); | |
14319 | } | |
14320 | { | |
14321 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14322 | resultobj = t_output_helper(resultobj,o); | |
14323 | } | |
14324 | return resultobj; | |
14325 | fail: | |
14326 | return NULL; | |
14327 | } | |
14328 | ||
14329 | ||
14330 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14331 | PyObject *resultobj; | |
14332 | wxDC *arg1 = (wxDC *) 0 ; | |
14333 | double arg2 ; | |
14334 | double arg3 ; | |
14335 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14336 | PyObject * obj1 = 0 ; |
14337 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14338 | char *kwnames[] = { |
14339 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14340 | }; | |
14341 | ||
8edf1c75 | 14342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14344 | { |
14345 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
14346 | if (PyErr_Occurred()) SWIG_fail; | |
14347 | } | |
14348 | { | |
14349 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
14350 | if (PyErr_Occurred()) SWIG_fail; | |
14351 | } | |
d14a1e28 RD |
14352 | { |
14353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14354 | (arg1)->SetUserScale(arg2,arg3); | |
14355 | ||
14356 | wxPyEndAllowThreads(__tstate); | |
14357 | if (PyErr_Occurred()) SWIG_fail; | |
14358 | } | |
14359 | Py_INCREF(Py_None); resultobj = Py_None; | |
14360 | return resultobj; | |
14361 | fail: | |
14362 | return NULL; | |
14363 | } | |
14364 | ||
14365 | ||
14366 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14367 | PyObject *resultobj; | |
14368 | wxDC *arg1 = (wxDC *) 0 ; | |
14369 | double *arg2 = (double *) 0 ; | |
14370 | double *arg3 = (double *) 0 ; | |
14371 | double temp2 ; | |
14372 | double temp3 ; | |
14373 | PyObject * obj0 = 0 ; | |
14374 | char *kwnames[] = { | |
14375 | (char *) "self", NULL | |
14376 | }; | |
14377 | ||
14378 | arg2 = &temp2; | |
14379 | arg3 = &temp3; | |
14380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",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 | (arg1)->GetLogicalScale(arg2,arg3); | |
14385 | ||
14386 | wxPyEndAllowThreads(__tstate); | |
14387 | if (PyErr_Occurred()) SWIG_fail; | |
14388 | } | |
14389 | Py_INCREF(Py_None); resultobj = Py_None; | |
14390 | { | |
14391 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14392 | resultobj = t_output_helper(resultobj,o); | |
14393 | } | |
14394 | { | |
14395 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14396 | resultobj = t_output_helper(resultobj,o); | |
14397 | } | |
14398 | return resultobj; | |
14399 | fail: | |
14400 | return NULL; | |
14401 | } | |
14402 | ||
14403 | ||
14404 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14405 | PyObject *resultobj; | |
14406 | wxDC *arg1 = (wxDC *) 0 ; | |
14407 | double arg2 ; | |
14408 | double arg3 ; | |
14409 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14410 | PyObject * obj1 = 0 ; |
14411 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14412 | char *kwnames[] = { |
14413 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14414 | }; | |
14415 | ||
8edf1c75 | 14416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14418 | { |
14419 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
14420 | if (PyErr_Occurred()) SWIG_fail; | |
14421 | } | |
14422 | { | |
14423 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
14424 | if (PyErr_Occurred()) SWIG_fail; | |
14425 | } | |
d14a1e28 RD |
14426 | { |
14427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14428 | (arg1)->SetLogicalScale(arg2,arg3); | |
14429 | ||
14430 | wxPyEndAllowThreads(__tstate); | |
14431 | if (PyErr_Occurred()) SWIG_fail; | |
14432 | } | |
14433 | Py_INCREF(Py_None); resultobj = Py_None; | |
14434 | return resultobj; | |
14435 | fail: | |
14436 | return NULL; | |
14437 | } | |
14438 | ||
14439 | ||
44127b65 | 14440 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14441 | PyObject *resultobj; |
14442 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 14443 | wxPoint result; |
d14a1e28 RD |
14444 | PyObject * obj0 = 0 ; |
14445 | char *kwnames[] = { | |
14446 | (char *) "self", NULL | |
14447 | }; | |
14448 | ||
44127b65 | 14449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
14450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14451 | { | |
14452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14453 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
14454 | |
14455 | wxPyEndAllowThreads(__tstate); | |
14456 | if (PyErr_Occurred()) SWIG_fail; | |
14457 | } | |
d14a1e28 | 14458 | { |
44127b65 RD |
14459 | wxPoint * resultptr; |
14460 | resultptr = new wxPoint((wxPoint &) result); | |
14461 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
14462 | } |
14463 | return resultobj; | |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
44127b65 | 14469 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14470 | PyObject *resultobj; |
14471 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
14472 | int *arg2 = (int *) 0 ; |
14473 | int *arg3 = (int *) 0 ; | |
14474 | int temp2 ; | |
14475 | int temp3 ; | |
d14a1e28 RD |
14476 | PyObject * obj0 = 0 ; |
14477 | char *kwnames[] = { | |
14478 | (char *) "self", NULL | |
14479 | }; | |
14480 | ||
44127b65 RD |
14481 | arg2 = &temp2; |
14482 | arg3 = &temp3; | |
14483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
14484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14485 | { | |
14486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14487 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
14488 | |
14489 | wxPyEndAllowThreads(__tstate); | |
14490 | if (PyErr_Occurred()) SWIG_fail; | |
14491 | } | |
44127b65 | 14492 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14493 | { |
44127b65 RD |
14494 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14495 | resultobj = t_output_helper(resultobj,o); | |
14496 | } | |
14497 | { | |
14498 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14499 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14500 | } |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14510 | int arg2 ; |
14511 | int arg3 ; | |
d14a1e28 | 14512 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14513 | PyObject * obj1 = 0 ; |
14514 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14515 | char *kwnames[] = { |
14516 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14517 | }; | |
14518 | ||
8edf1c75 | 14519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14521 | { |
14522 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
14524 | } | |
14525 | { | |
14526 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14527 | if (PyErr_Occurred()) SWIG_fail; | |
14528 | } | |
d14a1e28 RD |
14529 | { |
14530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14531 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14532 | ||
14533 | wxPyEndAllowThreads(__tstate); | |
14534 | if (PyErr_Occurred()) SWIG_fail; | |
14535 | } | |
14536 | Py_INCREF(Py_None); resultobj = Py_None; | |
14537 | return resultobj; | |
14538 | fail: | |
14539 | return NULL; | |
14540 | } | |
14541 | ||
14542 | ||
44127b65 | 14543 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14544 | PyObject *resultobj; |
14545 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 14546 | wxPoint result; |
d14a1e28 RD |
14547 | PyObject * obj0 = 0 ; |
14548 | char *kwnames[] = { | |
14549 | (char *) "self", NULL | |
14550 | }; | |
14551 | ||
44127b65 | 14552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
14553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14554 | { | |
14555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14556 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
14557 | |
14558 | wxPyEndAllowThreads(__tstate); | |
14559 | if (PyErr_Occurred()) SWIG_fail; | |
14560 | } | |
d14a1e28 | 14561 | { |
44127b65 RD |
14562 | wxPoint * resultptr; |
14563 | resultptr = new wxPoint((wxPoint &) result); | |
14564 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
14565 | } |
14566 | return resultobj; | |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
44127b65 | 14572 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14573 | PyObject *resultobj; |
14574 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
14575 | int *arg2 = (int *) 0 ; |
14576 | int *arg3 = (int *) 0 ; | |
14577 | int temp2 ; | |
14578 | int temp3 ; | |
d14a1e28 RD |
14579 | PyObject * obj0 = 0 ; |
14580 | char *kwnames[] = { | |
14581 | (char *) "self", NULL | |
14582 | }; | |
14583 | ||
44127b65 RD |
14584 | arg2 = &temp2; |
14585 | arg3 = &temp3; | |
14586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
14587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14588 | { | |
14589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14590 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14591 | |
14592 | wxPyEndAllowThreads(__tstate); | |
14593 | if (PyErr_Occurred()) SWIG_fail; | |
14594 | } | |
44127b65 | 14595 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14596 | { |
44127b65 RD |
14597 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14598 | resultobj = t_output_helper(resultobj,o); | |
14599 | } | |
14600 | { | |
14601 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14602 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14603 | } |
14604 | return resultobj; | |
14605 | fail: | |
14606 | return NULL; | |
14607 | } | |
14608 | ||
14609 | ||
14610 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14611 | PyObject *resultobj; | |
14612 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14613 | int arg2 ; |
14614 | int arg3 ; | |
d14a1e28 | 14615 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14616 | PyObject * obj1 = 0 ; |
14617 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14618 | char *kwnames[] = { |
14619 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14620 | }; | |
14621 | ||
8edf1c75 | 14622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14624 | { |
14625 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14626 | if (PyErr_Occurred()) SWIG_fail; | |
14627 | } | |
14628 | { | |
14629 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
14631 | } | |
d14a1e28 RD |
14632 | { |
14633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14634 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14635 | ||
14636 | wxPyEndAllowThreads(__tstate); | |
14637 | if (PyErr_Occurred()) SWIG_fail; | |
14638 | } | |
14639 | Py_INCREF(Py_None); resultobj = Py_None; | |
14640 | return resultobj; | |
14641 | fail: | |
14642 | return NULL; | |
14643 | } | |
14644 | ||
14645 | ||
14646 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14647 | PyObject *resultobj; | |
14648 | wxDC *arg1 = (wxDC *) 0 ; | |
14649 | bool arg2 ; | |
14650 | bool arg3 ; | |
14651 | PyObject * obj0 = 0 ; | |
14652 | PyObject * obj1 = 0 ; | |
14653 | PyObject * obj2 = 0 ; | |
14654 | char *kwnames[] = { | |
14655 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14656 | }; | |
14657 | ||
14658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14660 | { |
8edf1c75 | 14661 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14662 | if (PyErr_Occurred()) SWIG_fail; |
14663 | } | |
14664 | { | |
8edf1c75 | 14665 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
14666 | if (PyErr_Occurred()) SWIG_fail; |
14667 | } | |
d14a1e28 RD |
14668 | { |
14669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14670 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14671 | ||
14672 | wxPyEndAllowThreads(__tstate); | |
14673 | if (PyErr_Occurred()) SWIG_fail; | |
14674 | } | |
14675 | Py_INCREF(Py_None); resultobj = Py_None; | |
14676 | return resultobj; | |
14677 | fail: | |
14678 | return NULL; | |
14679 | } | |
14680 | ||
14681 | ||
14682 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14683 | PyObject *resultobj; | |
14684 | wxDC *arg1 = (wxDC *) 0 ; | |
14685 | int result; | |
14686 | PyObject * obj0 = 0 ; | |
14687 | char *kwnames[] = { | |
14688 | (char *) "self", NULL | |
14689 | }; | |
14690 | ||
14691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
14692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14693 | { | |
14694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14695 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14696 | ||
14697 | wxPyEndAllowThreads(__tstate); | |
14698 | if (PyErr_Occurred()) SWIG_fail; | |
14699 | } | |
8edf1c75 | 14700 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14701 | return resultobj; |
14702 | fail: | |
14703 | return NULL; | |
14704 | } | |
14705 | ||
14706 | ||
14707 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14708 | PyObject *resultobj; | |
14709 | wxDC *arg1 = (wxDC *) 0 ; | |
14710 | int arg2 ; | |
14711 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14713 | char *kwnames[] = { |
14714 | (char *) "self",(char *) "function", NULL | |
14715 | }; | |
14716 | ||
8edf1c75 | 14717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14719 | { |
14720 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14721 | if (PyErr_Occurred()) SWIG_fail; | |
14722 | } | |
d14a1e28 RD |
14723 | { |
14724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14725 | (arg1)->SetLogicalFunction(arg2); | |
14726 | ||
14727 | wxPyEndAllowThreads(__tstate); | |
14728 | if (PyErr_Occurred()) SWIG_fail; | |
14729 | } | |
14730 | Py_INCREF(Py_None); resultobj = Py_None; | |
14731 | return resultobj; | |
14732 | fail: | |
14733 | return NULL; | |
14734 | } | |
14735 | ||
14736 | ||
14737 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14738 | PyObject *resultobj; | |
14739 | wxDC *arg1 = (wxDC *) 0 ; | |
14740 | bool arg2 ; | |
14741 | PyObject * obj0 = 0 ; | |
14742 | PyObject * obj1 = 0 ; | |
14743 | char *kwnames[] = { | |
14744 | (char *) "self",(char *) "opt", NULL | |
14745 | }; | |
14746 | ||
14747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
14748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14749 | { |
8edf1c75 | 14750 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14751 | if (PyErr_Occurred()) SWIG_fail; |
14752 | } | |
d14a1e28 RD |
14753 | { |
14754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14755 | (arg1)->SetOptimization(arg2); | |
14756 | ||
14757 | wxPyEndAllowThreads(__tstate); | |
14758 | if (PyErr_Occurred()) SWIG_fail; | |
14759 | } | |
14760 | Py_INCREF(Py_None); resultobj = Py_None; | |
14761 | return resultobj; | |
14762 | fail: | |
14763 | return NULL; | |
14764 | } | |
14765 | ||
14766 | ||
14767 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14768 | PyObject *resultobj; | |
14769 | wxDC *arg1 = (wxDC *) 0 ; | |
14770 | bool result; | |
14771 | PyObject * obj0 = 0 ; | |
14772 | char *kwnames[] = { | |
14773 | (char *) "self", NULL | |
14774 | }; | |
14775 | ||
14776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
14777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14778 | { | |
14779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14780 | result = (bool)(arg1)->GetOptimization(); | |
14781 | ||
14782 | wxPyEndAllowThreads(__tstate); | |
14783 | if (PyErr_Occurred()) SWIG_fail; | |
14784 | } | |
4e760a36 | 14785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14786 | return resultobj; |
14787 | fail: | |
14788 | return NULL; | |
14789 | } | |
14790 | ||
14791 | ||
14792 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14793 | PyObject *resultobj; | |
14794 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14795 | int arg2 ; |
14796 | int arg3 ; | |
d14a1e28 | 14797 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14798 | PyObject * obj1 = 0 ; |
14799 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14800 | char *kwnames[] = { |
14801 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14802 | }; | |
14803 | ||
8edf1c75 | 14804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14806 | { |
14807 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
14810 | { | |
14811 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14812 | if (PyErr_Occurred()) SWIG_fail; | |
14813 | } | |
d14a1e28 RD |
14814 | { |
14815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14816 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14817 | ||
14818 | wxPyEndAllowThreads(__tstate); | |
14819 | if (PyErr_Occurred()) SWIG_fail; | |
14820 | } | |
14821 | Py_INCREF(Py_None); resultobj = Py_None; | |
14822 | return resultobj; | |
14823 | fail: | |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
14828 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14829 | PyObject *resultobj; | |
14830 | wxDC *arg1 = (wxDC *) 0 ; | |
14831 | PyObject * obj0 = 0 ; | |
14832 | char *kwnames[] = { | |
14833 | (char *) "self", NULL | |
14834 | }; | |
14835 | ||
14836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
14837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14838 | { | |
14839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14840 | (arg1)->ResetBoundingBox(); | |
14841 | ||
14842 | wxPyEndAllowThreads(__tstate); | |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
14844 | } | |
14845 | Py_INCREF(Py_None); resultobj = Py_None; | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
14852 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14853 | PyObject *resultobj; | |
14854 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14855 | int result; |
d14a1e28 RD |
14856 | PyObject * obj0 = 0 ; |
14857 | char *kwnames[] = { | |
14858 | (char *) "self", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
14862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14863 | { | |
14864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14865 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14866 | |
14867 | wxPyEndAllowThreads(__tstate); | |
14868 | if (PyErr_Occurred()) SWIG_fail; | |
14869 | } | |
8edf1c75 | 14870 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14871 | return resultobj; |
14872 | fail: | |
14873 | return NULL; | |
14874 | } | |
14875 | ||
14876 | ||
14877 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14878 | PyObject *resultobj; | |
14879 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14880 | int result; |
d14a1e28 RD |
14881 | PyObject * obj0 = 0 ; |
14882 | char *kwnames[] = { | |
14883 | (char *) "self", NULL | |
14884 | }; | |
14885 | ||
14886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
14887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14888 | { | |
14889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14890 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14891 | |
14892 | wxPyEndAllowThreads(__tstate); | |
14893 | if (PyErr_Occurred()) SWIG_fail; | |
14894 | } | |
8edf1c75 | 14895 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14896 | return resultobj; |
14897 | fail: | |
14898 | return NULL; | |
14899 | } | |
14900 | ||
14901 | ||
14902 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14903 | PyObject *resultobj; | |
14904 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14905 | int result; |
d14a1e28 RD |
14906 | PyObject * obj0 = 0 ; |
14907 | char *kwnames[] = { | |
14908 | (char *) "self", NULL | |
14909 | }; | |
14910 | ||
14911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
14912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14913 | { | |
14914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14915 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14916 | |
14917 | wxPyEndAllowThreads(__tstate); | |
14918 | if (PyErr_Occurred()) SWIG_fail; | |
14919 | } | |
8edf1c75 | 14920 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14921 | return resultobj; |
14922 | fail: | |
14923 | return NULL; | |
14924 | } | |
14925 | ||
14926 | ||
14927 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14928 | PyObject *resultobj; | |
14929 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14930 | int result; |
d14a1e28 RD |
14931 | PyObject * obj0 = 0 ; |
14932 | char *kwnames[] = { | |
14933 | (char *) "self", NULL | |
14934 | }; | |
14935 | ||
14936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
14937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14938 | { | |
14939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14940 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14941 | |
14942 | wxPyEndAllowThreads(__tstate); | |
14943 | if (PyErr_Occurred()) SWIG_fail; | |
14944 | } | |
8edf1c75 | 14945 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14946 | return resultobj; |
14947 | fail: | |
14948 | return NULL; | |
14949 | } | |
14950 | ||
14951 | ||
14952 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14953 | PyObject *resultobj; | |
14954 | wxDC *arg1 = (wxDC *) 0 ; | |
14955 | int *arg2 = (int *) 0 ; | |
14956 | int *arg3 = (int *) 0 ; | |
14957 | int *arg4 = (int *) 0 ; | |
14958 | int *arg5 = (int *) 0 ; | |
14959 | int temp2 ; | |
14960 | int temp3 ; | |
14961 | int temp4 ; | |
14962 | int temp5 ; | |
14963 | PyObject * obj0 = 0 ; | |
14964 | char *kwnames[] = { | |
14965 | (char *) "self", NULL | |
14966 | }; | |
14967 | ||
14968 | arg2 = &temp2; | |
14969 | arg3 = &temp3; | |
14970 | arg4 = &temp4; | |
14971 | arg5 = &temp5; | |
14972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
14973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14974 | { | |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
14981 | Py_INCREF(Py_None); resultobj = Py_None; | |
14982 | { | |
14983 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14984 | resultobj = t_output_helper(resultobj,o); | |
14985 | } | |
14986 | { | |
14987 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14988 | resultobj = t_output_helper(resultobj,o); | |
14989 | } | |
14990 | { | |
14991 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14992 | resultobj = t_output_helper(resultobj,o); | |
14993 | } | |
14994 | { | |
14995 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14996 | resultobj = t_output_helper(resultobj,o); | |
14997 | } | |
14998 | return resultobj; | |
14999 | fail: | |
15000 | return NULL; | |
15001 | } | |
15002 | ||
15003 | ||
15004 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15005 | PyObject *resultobj; | |
15006 | wxDC *arg1 = (wxDC *) 0 ; | |
15007 | PyObject *arg2 = (PyObject *) 0 ; | |
15008 | PyObject *arg3 = (PyObject *) 0 ; | |
15009 | PyObject *arg4 = (PyObject *) 0 ; | |
15010 | PyObject *result; | |
15011 | PyObject * obj0 = 0 ; | |
15012 | PyObject * obj1 = 0 ; | |
15013 | PyObject * obj2 = 0 ; | |
15014 | PyObject * obj3 = 0 ; | |
15015 | char *kwnames[] = { | |
15016 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15017 | }; | |
15018 | ||
15019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15021 | arg2 = obj1; | |
15022 | arg3 = obj2; | |
15023 | arg4 = obj3; | |
15024 | { | |
15025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15026 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15027 | ||
15028 | wxPyEndAllowThreads(__tstate); | |
15029 | if (PyErr_Occurred()) SWIG_fail; | |
15030 | } | |
15031 | resultobj = result; | |
15032 | return resultobj; | |
15033 | fail: | |
15034 | return NULL; | |
15035 | } | |
15036 | ||
15037 | ||
15038 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15039 | PyObject *resultobj; | |
15040 | wxDC *arg1 = (wxDC *) 0 ; | |
15041 | PyObject *arg2 = (PyObject *) 0 ; | |
15042 | PyObject *arg3 = (PyObject *) 0 ; | |
15043 | PyObject *arg4 = (PyObject *) 0 ; | |
15044 | PyObject *result; | |
15045 | PyObject * obj0 = 0 ; | |
15046 | PyObject * obj1 = 0 ; | |
15047 | PyObject * obj2 = 0 ; | |
15048 | PyObject * obj3 = 0 ; | |
15049 | char *kwnames[] = { | |
15050 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15051 | }; | |
15052 | ||
15053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15055 | arg2 = obj1; | |
15056 | arg3 = obj2; | |
15057 | arg4 = obj3; | |
15058 | { | |
15059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15060 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15061 | ||
15062 | wxPyEndAllowThreads(__tstate); | |
15063 | if (PyErr_Occurred()) SWIG_fail; | |
15064 | } | |
15065 | resultobj = result; | |
15066 | return resultobj; | |
15067 | fail: | |
15068 | return NULL; | |
15069 | } | |
15070 | ||
15071 | ||
15072 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15073 | PyObject *resultobj; | |
15074 | wxDC *arg1 = (wxDC *) 0 ; | |
15075 | PyObject *arg2 = (PyObject *) 0 ; | |
15076 | PyObject *arg3 = (PyObject *) 0 ; | |
15077 | PyObject *arg4 = (PyObject *) 0 ; | |
15078 | PyObject *result; | |
15079 | PyObject * obj0 = 0 ; | |
15080 | PyObject * obj1 = 0 ; | |
15081 | PyObject * obj2 = 0 ; | |
15082 | PyObject * obj3 = 0 ; | |
15083 | char *kwnames[] = { | |
15084 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15085 | }; | |
15086 | ||
15087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15089 | arg2 = obj1; | |
15090 | arg3 = obj2; | |
15091 | arg4 = obj3; | |
15092 | { | |
15093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15094 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15095 | ||
15096 | wxPyEndAllowThreads(__tstate); | |
15097 | if (PyErr_Occurred()) SWIG_fail; | |
15098 | } | |
15099 | resultobj = result; | |
15100 | return resultobj; | |
15101 | fail: | |
15102 | return NULL; | |
15103 | } | |
15104 | ||
15105 | ||
15106 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15107 | PyObject *resultobj; | |
15108 | wxDC *arg1 = (wxDC *) 0 ; | |
15109 | PyObject *arg2 = (PyObject *) 0 ; | |
15110 | PyObject *arg3 = (PyObject *) 0 ; | |
15111 | PyObject *arg4 = (PyObject *) 0 ; | |
15112 | PyObject *result; | |
15113 | PyObject * obj0 = 0 ; | |
15114 | PyObject * obj1 = 0 ; | |
15115 | PyObject * obj2 = 0 ; | |
15116 | PyObject * obj3 = 0 ; | |
15117 | char *kwnames[] = { | |
15118 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15119 | }; | |
15120 | ||
15121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15123 | arg2 = obj1; | |
15124 | arg3 = obj2; | |
15125 | arg4 = obj3; | |
15126 | { | |
15127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15128 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15129 | ||
15130 | wxPyEndAllowThreads(__tstate); | |
15131 | if (PyErr_Occurred()) SWIG_fail; | |
15132 | } | |
15133 | resultobj = result; | |
15134 | return resultobj; | |
15135 | fail: | |
15136 | return NULL; | |
15137 | } | |
15138 | ||
15139 | ||
15140 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15141 | PyObject *resultobj; | |
15142 | wxDC *arg1 = (wxDC *) 0 ; | |
15143 | PyObject *arg2 = (PyObject *) 0 ; | |
15144 | PyObject *arg3 = (PyObject *) 0 ; | |
15145 | PyObject *arg4 = (PyObject *) 0 ; | |
15146 | PyObject *result; | |
15147 | PyObject * obj0 = 0 ; | |
15148 | PyObject * obj1 = 0 ; | |
15149 | PyObject * obj2 = 0 ; | |
15150 | PyObject * obj3 = 0 ; | |
15151 | char *kwnames[] = { | |
15152 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15153 | }; | |
15154 | ||
15155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15157 | arg2 = obj1; | |
15158 | arg3 = obj2; | |
15159 | arg4 = obj3; | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15163 | ||
15164 | wxPyEndAllowThreads(__tstate); | |
15165 | if (PyErr_Occurred()) SWIG_fail; | |
15166 | } | |
15167 | resultobj = result; | |
15168 | return resultobj; | |
15169 | fail: | |
15170 | return NULL; | |
15171 | } | |
15172 | ||
15173 | ||
15174 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15175 | PyObject *resultobj; | |
15176 | wxDC *arg1 = (wxDC *) 0 ; | |
15177 | PyObject *arg2 = (PyObject *) 0 ; | |
15178 | PyObject *arg3 = (PyObject *) 0 ; | |
15179 | PyObject *arg4 = (PyObject *) 0 ; | |
15180 | PyObject *arg5 = (PyObject *) 0 ; | |
15181 | PyObject *result; | |
15182 | PyObject * obj0 = 0 ; | |
15183 | PyObject * obj1 = 0 ; | |
15184 | PyObject * obj2 = 0 ; | |
15185 | PyObject * obj3 = 0 ; | |
15186 | PyObject * obj4 = 0 ; | |
15187 | char *kwnames[] = { | |
15188 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15189 | }; | |
15190 | ||
15191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15193 | arg2 = obj1; | |
15194 | arg3 = obj2; | |
15195 | arg4 = obj3; | |
15196 | arg5 = obj4; | |
15197 | { | |
15198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15199 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15200 | ||
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | resultobj = result; | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
15211 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
15212 | PyObject *obj; | |
15213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15214 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15215 | Py_INCREF(obj); | |
15216 | return Py_BuildValue((char *)""); | |
15217 | } | |
15218 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15219 | PyObject *resultobj; | |
15220 | wxMemoryDC *result; | |
15221 | char *kwnames[] = { | |
15222 | NULL | |
15223 | }; | |
15224 | ||
15225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15226 | { | |
15227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15228 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15229 | ||
15230 | wxPyEndAllowThreads(__tstate); | |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
15232 | } | |
15233 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
15234 | return resultobj; | |
15235 | fail: | |
15236 | return NULL; | |
15237 | } | |
15238 | ||
15239 | ||
15240 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15241 | PyObject *resultobj; | |
15242 | wxDC *arg1 = (wxDC *) 0 ; | |
15243 | wxMemoryDC *result; | |
15244 | PyObject * obj0 = 0 ; | |
15245 | char *kwnames[] = { | |
15246 | (char *) "oldDC", NULL | |
15247 | }; | |
15248 | ||
15249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15251 | { | |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15254 | ||
15255 | wxPyEndAllowThreads(__tstate); | |
15256 | if (PyErr_Occurred()) SWIG_fail; | |
15257 | } | |
15258 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
15259 | return resultobj; | |
15260 | fail: | |
15261 | return NULL; | |
15262 | } | |
15263 | ||
15264 | ||
15265 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15266 | PyObject *resultobj; | |
15267 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15268 | wxBitmap *arg2 = 0 ; | |
15269 | PyObject * obj0 = 0 ; | |
15270 | PyObject * obj1 = 0 ; | |
15271 | char *kwnames[] = { | |
15272 | (char *) "self",(char *) "bitmap", NULL | |
15273 | }; | |
15274 | ||
15275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15277 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15278 | if (arg2 == NULL) { | |
15279 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15280 | } | |
15281 | { | |
15282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15283 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15284 | ||
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
15288 | Py_INCREF(Py_None); resultobj = Py_None; | |
15289 | return resultobj; | |
15290 | fail: | |
15291 | return NULL; | |
15292 | } | |
15293 | ||
15294 | ||
15295 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
15296 | PyObject *obj; | |
15297 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15298 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15299 | Py_INCREF(obj); | |
15300 | return Py_BuildValue((char *)""); | |
15301 | } | |
db914595 | 15302 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
15303 | PyObject *resultobj; |
15304 | wxDC *arg1 = (wxDC *) 0 ; | |
15305 | wxBitmap *arg2 = 0 ; | |
15306 | wxBufferedDC *result; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15309 | |
db914595 | 15310 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15312 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15313 | if (arg2 == NULL) { | |
15314 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15315 | } | |
15316 | { | |
15317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15318 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15319 | ||
15320 | wxPyEndAllowThreads(__tstate); | |
15321 | if (PyErr_Occurred()) SWIG_fail; | |
15322 | } | |
15323 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
15324 | return resultobj; | |
15325 | fail: | |
15326 | return NULL; | |
15327 | } | |
15328 | ||
15329 | ||
db914595 | 15330 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
15331 | PyObject *resultobj; |
15332 | wxDC *arg1 = (wxDC *) 0 ; | |
15333 | wxSize *arg2 = 0 ; | |
15334 | wxBufferedDC *result; | |
15335 | wxSize temp2 ; | |
15336 | PyObject * obj0 = 0 ; | |
15337 | PyObject * obj1 = 0 ; | |
db914595 | 15338 | |
328fcd84 | 15339 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
db914595 RD |
15340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15341 | { | |
15342 | arg2 = &temp2; | |
15343 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15344 | } | |
db914595 RD |
15345 | { |
15346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15347 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
db914595 RD |
15348 | |
15349 | wxPyEndAllowThreads(__tstate); | |
15350 | if (PyErr_Occurred()) SWIG_fail; | |
15351 | } | |
15352 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
15353 | return resultobj; | |
15354 | fail: | |
15355 | return NULL; | |
15356 | } | |
15357 | ||
15358 | ||
15359 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15360 | int argc; | |
328fcd84 | 15361 | PyObject *argv[3]; |
db914595 RD |
15362 | int ii; |
15363 | ||
15364 | argc = PyObject_Length(args); | |
328fcd84 | 15365 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
db914595 RD |
15366 | argv[ii] = PyTuple_GetItem(args,ii); |
15367 | } | |
15368 | if (argc == 2) { | |
15369 | int _v; | |
15370 | { | |
15371 | void *ptr; | |
15372 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15373 | _v = 0; | |
15374 | PyErr_Clear(); | |
15375 | } else { | |
15376 | _v = 1; | |
15377 | } | |
15378 | } | |
15379 | if (_v) { | |
15380 | { | |
15381 | void *ptr; | |
15382 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
15383 | _v = 0; | |
15384 | PyErr_Clear(); | |
15385 | } else { | |
15386 | _v = 1; | |
15387 | } | |
15388 | } | |
15389 | if (_v) { | |
15390 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15391 | } | |
15392 | } | |
15393 | } | |
328fcd84 | 15394 | if (argc == 2) { |
db914595 RD |
15395 | int _v; |
15396 | { | |
15397 | void *ptr; | |
15398 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15399 | _v = 0; | |
15400 | PyErr_Clear(); | |
15401 | } else { | |
15402 | _v = 1; | |
15403 | } | |
15404 | } | |
15405 | if (_v) { | |
15406 | { | |
15407 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15408 | } | |
15409 | if (_v) { | |
328fcd84 | 15410 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
db914595 RD |
15411 | } |
15412 | } | |
15413 | } | |
d14a1e28 | 15414 | |
db914595 RD |
15415 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); |
15416 | return NULL; | |
15417 | } | |
15418 | ||
15419 | ||
15420 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
15421 | PyObject *resultobj; | |
15422 | wxDC *arg1 = (wxDC *) 0 ; | |
15423 | wxSize *arg2 = 0 ; | |
db914595 RD |
15424 | wxBufferedDC *result; |
15425 | wxSize temp2 ; | |
15426 | PyObject * obj0 = 0 ; | |
15427 | PyObject * obj1 = 0 ; | |
db914595 | 15428 | |
328fcd84 | 15429 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15431 | { | |
15432 | arg2 = &temp2; | |
15433 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15434 | } | |
15435 | { | |
15436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15437 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
15438 | |
15439 | wxPyEndAllowThreads(__tstate); | |
15440 | if (PyErr_Occurred()) SWIG_fail; | |
15441 | } | |
15442 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
15443 | return resultobj; | |
15444 | fail: | |
15445 | return NULL; | |
15446 | } | |
15447 | ||
15448 | ||
328fcd84 | 15449 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15450 | PyObject *resultobj; |
15451 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15452 | PyObject * obj0 = 0 ; | |
15453 | char *kwnames[] = { | |
15454 | (char *) "self", NULL | |
15455 | }; | |
15456 | ||
328fcd84 | 15457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
15458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15459 | { | |
15460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15461 | delete arg1; |
d14a1e28 RD |
15462 | |
15463 | wxPyEndAllowThreads(__tstate); | |
15464 | if (PyErr_Occurred()) SWIG_fail; | |
15465 | } | |
15466 | Py_INCREF(Py_None); resultobj = Py_None; | |
15467 | return resultobj; | |
15468 | fail: | |
15469 | return NULL; | |
15470 | } | |
15471 | ||
15472 | ||
328fcd84 | 15473 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15474 | PyObject *resultobj; |
328fcd84 | 15475 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
db914595 | 15476 | PyObject * obj0 = 0 ; |
328fcd84 RD |
15477 | char *kwnames[] = { |
15478 | (char *) "self", NULL | |
15479 | }; | |
db914595 | 15480 | |
328fcd84 RD |
15481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
15482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
db914595 RD |
15483 | { |
15484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15485 | (arg1)->UnMask(); |
db914595 RD |
15486 | |
15487 | wxPyEndAllowThreads(__tstate); | |
15488 | if (PyErr_Occurred()) SWIG_fail; | |
15489 | } | |
328fcd84 | 15490 | Py_INCREF(Py_None); resultobj = Py_None; |
db914595 RD |
15491 | return resultobj; |
15492 | fail: | |
15493 | return NULL; | |
15494 | } | |
15495 | ||
15496 | ||
328fcd84 RD |
15497 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { |
15498 | PyObject *obj; | |
15499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15500 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15501 | Py_INCREF(obj); | |
15502 | return Py_BuildValue((char *)""); | |
15503 | } | |
15504 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
15505 | PyObject *resultobj; |
15506 | wxWindow *arg1 = (wxWindow *) 0 ; | |
328fcd84 RD |
15507 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
15508 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
d14a1e28 RD |
15509 | wxBufferedPaintDC *result; |
15510 | PyObject * obj0 = 0 ; | |
15511 | PyObject * obj1 = 0 ; | |
328fcd84 RD |
15512 | char *kwnames[] = { |
15513 | (char *) "window",(char *) "buffer", NULL | |
15514 | }; | |
d14a1e28 | 15515 | |
328fcd84 | 15516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15518 | if (obj1) { | |
328fcd84 RD |
15519 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15520 | if (arg2 == NULL) { | |
15521 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
d14a1e28 RD |
15522 | } |
15523 | } | |
15524 | { | |
15525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15526 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
15527 | |
15528 | wxPyEndAllowThreads(__tstate); | |
15529 | if (PyErr_Occurred()) SWIG_fail; | |
15530 | } | |
15531 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
15532 | return resultobj; | |
15533 | fail: | |
15534 | return NULL; | |
15535 | } | |
15536 | ||
15537 | ||
15538 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
15539 | PyObject *obj; | |
15540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15541 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15542 | Py_INCREF(obj); | |
15543 | return Py_BuildValue((char *)""); | |
15544 | } | |
15545 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15546 | PyObject *resultobj; | |
15547 | wxScreenDC *result; | |
15548 | char *kwnames[] = { | |
15549 | NULL | |
15550 | }; | |
15551 | ||
15552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15553 | { | |
15554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15555 | result = (wxScreenDC *)new wxScreenDC(); | |
15556 | ||
15557 | wxPyEndAllowThreads(__tstate); | |
15558 | if (PyErr_Occurred()) SWIG_fail; | |
15559 | } | |
15560 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
15561 | return resultobj; | |
15562 | fail: | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
15567 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15568 | PyObject *resultobj; | |
15569 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15570 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15571 | bool result; | |
15572 | PyObject * obj0 = 0 ; | |
15573 | PyObject * obj1 = 0 ; | |
15574 | char *kwnames[] = { | |
15575 | (char *) "self",(char *) "window", NULL | |
15576 | }; | |
15577 | ||
15578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15580 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15581 | { | |
15582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15583 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15584 | ||
15585 | wxPyEndAllowThreads(__tstate); | |
15586 | if (PyErr_Occurred()) SWIG_fail; | |
15587 | } | |
4e760a36 | 15588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15589 | return resultobj; |
15590 | fail: | |
15591 | return NULL; | |
15592 | } | |
15593 | ||
15594 | ||
15595 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15596 | PyObject *resultobj; | |
15597 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15598 | wxRect *arg2 = (wxRect *) NULL ; | |
15599 | bool result; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | PyObject * obj1 = 0 ; | |
15602 | char *kwnames[] = { | |
15603 | (char *) "self",(char *) "rect", NULL | |
15604 | }; | |
15605 | ||
15606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15608 | if (obj1) { | |
15609 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15610 | } | |
15611 | { | |
15612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15613 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15614 | ||
15615 | wxPyEndAllowThreads(__tstate); | |
15616 | if (PyErr_Occurred()) SWIG_fail; | |
15617 | } | |
4e760a36 | 15618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15619 | return resultobj; |
15620 | fail: | |
15621 | return NULL; | |
15622 | } | |
15623 | ||
15624 | ||
15625 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15626 | PyObject *resultobj; | |
15627 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15628 | bool result; | |
15629 | PyObject * obj0 = 0 ; | |
15630 | char *kwnames[] = { | |
15631 | (char *) "self", NULL | |
15632 | }; | |
15633 | ||
15634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15636 | { | |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15638 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15639 | ||
15640 | wxPyEndAllowThreads(__tstate); | |
15641 | if (PyErr_Occurred()) SWIG_fail; | |
15642 | } | |
4e760a36 | 15643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15644 | return resultobj; |
15645 | fail: | |
15646 | return NULL; | |
15647 | } | |
15648 | ||
15649 | ||
15650 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15651 | PyObject *obj; | |
15652 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15653 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15654 | Py_INCREF(obj); | |
15655 | return Py_BuildValue((char *)""); | |
15656 | } | |
15657 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15658 | PyObject *resultobj; | |
15659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15660 | wxClientDC *result; | |
15661 | PyObject * obj0 = 0 ; | |
15662 | char *kwnames[] = { | |
15663 | (char *) "win", NULL | |
15664 | }; | |
15665 | ||
15666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15668 | { | |
15669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15670 | result = (wxClientDC *)new wxClientDC(arg1); | |
15671 | ||
15672 | wxPyEndAllowThreads(__tstate); | |
15673 | if (PyErr_Occurred()) SWIG_fail; | |
15674 | } | |
15675 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
15676 | return resultobj; | |
15677 | fail: | |
15678 | return NULL; | |
15679 | } | |
15680 | ||
15681 | ||
15682 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15683 | PyObject *obj; | |
15684 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15685 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15686 | Py_INCREF(obj); | |
15687 | return Py_BuildValue((char *)""); | |
15688 | } | |
15689 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15690 | PyObject *resultobj; | |
15691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15692 | wxPaintDC *result; | |
15693 | PyObject * obj0 = 0 ; | |
15694 | char *kwnames[] = { | |
15695 | (char *) "win", NULL | |
15696 | }; | |
15697 | ||
15698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15703 | ||
15704 | wxPyEndAllowThreads(__tstate); | |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
15706 | } | |
15707 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
15708 | return resultobj; | |
15709 | fail: | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
15714 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15715 | PyObject *obj; | |
15716 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15717 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15718 | Py_INCREF(obj); | |
15719 | return Py_BuildValue((char *)""); | |
15720 | } | |
15721 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15722 | PyObject *resultobj; | |
15723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15724 | wxWindowDC *result; | |
15725 | PyObject * obj0 = 0 ; | |
15726 | char *kwnames[] = { | |
15727 | (char *) "win", NULL | |
15728 | }; | |
15729 | ||
15730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15732 | { | |
15733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15734 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15735 | ||
15736 | wxPyEndAllowThreads(__tstate); | |
15737 | if (PyErr_Occurred()) SWIG_fail; | |
15738 | } | |
15739 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
15740 | return resultobj; | |
15741 | fail: | |
15742 | return NULL; | |
15743 | } | |
15744 | ||
15745 | ||
15746 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15747 | PyObject *obj; | |
15748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15749 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15750 | Py_INCREF(obj); | |
15751 | return Py_BuildValue((char *)""); | |
15752 | } | |
15753 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15754 | PyObject *resultobj; | |
15755 | wxDC *arg1 = 0 ; | |
15756 | bool arg2 ; | |
15757 | wxMirrorDC *result; | |
15758 | PyObject * obj0 = 0 ; | |
15759 | PyObject * obj1 = 0 ; | |
15760 | char *kwnames[] = { | |
15761 | (char *) "dc",(char *) "mirror", NULL | |
15762 | }; | |
15763 | ||
15764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15766 | if (arg1 == NULL) { | |
15767 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15768 | } | |
83448d71 | 15769 | { |
8edf1c75 | 15770 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15771 | if (PyErr_Occurred()) SWIG_fail; |
15772 | } | |
d14a1e28 RD |
15773 | { |
15774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15775 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15776 | ||
15777 | wxPyEndAllowThreads(__tstate); | |
15778 | if (PyErr_Occurred()) SWIG_fail; | |
15779 | } | |
15780 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
15781 | return resultobj; | |
15782 | fail: | |
15783 | return NULL; | |
15784 | } | |
15785 | ||
15786 | ||
15787 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15788 | PyObject *obj; | |
15789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15790 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15791 | Py_INCREF(obj); | |
15792 | return Py_BuildValue((char *)""); | |
15793 | } | |
15794 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15795 | PyObject *resultobj; | |
15796 | wxPrintData *arg1 = 0 ; | |
15797 | wxPostScriptDC *result; | |
15798 | PyObject * obj0 = 0 ; | |
15799 | char *kwnames[] = { | |
15800 | (char *) "printData", NULL | |
15801 | }; | |
15802 | ||
15803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15805 | if (arg1 == NULL) { | |
15806 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15807 | } | |
15808 | { | |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
15815 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
15822 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15823 | PyObject *resultobj; | |
15824 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15825 | wxPrintData *result; | |
15826 | PyObject * obj0 = 0 ; | |
15827 | char *kwnames[] = { | |
15828 | (char *) "self", NULL | |
15829 | }; | |
15830 | ||
15831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15833 | { | |
15834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15835 | { | |
15836 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15837 | result = (wxPrintData *) &_result_ref; | |
15838 | } | |
15839 | ||
15840 | wxPyEndAllowThreads(__tstate); | |
15841 | if (PyErr_Occurred()) SWIG_fail; | |
15842 | } | |
15843 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
15844 | return resultobj; | |
15845 | fail: | |
15846 | return NULL; | |
15847 | } | |
15848 | ||
15849 | ||
15850 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15851 | PyObject *resultobj; | |
15852 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15853 | wxPrintData *arg2 = 0 ; | |
15854 | PyObject * obj0 = 0 ; | |
15855 | PyObject * obj1 = 0 ; | |
15856 | char *kwnames[] = { | |
15857 | (char *) "self",(char *) "data", NULL | |
15858 | }; | |
15859 | ||
15860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15862 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15863 | if (arg2 == NULL) { | |
15864 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15865 | } | |
15866 | { | |
15867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15868 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15869 | ||
15870 | wxPyEndAllowThreads(__tstate); | |
15871 | if (PyErr_Occurred()) SWIG_fail; | |
15872 | } | |
15873 | Py_INCREF(Py_None); resultobj = Py_None; | |
15874 | return resultobj; | |
15875 | fail: | |
15876 | return NULL; | |
15877 | } | |
15878 | ||
15879 | ||
15880 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15881 | PyObject *resultobj; | |
15882 | int arg1 ; | |
8edf1c75 | 15883 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15884 | char *kwnames[] = { |
15885 | (char *) "ppi", NULL | |
15886 | }; | |
15887 | ||
8edf1c75 RD |
15888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15889 | { | |
15890 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15891 | if (PyErr_Occurred()) SWIG_fail; | |
15892 | } | |
d14a1e28 RD |
15893 | { |
15894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15895 | wxPostScriptDC::SetResolution(arg1); | |
15896 | ||
15897 | wxPyEndAllowThreads(__tstate); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
15900 | Py_INCREF(Py_None); resultobj = Py_None; | |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15908 | PyObject *resultobj; | |
15909 | int result; | |
15910 | char *kwnames[] = { | |
15911 | NULL | |
15912 | }; | |
15913 | ||
15914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15915 | { | |
15916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15917 | result = (int)wxPostScriptDC::GetResolution(); | |
15918 | ||
15919 | wxPyEndAllowThreads(__tstate); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
8edf1c75 | 15922 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15923 | return resultobj; |
15924 | fail: | |
15925 | return NULL; | |
15926 | } | |
15927 | ||
15928 | ||
15929 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15930 | PyObject *obj; | |
15931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15932 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15933 | Py_INCREF(obj); | |
15934 | return Py_BuildValue((char *)""); | |
15935 | } | |
15936 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15937 | PyObject *resultobj; | |
15938 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15939 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15940 | wxMetaFile *result; | |
423f194a | 15941 | bool temp1 = False ; |
d14a1e28 RD |
15942 | PyObject * obj0 = 0 ; |
15943 | char *kwnames[] = { | |
15944 | (char *) "filename", NULL | |
15945 | }; | |
15946 | ||
15947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15948 | if (obj0) { | |
15949 | { | |
15950 | arg1 = wxString_in_helper(obj0); | |
15951 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15952 | temp1 = True; |
d14a1e28 RD |
15953 | } |
15954 | } | |
15955 | { | |
15956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15957 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15958 | ||
15959 | wxPyEndAllowThreads(__tstate); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | } | |
15962 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
15963 | { | |
15964 | if (temp1) | |
15965 | delete arg1; | |
15966 | } | |
15967 | return resultobj; | |
15968 | fail: | |
15969 | { | |
15970 | if (temp1) | |
15971 | delete arg1; | |
15972 | } | |
15973 | return NULL; | |
15974 | } | |
15975 | ||
15976 | ||
15977 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15978 | PyObject *resultobj; | |
15979 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
15980 | PyObject * obj0 = 0 ; | |
15981 | char *kwnames[] = { | |
15982 | (char *) "self", NULL | |
15983 | }; | |
15984 | ||
15985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
15986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15987 | { | |
15988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15989 | delete arg1; | |
15990 | ||
15991 | wxPyEndAllowThreads(__tstate); | |
15992 | if (PyErr_Occurred()) SWIG_fail; | |
15993 | } | |
15994 | Py_INCREF(Py_None); resultobj = Py_None; | |
15995 | return resultobj; | |
15996 | fail: | |
15997 | return NULL; | |
15998 | } | |
15999 | ||
16000 | ||
16001 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16002 | PyObject *resultobj; | |
16003 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16004 | bool result; | |
16005 | PyObject * obj0 = 0 ; | |
16006 | char *kwnames[] = { | |
16007 | (char *) "self", NULL | |
16008 | }; | |
16009 | ||
16010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
16011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16012 | { | |
16013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16014 | result = (bool)(arg1)->Ok(); | |
16015 | ||
16016 | wxPyEndAllowThreads(__tstate); | |
16017 | if (PyErr_Occurred()) SWIG_fail; | |
16018 | } | |
4e760a36 | 16019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16020 | return resultobj; |
16021 | fail: | |
16022 | return NULL; | |
16023 | } | |
16024 | ||
16025 | ||
16026 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16027 | PyObject *resultobj; | |
16028 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16029 | int arg2 = (int) 0 ; | |
16030 | int arg3 = (int) 0 ; | |
16031 | bool result; | |
16032 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16033 | PyObject * obj1 = 0 ; |
16034 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16035 | char *kwnames[] = { |
16036 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16037 | }; | |
16038 | ||
8edf1c75 | 16039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 16040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16041 | if (obj1) { |
16042 | { | |
16043 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16044 | if (PyErr_Occurred()) SWIG_fail; | |
16045 | } | |
16046 | } | |
16047 | if (obj2) { | |
16048 | { | |
16049 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16050 | if (PyErr_Occurred()) SWIG_fail; | |
16051 | } | |
16052 | } | |
d14a1e28 RD |
16053 | { |
16054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16055 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
16056 | ||
16057 | wxPyEndAllowThreads(__tstate); | |
16058 | if (PyErr_Occurred()) SWIG_fail; | |
16059 | } | |
4e760a36 | 16060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16061 | return resultobj; |
16062 | fail: | |
16063 | return NULL; | |
16064 | } | |
16065 | ||
16066 | ||
16067 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16068 | PyObject *resultobj; | |
16069 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16070 | wxSize result; | |
16071 | PyObject * obj0 = 0 ; | |
16072 | char *kwnames[] = { | |
16073 | (char *) "self", NULL | |
16074 | }; | |
16075 | ||
16076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
16077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16078 | { | |
16079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16080 | result = (arg1)->GetSize(); | |
16081 | ||
16082 | wxPyEndAllowThreads(__tstate); | |
16083 | if (PyErr_Occurred()) SWIG_fail; | |
16084 | } | |
16085 | { | |
16086 | wxSize * resultptr; | |
16087 | resultptr = new wxSize((wxSize &) result); | |
16088 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16089 | } | |
16090 | return resultobj; | |
16091 | fail: | |
16092 | return NULL; | |
16093 | } | |
16094 | ||
16095 | ||
16096 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16097 | PyObject *resultobj; | |
16098 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16099 | int result; | |
16100 | PyObject * obj0 = 0 ; | |
16101 | char *kwnames[] = { | |
16102 | (char *) "self", NULL | |
16103 | }; | |
16104 | ||
16105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
16106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16107 | { | |
16108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16109 | result = (int)(arg1)->GetWidth(); | |
16110 | ||
16111 | wxPyEndAllowThreads(__tstate); | |
16112 | if (PyErr_Occurred()) SWIG_fail; | |
16113 | } | |
8edf1c75 | 16114 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16115 | return resultobj; |
16116 | fail: | |
16117 | return NULL; | |
16118 | } | |
16119 | ||
16120 | ||
16121 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16122 | PyObject *resultobj; | |
16123 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16124 | int result; | |
16125 | PyObject * obj0 = 0 ; | |
16126 | char *kwnames[] = { | |
16127 | (char *) "self", NULL | |
16128 | }; | |
16129 | ||
16130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
16131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16132 | { | |
16133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16134 | result = (int)(arg1)->GetHeight(); | |
16135 | ||
16136 | wxPyEndAllowThreads(__tstate); | |
16137 | if (PyErr_Occurred()) SWIG_fail; | |
16138 | } | |
8edf1c75 | 16139 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16140 | return resultobj; |
16141 | fail: | |
16142 | return NULL; | |
16143 | } | |
16144 | ||
16145 | ||
16146 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16147 | PyObject *resultobj; | |
16148 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16149 | wxString *result; | |
16150 | PyObject * obj0 = 0 ; | |
16151 | char *kwnames[] = { | |
16152 | (char *) "self", NULL | |
16153 | }; | |
16154 | ||
16155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
16156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16157 | { | |
16158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16159 | { | |
16160 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
16161 | result = (wxString *) &_result_ref; | |
16162 | } | |
16163 | ||
16164 | wxPyEndAllowThreads(__tstate); | |
16165 | if (PyErr_Occurred()) SWIG_fail; | |
16166 | } | |
f0983263 RD |
16167 | { |
16168 | #if wxUSE_UNICODE | |
16169 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16170 | #else | |
16171 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16172 | #endif | |
16173 | } | |
d14a1e28 RD |
16174 | return resultobj; |
16175 | fail: | |
16176 | return NULL; | |
16177 | } | |
16178 | ||
16179 | ||
16180 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
16181 | PyObject *obj; | |
16182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16183 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16184 | Py_INCREF(obj); | |
16185 | return Py_BuildValue((char *)""); | |
16186 | } | |
16187 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16188 | PyObject *resultobj; | |
16189 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16190 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16191 | int arg2 = (int) 0 ; | |
16192 | int arg3 = (int) 0 ; | |
16193 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16194 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16195 | wxMetaFileDC *result; | |
423f194a RD |
16196 | bool temp1 = False ; |
16197 | bool temp4 = False ; | |
d14a1e28 | 16198 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
16199 | PyObject * obj1 = 0 ; |
16200 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16201 | PyObject * obj3 = 0 ; |
16202 | char *kwnames[] = { | |
16203 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16204 | }; | |
16205 | ||
8edf1c75 | 16206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
16207 | if (obj0) { |
16208 | { | |
16209 | arg1 = wxString_in_helper(obj0); | |
16210 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16211 | temp1 = True; |
d14a1e28 RD |
16212 | } |
16213 | } | |
8edf1c75 RD |
16214 | if (obj1) { |
16215 | { | |
16216 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16217 | if (PyErr_Occurred()) SWIG_fail; | |
16218 | } | |
16219 | } | |
16220 | if (obj2) { | |
16221 | { | |
16222 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
16225 | } | |
d14a1e28 RD |
16226 | if (obj3) { |
16227 | { | |
16228 | arg4 = wxString_in_helper(obj3); | |
16229 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16230 | temp4 = True; |
d14a1e28 RD |
16231 | } |
16232 | } | |
16233 | { | |
16234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16235 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16236 | ||
16237 | wxPyEndAllowThreads(__tstate); | |
16238 | if (PyErr_Occurred()) SWIG_fail; | |
16239 | } | |
16240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
16241 | { | |
16242 | if (temp1) | |
16243 | delete arg1; | |
16244 | } | |
16245 | { | |
16246 | if (temp4) | |
16247 | delete arg4; | |
16248 | } | |
16249 | return resultobj; | |
16250 | fail: | |
16251 | { | |
16252 | if (temp1) | |
16253 | delete arg1; | |
16254 | } | |
16255 | { | |
16256 | if (temp4) | |
16257 | delete arg4; | |
16258 | } | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
16263 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16264 | PyObject *resultobj; | |
16265 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
16266 | wxMetaFile *result; | |
16267 | PyObject * obj0 = 0 ; | |
16268 | char *kwnames[] = { | |
16269 | (char *) "self", NULL | |
16270 | }; | |
16271 | ||
16272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
16273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16274 | { | |
16275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16276 | result = (wxMetaFile *)(arg1)->Close(); | |
16277 | ||
16278 | wxPyEndAllowThreads(__tstate); | |
16279 | if (PyErr_Occurred()) SWIG_fail; | |
16280 | } | |
16281 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0); | |
16282 | return resultobj; | |
16283 | fail: | |
16284 | return NULL; | |
16285 | } | |
16286 | ||
16287 | ||
16288 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
16289 | PyObject *obj; | |
16290 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16291 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16292 | Py_INCREF(obj); | |
16293 | return Py_BuildValue((char *)""); | |
16294 | } | |
16295 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16296 | PyObject *resultobj; | |
16297 | wxPrintData *arg1 = 0 ; | |
16298 | wxPrinterDC *result; | |
16299 | PyObject * obj0 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "printData", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
16305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16306 | if (arg1 == NULL) { | |
16307 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16308 | } | |
16309 | { | |
16310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16311 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16312 | ||
16313 | wxPyEndAllowThreads(__tstate); | |
16314 | if (PyErr_Occurred()) SWIG_fail; | |
16315 | } | |
16316 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
16317 | return resultobj; | |
16318 | fail: | |
16319 | return NULL; | |
16320 | } | |
16321 | ||
16322 | ||
16323 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
16324 | PyObject *obj; | |
16325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16326 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16327 | Py_INCREF(obj); | |
16328 | return Py_BuildValue((char *)""); | |
16329 | } | |
16330 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16331 | PyObject *resultobj; | |
16332 | int arg1 ; | |
16333 | int arg2 ; | |
423f194a | 16334 | int arg3 = (int) True ; |
d14a1e28 RD |
16335 | int arg4 = (int) 1 ; |
16336 | wxImageList *result; | |
8edf1c75 RD |
16337 | PyObject * obj0 = 0 ; |
16338 | PyObject * obj1 = 0 ; | |
16339 | PyObject * obj2 = 0 ; | |
16340 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
16341 | char *kwnames[] = { |
16342 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16343 | }; | |
16344 | ||
8edf1c75 RD |
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
16346 | { | |
16347 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
16350 | { | |
16351 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16352 | if (PyErr_Occurred()) SWIG_fail; | |
16353 | } | |
16354 | if (obj2) { | |
16355 | { | |
16356 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16357 | if (PyErr_Occurred()) SWIG_fail; | |
16358 | } | |
16359 | } | |
16360 | if (obj3) { | |
16361 | { | |
16362 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16363 | if (PyErr_Occurred()) SWIG_fail; | |
16364 | } | |
16365 | } | |
d14a1e28 RD |
16366 | { |
16367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16368 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16369 | ||
16370 | wxPyEndAllowThreads(__tstate); | |
16371 | if (PyErr_Occurred()) SWIG_fail; | |
16372 | } | |
16373 | { | |
16374 | resultobj = wxPyMake_wxObject(result); | |
16375 | } | |
16376 | return resultobj; | |
16377 | fail: | |
16378 | return NULL; | |
16379 | } | |
16380 | ||
16381 | ||
16382 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16383 | PyObject *resultobj; | |
16384 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16385 | PyObject * obj0 = 0 ; | |
16386 | char *kwnames[] = { | |
16387 | (char *) "self", NULL | |
16388 | }; | |
16389 | ||
16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
16391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16392 | { | |
16393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16394 | delete arg1; | |
16395 | ||
16396 | wxPyEndAllowThreads(__tstate); | |
16397 | if (PyErr_Occurred()) SWIG_fail; | |
16398 | } | |
16399 | Py_INCREF(Py_None); resultobj = Py_None; | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16407 | PyObject *resultobj; | |
16408 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16409 | wxBitmap *arg2 = 0 ; | |
16410 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16411 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16412 | int result; | |
16413 | PyObject * obj0 = 0 ; | |
16414 | PyObject * obj1 = 0 ; | |
16415 | PyObject * obj2 = 0 ; | |
16416 | char *kwnames[] = { | |
16417 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16418 | }; | |
16419 | ||
16420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16422 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16423 | if (arg2 == NULL) { | |
16424 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16425 | } | |
16426 | if (obj2) { | |
16427 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16428 | if (arg3 == NULL) { | |
16429 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16430 | } | |
16431 | } | |
16432 | { | |
16433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16434 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16435 | ||
16436 | wxPyEndAllowThreads(__tstate); | |
16437 | if (PyErr_Occurred()) SWIG_fail; | |
16438 | } | |
8edf1c75 | 16439 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16440 | return resultobj; |
16441 | fail: | |
16442 | return NULL; | |
16443 | } | |
16444 | ||
16445 | ||
16446 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16447 | PyObject *resultobj; | |
16448 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16449 | wxBitmap *arg2 = 0 ; | |
16450 | wxColour *arg3 = 0 ; | |
16451 | int result; | |
16452 | wxColour temp3 ; | |
16453 | PyObject * obj0 = 0 ; | |
16454 | PyObject * obj1 = 0 ; | |
16455 | PyObject * obj2 = 0 ; | |
16456 | char *kwnames[] = { | |
16457 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16458 | }; | |
16459 | ||
16460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16462 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16463 | if (arg2 == NULL) { | |
16464 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16465 | } | |
16466 | { | |
16467 | arg3 = &temp3; | |
16468 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16469 | } | |
16470 | { | |
16471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16472 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16473 | ||
16474 | wxPyEndAllowThreads(__tstate); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
8edf1c75 | 16477 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16478 | return resultobj; |
16479 | fail: | |
16480 | return NULL; | |
16481 | } | |
16482 | ||
16483 | ||
16484 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16485 | PyObject *resultobj; | |
16486 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16487 | wxIcon *arg2 = 0 ; | |
16488 | int result; | |
16489 | PyObject * obj0 = 0 ; | |
16490 | PyObject * obj1 = 0 ; | |
16491 | char *kwnames[] = { | |
16492 | (char *) "self",(char *) "icon", NULL | |
16493 | }; | |
16494 | ||
16495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
16496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16497 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16498 | if (arg2 == NULL) { | |
16499 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16500 | } | |
16501 | { | |
16502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16503 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16504 | ||
16505 | wxPyEndAllowThreads(__tstate); | |
16506 | if (PyErr_Occurred()) SWIG_fail; | |
16507 | } | |
8edf1c75 | 16508 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16509 | return resultobj; |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
16515 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16516 | PyObject *resultobj; | |
16517 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16518 | int arg2 ; | |
16519 | wxBitmap *arg3 = 0 ; | |
16520 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
16521 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
16522 | bool result; | |
16523 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16524 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16525 | PyObject * obj2 = 0 ; |
16526 | PyObject * obj3 = 0 ; | |
16527 | char *kwnames[] = { | |
16528 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
16529 | }; | |
16530 | ||
8edf1c75 | 16531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 16532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16533 | { |
16534 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
d14a1e28 RD |
16537 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16538 | if (arg3 == NULL) { | |
16539 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16540 | } | |
16541 | if (obj3) { | |
16542 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16543 | if (arg4 == NULL) { | |
16544 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16545 | } | |
16546 | } | |
16547 | { | |
16548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16549 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
16550 | ||
16551 | wxPyEndAllowThreads(__tstate); | |
16552 | if (PyErr_Occurred()) SWIG_fail; | |
16553 | } | |
4e760a36 | 16554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16555 | return resultobj; |
16556 | fail: | |
16557 | return NULL; | |
16558 | } | |
16559 | ||
16560 | ||
16561 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16562 | PyObject *resultobj; | |
16563 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16564 | int arg2 ; | |
16565 | wxDC *arg3 = 0 ; | |
16566 | int arg4 ; | |
16567 | int arg5 ; | |
16568 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 16569 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
16570 | bool result; |
16571 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16572 | PyObject * obj1 = 0 ; |
d14a1e28 | 16573 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
16574 | PyObject * obj3 = 0 ; |
16575 | PyObject * obj4 = 0 ; | |
16576 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
16577 | PyObject * obj6 = 0 ; |
16578 | char *kwnames[] = { | |
16579 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16580 | }; | |
16581 | ||
8edf1c75 | 16582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 16583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16584 | { |
16585 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16586 | if (PyErr_Occurred()) SWIG_fail; | |
16587 | } | |
d14a1e28 RD |
16588 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
16589 | if (arg3 == NULL) { | |
16590 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16591 | } | |
8edf1c75 RD |
16592 | { |
16593 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | } | |
16596 | { | |
16597 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
16598 | if (PyErr_Occurred()) SWIG_fail; | |
16599 | } | |
16600 | if (obj5) { | |
16601 | { | |
16602 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | } | |
d14a1e28 | 16606 | if (obj6) { |
83448d71 | 16607 | { |
8edf1c75 | 16608 | arg7 = (bool const) SWIG_PyObj_AsBool(obj6); |
83448d71 RD |
16609 | if (PyErr_Occurred()) SWIG_fail; |
16610 | } | |
d14a1e28 RD |
16611 | } |
16612 | { | |
16613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16614 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16615 | ||
16616 | wxPyEndAllowThreads(__tstate); | |
16617 | if (PyErr_Occurred()) SWIG_fail; | |
16618 | } | |
4e760a36 | 16619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16620 | return resultobj; |
16621 | fail: | |
16622 | return NULL; | |
16623 | } | |
16624 | ||
16625 | ||
16626 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16627 | PyObject *resultobj; | |
16628 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16629 | int result; | |
16630 | PyObject * obj0 = 0 ; | |
16631 | char *kwnames[] = { | |
16632 | (char *) "self", NULL | |
16633 | }; | |
16634 | ||
16635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
16636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16637 | { | |
16638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16639 | result = (int)(arg1)->GetImageCount(); | |
16640 | ||
16641 | wxPyEndAllowThreads(__tstate); | |
16642 | if (PyErr_Occurred()) SWIG_fail; | |
16643 | } | |
8edf1c75 | 16644 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16645 | return resultobj; |
16646 | fail: | |
16647 | return NULL; | |
16648 | } | |
16649 | ||
16650 | ||
16651 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16652 | PyObject *resultobj; | |
16653 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16654 | int arg2 ; | |
16655 | bool result; | |
16656 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16658 | char *kwnames[] = { |
16659 | (char *) "self",(char *) "index", NULL | |
16660 | }; | |
16661 | ||
8edf1c75 | 16662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16664 | { |
16665 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16666 | if (PyErr_Occurred()) SWIG_fail; | |
16667 | } | |
d14a1e28 RD |
16668 | { |
16669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16670 | result = (bool)(arg1)->Remove(arg2); | |
16671 | ||
16672 | wxPyEndAllowThreads(__tstate); | |
16673 | if (PyErr_Occurred()) SWIG_fail; | |
16674 | } | |
4e760a36 | 16675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16676 | return resultobj; |
16677 | fail: | |
16678 | return NULL; | |
16679 | } | |
16680 | ||
16681 | ||
16682 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16683 | PyObject *resultobj; | |
16684 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16685 | bool result; | |
16686 | PyObject * obj0 = 0 ; | |
16687 | char *kwnames[] = { | |
16688 | (char *) "self", NULL | |
16689 | }; | |
16690 | ||
16691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
16692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16693 | { | |
16694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16695 | result = (bool)(arg1)->RemoveAll(); | |
16696 | ||
16697 | wxPyEndAllowThreads(__tstate); | |
16698 | if (PyErr_Occurred()) SWIG_fail; | |
16699 | } | |
4e760a36 | 16700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16701 | return resultobj; |
16702 | fail: | |
16703 | return NULL; | |
16704 | } | |
16705 | ||
16706 | ||
16707 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16708 | PyObject *resultobj; | |
16709 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16710 | int arg2 ; | |
16711 | int *arg3 = 0 ; | |
16712 | int *arg4 = 0 ; | |
16713 | int temp3 ; | |
16714 | int temp4 ; | |
16715 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16716 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16717 | char *kwnames[] = { |
16718 | (char *) "self",(char *) "index", NULL | |
16719 | }; | |
16720 | ||
16721 | arg3 = &temp3; | |
16722 | arg4 = &temp4; | |
8edf1c75 | 16723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16725 | { |
16726 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16727 | if (PyErr_Occurred()) SWIG_fail; | |
16728 | } | |
d14a1e28 RD |
16729 | { |
16730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16731 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16732 | ||
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | Py_INCREF(Py_None); resultobj = Py_None; | |
16737 | { | |
16738 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16739 | resultobj = t_output_helper(resultobj,o); | |
16740 | } | |
16741 | { | |
16742 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
16743 | resultobj = t_output_helper(resultobj,o); | |
16744 | } | |
16745 | return resultobj; | |
16746 | fail: | |
16747 | return NULL; | |
16748 | } | |
16749 | ||
16750 | ||
16751 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
16752 | PyObject *obj; | |
16753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16754 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16755 | Py_INCREF(obj); | |
16756 | return Py_BuildValue((char *)""); | |
16757 | } | |
8edf1c75 RD |
16758 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
16759 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
16760 | return 1; | |
16761 | } | |
16762 | ||
16763 | ||
16764 | static PyObject *_wrap_NORMAL_FONT_get() { | |
16765 | PyObject *pyobj; | |
d14a1e28 | 16766 | |
8edf1c75 RD |
16767 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); |
16768 | return pyobj; | |
d14a1e28 RD |
16769 | } |
16770 | ||
16771 | ||
8edf1c75 RD |
16772 | static int _wrap_SMALL_FONT_set(PyObject *) { |
16773 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
16774 | return 1; | |
d14a1e28 RD |
16775 | } |
16776 | ||
16777 | ||
8edf1c75 RD |
16778 | static PyObject *_wrap_SMALL_FONT_get() { |
16779 | PyObject *pyobj; | |
d14a1e28 | 16780 | |
8edf1c75 RD |
16781 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); |
16782 | return pyobj; | |
d14a1e28 RD |
16783 | } |
16784 | ||
16785 | ||
8edf1c75 RD |
16786 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
16787 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
16788 | return 1; | |
d14a1e28 RD |
16789 | } |
16790 | ||
16791 | ||
8edf1c75 RD |
16792 | static PyObject *_wrap_ITALIC_FONT_get() { |
16793 | PyObject *pyobj; | |
d14a1e28 | 16794 | |
8edf1c75 RD |
16795 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); |
16796 | return pyobj; | |
d14a1e28 RD |
16797 | } |
16798 | ||
16799 | ||
8edf1c75 RD |
16800 | static int _wrap_SWISS_FONT_set(PyObject *) { |
16801 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
16802 | return 1; | |
d14a1e28 RD |
16803 | } |
16804 | ||
16805 | ||
8edf1c75 RD |
16806 | static PyObject *_wrap_SWISS_FONT_get() { |
16807 | PyObject *pyobj; | |
d14a1e28 | 16808 | |
8edf1c75 RD |
16809 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); |
16810 | return pyobj; | |
d14a1e28 RD |
16811 | } |
16812 | ||
16813 | ||
8edf1c75 RD |
16814 | static int _wrap_RED_PEN_set(PyObject *) { |
16815 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
16816 | return 1; | |
16817 | } | |
16818 | ||
16819 | ||
16820 | static PyObject *_wrap_RED_PEN_get() { | |
16821 | PyObject *pyobj; | |
d14a1e28 | 16822 | |
8edf1c75 RD |
16823 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); |
16824 | return pyobj; | |
d14a1e28 RD |
16825 | } |
16826 | ||
16827 | ||
8edf1c75 RD |
16828 | static int _wrap_CYAN_PEN_set(PyObject *) { |
16829 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16830 | return 1; | |
d14a1e28 | 16831 | } |
8edf1c75 RD |
16832 | |
16833 | ||
16834 | static PyObject *_wrap_CYAN_PEN_get() { | |
16835 | PyObject *pyobj; | |
d14a1e28 | 16836 | |
8edf1c75 RD |
16837 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); |
16838 | return pyobj; | |
d14a1e28 RD |
16839 | } |
16840 | ||
16841 | ||
8edf1c75 RD |
16842 | static int _wrap_GREEN_PEN_set(PyObject *) { |
16843 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16844 | return 1; | |
d14a1e28 RD |
16845 | } |
16846 | ||
16847 | ||
8edf1c75 RD |
16848 | static PyObject *_wrap_GREEN_PEN_get() { |
16849 | PyObject *pyobj; | |
d14a1e28 | 16850 | |
8edf1c75 RD |
16851 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); |
16852 | return pyobj; | |
d14a1e28 RD |
16853 | } |
16854 | ||
16855 | ||
8edf1c75 RD |
16856 | static int _wrap_BLACK_PEN_set(PyObject *) { |
16857 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16858 | return 1; | |
d14a1e28 RD |
16859 | } |
16860 | ||
16861 | ||
8edf1c75 RD |
16862 | static PyObject *_wrap_BLACK_PEN_get() { |
16863 | PyObject *pyobj; | |
d14a1e28 | 16864 | |
8edf1c75 RD |
16865 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); |
16866 | return pyobj; | |
d14a1e28 RD |
16867 | } |
16868 | ||
16869 | ||
8edf1c75 RD |
16870 | static int _wrap_WHITE_PEN_set(PyObject *) { |
16871 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16872 | return 1; | |
16873 | } | |
16874 | ||
16875 | ||
16876 | static PyObject *_wrap_WHITE_PEN_get() { | |
16877 | PyObject *pyobj; | |
d14a1e28 | 16878 | |
8edf1c75 RD |
16879 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); |
16880 | return pyobj; | |
d14a1e28 RD |
16881 | } |
16882 | ||
16883 | ||
8edf1c75 RD |
16884 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
16885 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16886 | return 1; | |
d14a1e28 | 16887 | } |
8edf1c75 RD |
16888 | |
16889 | ||
16890 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
16891 | PyObject *pyobj; | |
d14a1e28 | 16892 | |
8edf1c75 RD |
16893 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); |
16894 | return pyobj; | |
d14a1e28 RD |
16895 | } |
16896 | ||
16897 | ||
8edf1c75 RD |
16898 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
16899 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16900 | return 1; | |
16901 | } | |
16902 | ||
16903 | ||
16904 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
16905 | PyObject *pyobj; | |
d14a1e28 | 16906 | |
8edf1c75 RD |
16907 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); |
16908 | return pyobj; | |
d14a1e28 RD |
16909 | } |
16910 | ||
16911 | ||
8edf1c75 RD |
16912 | static int _wrap_GREY_PEN_set(PyObject *) { |
16913 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16914 | return 1; | |
16915 | } | |
16916 | ||
16917 | ||
16918 | static PyObject *_wrap_GREY_PEN_get() { | |
16919 | PyObject *pyobj; | |
d14a1e28 | 16920 | |
8edf1c75 RD |
16921 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); |
16922 | return pyobj; | |
d14a1e28 RD |
16923 | } |
16924 | ||
16925 | ||
8edf1c75 RD |
16926 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
16927 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
16928 | return 1; | |
16929 | } | |
16930 | ||
16931 | ||
16932 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
16933 | PyObject *pyobj; | |
d14a1e28 | 16934 | |
8edf1c75 RD |
16935 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
16936 | return pyobj; | |
d14a1e28 RD |
16937 | } |
16938 | ||
16939 | ||
8edf1c75 RD |
16940 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
16941 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
16942 | return 1; | |
d14a1e28 | 16943 | } |
8edf1c75 RD |
16944 | |
16945 | ||
16946 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
16947 | PyObject *pyobj; | |
16948 | ||
16949 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
16950 | return pyobj; | |
16951 | } | |
16952 | ||
16953 | ||
16954 | static int _wrap_BLUE_BRUSH_set(PyObject *) { | |
16955 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16956 | return 1; |
16957 | } | |
16958 | ||
16959 | ||
8edf1c75 | 16960 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16961 | PyObject *pyobj; |
16962 | ||
8edf1c75 | 16963 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16964 | return pyobj; |
16965 | } | |
16966 | ||
16967 | ||
8edf1c75 RD |
16968 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
16969 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16970 | return 1; |
16971 | } | |
16972 | ||
16973 | ||
8edf1c75 | 16974 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16975 | PyObject *pyobj; |
16976 | ||
8edf1c75 | 16977 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16978 | return pyobj; |
16979 | } | |
16980 | ||
16981 | ||
8edf1c75 RD |
16982 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
16983 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16984 | return 1; |
16985 | } | |
16986 | ||
16987 | ||
8edf1c75 | 16988 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16989 | PyObject *pyobj; |
16990 | ||
8edf1c75 | 16991 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16992 | return pyobj; |
16993 | } | |
16994 | ||
16995 | ||
8edf1c75 RD |
16996 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
16997 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16998 | return 1; |
16999 | } | |
17000 | ||
17001 | ||
8edf1c75 | 17002 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
17003 | PyObject *pyobj; |
17004 | ||
8edf1c75 | 17005 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17006 | return pyobj; |
17007 | } | |
17008 | ||
17009 | ||
8edf1c75 RD |
17010 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
17011 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
17012 | return 1; |
17013 | } | |
17014 | ||
17015 | ||
8edf1c75 | 17016 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
17017 | PyObject *pyobj; |
17018 | ||
8edf1c75 | 17019 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17020 | return pyobj; |
17021 | } | |
17022 | ||
17023 | ||
8edf1c75 RD |
17024 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
17025 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
17026 | return 1; |
17027 | } | |
17028 | ||
17029 | ||
8edf1c75 | 17030 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
17031 | PyObject *pyobj; |
17032 | ||
8edf1c75 | 17033 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17034 | return pyobj; |
17035 | } | |
17036 | ||
17037 | ||
8edf1c75 RD |
17038 | static int _wrap_RED_BRUSH_set(PyObject *) { |
17039 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
17040 | return 1; |
17041 | } | |
17042 | ||
17043 | ||
8edf1c75 | 17044 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
17045 | PyObject *pyobj; |
17046 | ||
8edf1c75 | 17047 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17048 | return pyobj; |
17049 | } | |
17050 | ||
17051 | ||
8edf1c75 RD |
17052 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
17053 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
17054 | return 1; |
17055 | } | |
17056 | ||
17057 | ||
8edf1c75 | 17058 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
17059 | PyObject *pyobj; |
17060 | ||
8edf1c75 | 17061 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17062 | return pyobj; |
17063 | } | |
17064 | ||
17065 | ||
8edf1c75 RD |
17066 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
17067 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
17068 | return 1; |
17069 | } | |
17070 | ||
17071 | ||
8edf1c75 | 17072 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
17073 | PyObject *pyobj; |
17074 | ||
8edf1c75 | 17075 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17076 | return pyobj; |
17077 | } | |
17078 | ||
17079 | ||
8edf1c75 RD |
17080 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
17081 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
17082 | return 1; |
17083 | } | |
17084 | ||
17085 | ||
8edf1c75 | 17086 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
17087 | PyObject *pyobj; |
17088 | ||
8edf1c75 | 17089 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17090 | return pyobj; |
17091 | } | |
17092 | ||
17093 | ||
8edf1c75 RD |
17094 | static int _wrap_BLACK_set(PyObject *) { |
17095 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
17096 | return 1; |
17097 | } | |
17098 | ||
17099 | ||
8edf1c75 | 17100 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
17101 | PyObject *pyobj; |
17102 | ||
8edf1c75 | 17103 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17104 | return pyobj; |
17105 | } | |
17106 | ||
17107 | ||
8edf1c75 RD |
17108 | static int _wrap_WHITE_set(PyObject *) { |
17109 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
17110 | return 1; |
17111 | } | |
17112 | ||
17113 | ||
8edf1c75 | 17114 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
17115 | PyObject *pyobj; |
17116 | ||
8edf1c75 | 17117 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17118 | return pyobj; |
17119 | } | |
17120 | ||
17121 | ||
8edf1c75 RD |
17122 | static int _wrap_RED_set(PyObject *) { |
17123 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
17124 | return 1; |
17125 | } | |
17126 | ||
17127 | ||
8edf1c75 | 17128 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
17129 | PyObject *pyobj; |
17130 | ||
8edf1c75 | 17131 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17132 | return pyobj; |
17133 | } | |
17134 | ||
17135 | ||
8edf1c75 RD |
17136 | static int _wrap_BLUE_set(PyObject *) { |
17137 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
17138 | return 1; |
17139 | } | |
17140 | ||
17141 | ||
8edf1c75 | 17142 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
17143 | PyObject *pyobj; |
17144 | ||
8edf1c75 | 17145 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17146 | return pyobj; |
17147 | } | |
17148 | ||
17149 | ||
8edf1c75 RD |
17150 | static int _wrap_GREEN_set(PyObject *) { |
17151 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
17152 | return 1; |
17153 | } | |
17154 | ||
17155 | ||
8edf1c75 | 17156 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
17157 | PyObject *pyobj; |
17158 | ||
8edf1c75 | 17159 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17160 | return pyobj; |
17161 | } | |
17162 | ||
17163 | ||
8edf1c75 RD |
17164 | static int _wrap_CYAN_set(PyObject *) { |
17165 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
17166 | return 1; |
17167 | } | |
17168 | ||
17169 | ||
8edf1c75 | 17170 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
17171 | PyObject *pyobj; |
17172 | ||
8edf1c75 | 17173 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17174 | return pyobj; |
17175 | } | |
17176 | ||
17177 | ||
8edf1c75 RD |
17178 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
17179 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
17180 | return 1; |
17181 | } | |
17182 | ||
17183 | ||
8edf1c75 | 17184 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
17185 | PyObject *pyobj; |
17186 | ||
8edf1c75 | 17187 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17188 | return pyobj; |
17189 | } | |
17190 | ||
17191 | ||
8edf1c75 RD |
17192 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
17193 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
17194 | return 1; |
17195 | } | |
17196 | ||
17197 | ||
8edf1c75 | 17198 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
17199 | PyObject *pyobj; |
17200 | ||
8edf1c75 | 17201 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17202 | return pyobj; |
17203 | } | |
17204 | ||
17205 | ||
8edf1c75 RD |
17206 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
17207 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
17208 | return 1; |
17209 | } | |
17210 | ||
17211 | ||
8edf1c75 | 17212 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
17213 | PyObject *pyobj; |
17214 | ||
8edf1c75 | 17215 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17216 | return pyobj; |
17217 | } | |
17218 | ||
17219 | ||
8edf1c75 RD |
17220 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
17221 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
17222 | return 1; |
17223 | } | |
17224 | ||
17225 | ||
8edf1c75 | 17226 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
17227 | PyObject *pyobj; |
17228 | ||
8edf1c75 | 17229 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17230 | return pyobj; |
17231 | } | |
17232 | ||
17233 | ||
8edf1c75 RD |
17234 | static int _wrap_NullBitmap_set(PyObject *) { |
17235 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
17236 | return 1; |
17237 | } | |
17238 | ||
17239 | ||
8edf1c75 | 17240 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
17241 | PyObject *pyobj; |
17242 | ||
8edf1c75 | 17243 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
17244 | return pyobj; |
17245 | } | |
17246 | ||
17247 | ||
8edf1c75 RD |
17248 | static int _wrap_NullIcon_set(PyObject *) { |
17249 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
17250 | return 1; |
17251 | } | |
17252 | ||
17253 | ||
8edf1c75 | 17254 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
17255 | PyObject *pyobj; |
17256 | ||
8edf1c75 | 17257 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
17258 | return pyobj; |
17259 | } | |
17260 | ||
17261 | ||
8edf1c75 RD |
17262 | static int _wrap_NullCursor_set(PyObject *) { |
17263 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
17264 | return 1; |
17265 | } | |
17266 | ||
17267 | ||
8edf1c75 | 17268 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
17269 | PyObject *pyobj; |
17270 | ||
8edf1c75 | 17271 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17272 | return pyobj; |
17273 | } | |
17274 | ||
17275 | ||
8edf1c75 RD |
17276 | static int _wrap_NullPen_set(PyObject *) { |
17277 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
17278 | return 1; |
17279 | } | |
17280 | ||
17281 | ||
8edf1c75 | 17282 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
17283 | PyObject *pyobj; |
17284 | ||
8edf1c75 | 17285 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
17286 | return pyobj; |
17287 | } | |
17288 | ||
17289 | ||
8edf1c75 RD |
17290 | static int _wrap_NullBrush_set(PyObject *) { |
17291 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
17292 | return 1; |
17293 | } | |
17294 | ||
17295 | ||
8edf1c75 | 17296 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
17297 | PyObject *pyobj; |
17298 | ||
8edf1c75 | 17299 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17300 | return pyobj; |
17301 | } | |
17302 | ||
17303 | ||
8edf1c75 RD |
17304 | static int _wrap_NullPalette_set(PyObject *) { |
17305 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
17306 | return 1; |
17307 | } | |
17308 | ||
17309 | ||
8edf1c75 | 17310 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
17311 | PyObject *pyobj; |
17312 | ||
8edf1c75 | 17313 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
17314 | return pyobj; |
17315 | } | |
17316 | ||
17317 | ||
8edf1c75 RD |
17318 | static int _wrap_NullFont_set(PyObject *) { |
17319 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
17320 | return 1; |
17321 | } | |
17322 | ||
17323 | ||
8edf1c75 | 17324 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
17325 | PyObject *pyobj; |
17326 | ||
8edf1c75 | 17327 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
17328 | return pyobj; |
17329 | } | |
17330 | ||
17331 | ||
8edf1c75 RD |
17332 | static int _wrap_NullColour_set(PyObject *) { |
17333 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
17334 | return 1; |
17335 | } | |
17336 | ||
17337 | ||
8edf1c75 | 17338 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
17339 | PyObject *pyobj; |
17340 | ||
8edf1c75 | 17341 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17342 | return pyobj; |
17343 | } | |
17344 | ||
17345 | ||
8edf1c75 RD |
17346 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
17347 | PyObject *resultobj; | |
17348 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17349 | wxPen *arg2 = (wxPen *) 0 ; | |
17350 | PyObject * obj0 = 0 ; | |
17351 | PyObject * obj1 = 0 ; | |
17352 | char *kwnames[] = { | |
17353 | (char *) "self",(char *) "pen", NULL | |
17354 | }; | |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
17357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17358 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17359 | { | |
17360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17361 | (arg1)->AddPen(arg2); | |
17362 | ||
17363 | wxPyEndAllowThreads(__tstate); | |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
17365 | } | |
17366 | Py_INCREF(Py_None); resultobj = Py_None; | |
17367 | return resultobj; | |
17368 | fail: | |
17369 | return NULL; | |
d14a1e28 RD |
17370 | } |
17371 | ||
17372 | ||
8edf1c75 RD |
17373 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
17374 | PyObject *resultobj; | |
17375 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17376 | wxColour *arg2 = 0 ; | |
17377 | int arg3 ; | |
17378 | int arg4 ; | |
17379 | wxPen *result; | |
17380 | wxColour temp2 ; | |
17381 | PyObject * obj0 = 0 ; | |
17382 | PyObject * obj1 = 0 ; | |
17383 | PyObject * obj2 = 0 ; | |
17384 | PyObject * obj3 = 0 ; | |
17385 | char *kwnames[] = { | |
17386 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17387 | }; | |
d14a1e28 | 17388 | |
8edf1c75 RD |
17389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17391 | { | |
17392 | arg2 = &temp2; | |
17393 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17394 | } | |
17395 | { | |
17396 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
17399 | { | |
17400 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
17402 | } | |
17403 | { | |
17404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17405 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17406 | ||
17407 | wxPyEndAllowThreads(__tstate); | |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
17409 | } | |
17410 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
17411 | return resultobj; | |
17412 | fail: | |
17413 | return NULL; | |
d14a1e28 RD |
17414 | } |
17415 | ||
17416 | ||
8edf1c75 RD |
17417 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
17418 | PyObject *resultobj; | |
17419 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17420 | wxPen *arg2 = (wxPen *) 0 ; | |
17421 | PyObject * obj0 = 0 ; | |
17422 | PyObject * obj1 = 0 ; | |
17423 | char *kwnames[] = { | |
17424 | (char *) "self",(char *) "pen", NULL | |
17425 | }; | |
17426 | ||
17427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
17428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17429 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17430 | { | |
17431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17432 | (arg1)->RemovePen(arg2); | |
17433 | ||
17434 | wxPyEndAllowThreads(__tstate); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | Py_INCREF(Py_None); resultobj = Py_None; | |
17438 | return resultobj; | |
17439 | fail: | |
17440 | return NULL; | |
d14a1e28 RD |
17441 | } |
17442 | ||
17443 | ||
8edf1c75 RD |
17444 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17445 | PyObject *resultobj; | |
17446 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17447 | int result; | |
17448 | PyObject * obj0 = 0 ; | |
17449 | char *kwnames[] = { | |
17450 | (char *) "self", NULL | |
17451 | }; | |
d14a1e28 | 17452 | |
8edf1c75 RD |
17453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
17454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17455 | { | |
17456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17457 | result = (int)(arg1)->GetCount(); | |
17458 | ||
17459 | wxPyEndAllowThreads(__tstate); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | } | |
17462 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17463 | return resultobj; | |
17464 | fail: | |
17465 | return NULL; | |
d14a1e28 RD |
17466 | } |
17467 | ||
17468 | ||
8edf1c75 RD |
17469 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
17470 | PyObject *obj; | |
17471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17472 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17473 | Py_INCREF(obj); | |
17474 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17475 | } |
8edf1c75 RD |
17476 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
17477 | PyObject *resultobj; | |
17478 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17479 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17480 | PyObject * obj0 = 0 ; | |
17481 | PyObject * obj1 = 0 ; | |
17482 | char *kwnames[] = { | |
17483 | (char *) "self",(char *) "brush", NULL | |
17484 | }; | |
d14a1e28 | 17485 | |
8edf1c75 RD |
17486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; |
17487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17489 | { | |
17490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17491 | (arg1)->AddBrush(arg2); | |
17492 | ||
17493 | wxPyEndAllowThreads(__tstate); | |
17494 | if (PyErr_Occurred()) SWIG_fail; | |
17495 | } | |
17496 | Py_INCREF(Py_None); resultobj = Py_None; | |
17497 | return resultobj; | |
17498 | fail: | |
17499 | return NULL; | |
d14a1e28 RD |
17500 | } |
17501 | ||
17502 | ||
8edf1c75 RD |
17503 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
17504 | PyObject *resultobj; | |
17505 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17506 | wxColour *arg2 = 0 ; | |
17507 | int arg3 ; | |
17508 | wxBrush *result; | |
17509 | wxColour temp2 ; | |
17510 | PyObject * obj0 = 0 ; | |
17511 | PyObject * obj1 = 0 ; | |
17512 | PyObject * obj2 = 0 ; | |
17513 | char *kwnames[] = { | |
17514 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17515 | }; | |
17516 | ||
17517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17519 | { | |
17520 | arg2 = &temp2; | |
17521 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17522 | } | |
17523 | { | |
17524 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17525 | if (PyErr_Occurred()) SWIG_fail; | |
17526 | } | |
17527 | { | |
17528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17529 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17530 | ||
17531 | wxPyEndAllowThreads(__tstate); | |
17532 | if (PyErr_Occurred()) SWIG_fail; | |
17533 | } | |
17534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
17535 | return resultobj; | |
17536 | fail: | |
17537 | return NULL; | |
d14a1e28 RD |
17538 | } |
17539 | ||
17540 | ||
8edf1c75 RD |
17541 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
17542 | PyObject *resultobj; | |
17543 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17544 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17545 | PyObject * obj0 = 0 ; | |
17546 | PyObject * obj1 = 0 ; | |
17547 | char *kwnames[] = { | |
17548 | (char *) "self",(char *) "brush", NULL | |
17549 | }; | |
d14a1e28 | 17550 | |
8edf1c75 RD |
17551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
17552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17553 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17554 | { | |
17555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17556 | (arg1)->RemoveBrush(arg2); | |
17557 | ||
17558 | wxPyEndAllowThreads(__tstate); | |
17559 | if (PyErr_Occurred()) SWIG_fail; | |
17560 | } | |
17561 | Py_INCREF(Py_None); resultobj = Py_None; | |
17562 | return resultobj; | |
17563 | fail: | |
17564 | return NULL; | |
d14a1e28 RD |
17565 | } |
17566 | ||
17567 | ||
8edf1c75 RD |
17568 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17569 | PyObject *resultobj; | |
17570 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17571 | int result; | |
17572 | PyObject * obj0 = 0 ; | |
17573 | char *kwnames[] = { | |
17574 | (char *) "self", NULL | |
17575 | }; | |
d14a1e28 | 17576 | |
8edf1c75 RD |
17577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
17578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17579 | { | |
17580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17581 | result = (int)(arg1)->GetCount(); | |
17582 | ||
17583 | wxPyEndAllowThreads(__tstate); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17587 | return resultobj; | |
17588 | fail: | |
17589 | return NULL; | |
d14a1e28 RD |
17590 | } |
17591 | ||
17592 | ||
8edf1c75 RD |
17593 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
17594 | PyObject *obj; | |
17595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17596 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17597 | Py_INCREF(obj); | |
17598 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17599 | } |
8edf1c75 RD |
17600 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
17601 | PyObject *resultobj; | |
17602 | wxColourDatabase *result; | |
17603 | char *kwnames[] = { | |
17604 | NULL | |
17605 | }; | |
d14a1e28 | 17606 | |
8edf1c75 RD |
17607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
17608 | { | |
17609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17610 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17611 | ||
17612 | wxPyEndAllowThreads(__tstate); | |
17613 | if (PyErr_Occurred()) SWIG_fail; | |
17614 | } | |
17615 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
d14a1e28 RD |
17619 | } |
17620 | ||
17621 | ||
8edf1c75 RD |
17622 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
17623 | PyObject *resultobj; | |
17624 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17625 | PyObject * obj0 = 0 ; | |
17626 | char *kwnames[] = { | |
17627 | (char *) "self", NULL | |
17628 | }; | |
d14a1e28 | 17629 | |
8edf1c75 RD |
17630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
17631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17632 | { | |
17633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17634 | delete arg1; | |
17635 | ||
17636 | wxPyEndAllowThreads(__tstate); | |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
17638 | } | |
17639 | Py_INCREF(Py_None); resultobj = Py_None; | |
17640 | return resultobj; | |
17641 | fail: | |
17642 | return NULL; | |
d14a1e28 RD |
17643 | } |
17644 | ||
17645 | ||
8edf1c75 RD |
17646 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
17647 | PyObject *resultobj; | |
17648 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17649 | wxString *arg2 = 0 ; | |
17650 | wxColour result; | |
17651 | bool temp2 = False ; | |
17652 | PyObject * obj0 = 0 ; | |
17653 | PyObject * obj1 = 0 ; | |
17654 | char *kwnames[] = { | |
17655 | (char *) "self",(char *) "name", NULL | |
17656 | }; | |
d14a1e28 | 17657 | |
8edf1c75 RD |
17658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; |
17659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17660 | { | |
17661 | arg2 = wxString_in_helper(obj1); | |
17662 | if (arg2 == NULL) SWIG_fail; | |
17663 | temp2 = True; | |
17664 | } | |
17665 | { | |
17666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17667 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17668 | ||
17669 | wxPyEndAllowThreads(__tstate); | |
17670 | if (PyErr_Occurred()) SWIG_fail; | |
17671 | } | |
17672 | { | |
17673 | wxColour * resultptr; | |
17674 | resultptr = new wxColour((wxColour &) result); | |
17675 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17676 | } | |
17677 | { | |
17678 | if (temp2) | |
17679 | delete arg2; | |
17680 | } | |
17681 | return resultobj; | |
17682 | fail: | |
17683 | { | |
17684 | if (temp2) | |
17685 | delete arg2; | |
17686 | } | |
17687 | return NULL; | |
d14a1e28 RD |
17688 | } |
17689 | ||
17690 | ||
8edf1c75 RD |
17691 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
17692 | PyObject *resultobj; | |
17693 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17694 | wxColour *arg2 = 0 ; | |
17695 | wxString result; | |
17696 | wxColour temp2 ; | |
17697 | PyObject * obj0 = 0 ; | |
17698 | PyObject * obj1 = 0 ; | |
17699 | char *kwnames[] = { | |
17700 | (char *) "self",(char *) "colour", NULL | |
17701 | }; | |
d14a1e28 | 17702 | |
8edf1c75 RD |
17703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
17704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17705 | { | |
17706 | arg2 = &temp2; | |
17707 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17708 | } | |
17709 | { | |
17710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17711 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17712 | ||
17713 | wxPyEndAllowThreads(__tstate); | |
17714 | if (PyErr_Occurred()) SWIG_fail; | |
17715 | } | |
17716 | { | |
17717 | #if wxUSE_UNICODE | |
17718 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17719 | #else | |
17720 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17721 | #endif | |
17722 | } | |
17723 | return resultobj; | |
17724 | fail: | |
17725 | return NULL; | |
d14a1e28 RD |
17726 | } |
17727 | ||
17728 | ||
8edf1c75 RD |
17729 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
17730 | PyObject *resultobj; | |
17731 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17732 | wxString *arg2 = 0 ; | |
17733 | wxColour *arg3 = 0 ; | |
17734 | bool temp2 = False ; | |
17735 | wxColour temp3 ; | |
17736 | PyObject * obj0 = 0 ; | |
17737 | PyObject * obj1 = 0 ; | |
17738 | PyObject * obj2 = 0 ; | |
17739 | char *kwnames[] = { | |
17740 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17741 | }; | |
17742 | ||
17743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17745 | { | |
17746 | arg2 = wxString_in_helper(obj1); | |
17747 | if (arg2 == NULL) SWIG_fail; | |
17748 | temp2 = True; | |
17749 | } | |
17750 | { | |
17751 | arg3 = &temp3; | |
17752 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17753 | } | |
17754 | { | |
17755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17756 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17757 | ||
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | Py_INCREF(Py_None); resultobj = Py_None; | |
17762 | { | |
17763 | if (temp2) | |
17764 | delete arg2; | |
17765 | } | |
17766 | return resultobj; | |
17767 | fail: | |
17768 | { | |
17769 | if (temp2) | |
17770 | delete arg2; | |
17771 | } | |
17772 | return NULL; | |
d14a1e28 RD |
17773 | } |
17774 | ||
17775 | ||
8edf1c75 RD |
17776 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
17777 | PyObject *resultobj; | |
17778 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17779 | wxString *arg2 = 0 ; | |
17780 | int arg3 ; | |
17781 | int arg4 ; | |
17782 | int arg5 ; | |
17783 | bool temp2 = False ; | |
17784 | PyObject * obj0 = 0 ; | |
17785 | PyObject * obj1 = 0 ; | |
17786 | PyObject * obj2 = 0 ; | |
17787 | PyObject * obj3 = 0 ; | |
17788 | PyObject * obj4 = 0 ; | |
17789 | char *kwnames[] = { | |
17790 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17791 | }; | |
d14a1e28 | 17792 | |
8edf1c75 RD |
17793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
17794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17795 | { | |
17796 | arg2 = wxString_in_helper(obj1); | |
17797 | if (arg2 == NULL) SWIG_fail; | |
17798 | temp2 = True; | |
17799 | } | |
17800 | { | |
17801 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17802 | if (PyErr_Occurred()) SWIG_fail; | |
17803 | } | |
17804 | { | |
17805 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17806 | if (PyErr_Occurred()) SWIG_fail; | |
17807 | } | |
17808 | { | |
17809 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17810 | if (PyErr_Occurred()) SWIG_fail; | |
17811 | } | |
17812 | { | |
17813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17814 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17815 | ||
17816 | wxPyEndAllowThreads(__tstate); | |
17817 | if (PyErr_Occurred()) SWIG_fail; | |
17818 | } | |
17819 | Py_INCREF(Py_None); resultobj = Py_None; | |
17820 | { | |
17821 | if (temp2) | |
17822 | delete arg2; | |
17823 | } | |
17824 | return resultobj; | |
17825 | fail: | |
17826 | { | |
17827 | if (temp2) | |
17828 | delete arg2; | |
17829 | } | |
17830 | return NULL; | |
d14a1e28 RD |
17831 | } |
17832 | ||
17833 | ||
8edf1c75 RD |
17834 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
17835 | PyObject *obj; | |
17836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17837 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17838 | Py_INCREF(obj); | |
17839 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17840 | } |
8edf1c75 RD |
17841 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17842 | PyObject *resultobj; | |
17843 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17844 | wxFont *arg2 = (wxFont *) 0 ; | |
17845 | PyObject * obj0 = 0 ; | |
17846 | PyObject * obj1 = 0 ; | |
17847 | char *kwnames[] = { | |
17848 | (char *) "self",(char *) "font", NULL | |
17849 | }; | |
d14a1e28 | 17850 | |
8edf1c75 RD |
17851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
17852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17853 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17854 | { | |
17855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17856 | (arg1)->AddFont(arg2); | |
17857 | ||
17858 | wxPyEndAllowThreads(__tstate); | |
17859 | if (PyErr_Occurred()) SWIG_fail; | |
17860 | } | |
17861 | Py_INCREF(Py_None); resultobj = Py_None; | |
17862 | return resultobj; | |
17863 | fail: | |
17864 | return NULL; | |
d14a1e28 RD |
17865 | } |
17866 | ||
17867 | ||
8edf1c75 RD |
17868 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17869 | PyObject *resultobj; | |
17870 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17871 | int arg2 ; | |
17872 | int arg3 ; | |
17873 | int arg4 ; | |
17874 | int arg5 ; | |
17875 | bool arg6 = (bool) False ; | |
17876 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17877 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17878 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17879 | wxFont *result; | |
17880 | bool temp7 = False ; | |
17881 | PyObject * obj0 = 0 ; | |
17882 | PyObject * obj1 = 0 ; | |
17883 | PyObject * obj2 = 0 ; | |
17884 | PyObject * obj3 = 0 ; | |
17885 | PyObject * obj4 = 0 ; | |
17886 | PyObject * obj5 = 0 ; | |
17887 | PyObject * obj6 = 0 ; | |
17888 | PyObject * obj7 = 0 ; | |
17889 | char *kwnames[] = { | |
17890 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17891 | }; | |
d14a1e28 | 17892 | |
8edf1c75 RD |
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
17894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17895 | { | |
17896 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
17898 | } | |
17899 | { | |
17900 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
17902 | } | |
17903 | { | |
17904 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17905 | if (PyErr_Occurred()) SWIG_fail; | |
17906 | } | |
17907 | { | |
17908 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17909 | if (PyErr_Occurred()) SWIG_fail; | |
17910 | } | |
17911 | if (obj5) { | |
17912 | { | |
17913 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | } | |
17917 | if (obj6) { | |
17918 | { | |
17919 | arg7 = wxString_in_helper(obj6); | |
17920 | if (arg7 == NULL) SWIG_fail; | |
17921 | temp7 = True; | |
17922 | } | |
17923 | } | |
17924 | if (obj7) { | |
17925 | { | |
17926 | arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7); | |
17927 | if (PyErr_Occurred()) SWIG_fail; | |
17928 | } | |
17929 | } | |
17930 | { | |
17931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17932 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17933 | ||
17934 | wxPyEndAllowThreads(__tstate); | |
17935 | if (PyErr_Occurred()) SWIG_fail; | |
17936 | } | |
17937 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
17938 | { | |
17939 | if (temp7) | |
17940 | delete arg7; | |
17941 | } | |
17942 | return resultobj; | |
17943 | fail: | |
17944 | { | |
17945 | if (temp7) | |
17946 | delete arg7; | |
17947 | } | |
17948 | return NULL; | |
d14a1e28 RD |
17949 | } |
17950 | ||
17951 | ||
8edf1c75 RD |
17952 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17953 | PyObject *resultobj; | |
17954 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17955 | wxFont *arg2 = (wxFont *) 0 ; | |
17956 | PyObject * obj0 = 0 ; | |
17957 | PyObject * obj1 = 0 ; | |
17958 | char *kwnames[] = { | |
17959 | (char *) "self",(char *) "font", NULL | |
17960 | }; | |
d14a1e28 | 17961 | |
8edf1c75 RD |
17962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
17963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17964 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17965 | { | |
17966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17967 | (arg1)->RemoveFont(arg2); | |
17968 | ||
17969 | wxPyEndAllowThreads(__tstate); | |
17970 | if (PyErr_Occurred()) SWIG_fail; | |
17971 | } | |
17972 | Py_INCREF(Py_None); resultobj = Py_None; | |
17973 | return resultobj; | |
17974 | fail: | |
17975 | return NULL; | |
d14a1e28 RD |
17976 | } |
17977 | ||
17978 | ||
8edf1c75 RD |
17979 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17980 | PyObject *resultobj; | |
17981 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17982 | int result; | |
17983 | PyObject * obj0 = 0 ; | |
17984 | char *kwnames[] = { | |
17985 | (char *) "self", NULL | |
17986 | }; | |
d14a1e28 | 17987 | |
8edf1c75 RD |
17988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
17989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17990 | { | |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | result = (int)(arg1)->GetCount(); | |
17993 | ||
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
17997 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17998 | return resultobj; | |
17999 | fail: | |
18000 | return NULL; | |
d14a1e28 RD |
18001 | } |
18002 | ||
18003 | ||
8edf1c75 RD |
18004 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
18005 | PyObject *obj; | |
18006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18007 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
18008 | Py_INCREF(obj); | |
18009 | return Py_BuildValue((char *)""); | |
18010 | } | |
18011 | static int _wrap_TheFontList_set(PyObject *) { | |
d14a1e28 RD |
18012 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
18013 | return 1; | |
18014 | } | |
18015 | ||
18016 | ||
18017 | static PyObject *_wrap_TheFontList_get() { | |
18018 | PyObject *pyobj; | |
18019 | ||
18020 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
18021 | return pyobj; | |
18022 | } | |
18023 | ||
18024 | ||
8edf1c75 | 18025 | static int _wrap_ThePenList_set(PyObject *) { |
d14a1e28 RD |
18026 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
18027 | return 1; | |
18028 | } | |
18029 | ||
18030 | ||
18031 | static PyObject *_wrap_ThePenList_get() { | |
18032 | PyObject *pyobj; | |
18033 | ||
18034 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
18035 | return pyobj; | |
18036 | } | |
18037 | ||
18038 | ||
8edf1c75 | 18039 | static int _wrap_TheBrushList_set(PyObject *) { |
d14a1e28 RD |
18040 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
18041 | return 1; | |
18042 | } | |
18043 | ||
18044 | ||
18045 | static PyObject *_wrap_TheBrushList_get() { | |
18046 | PyObject *pyobj; | |
18047 | ||
18048 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
18049 | return pyobj; | |
18050 | } | |
18051 | ||
18052 | ||
8edf1c75 | 18053 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d14a1e28 RD |
18054 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
18055 | return 1; | |
18056 | } | |
18057 | ||
18058 | ||
18059 | static PyObject *_wrap_TheColourDatabase_get() { | |
18060 | PyObject *pyobj; | |
18061 | ||
18062 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
18063 | return pyobj; | |
18064 | } | |
18065 | ||
18066 | ||
423f194a | 18067 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18068 | PyObject *resultobj; |
423f194a | 18069 | wxEffects *result; |
d14a1e28 | 18070 | char *kwnames[] = { |
423f194a | 18071 | NULL |
d14a1e28 RD |
18072 | }; |
18073 | ||
423f194a | 18074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
18075 | { |
18076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18077 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
18078 | |
18079 | wxPyEndAllowThreads(__tstate); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
18081 | } | |
423f194a | 18082 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
18083 | return resultobj; |
18084 | fail: | |
18085 | return NULL; | |
18086 | } | |
18087 | ||
18088 | ||
423f194a | 18089 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18090 | PyObject *resultobj; |
423f194a RD |
18091 | wxEffects *arg1 = (wxEffects *) 0 ; |
18092 | wxColour result; | |
d14a1e28 | 18093 | PyObject * obj0 = 0 ; |
d14a1e28 | 18094 | char *kwnames[] = { |
423f194a | 18095 | (char *) "self", NULL |
d14a1e28 RD |
18096 | }; |
18097 | ||
423f194a RD |
18098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
18099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
18100 | { |
18101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18102 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
18103 | |
18104 | wxPyEndAllowThreads(__tstate); | |
18105 | if (PyErr_Occurred()) SWIG_fail; | |
18106 | } | |
423f194a RD |
18107 | { |
18108 | wxColour * resultptr; | |
18109 | resultptr = new wxColour((wxColour &) result); | |
18110 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18111 | } | |
d14a1e28 RD |
18112 | return resultobj; |
18113 | fail: | |
18114 | return NULL; | |
18115 | } | |
18116 | ||
18117 | ||
423f194a | 18118 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18119 | PyObject *resultobj; |
423f194a RD |
18120 | wxEffects *arg1 = (wxEffects *) 0 ; |
18121 | wxColour result; | |
d14a1e28 | 18122 | PyObject * obj0 = 0 ; |
d14a1e28 | 18123 | char *kwnames[] = { |
423f194a | 18124 | (char *) "self", NULL |
d14a1e28 RD |
18125 | }; |
18126 | ||
423f194a RD |
18127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
18128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
18129 | { |
18130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18131 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
18132 | |
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
d14a1e28 | 18136 | { |
423f194a RD |
18137 | wxColour * resultptr; |
18138 | resultptr = new wxColour((wxColour &) result); | |
18139 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
18140 | } |
18141 | return resultobj; | |
18142 | fail: | |
d14a1e28 RD |
18143 | return NULL; |
18144 | } | |
18145 | ||
18146 | ||
423f194a | 18147 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18148 | PyObject *resultobj; |
423f194a RD |
18149 | wxEffects *arg1 = (wxEffects *) 0 ; |
18150 | wxColour result; | |
d14a1e28 | 18151 | PyObject * obj0 = 0 ; |
d14a1e28 | 18152 | char *kwnames[] = { |
423f194a | 18153 | (char *) "self", NULL |
d14a1e28 RD |
18154 | }; |
18155 | ||
423f194a RD |
18156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
18157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
18158 | { |
18159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18160 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
18161 | |
18162 | wxPyEndAllowThreads(__tstate); | |
18163 | if (PyErr_Occurred()) SWIG_fail; | |
18164 | } | |
423f194a RD |
18165 | { |
18166 | wxColour * resultptr; | |
18167 | resultptr = new wxColour((wxColour &) result); | |
18168 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18169 | } | |
d14a1e28 RD |
18170 | return resultobj; |
18171 | fail: | |
18172 | return NULL; | |
18173 | } | |
18174 | ||
18175 | ||
423f194a | 18176 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18177 | PyObject *resultobj; |
423f194a RD |
18178 | wxEffects *arg1 = (wxEffects *) 0 ; |
18179 | wxColour result; | |
d14a1e28 RD |
18180 | PyObject * obj0 = 0 ; |
18181 | char *kwnames[] = { | |
18182 | (char *) "self", NULL | |
18183 | }; | |
18184 | ||
18185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
18186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18187 | { | |
18188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18189 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18190 | ||
18191 | wxPyEndAllowThreads(__tstate); | |
18192 | if (PyErr_Occurred()) SWIG_fail; | |
18193 | } | |
18194 | { | |
18195 | wxColour * resultptr; | |
18196 | resultptr = new wxColour((wxColour &) result); | |
18197 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18198 | } | |
18199 | return resultobj; | |
18200 | fail: | |
18201 | return NULL; | |
18202 | } | |
18203 | ||
18204 | ||
18205 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18206 | PyObject *resultobj; | |
18207 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18208 | wxColour result; | |
18209 | PyObject * obj0 = 0 ; | |
18210 | char *kwnames[] = { | |
18211 | (char *) "self", NULL | |
18212 | }; | |
18213 | ||
18214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
18215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18216 | { | |
18217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18218 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18219 | ||
18220 | wxPyEndAllowThreads(__tstate); | |
18221 | if (PyErr_Occurred()) SWIG_fail; | |
18222 | } | |
18223 | { | |
18224 | wxColour * resultptr; | |
18225 | resultptr = new wxColour((wxColour &) result); | |
18226 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18227 | } | |
18228 | return resultobj; | |
18229 | fail: | |
18230 | return NULL; | |
18231 | } | |
18232 | ||
18233 | ||
18234 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18235 | PyObject *resultobj; | |
18236 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18237 | wxColour *arg2 = 0 ; | |
18238 | wxColour temp2 ; | |
18239 | PyObject * obj0 = 0 ; | |
18240 | PyObject * obj1 = 0 ; | |
18241 | char *kwnames[] = { | |
18242 | (char *) "self",(char *) "c", NULL | |
18243 | }; | |
18244 | ||
18245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
18246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18247 | { | |
18248 | arg2 = &temp2; | |
18249 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18250 | } | |
18251 | { | |
18252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18253 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18254 | ||
18255 | wxPyEndAllowThreads(__tstate); | |
18256 | if (PyErr_Occurred()) SWIG_fail; | |
18257 | } | |
18258 | Py_INCREF(Py_None); resultobj = Py_None; | |
18259 | return resultobj; | |
18260 | fail: | |
18261 | return NULL; | |
18262 | } | |
18263 | ||
18264 | ||
18265 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18266 | PyObject *resultobj; | |
18267 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18268 | wxColour *arg2 = 0 ; | |
18269 | wxColour temp2 ; | |
18270 | PyObject * obj0 = 0 ; | |
18271 | PyObject * obj1 = 0 ; | |
18272 | char *kwnames[] = { | |
18273 | (char *) "self",(char *) "c", NULL | |
18274 | }; | |
18275 | ||
18276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
18277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18278 | { | |
18279 | arg2 = &temp2; | |
18280 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18281 | } | |
18282 | { | |
18283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18284 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18285 | ||
18286 | wxPyEndAllowThreads(__tstate); | |
18287 | if (PyErr_Occurred()) SWIG_fail; | |
18288 | } | |
18289 | Py_INCREF(Py_None); resultobj = Py_None; | |
18290 | return resultobj; | |
18291 | fail: | |
18292 | return NULL; | |
18293 | } | |
18294 | ||
18295 | ||
18296 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18297 | PyObject *resultobj; | |
18298 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18299 | wxColour *arg2 = 0 ; | |
18300 | wxColour temp2 ; | |
18301 | PyObject * obj0 = 0 ; | |
18302 | PyObject * obj1 = 0 ; | |
18303 | char *kwnames[] = { | |
18304 | (char *) "self",(char *) "c", NULL | |
18305 | }; | |
18306 | ||
18307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
18308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18309 | { | |
18310 | arg2 = &temp2; | |
18311 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18312 | } | |
18313 | { | |
18314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18315 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18316 | ||
18317 | wxPyEndAllowThreads(__tstate); | |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
18319 | } | |
18320 | Py_INCREF(Py_None); resultobj = Py_None; | |
18321 | return resultobj; | |
18322 | fail: | |
18323 | return NULL; | |
18324 | } | |
18325 | ||
18326 | ||
18327 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18328 | PyObject *resultobj; | |
18329 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18330 | wxColour *arg2 = 0 ; | |
18331 | wxColour temp2 ; | |
18332 | PyObject * obj0 = 0 ; | |
18333 | PyObject * obj1 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self",(char *) "c", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
18339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18340 | { | |
18341 | arg2 = &temp2; | |
18342 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18343 | } | |
18344 | { | |
18345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18346 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18347 | ||
18348 | wxPyEndAllowThreads(__tstate); | |
18349 | if (PyErr_Occurred()) SWIG_fail; | |
18350 | } | |
18351 | Py_INCREF(Py_None); resultobj = Py_None; | |
18352 | return resultobj; | |
18353 | fail: | |
18354 | return NULL; | |
18355 | } | |
18356 | ||
18357 | ||
18358 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18359 | PyObject *resultobj; | |
18360 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18361 | wxColour *arg2 = 0 ; | |
18362 | wxColour temp2 ; | |
18363 | PyObject * obj0 = 0 ; | |
18364 | PyObject * obj1 = 0 ; | |
18365 | char *kwnames[] = { | |
18366 | (char *) "self",(char *) "c", NULL | |
18367 | }; | |
18368 | ||
18369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
18370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18371 | { | |
18372 | arg2 = &temp2; | |
18373 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18374 | } | |
18375 | { | |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | Py_INCREF(Py_None); resultobj = Py_None; | |
18383 | return resultobj; | |
18384 | fail: | |
18385 | return NULL; | |
18386 | } | |
18387 | ||
18388 | ||
18389 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18390 | PyObject *resultobj; | |
18391 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18392 | wxColour *arg2 = 0 ; | |
18393 | wxColour *arg3 = 0 ; | |
18394 | wxColour *arg4 = 0 ; | |
18395 | wxColour *arg5 = 0 ; | |
18396 | wxColour *arg6 = 0 ; | |
18397 | wxColour temp2 ; | |
18398 | wxColour temp3 ; | |
18399 | wxColour temp4 ; | |
18400 | wxColour temp5 ; | |
18401 | wxColour temp6 ; | |
18402 | PyObject * obj0 = 0 ; | |
18403 | PyObject * obj1 = 0 ; | |
18404 | PyObject * obj2 = 0 ; | |
18405 | PyObject * obj3 = 0 ; | |
18406 | PyObject * obj4 = 0 ; | |
18407 | PyObject * obj5 = 0 ; | |
18408 | char *kwnames[] = { | |
18409 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18410 | }; | |
18411 | ||
18412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18414 | { | |
18415 | arg2 = &temp2; | |
18416 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18417 | } | |
18418 | { | |
18419 | arg3 = &temp3; | |
18420 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18421 | } | |
18422 | { | |
18423 | arg4 = &temp4; | |
18424 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18425 | } | |
18426 | { | |
18427 | arg5 = &temp5; | |
18428 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18429 | } | |
18430 | { | |
18431 | arg6 = &temp6; | |
18432 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18433 | } | |
18434 | { | |
18435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18436 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18437 | ||
18438 | wxPyEndAllowThreads(__tstate); | |
18439 | if (PyErr_Occurred()) SWIG_fail; | |
18440 | } | |
18441 | Py_INCREF(Py_None); resultobj = Py_None; | |
18442 | return resultobj; | |
18443 | fail: | |
18444 | return NULL; | |
18445 | } | |
18446 | ||
18447 | ||
18448 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18449 | PyObject *resultobj; | |
18450 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18451 | wxDC *arg2 = 0 ; | |
18452 | wxRect *arg3 = 0 ; | |
18453 | int arg4 = (int) 1 ; | |
18454 | wxRect temp3 ; | |
18455 | PyObject * obj0 = 0 ; | |
18456 | PyObject * obj1 = 0 ; | |
18457 | PyObject * obj2 = 0 ; | |
8edf1c75 | 18458 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
18459 | char *kwnames[] = { |
18460 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18461 | }; | |
18462 | ||
8edf1c75 | 18463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
18464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
18465 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18466 | if (arg2 == NULL) { | |
18467 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18468 | } | |
18469 | { | |
18470 | arg3 = &temp3; | |
18471 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18472 | } | |
8edf1c75 RD |
18473 | if (obj3) { |
18474 | { | |
18475 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
18476 | if (PyErr_Occurred()) SWIG_fail; | |
18477 | } | |
18478 | } | |
d14a1e28 RD |
18479 | { |
18480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18481 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18482 | ||
18483 | wxPyEndAllowThreads(__tstate); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
18486 | Py_INCREF(Py_None); resultobj = Py_None; | |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
18493 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18494 | PyObject *resultobj; | |
18495 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18496 | wxRect *arg2 = 0 ; | |
18497 | wxDC *arg3 = 0 ; | |
18498 | wxBitmap *arg4 = 0 ; | |
18499 | bool result; | |
18500 | wxRect temp2 ; | |
18501 | PyObject * obj0 = 0 ; | |
18502 | PyObject * obj1 = 0 ; | |
18503 | PyObject * obj2 = 0 ; | |
18504 | PyObject * obj3 = 0 ; | |
18505 | char *kwnames[] = { | |
18506 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18507 | }; | |
18508 | ||
18509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18511 | { | |
18512 | arg2 = &temp2; | |
18513 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18514 | } | |
18515 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18516 | if (arg3 == NULL) { | |
18517 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18518 | } | |
18519 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18520 | if (arg4 == NULL) { | |
18521 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18522 | } | |
18523 | { | |
18524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18525 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18526 | ||
18527 | wxPyEndAllowThreads(__tstate); | |
18528 | if (PyErr_Occurred()) SWIG_fail; | |
18529 | } | |
4e760a36 | 18530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18531 | return resultobj; |
18532 | fail: | |
18533 | return NULL; | |
18534 | } | |
18535 | ||
18536 | ||
18537 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
18538 | PyObject *obj; | |
18539 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18540 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18541 | Py_INCREF(obj); | |
18542 | return Py_BuildValue((char *)""); | |
18543 | } | |
18544 | static PyMethodDef SwigMethods[] = { | |
18545 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18546 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18547 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18548 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18549 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
18550 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
18551 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18552 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, |
18553 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
328fcd84 | 18554 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18555 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, |
18556 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
18557 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
18558 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18559 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 18560 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
328fcd84 RD |
18561 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, |
18562 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18563 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
18564 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18565 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
328fcd84 | 18566 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18567 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, |
18568 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18569 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18570 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18571 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
18572 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18573 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
18574 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18575 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18576 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
18577 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18578 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18579 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18580 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18581 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18582 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
18583 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18584 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18585 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18586 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18587 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
18588 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 18589 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
328fcd84 | 18590 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, |
9fd4be55 | 18591 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18592 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
18593 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18594 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
18595 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
18596 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
18597 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
18598 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
18599 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
18600 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
18601 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18602 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18603 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18604 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18605 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18606 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18607 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18608 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
18609 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
18610 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
18611 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18612 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18613 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
18614 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18615 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
18616 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
18617 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18618 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18619 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18620 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18621 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18622 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18623 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
18624 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
18625 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
18626 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
18627 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18628 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
18629 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18630 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18631 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18632 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18633 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18634 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
18635 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
18636 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
18637 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
18638 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18639 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, |
18640 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18641 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18642 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
18643 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
18644 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18645 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18646 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18647 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18648 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18649 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18650 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18651 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18652 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18653 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18654 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18655 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18656 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
18657 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18658 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
18659 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18660 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18661 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18662 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18663 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18664 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18665 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18666 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
18667 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18668 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18669 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18670 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18671 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18672 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18673 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
18674 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
18675 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18676 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18677 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
18678 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
18679 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
18680 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18681 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18682 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18683 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18684 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18685 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18686 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18687 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18688 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18689 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
18690 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
18691 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
18692 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18693 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
18694 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
18695 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18696 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
18697 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
18698 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
18699 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
18700 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
18701 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
18702 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
18703 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
18704 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
18705 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
18706 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
18707 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
18708 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
18709 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
18710 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
18711 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
18712 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
18713 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
18714 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
18715 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18716 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18717 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
18718 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18719 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18720 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
18721 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
18722 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
18723 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18724 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
18725 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18726 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
18727 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
18728 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
18729 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
18730 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
18731 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
18732 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18733 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18734 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
18735 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
18736 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18737 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18738 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18739 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18740 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18741 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18742 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18743 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18744 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18745 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18746 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18747 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18748 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18749 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18750 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18751 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18752 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
18753 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
18754 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
18755 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
18756 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
18757 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
18758 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
18759 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
18760 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18761 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18762 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18763 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18764 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
18765 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18766 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18767 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18768 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18769 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
18770 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
18771 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18772 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
18773 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18774 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18775 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
18776 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
18777 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18778 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18779 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18780 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
18781 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
18782 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
18783 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
18784 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
18785 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
18786 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
18787 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
18788 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
18789 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18790 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
18791 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18792 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18793 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18794 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18795 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18796 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18797 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18798 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18799 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18800 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
18801 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
18802 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18803 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18804 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18805 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18806 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18807 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18808 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18809 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18810 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18811 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
18812 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18813 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
18814 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
18815 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
18816 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18817 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18818 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18819 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18820 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
18821 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18822 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18823 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
18824 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18825 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18826 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18827 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18828 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
18829 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
18830 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
18831 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
18832 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
18833 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
18834 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
18835 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
18836 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18837 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18838 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
18839 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
18840 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18841 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18842 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18843 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18844 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18845 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18846 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
18847 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
18848 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
18849 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
18850 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
18851 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18852 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
18853 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18854 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18855 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
18856 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
18857 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
18858 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18859 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
18860 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18861 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18862 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
18863 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
18864 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18865 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18866 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
18867 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
18868 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
18869 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18870 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18871 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
18872 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
18873 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
18874 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18875 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
18876 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
18877 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
18878 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
18879 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18880 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
18881 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
18882 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
18883 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18884 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
18885 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
18886 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
18887 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18888 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18889 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18890 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18891 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18892 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18893 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
18894 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
18895 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
18896 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
18897 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
18898 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
18899 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
18900 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
18901 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18902 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18903 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
18904 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18905 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
18906 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
18907 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
18908 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
18909 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18910 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18911 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18912 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18913 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18914 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18915 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18916 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18917 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18918 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18919 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18920 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18921 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18922 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18923 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 18924 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18925 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18926 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18927 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18928 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18929 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18930 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18931 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18932 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18933 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18934 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18935 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 18936 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18937 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18938 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18939 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18940 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18941 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
18942 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18943 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18944 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18945 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18946 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18947 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18948 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18949 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18950 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18951 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18952 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18953 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18954 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18955 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18956 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18957 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18958 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18959 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18960 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18961 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18962 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18963 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18964 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18965 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18966 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18967 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18968 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18969 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18970 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18971 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18972 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 18973 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18974 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
18975 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
18976 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18977 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18978 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18979 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18980 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18981 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18982 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18983 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18984 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18985 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18986 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18987 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18988 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18989 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18990 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18991 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18992 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18993 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18994 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18995 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18996 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18997 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
db914595 RD |
18998 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
18999 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
328fcd84 | 19000 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
19001 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
19002 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
328fcd84 | 19003 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
19004 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
19005 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
19006 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
19007 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19008 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19009 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
19010 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
19011 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
19012 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
19013 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
19014 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
19015 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
19016 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
19017 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
19018 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
19019 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19020 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19021 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19022 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19023 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
19024 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19025 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19026 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19027 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
19028 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19029 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19030 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19031 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19032 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
19033 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
19034 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
19035 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
19036 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
19037 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
19038 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19039 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19040 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
19041 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
19042 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
19043 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
19044 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
19045 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
19046 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
19047 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
19048 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19049 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
19050 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
19051 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
19052 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
19053 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19054 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
19055 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
19056 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
19057 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
19058 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19059 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
19060 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19061 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19062 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
19063 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
19064 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
19065 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
19066 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
19067 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
19068 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
19069 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
19070 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19071 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
19072 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
19073 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19074 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19075 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19076 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19077 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19078 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19079 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19080 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19081 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19082 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19083 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
19084 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
19085 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19086 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
19087 | { NULL, NULL } | |
19088 | }; | |
19089 | ||
19090 | ||
19091 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19092 | ||
423f194a RD |
19093 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
19094 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19095 | } | |
19096 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19097 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19098 | } | |
19099 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19100 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19101 | } | |
d14a1e28 RD |
19102 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
19103 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19104 | } | |
19105 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19106 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19107 | } | |
d14a1e28 RD |
19108 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
19109 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19110 | } | |
19111 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19112 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19113 | } | |
19114 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19115 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19116 | } | |
19117 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19118 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19119 | } | |
19120 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19121 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19122 | } | |
19123 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19124 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19125 | } | |
19126 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19127 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19128 | } | |
19129 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19130 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19131 | } | |
19132 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19133 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19134 | } | |
19135 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19136 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19137 | } | |
19138 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19139 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19140 | } | |
19141 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19142 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19143 | } | |
19144 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19145 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19146 | } | |
19147 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19148 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19149 | } | |
19150 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19151 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19152 | } | |
19153 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19154 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19155 | } | |
19156 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19157 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19158 | } | |
19159 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19160 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19161 | } | |
19162 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19163 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19164 | } | |
19165 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19166 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19167 | } | |
19168 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19169 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19170 | } | |
19171 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19172 | return (void *)((wxObject *) ((wxDC *) x)); | |
19173 | } | |
19174 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19175 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19176 | } | |
19177 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19178 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19179 | } | |
19180 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19181 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19182 | } | |
19183 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19184 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19185 | } | |
19186 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19187 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19188 | } | |
19189 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19190 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19191 | } | |
19192 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19193 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19194 | } | |
19195 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19196 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19197 | } | |
19198 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19199 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19200 | } | |
19201 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19202 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19203 | } | |
19204 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19205 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19206 | } | |
19207 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19208 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19209 | } | |
19210 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19211 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19212 | } | |
19213 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19214 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19215 | } | |
19216 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19217 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19218 | } | |
19219 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19220 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19221 | } | |
19222 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19223 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19224 | } | |
19225 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19226 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19227 | } | |
19228 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19229 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19230 | } | |
19231 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19232 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19233 | } | |
19234 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19235 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19236 | } | |
19237 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19238 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19239 | } | |
19240 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19241 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19242 | } | |
19243 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19244 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19245 | } | |
19246 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19247 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19248 | } | |
19249 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19250 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19251 | } | |
19252 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19253 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19254 | } | |
19255 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19256 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19257 | } | |
19258 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19259 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19260 | } | |
19261 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19262 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19263 | } | |
19264 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19265 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19266 | } | |
19267 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19268 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19269 | } | |
19270 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19271 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19272 | } | |
19273 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19274 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19275 | } | |
19276 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19277 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19278 | } | |
19279 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19280 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19281 | } | |
19282 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19283 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19284 | } | |
19285 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19286 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19287 | } | |
19288 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19289 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19290 | } | |
19291 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19292 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19293 | } | |
19294 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19295 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19296 | } | |
19297 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19298 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19299 | } | |
19300 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19301 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19302 | } | |
19303 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19304 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19305 | } | |
41f1cec7 RD |
19306 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
19307 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19308 | } | |
d14a1e28 RD |
19309 | static void *_p_wxImageTo_p_wxObject(void *x) { |
19310 | return (void *)((wxObject *) ((wxImage *) x)); | |
19311 | } | |
19312 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19313 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19314 | } | |
d14a1e28 RD |
19315 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
19316 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19317 | } | |
19318 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19319 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19320 | } | |
19321 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19322 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19323 | } | |
19324 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19325 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19326 | } | |
19327 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19328 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19329 | } | |
19330 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19331 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19332 | } | |
19333 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19334 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19335 | } | |
19336 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19337 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19338 | } | |
19339 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19340 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19341 | } | |
19342 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19343 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19344 | } | |
19345 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19346 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19347 | } | |
19348 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19349 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19350 | } | |
19351 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19352 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19353 | } | |
19354 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19355 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19356 | } | |
19357 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
19358 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
19359 | } | |
19360 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
19361 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19362 | } | |
19363 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19364 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19365 | } | |
19366 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19367 | return (void *)((wxObject *) ((wxMask *) x)); | |
19368 | } | |
19369 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19370 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19371 | } | |
19372 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19373 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19374 | } | |
19375 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19376 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19377 | } | |
19378 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19379 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19380 | } | |
19381 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19382 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19383 | } | |
19384 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19385 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19386 | } | |
19387 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19388 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19389 | } | |
19390 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19391 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19392 | } | |
19393 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19394 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19395 | } | |
19396 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19397 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19398 | } | |
19399 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19400 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19401 | } | |
19402 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19403 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19404 | } | |
19405 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19406 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19407 | } | |
19408 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19409 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19410 | } | |
19411 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19412 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19413 | } | |
19414 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19415 | return (void *)((wxObject *) ((wxColour *) x)); | |
19416 | } | |
19417 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19418 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19419 | } | |
19420 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19421 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19422 | } | |
19423 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19424 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19425 | } | |
423f194a RD |
19426 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
19427 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 19428 | } |
423f194a RD |
19429 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
19430 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 19431 | } |
423f194a RD |
19432 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
19433 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19434 | } | |
19435 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19436 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19437 | } | |
19438 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19439 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19440 | } | |
19441 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19442 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19443 | } | |
19444 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19445 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19446 | } | |
19447 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19448 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19449 | } | |
19450 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19451 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19452 | } | |
19453 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19454 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19455 | } | |
19456 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19457 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19458 | } | |
19459 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19460 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19461 | } | |
19462 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
19463 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
19464 | } | |
19465 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
19466 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19467 | } | |
19468 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19469 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19470 | } | |
19471 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19472 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19473 | } | |
19474 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19475 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19476 | } | |
19477 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19478 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19479 | } | |
19480 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19481 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19482 | } | |
19483 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19484 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19485 | } | |
19486 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19487 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19488 | } | |
19489 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
19490 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
19491 | } |
19492 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
19493 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
19494 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
19495 | 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}}; |
19496 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
19497 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
19498 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
8edf1c75 | 19499 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
19500 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; |
19501 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
19502 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
19503 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
19504 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
19505 | 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}}; | |
19506 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
19507 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
19508 | 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}}; | |
19509 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
19510 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
19511 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
19512 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
19513 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
41f1cec7 | 19514 | 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 |
19515 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
19516 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
19517 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
19518 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
19519 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
19520 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
19521 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
19522 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
19523 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
19524 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
19525 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
19526 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
19527 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
19528 | 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 | 19529 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; |
8edf1c75 | 19530 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; |
d14a1e28 RD |
19531 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; |
19532 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
19533 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
19534 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
19535 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
19536 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
19537 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
19538 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
19539 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
19540 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
19541 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 19542 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
423f194a | 19543 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
19544 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
19545 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
19546 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
19547 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
19548 | ||
19549 | static swig_type_info *swig_types_initial[] = { | |
19550 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
19551 | _swigt__p_wxBrush, |
19552 | _swigt__p_wxColour, | |
d14a1e28 RD |
19553 | _swigt__p_wxDC, |
19554 | _swigt__p_wxMirrorDC, | |
19555 | _swigt__p_byte, | |
19556 | _swigt__p_wxPyFontEnumerator, | |
8edf1c75 | 19557 | _swigt__p_char, |
d14a1e28 RD |
19558 | _swigt__p_wxIconLocation, |
19559 | _swigt__p_wxImage, | |
19560 | _swigt__p_wxMetaFileDC, | |
19561 | _swigt__p_wxMask, | |
19562 | _swigt__p_wxFont, | |
19563 | _swigt__p_wxWindow, | |
19564 | _swigt__p_wxSize, | |
19565 | _swigt__p_double, | |
19566 | _swigt__p_wxMemoryDC, | |
19567 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
19568 | _swigt__p_wxEffects, |
19569 | _swigt__p_wxNativeEncodingInfo, | |
19570 | _swigt__p_wxPalette, | |
19571 | _swigt__p_wxBitmap, | |
19572 | _swigt__p_wxObject, | |
19573 | _swigt__p_wxRegionIterator, | |
19574 | _swigt__p_wxRect, | |
19575 | _swigt__p_wxString, | |
19576 | _swigt__p_wxPrinterDC, | |
19577 | _swigt__p_wxIconBundle, | |
19578 | _swigt__p_wxPoint, | |
19579 | _swigt__p_wxDash, | |
19580 | _swigt__p_wxScreenDC, | |
19581 | _swigt__p_wxCursor, | |
19582 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
19583 | _swigt__p_wxBufferedDC, |
19584 | _swigt__p_wxImageList, | |
19585 | _swigt__p_unsigned_char, | |
19586 | _swigt__p_wxGDIObject, | |
d14a1e28 | 19587 | _swigt__p_wxIcon, |
8edf1c75 | 19588 | _swigt__p_wxLocale, |
d14a1e28 RD |
19589 | _swigt__p_wxRegion, |
19590 | _swigt__p_wxLanguageInfo, | |
19591 | _swigt__p_wxConfigBase, | |
19592 | _swigt__p_wxWindowDC, | |
19593 | _swigt__p_wxPrintData, | |
19594 | _swigt__p_wxBrushList, | |
19595 | _swigt__p_wxFontList, | |
19596 | _swigt__p_wxPen, | |
19597 | _swigt__p_wxBufferedPaintDC, | |
19598 | _swigt__p_wxPaintDC, | |
19599 | _swigt__p_wxPenList, | |
d14a1e28 RD |
19600 | _swigt__p_wxPyPen, |
19601 | _swigt__p_int, | |
19602 | _swigt__p_wxMetaFile, | |
19603 | _swigt__p_wxNativeFontInfo, | |
19604 | _swigt__p_wxEncodingConverter, | |
19605 | _swigt__p_wxColourDatabase, | |
19606 | 0 | |
19607 | }; | |
19608 | ||
19609 | ||
19610 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19611 | ||
19612 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
19613 | {0}}; |
19614 | ||
19615 | #ifdef __cplusplus | |
19616 | } | |
19617 | #endif | |
19618 | ||
19619 | #ifdef __cplusplus | |
19620 | extern "C" | |
19621 | #endif | |
19622 | SWIGEXPORT(void) SWIG_init(void) { | |
19623 | static PyObject *SWIG_globals = 0; | |
19624 | static int typeinit = 0; | |
19625 | PyObject *m, *d; | |
19626 | int i; | |
19627 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19628 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19629 | d = PyModule_GetDict(m); | |
19630 | ||
19631 | if (!typeinit) { | |
19632 | for (i = 0; swig_types_initial[i]; i++) { | |
19633 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19634 | } | |
19635 | typeinit = 1; | |
19636 | } | |
19637 | SWIG_InstallConstants(d,swig_const_table); | |
19638 | ||
8edf1c75 RD |
19639 | PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion)); |
19640 | PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion)); | |
19641 | PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion)); | |
19642 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
19643 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
19644 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN)); | |
19645 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
19646 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS)); | |
19647 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN)); | |
19648 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
19649 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX)); | |
19650 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
19651 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL)); | |
19652 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC)); | |
19653 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT)); | |
19654 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX)); | |
19655 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
19656 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
19657 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD)); | |
19658 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX)); | |
19659 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT)); | |
19660 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC)); | |
19661 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT)); | |
19662 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT)); | |
19663 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD)); | |
19664 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
19665 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19666 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
19667 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
19668 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK)); | |
19669 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM)); | |
19670 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT)); | |
19671 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
19672 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
19673 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
19674 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
19675 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
19676 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
19677 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
19678 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
19679 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
19680 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
19681 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
19682 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
19683 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
19684 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
19685 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
19686 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
19687 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8)); | |
19688 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
19689 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
19690 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437)); | |
19691 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850)); | |
19692 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852)); | |
19693 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855)); | |
19694 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866)); | |
19695 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874)); | |
19696 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932)); | |
19697 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936)); | |
19698 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949)); | |
19699 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950)); | |
19700 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250)); | |
19701 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251)); | |
19702 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252)); | |
19703 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253)); | |
19704 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254)); | |
19705 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255)); | |
19706 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256)); | |
19707 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257)); | |
19708 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
19709 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7)); | |
19710 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8)); | |
19711 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP)); | |
19712 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE)); | |
19713 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE)); | |
19714 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE)); | |
19715 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE)); | |
19716 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN)); | |
19717 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
19718 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
19719 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
19720 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC)); | |
19721 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
19722 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK)); | |
19723 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
19724 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
19725 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
19726 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
19727 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA)); | |
19728 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
19729 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
19730 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
19731 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
19732 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
19733 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
19734 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
19735 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER)); | |
19736 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI)); | |
19737 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
19738 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
19739 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
19740 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
19741 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
19742 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
19743 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
19744 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
19745 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
19746 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
19747 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
19748 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
19749 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
19750 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
19751 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
19752 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
19753 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
19754 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
19755 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
19756 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN)); | |
19757 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX)); | |
19758 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX)); | |
19759 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16)); | |
19760 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32)); | |
19761 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE)); | |
19762 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312)); | |
19763 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5)); | |
19764 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
19765 | |
19766 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19767 | ||
8edf1c75 RD |
19768 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT)); |
19769 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
19770 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
19771 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR)); | |
19772 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
19773 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
19774 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC)); | |
19775 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC)); | |
19776 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19777 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19778 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19779 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19780 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19781 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19782 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19783 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19784 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19785 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
19786 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
19787 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19788 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19789 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19790 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19791 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
19792 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19793 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
19794 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
19795 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA)); | |
19796 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI)); | |
19797 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19798 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
19799 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR)); | |
19800 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE)); | |
19801 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
19802 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI)); | |
19803 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI)); | |
19804 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI)); | |
19805 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA)); | |
19806 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON)); | |
19807 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
19808 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE)); | |
19809 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
19810 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN)); | |
19811 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE)); | |
19812 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19813 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19814 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19815 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
19816 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19817 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19818 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN)); | |
19819 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN)); | |
19820 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH)); | |
19821 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH)); | |
19822 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH)); | |
19823 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19824 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH)); | |
19825 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
19826 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
19827 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19828 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19829 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19830 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19831 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19832 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19833 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19834 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19835 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19836 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19837 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19838 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19839 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19840 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
19841 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
19842 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE)); | |
19843 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI)); | |
19844 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI)); | |
19845 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH)); | |
19846 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH)); | |
19847 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19848 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19849 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19850 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
19851 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
19852 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN)); | |
19853 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN)); | |
19854 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
19855 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN)); | |
19856 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19857 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19858 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19859 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19860 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19861 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK)); | |
19862 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19863 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI)); | |
19864 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19865 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA)); | |
19866 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW)); | |
19867 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI)); | |
19868 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19869 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19870 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19871 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19872 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19873 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19874 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19875 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH)); | |
19876 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19877 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19878 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19879 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19880 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA)); | |
19881 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19882 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19883 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19884 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19885 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19886 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19887 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19888 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI)); | |
19889 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN)); | |
19890 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH)); | |
19891 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19892 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN)); | |
19893 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19894 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA)); | |
19895 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19896 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19897 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19898 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY)); | |
19899 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19900 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19901 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19902 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE)); | |
19903 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19904 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI)); | |
19905 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI)); | |
19906 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19907 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19908 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU)); | |
19909 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI)); | |
19910 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19911 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19912 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19913 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19914 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA)); | |
19915 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO)); | |
19916 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO)); | |
19917 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH)); | |
19918 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19919 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19920 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19921 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19922 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19923 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19924 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19925 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19926 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19927 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO)); | |
19928 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19929 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19930 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19931 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19932 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19933 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19934 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19935 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19936 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA)); | |
19937 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI)); | |
19938 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19939 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI)); | |
19940 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19941 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19942 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI)); | |
19943 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH)); | |
19944 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19945 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19946 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19947 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19948 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19949 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19950 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19951 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19952 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19953 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19954 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19955 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19956 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19957 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19958 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19959 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19960 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19961 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19962 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19963 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19964 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19965 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19966 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19967 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19968 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19969 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK)); | |
19970 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL)); | |
19971 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR)); | |
19972 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU)); | |
19973 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI)); | |
19974 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19975 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19976 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA)); | |
19977 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA)); | |
19978 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH)); | |
19979 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19980 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI)); | |
19981 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19982 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19983 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU)); | |
19984 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19985 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19986 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK)); | |
19987 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19988 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19989 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19990 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19991 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH)); | |
19992 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF)); | |
19993 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA)); | |
19994 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19995 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA)); | |
19996 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19997 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU)); | |
19998 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19999 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
20000 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE)); | |
20001 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY)); | |
20002 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX)); | |
20003 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
20004 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
20005 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
20006 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
20007 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT)); | |
20008 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
20009 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT)); | |
20010 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX)); | |
20011 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS)); | |
20012 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2)); | |
20013 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC)); | |
20014 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
20015 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
20016 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
20017 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
20018 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
20019 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL)); | |
20020 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
20021 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
20022 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20023 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20024 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20025 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20026 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20027 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20028 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20029 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20030 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20031 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20032 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20033 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20034 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20035 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20036 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20037 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20038 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20039 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20040 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20041 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20042 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20043 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20044 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20045 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20046 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20047 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20048 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20049 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20050 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20051 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20052 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20053 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20054 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20055 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20056 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20057 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20058 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20059 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20060 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20061 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20062 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20063 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20064 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20065 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20066 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20067 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
20068 | |
20069 | // Work around a chicken/egg problem in drawlist.cpp | |
20070 | wxPyDrawList_SetAPIPtr(); | |
20071 | ||
d14a1e28 RD |
20072 | } |
20073 |