]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 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 | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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 | ||
cc6dd355 | 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) | |
a41e16b6 | 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 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 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 | |
994141e6 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 | ||
9d1d5697 | 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] | |
e811c8ce 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] | |
994141e6 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] | |
e811c8ce | 270 | #define SWIGTYPE_p_wxIcon swig_types[37] |
994141e6 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 | ||
994141e6 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 | |
b2dc1044 | 343 | static const wxString wxPyEmptyString(wxEmptyString); |
994141e6 | 344 | |
994141e6 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 | } | |
b88bce5f 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 | |
994141e6 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 | } | |
22faec7d 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 | } | |
489 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
490 | wxMask *mask = new wxMask(*self, colour); | |
491 | self->SetMask(mask); | |
492 | } | |
0482c494 RD |
493 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
494 | if ( !colour.Ok() ) | |
495 | return new wxMask(bitmap, *wxBLACK); | |
496 | else | |
497 | return new wxMask(bitmap, colour); | |
498 | } | |
d14a1e28 RD |
499 | |
500 | #include <wx/iconbndl.h> | |
501 | ||
502 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
503 | wxIcon* icon = new wxIcon(); | |
504 | icon->CopyFromBitmap(bmp); | |
505 | return icon; | |
506 | } | |
507 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
508 | char** cArray = NULL; | |
509 | wxIcon* icon; | |
510 | ||
511 | cArray = ConvertListOfStrings(listOfStrings); | |
512 | if (! cArray) | |
513 | return NULL; | |
514 | icon = new wxIcon(cArray); | |
515 | delete [] cArray; | |
516 | return icon; | |
517 | } | |
518 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
519 | ||
520 | ||
521 | ||
522 | return new wxIconLocation(*filename); | |
523 | ||
524 | } | |
525 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
526 | ||
527 | ||
528 | ||
529 | // do nothing | |
530 | ||
531 | } | |
532 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
533 | ||
534 | ||
535 | ||
536 | return -1; | |
537 | ||
538 | } | |
994141e6 RD |
539 | |
540 | SWIGSTATIC(long) | |
541 | SWIG_PyObj_AsLong(PyObject * obj) | |
542 | { | |
543 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
544 | } | |
545 | ||
d14a1e28 RD |
546 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ |
547 | ||
e811c8ce | 548 | wxCHECK_MSG(False, NULL, |
d14a1e28 RD |
549 | wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead.")); |
550 | ||
551 | ||
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) { | |
581 | static wxNativeEncodingInfo info; | |
582 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
583 | return &info; | |
584 | else | |
585 | return NULL; | |
586 | } | |
587 | ||
588 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
589 | wxFontEncoding alt_enc; | |
590 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
591 | return PyInt_FromLong(alt_enc); | |
592 | else { | |
593 | Py_INCREF(Py_None); | |
594 | return Py_None; | |
595 | } | |
596 | } | |
597 | wxFont *new_wxFont(wxString const &info){ | |
598 | wxNativeFontInfo nfi; | |
599 | nfi.FromString(info); | |
600 | return new wxFont(nfi); | |
601 | } | |
602 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
603 | return wxFont::New(pointSize, family, flags, face, encoding); | |
604 | } | |
22faec7d RD |
605 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
606 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
607 | |
608 | class wxPyFontEnumerator : public wxFontEnumerator { | |
609 | public: | |
610 | wxPyFontEnumerator() {} | |
611 | ~wxPyFontEnumerator() {} | |
612 | ||
613 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
614 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
615 | ||
616 | PYPRIVATE; | |
617 | }; | |
618 | ||
619 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
620 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
621 | ||
622 | ||
623 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
624 | wxArrayString* arr = self->GetEncodings(); | |
625 | return wxArrayString2PyList_helper(*arr); | |
626 | } | |
627 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
628 | wxArrayString* arr = self->GetFacenames(); | |
629 | return wxArrayString2PyList_helper(*arr); | |
630 | } | |
631 | ||
632 | ||
633 | ||
634 | #include "wx/wxPython/pydrawxxx.h" | |
635 | ||
e811c8ce | 636 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
637 | wxColour col; |
638 | self->GetPixel(x, y, &col); | |
639 | return col; | |
640 | } | |
641 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
642 | wxColour col; | |
643 | self->GetPixel(pt, &col); | |
644 | return col; | |
645 | } | |
994141e6 RD |
646 | |
647 | SWIGSTATIC(double) | |
648 | SWIG_PyObj_AsDouble(PyObject *obj) | |
649 | { | |
650 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
651 | #if HAVE_LONG_LONG | |
652 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
653 | #else | |
654 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
655 | #endif | |
656 | if (PyErr_Occurred()) { | |
657 | PyErr_Clear(); | |
658 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
659 | } | |
660 | } | |
661 | ||
d14a1e28 RD |
662 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
663 | wxRect rv; | |
664 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
665 | return rv; | |
666 | } | |
667 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
668 | wxRect rect; | |
669 | self->GetClippingBox(rect); | |
670 | return rect; | |
671 | } | |
db914595 RD |
672 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
673 | wxArrayInt widths; | |
674 | self->GetPartialTextExtents(text, widths); | |
675 | return widths; | |
676 | } | |
d14a1e28 RD |
677 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
678 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
679 | } | |
680 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
681 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
682 | } | |
683 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
684 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
685 | } | |
686 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
687 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
688 | } | |
689 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
690 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
691 | } | |
692 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
693 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
694 | } | |
695 | ||
696 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
697 | *x1 = dc->MinX(); | |
698 | *y1 = dc->MinY(); | |
699 | *x2 = dc->MaxX(); | |
700 | *y2 = dc->MaxY(); | |
701 | } | |
702 | ||
703 | ||
b88bce5f RD |
704 | //-=-=-=-=-=-=-=-=-=-=- |
705 | #if 0 | |
706 | #include <wx/dcbuffer.h> | |
707 | #else | |
708 | ||
709 | ||
710 | // Temporarily put a set of classes here similar to the old buffered DC | |
711 | // classes until the real ones can be fixed to work "correctly" again. | |
712 | ||
713 | class wxBufferedDC : public wxMemoryDC | |
714 | { | |
715 | private: | |
716 | wxDC *m_dc; | |
717 | wxBitmap m_buffer; | |
718 | ||
719 | public: | |
720 | ||
721 | wxBufferedDC() : m_dc( 0 ) {} | |
722 | ||
723 | wxBufferedDC( wxDC *dc, const wxBitmap &buffer ) | |
724 | : m_dc( dc ), m_buffer( buffer ) | |
725 | { | |
726 | SelectObject( m_buffer ); | |
727 | } | |
728 | ||
729 | wxBufferedDC( wxDC *dc, const wxSize &area ) | |
730 | : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() ) | |
731 | { | |
732 | SelectObject( m_buffer ); | |
733 | } | |
734 | ||
735 | ~wxBufferedDC() { | |
736 | if( m_dc != 0 ) | |
737 | UnMask(); | |
738 | } | |
739 | ||
740 | ||
741 | void Init( wxDC *dc, const wxBitmap &buffer ) { | |
742 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
743 | _T("wxBufferedDC already initialised") ); | |
744 | m_dc = dc; | |
745 | m_buffer = buffer; | |
746 | SelectObject( m_buffer ); | |
747 | } | |
748 | ||
749 | void Init( wxDC *dc, const wxSize &area ) { | |
750 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
751 | _T("wxBufferedDC already initialised") ); | |
752 | m_dc = dc; | |
753 | m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() ); | |
754 | SelectObject( m_buffer ); | |
755 | } | |
756 | ||
757 | void UnMask() { | |
758 | wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") ); | |
759 | m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 ); | |
760 | m_dc = 0; | |
761 | } | |
762 | }; | |
763 | ||
764 | ||
765 | class wxBufferedPaintDC : public wxBufferedDC | |
766 | { | |
767 | private: | |
768 | wxPaintDC m_paintdc; | |
769 | ||
770 | public: | |
771 | wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap ) | |
772 | : m_paintdc( window ) | |
773 | { | |
774 | window->PrepareDC( m_paintdc ); | |
775 | ||
776 | if( buffer != wxNullBitmap ) | |
777 | Init( &m_paintdc, buffer ); | |
778 | else | |
779 | Init( &m_paintdc, window->GetClientSize() ); | |
780 | } | |
781 | ||
782 | ~wxBufferedPaintDC() { | |
783 | UnMask(); | |
784 | } | |
785 | }; | |
786 | ||
787 | #endif | |
788 | //-=-=-=-=-=-=-=-=-=-=- | |
789 | ||
790 | ||
d14a1e28 RD |
791 | #include <wx/dcps.h> |
792 | ||
793 | ||
794 | class wxMetaFile : public wxObject { | |
795 | public: | |
796 | wxMetaFile(const wxString&) | |
39f61e25 | 797 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
798 | }; |
799 | ||
800 | class wxMetaFileDC : public wxClientDC { | |
801 | public: | |
802 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 803 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
804 | }; |
805 | ||
806 | ||
807 | ||
808 | class wxPrinterDC : public wxClientDC { | |
809 | public: | |
810 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 811 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 812 | |
d14a1e28 | 813 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 814 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
815 | }; |
816 | ||
817 | ||
818 | ||
819 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
820 | self->AddColour(name, wxColour(red, green, blue)); | |
821 | } | |
822 | ||
d14a1e28 RD |
823 | #include <wx/effects.h> |
824 | ||
825 | #ifdef __cplusplus | |
826 | extern "C" { | |
827 | #endif | |
828 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
829 | PyObject *resultobj; | |
830 | wxGDIObject *result; | |
831 | char *kwnames[] = { | |
832 | NULL | |
833 | }; | |
834 | ||
835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
836 | { | |
837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
838 | result = (wxGDIObject *)new wxGDIObject(); | |
839 | ||
840 | wxPyEndAllowThreads(__tstate); | |
841 | if (PyErr_Occurred()) SWIG_fail; | |
842 | } | |
843 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
844 | return resultobj; | |
845 | fail: | |
846 | return NULL; | |
847 | } | |
848 | ||
849 | ||
850 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
851 | PyObject *resultobj; | |
852 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
853 | PyObject * obj0 = 0 ; | |
854 | char *kwnames[] = { | |
855 | (char *) "self", NULL | |
856 | }; | |
857 | ||
858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
860 | { | |
861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
862 | delete arg1; | |
863 | ||
864 | wxPyEndAllowThreads(__tstate); | |
865 | if (PyErr_Occurred()) SWIG_fail; | |
866 | } | |
867 | Py_INCREF(Py_None); resultobj = Py_None; | |
868 | return resultobj; | |
869 | fail: | |
870 | return NULL; | |
871 | } | |
872 | ||
873 | ||
874 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
875 | PyObject *resultobj; | |
876 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
877 | bool result; | |
878 | PyObject * obj0 = 0 ; | |
879 | char *kwnames[] = { | |
880 | (char *) "self", NULL | |
881 | }; | |
882 | ||
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
885 | { | |
886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
887 | result = (bool)(arg1)->GetVisible(); | |
888 | ||
889 | wxPyEndAllowThreads(__tstate); | |
890 | if (PyErr_Occurred()) SWIG_fail; | |
891 | } | |
4d5c3d91 | 892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
893 | return resultobj; |
894 | fail: | |
895 | return NULL; | |
896 | } | |
897 | ||
898 | ||
899 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
900 | PyObject *resultobj; | |
901 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
902 | bool arg2 ; | |
903 | PyObject * obj0 = 0 ; | |
904 | PyObject * obj1 = 0 ; | |
905 | char *kwnames[] = { | |
906 | (char *) "self",(char *) "visible", NULL | |
907 | }; | |
908 | ||
909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 911 | { |
994141e6 | 912 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
913 | if (PyErr_Occurred()) SWIG_fail; |
914 | } | |
d14a1e28 RD |
915 | { |
916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
917 | (arg1)->SetVisible(arg2); | |
918 | ||
919 | wxPyEndAllowThreads(__tstate); | |
920 | if (PyErr_Occurred()) SWIG_fail; | |
921 | } | |
922 | Py_INCREF(Py_None); resultobj = Py_None; | |
923 | return resultobj; | |
924 | fail: | |
925 | return NULL; | |
926 | } | |
927 | ||
928 | ||
929 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
930 | PyObject *resultobj; | |
931 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
932 | bool result; | |
933 | PyObject * obj0 = 0 ; | |
934 | char *kwnames[] = { | |
935 | (char *) "self", NULL | |
936 | }; | |
937 | ||
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
940 | { | |
941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
942 | result = (bool)(arg1)->IsNull(); | |
943 | ||
944 | wxPyEndAllowThreads(__tstate); | |
945 | if (PyErr_Occurred()) SWIG_fail; | |
946 | } | |
4d5c3d91 | 947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
948 | return resultobj; |
949 | fail: | |
950 | return NULL; | |
951 | } | |
952 | ||
953 | ||
954 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
955 | PyObject *obj; | |
956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
957 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
958 | Py_INCREF(obj); | |
959 | return Py_BuildValue((char *)""); | |
960 | } | |
961 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject *resultobj; | |
963 | unsigned char arg1 = (unsigned char) 0 ; | |
964 | unsigned char arg2 = (unsigned char) 0 ; | |
965 | unsigned char arg3 = (unsigned char) 0 ; | |
966 | wxColour *result; | |
967 | PyObject * obj0 = 0 ; | |
968 | PyObject * obj1 = 0 ; | |
969 | PyObject * obj2 = 0 ; | |
970 | char *kwnames[] = { | |
971 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
972 | }; | |
973 | ||
974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
975 | if (obj0) { | |
a41e16b6 | 976 | { |
994141e6 | 977 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
a41e16b6 RD |
978 | if (PyErr_Occurred()) SWIG_fail; |
979 | } | |
d14a1e28 RD |
980 | } |
981 | if (obj1) { | |
a41e16b6 | 982 | { |
994141e6 | 983 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
984 | if (PyErr_Occurred()) SWIG_fail; |
985 | } | |
d14a1e28 RD |
986 | } |
987 | if (obj2) { | |
a41e16b6 | 988 | { |
994141e6 | 989 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
990 | if (PyErr_Occurred()) SWIG_fail; |
991 | } | |
d14a1e28 RD |
992 | } |
993 | { | |
994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
995 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
996 | ||
997 | wxPyEndAllowThreads(__tstate); | |
998 | if (PyErr_Occurred()) SWIG_fail; | |
999 | } | |
1000 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1001 | return resultobj; | |
1002 | fail: | |
1003 | return NULL; | |
1004 | } | |
1005 | ||
1006 | ||
d14a1e28 RD |
1007 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1008 | PyObject *resultobj; | |
1009 | wxString *arg1 = 0 ; | |
1010 | wxColour *result; | |
e811c8ce | 1011 | bool temp1 = False ; |
d14a1e28 RD |
1012 | PyObject * obj0 = 0 ; |
1013 | char *kwnames[] = { | |
1014 | (char *) "colorName", NULL | |
1015 | }; | |
1016 | ||
1017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1018 | { | |
1019 | arg1 = wxString_in_helper(obj0); | |
1020 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1021 | temp1 = True; |
d14a1e28 RD |
1022 | } |
1023 | { | |
1024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1025 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1026 | ||
1027 | wxPyEndAllowThreads(__tstate); | |
1028 | if (PyErr_Occurred()) SWIG_fail; | |
1029 | } | |
1030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1031 | { | |
1032 | if (temp1) | |
1033 | delete arg1; | |
1034 | } | |
1035 | return resultobj; | |
1036 | fail: | |
1037 | { | |
1038 | if (temp1) | |
1039 | delete arg1; | |
1040 | } | |
1041 | return NULL; | |
1042 | } | |
1043 | ||
1044 | ||
1045 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1046 | PyObject *resultobj; | |
1047 | unsigned long arg1 ; | |
1048 | wxColour *result; | |
1049 | PyObject * obj0 = 0 ; | |
1050 | char *kwnames[] = { | |
1051 | (char *) "colRGB", NULL | |
1052 | }; | |
1053 | ||
1054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
a41e16b6 | 1055 | { |
994141e6 | 1056 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
1057 | if (PyErr_Occurred()) SWIG_fail; |
1058 | } | |
d14a1e28 RD |
1059 | { |
1060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1061 | result = (wxColour *)new wxColour(arg1); | |
1062 | ||
1063 | wxPyEndAllowThreads(__tstate); | |
1064 | if (PyErr_Occurred()) SWIG_fail; | |
1065 | } | |
1066 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1067 | return resultobj; | |
1068 | fail: | |
1069 | return NULL; | |
1070 | } | |
1071 | ||
1072 | ||
b88bce5f RD |
1073 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1074 | PyObject *resultobj; | |
1075 | wxColour *arg1 = (wxColour *) 0 ; | |
1076 | PyObject * obj0 = 0 ; | |
1077 | char *kwnames[] = { | |
1078 | (char *) "self", NULL | |
1079 | }; | |
1080 | ||
1081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1083 | { | |
1084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1085 | delete arg1; | |
1086 | ||
1087 | wxPyEndAllowThreads(__tstate); | |
1088 | if (PyErr_Occurred()) SWIG_fail; | |
1089 | } | |
1090 | Py_INCREF(Py_None); resultobj = Py_None; | |
1091 | return resultobj; | |
1092 | fail: | |
1093 | return NULL; | |
1094 | } | |
1095 | ||
1096 | ||
d14a1e28 RD |
1097 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
1098 | PyObject *resultobj; | |
1099 | wxColour *arg1 = (wxColour *) 0 ; | |
1100 | unsigned char result; | |
1101 | PyObject * obj0 = 0 ; | |
1102 | char *kwnames[] = { | |
1103 | (char *) "self", NULL | |
1104 | }; | |
1105 | ||
1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1108 | { | |
1109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1110 | result = (unsigned char)(arg1)->Red(); | |
1111 | ||
1112 | wxPyEndAllowThreads(__tstate); | |
1113 | if (PyErr_Occurred()) SWIG_fail; | |
1114 | } | |
994141e6 | 1115 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1116 | return resultobj; |
1117 | fail: | |
1118 | return NULL; | |
1119 | } | |
1120 | ||
1121 | ||
1122 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1123 | PyObject *resultobj; | |
1124 | wxColour *arg1 = (wxColour *) 0 ; | |
1125 | unsigned char result; | |
1126 | PyObject * obj0 = 0 ; | |
1127 | char *kwnames[] = { | |
1128 | (char *) "self", NULL | |
1129 | }; | |
1130 | ||
1131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1133 | { | |
1134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1135 | result = (unsigned char)(arg1)->Green(); | |
1136 | ||
1137 | wxPyEndAllowThreads(__tstate); | |
1138 | if (PyErr_Occurred()) SWIG_fail; | |
1139 | } | |
994141e6 | 1140 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1141 | return resultobj; |
1142 | fail: | |
1143 | return NULL; | |
1144 | } | |
1145 | ||
1146 | ||
1147 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1148 | PyObject *resultobj; | |
1149 | wxColour *arg1 = (wxColour *) 0 ; | |
1150 | unsigned char result; | |
1151 | PyObject * obj0 = 0 ; | |
1152 | char *kwnames[] = { | |
1153 | (char *) "self", NULL | |
1154 | }; | |
1155 | ||
1156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1158 | { | |
1159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1160 | result = (unsigned char)(arg1)->Blue(); | |
1161 | ||
1162 | wxPyEndAllowThreads(__tstate); | |
1163 | if (PyErr_Occurred()) SWIG_fail; | |
1164 | } | |
994141e6 | 1165 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1166 | return resultobj; |
1167 | fail: | |
1168 | return NULL; | |
1169 | } | |
1170 | ||
1171 | ||
1172 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1173 | PyObject *resultobj; | |
1174 | wxColour *arg1 = (wxColour *) 0 ; | |
1175 | bool result; | |
1176 | PyObject * obj0 = 0 ; | |
1177 | char *kwnames[] = { | |
1178 | (char *) "self", NULL | |
1179 | }; | |
1180 | ||
1181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1183 | { | |
1184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1185 | result = (bool)(arg1)->Ok(); | |
1186 | ||
1187 | wxPyEndAllowThreads(__tstate); | |
1188 | if (PyErr_Occurred()) SWIG_fail; | |
1189 | } | |
4d5c3d91 | 1190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1191 | return resultobj; |
1192 | fail: | |
1193 | return NULL; | |
1194 | } | |
1195 | ||
1196 | ||
1197 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1198 | PyObject *resultobj; | |
1199 | wxColour *arg1 = (wxColour *) 0 ; | |
1200 | unsigned char arg2 ; | |
1201 | unsigned char arg3 ; | |
1202 | unsigned char arg4 ; | |
1203 | PyObject * obj0 = 0 ; | |
1204 | PyObject * obj1 = 0 ; | |
1205 | PyObject * obj2 = 0 ; | |
1206 | PyObject * obj3 = 0 ; | |
1207 | char *kwnames[] = { | |
1208 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1209 | }; | |
1210 | ||
1211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1213 | { |
994141e6 | 1214 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1215 | if (PyErr_Occurred()) SWIG_fail; |
1216 | } | |
1217 | { | |
994141e6 | 1218 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1219 | if (PyErr_Occurred()) SWIG_fail; |
1220 | } | |
1221 | { | |
994141e6 | 1222 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1223 | if (PyErr_Occurred()) SWIG_fail; |
1224 | } | |
d14a1e28 RD |
1225 | { |
1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1227 | (arg1)->Set(arg2,arg3,arg4); | |
1228 | ||
1229 | wxPyEndAllowThreads(__tstate); | |
1230 | if (PyErr_Occurred()) SWIG_fail; | |
1231 | } | |
1232 | Py_INCREF(Py_None); resultobj = Py_None; | |
1233 | return resultobj; | |
1234 | fail: | |
1235 | return NULL; | |
1236 | } | |
1237 | ||
1238 | ||
c9c7117a | 1239 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1240 | PyObject *resultobj; |
1241 | wxColour *arg1 = (wxColour *) 0 ; | |
1242 | unsigned long arg2 ; | |
1243 | PyObject * obj0 = 0 ; | |
1244 | PyObject * obj1 = 0 ; | |
1245 | char *kwnames[] = { | |
1246 | (char *) "self",(char *) "colRGB", NULL | |
1247 | }; | |
1248 | ||
c9c7117a | 1249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 1251 | { |
994141e6 | 1252 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
1253 | if (PyErr_Occurred()) SWIG_fail; |
1254 | } | |
d14a1e28 RD |
1255 | { |
1256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1257 | (arg1)->Set(arg2); | |
1258 | ||
1259 | wxPyEndAllowThreads(__tstate); | |
1260 | if (PyErr_Occurred()) SWIG_fail; | |
1261 | } | |
1262 | Py_INCREF(Py_None); resultobj = Py_None; | |
1263 | return resultobj; | |
1264 | fail: | |
1265 | return NULL; | |
1266 | } | |
1267 | ||
1268 | ||
b88bce5f RD |
1269 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1270 | PyObject *resultobj; | |
1271 | wxColour *arg1 = (wxColour *) 0 ; | |
1272 | wxString *arg2 = 0 ; | |
1273 | bool temp2 = False ; | |
1274 | PyObject * obj0 = 0 ; | |
1275 | PyObject * obj1 = 0 ; | |
1276 | char *kwnames[] = { | |
1277 | (char *) "self",(char *) "colourName", NULL | |
1278 | }; | |
1279 | ||
1280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1282 | { | |
1283 | arg2 = wxString_in_helper(obj1); | |
1284 | if (arg2 == NULL) SWIG_fail; | |
1285 | temp2 = True; | |
1286 | } | |
1287 | { | |
1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1289 | (arg1)->InitFromName((wxString const &)*arg2); | |
1290 | ||
1291 | wxPyEndAllowThreads(__tstate); | |
1292 | if (PyErr_Occurred()) SWIG_fail; | |
1293 | } | |
1294 | Py_INCREF(Py_None); resultobj = Py_None; | |
1295 | { | |
1296 | if (temp2) | |
1297 | delete arg2; | |
1298 | } | |
1299 | return resultobj; | |
1300 | fail: | |
1301 | { | |
1302 | if (temp2) | |
1303 | delete arg2; | |
1304 | } | |
1305 | return NULL; | |
1306 | } | |
1307 | ||
1308 | ||
1309 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1310 | PyObject *resultobj; | |
1311 | wxColour *arg1 = (wxColour *) 0 ; | |
1312 | long result; | |
1313 | PyObject * obj0 = 0 ; | |
1314 | char *kwnames[] = { | |
1315 | (char *) "self", NULL | |
1316 | }; | |
1317 | ||
1318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1320 | { | |
1321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1322 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1323 | ||
1324 | wxPyEndAllowThreads(__tstate); | |
1325 | if (PyErr_Occurred()) SWIG_fail; | |
1326 | } | |
1327 | resultobj = SWIG_PyObj_FromLong((long)result); | |
1328 | return resultobj; | |
1329 | fail: | |
1330 | return NULL; | |
1331 | } | |
1332 | ||
1333 | ||
d14a1e28 RD |
1334 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1335 | PyObject *resultobj; | |
1336 | wxColour *arg1 = (wxColour *) 0 ; | |
1337 | wxColour *arg2 = 0 ; | |
1338 | bool result; | |
1339 | wxColour temp2 ; | |
1340 | PyObject * obj0 = 0 ; | |
1341 | PyObject * obj1 = 0 ; | |
1342 | char *kwnames[] = { | |
1343 | (char *) "self",(char *) "colour", NULL | |
1344 | }; | |
1345 | ||
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1348 | { | |
1349 | arg2 = &temp2; | |
1350 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1351 | } | |
1352 | { | |
1353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1354 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1355 | ||
1356 | wxPyEndAllowThreads(__tstate); | |
1357 | if (PyErr_Occurred()) SWIG_fail; | |
1358 | } | |
4d5c3d91 | 1359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1360 | return resultobj; |
1361 | fail: | |
1362 | return NULL; | |
1363 | } | |
1364 | ||
1365 | ||
1366 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1367 | PyObject *resultobj; | |
1368 | wxColour *arg1 = (wxColour *) 0 ; | |
1369 | wxColour *arg2 = 0 ; | |
1370 | bool result; | |
1371 | wxColour temp2 ; | |
1372 | PyObject * obj0 = 0 ; | |
1373 | PyObject * obj1 = 0 ; | |
1374 | char *kwnames[] = { | |
1375 | (char *) "self",(char *) "colour", NULL | |
1376 | }; | |
1377 | ||
1378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1380 | { | |
1381 | arg2 = &temp2; | |
1382 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1383 | } | |
1384 | { | |
1385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1386 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1387 | ||
1388 | wxPyEndAllowThreads(__tstate); | |
1389 | if (PyErr_Occurred()) SWIG_fail; | |
1390 | } | |
4d5c3d91 | 1391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1392 | return resultobj; |
1393 | fail: | |
1394 | return NULL; | |
1395 | } | |
1396 | ||
1397 | ||
b88bce5f | 1398 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
1399 | PyObject *resultobj; |
1400 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1401 | PyObject *result; |
c9c7117a | 1402 | PyObject * obj0 = 0 ; |
c9c7117a | 1403 | char *kwnames[] = { |
b88bce5f | 1404 | (char *) "self", NULL |
c9c7117a RD |
1405 | }; |
1406 | ||
b88bce5f | 1407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
c9c7117a | 1408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
c9c7117a RD |
1409 | { |
1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1411 | result = (PyObject *)wxColour_Get(arg1); |
c9c7117a RD |
1412 | |
1413 | wxPyEndAllowThreads(__tstate); | |
1414 | if (PyErr_Occurred()) SWIG_fail; | |
1415 | } | |
b88bce5f | 1416 | resultobj = result; |
c9c7117a RD |
1417 | return resultobj; |
1418 | fail: | |
c9c7117a RD |
1419 | return NULL; |
1420 | } | |
1421 | ||
1422 | ||
b88bce5f | 1423 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1424 | PyObject *resultobj; |
1425 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1426 | unsigned long result; |
d14a1e28 RD |
1427 | PyObject * obj0 = 0 ; |
1428 | char *kwnames[] = { | |
1429 | (char *) "self", NULL | |
1430 | }; | |
1431 | ||
b88bce5f | 1432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
1433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1434 | { | |
1435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1436 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1437 | |
1438 | wxPyEndAllowThreads(__tstate); | |
1439 | if (PyErr_Occurred()) SWIG_fail; | |
1440 | } | |
b88bce5f | 1441 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
1442 | return resultobj; |
1443 | fail: | |
1444 | return NULL; | |
1445 | } | |
1446 | ||
1447 | ||
1448 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1449 | PyObject *obj; | |
1450 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1451 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1452 | Py_INCREF(obj); | |
1453 | return Py_BuildValue((char *)""); | |
1454 | } | |
1455 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1456 | PyObject *resultobj; | |
1457 | int arg1 ; | |
1458 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1459 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1460 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1461 | wxPalette *result; | |
994141e6 | 1462 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1463 | PyObject * obj1 = 0 ; |
1464 | PyObject * obj2 = 0 ; | |
1465 | PyObject * obj3 = 0 ; | |
1466 | char *kwnames[] = { | |
1467 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1468 | }; | |
1469 | ||
994141e6 RD |
1470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
1471 | { | |
1472 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1473 | if (PyErr_Occurred()) SWIG_fail; | |
1474 | } | |
d14a1e28 RD |
1475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1476 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1477 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1478 | { | |
1479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1480 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1481 | ||
1482 | wxPyEndAllowThreads(__tstate); | |
1483 | if (PyErr_Occurred()) SWIG_fail; | |
1484 | } | |
1485 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1486 | return resultobj; | |
1487 | fail: | |
1488 | return NULL; | |
1489 | } | |
1490 | ||
1491 | ||
1492 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1493 | PyObject *resultobj; | |
1494 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1495 | PyObject * obj0 = 0 ; | |
1496 | char *kwnames[] = { | |
1497 | (char *) "self", NULL | |
1498 | }; | |
1499 | ||
1500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1502 | { | |
1503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1504 | delete arg1; | |
1505 | ||
1506 | wxPyEndAllowThreads(__tstate); | |
1507 | if (PyErr_Occurred()) SWIG_fail; | |
1508 | } | |
1509 | Py_INCREF(Py_None); resultobj = Py_None; | |
1510 | return resultobj; | |
1511 | fail: | |
1512 | return NULL; | |
1513 | } | |
1514 | ||
1515 | ||
1516 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1517 | PyObject *resultobj; | |
1518 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1519 | byte arg2 ; | |
1520 | byte arg3 ; | |
1521 | byte arg4 ; | |
1522 | int result; | |
1523 | PyObject * obj0 = 0 ; | |
1524 | PyObject * obj1 = 0 ; | |
1525 | PyObject * obj2 = 0 ; | |
1526 | PyObject * obj3 = 0 ; | |
1527 | char *kwnames[] = { | |
1528 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1529 | }; | |
1530 | ||
1531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1533 | { |
994141e6 | 1534 | arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1535 | if (PyErr_Occurred()) SWIG_fail; |
1536 | } | |
1537 | { | |
994141e6 | 1538 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1539 | if (PyErr_Occurred()) SWIG_fail; |
1540 | } | |
1541 | { | |
994141e6 | 1542 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1543 | if (PyErr_Occurred()) SWIG_fail; |
1544 | } | |
d14a1e28 RD |
1545 | { |
1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1547 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1548 | ||
1549 | wxPyEndAllowThreads(__tstate); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
994141e6 | 1552 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1553 | return resultobj; |
1554 | fail: | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
1559 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject *resultobj; | |
1561 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1562 | int arg2 ; | |
1563 | byte *arg3 = (byte *) 0 ; | |
1564 | byte *arg4 = (byte *) 0 ; | |
1565 | byte *arg5 = (byte *) 0 ; | |
1566 | bool result; | |
1567 | byte temp3 ; | |
1568 | byte temp4 ; | |
1569 | byte temp5 ; | |
1570 | PyObject * obj0 = 0 ; | |
994141e6 | 1571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1572 | char *kwnames[] = { |
1573 | (char *) "self",(char *) "pixel", NULL | |
1574 | }; | |
1575 | ||
1576 | arg3 = &temp3; | |
1577 | arg4 = &temp4; | |
1578 | arg5 = &temp5; | |
994141e6 | 1579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1581 | { |
1582 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1583 | if (PyErr_Occurred()) SWIG_fail; | |
1584 | } | |
d14a1e28 RD |
1585 | { |
1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1587 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1588 | ||
1589 | wxPyEndAllowThreads(__tstate); | |
1590 | if (PyErr_Occurred()) SWIG_fail; | |
1591 | } | |
4d5c3d91 | 1592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1593 | { |
1594 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1595 | resultobj = t_output_helper(resultobj,o); | |
1596 | } | |
1597 | { | |
1598 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1599 | resultobj = t_output_helper(resultobj,o); | |
1600 | } | |
1601 | { | |
1602 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1603 | resultobj = t_output_helper(resultobj,o); | |
1604 | } | |
1605 | return resultobj; | |
1606 | fail: | |
1607 | return NULL; | |
1608 | } | |
1609 | ||
1610 | ||
1611 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject *resultobj; | |
1613 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1614 | bool result; | |
1615 | PyObject * obj0 = 0 ; | |
1616 | char *kwnames[] = { | |
1617 | (char *) "self", NULL | |
1618 | }; | |
1619 | ||
1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1622 | { | |
1623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1624 | result = (bool)(arg1)->Ok(); | |
1625 | ||
1626 | wxPyEndAllowThreads(__tstate); | |
1627 | if (PyErr_Occurred()) SWIG_fail; | |
1628 | } | |
4d5c3d91 | 1629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1630 | return resultobj; |
1631 | fail: | |
1632 | return NULL; | |
1633 | } | |
1634 | ||
1635 | ||
1636 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1637 | PyObject *obj; | |
1638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1639 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1640 | Py_INCREF(obj); | |
1641 | return Py_BuildValue((char *)""); | |
1642 | } | |
1643 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1644 | PyObject *resultobj; | |
1645 | wxColour *arg1 = 0 ; | |
1646 | int arg2 = (int) 1 ; | |
1647 | int arg3 = (int) wxSOLID ; | |
1648 | wxPen *result; | |
1649 | wxColour temp1 ; | |
1650 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1651 | PyObject * obj1 = 0 ; |
1652 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1653 | char *kwnames[] = { |
1654 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1655 | }; | |
1656 | ||
994141e6 | 1657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1658 | { |
1659 | arg1 = &temp1; | |
1660 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1661 | } | |
994141e6 RD |
1662 | if (obj1) { |
1663 | { | |
1664 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1665 | if (PyErr_Occurred()) SWIG_fail; | |
1666 | } | |
1667 | } | |
1668 | if (obj2) { | |
1669 | { | |
1670 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1671 | if (PyErr_Occurred()) SWIG_fail; | |
1672 | } | |
1673 | } | |
d14a1e28 RD |
1674 | { |
1675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1676 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1677 | ||
1678 | wxPyEndAllowThreads(__tstate); | |
1679 | if (PyErr_Occurred()) SWIG_fail; | |
1680 | } | |
1681 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1682 | return resultobj; | |
1683 | fail: | |
1684 | return NULL; | |
1685 | } | |
1686 | ||
1687 | ||
1688 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1689 | PyObject *resultobj; | |
1690 | wxPen *arg1 = (wxPen *) 0 ; | |
1691 | PyObject * obj0 = 0 ; | |
1692 | char *kwnames[] = { | |
1693 | (char *) "self", NULL | |
1694 | }; | |
1695 | ||
1696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1698 | { | |
1699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1700 | delete arg1; | |
1701 | ||
1702 | wxPyEndAllowThreads(__tstate); | |
1703 | if (PyErr_Occurred()) SWIG_fail; | |
1704 | } | |
1705 | Py_INCREF(Py_None); resultobj = Py_None; | |
1706 | return resultobj; | |
1707 | fail: | |
1708 | return NULL; | |
1709 | } | |
1710 | ||
1711 | ||
1712 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject *resultobj; | |
1714 | wxPen *arg1 = (wxPen *) 0 ; | |
1715 | int result; | |
1716 | PyObject * obj0 = 0 ; | |
1717 | char *kwnames[] = { | |
1718 | (char *) "self", NULL | |
1719 | }; | |
1720 | ||
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1723 | { | |
1724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1725 | result = (int)(arg1)->GetCap(); | |
1726 | ||
1727 | wxPyEndAllowThreads(__tstate); | |
1728 | if (PyErr_Occurred()) SWIG_fail; | |
1729 | } | |
994141e6 | 1730 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1731 | return resultobj; |
1732 | fail: | |
1733 | return NULL; | |
1734 | } | |
1735 | ||
1736 | ||
1737 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1738 | PyObject *resultobj; | |
1739 | wxPen *arg1 = (wxPen *) 0 ; | |
1740 | wxColour result; | |
1741 | PyObject * obj0 = 0 ; | |
1742 | char *kwnames[] = { | |
1743 | (char *) "self", NULL | |
1744 | }; | |
1745 | ||
1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1748 | { | |
1749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1750 | result = (arg1)->GetColour(); | |
1751 | ||
1752 | wxPyEndAllowThreads(__tstate); | |
1753 | if (PyErr_Occurred()) SWIG_fail; | |
1754 | } | |
1755 | { | |
1756 | wxColour * resultptr; | |
1757 | resultptr = new wxColour((wxColour &) result); | |
1758 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1759 | } | |
1760 | return resultobj; | |
1761 | fail: | |
1762 | return NULL; | |
1763 | } | |
1764 | ||
1765 | ||
1766 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1767 | PyObject *resultobj; | |
1768 | wxPen *arg1 = (wxPen *) 0 ; | |
1769 | int result; | |
1770 | PyObject * obj0 = 0 ; | |
1771 | char *kwnames[] = { | |
1772 | (char *) "self", NULL | |
1773 | }; | |
1774 | ||
1775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1777 | { | |
1778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1779 | result = (int)(arg1)->GetJoin(); | |
1780 | ||
1781 | wxPyEndAllowThreads(__tstate); | |
1782 | if (PyErr_Occurred()) SWIG_fail; | |
1783 | } | |
994141e6 | 1784 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1785 | return resultobj; |
1786 | fail: | |
1787 | return NULL; | |
1788 | } | |
1789 | ||
1790 | ||
1791 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1792 | PyObject *resultobj; | |
1793 | wxPen *arg1 = (wxPen *) 0 ; | |
1794 | int result; | |
1795 | PyObject * obj0 = 0 ; | |
1796 | char *kwnames[] = { | |
1797 | (char *) "self", NULL | |
1798 | }; | |
1799 | ||
1800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1802 | { | |
1803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1804 | result = (int)(arg1)->GetStyle(); | |
1805 | ||
1806 | wxPyEndAllowThreads(__tstate); | |
1807 | if (PyErr_Occurred()) SWIG_fail; | |
1808 | } | |
994141e6 | 1809 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1810 | return resultobj; |
1811 | fail: | |
1812 | return NULL; | |
1813 | } | |
1814 | ||
1815 | ||
1816 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1817 | PyObject *resultobj; | |
1818 | wxPen *arg1 = (wxPen *) 0 ; | |
1819 | int result; | |
1820 | PyObject * obj0 = 0 ; | |
1821 | char *kwnames[] = { | |
1822 | (char *) "self", NULL | |
1823 | }; | |
1824 | ||
1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1827 | { | |
1828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1829 | result = (int)(arg1)->GetWidth(); | |
1830 | ||
1831 | wxPyEndAllowThreads(__tstate); | |
1832 | if (PyErr_Occurred()) SWIG_fail; | |
1833 | } | |
994141e6 | 1834 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1835 | return resultobj; |
1836 | fail: | |
1837 | return NULL; | |
1838 | } | |
1839 | ||
1840 | ||
1841 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1842 | PyObject *resultobj; | |
1843 | wxPen *arg1 = (wxPen *) 0 ; | |
1844 | bool result; | |
1845 | PyObject * obj0 = 0 ; | |
1846 | char *kwnames[] = { | |
1847 | (char *) "self", NULL | |
1848 | }; | |
1849 | ||
1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1852 | { | |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | result = (bool)(arg1)->Ok(); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
1858 | } | |
4d5c3d91 | 1859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1860 | return resultobj; |
1861 | fail: | |
1862 | return NULL; | |
1863 | } | |
1864 | ||
1865 | ||
1866 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1867 | PyObject *resultobj; | |
1868 | wxPen *arg1 = (wxPen *) 0 ; | |
1869 | int arg2 ; | |
1870 | PyObject * obj0 = 0 ; | |
994141e6 | 1871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1872 | char *kwnames[] = { |
1873 | (char *) "self",(char *) "cap_style", NULL | |
1874 | }; | |
1875 | ||
994141e6 | 1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1878 | { |
1879 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1880 | if (PyErr_Occurred()) SWIG_fail; | |
1881 | } | |
d14a1e28 RD |
1882 | { |
1883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1884 | (arg1)->SetCap(arg2); | |
1885 | ||
1886 | wxPyEndAllowThreads(__tstate); | |
1887 | if (PyErr_Occurred()) SWIG_fail; | |
1888 | } | |
1889 | Py_INCREF(Py_None); resultobj = Py_None; | |
1890 | return resultobj; | |
1891 | fail: | |
1892 | return NULL; | |
1893 | } | |
1894 | ||
1895 | ||
1896 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject *resultobj; | |
1898 | wxPen *arg1 = (wxPen *) 0 ; | |
1899 | wxColour *arg2 = 0 ; | |
1900 | wxColour temp2 ; | |
1901 | PyObject * obj0 = 0 ; | |
1902 | PyObject * obj1 = 0 ; | |
1903 | char *kwnames[] = { | |
1904 | (char *) "self",(char *) "colour", NULL | |
1905 | }; | |
1906 | ||
1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1909 | { | |
1910 | arg2 = &temp2; | |
1911 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1912 | } | |
1913 | { | |
1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1915 | (arg1)->SetColour(*arg2); | |
1916 | ||
1917 | wxPyEndAllowThreads(__tstate); | |
1918 | if (PyErr_Occurred()) SWIG_fail; | |
1919 | } | |
1920 | Py_INCREF(Py_None); resultobj = Py_None; | |
1921 | return resultobj; | |
1922 | fail: | |
1923 | return NULL; | |
1924 | } | |
1925 | ||
1926 | ||
1927 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject *resultobj; | |
1929 | wxPen *arg1 = (wxPen *) 0 ; | |
1930 | int arg2 ; | |
1931 | PyObject * obj0 = 0 ; | |
994141e6 | 1932 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1933 | char *kwnames[] = { |
1934 | (char *) "self",(char *) "join_style", NULL | |
1935 | }; | |
1936 | ||
994141e6 | 1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1939 | { |
1940 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1941 | if (PyErr_Occurred()) SWIG_fail; | |
1942 | } | |
d14a1e28 RD |
1943 | { |
1944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1945 | (arg1)->SetJoin(arg2); | |
1946 | ||
1947 | wxPyEndAllowThreads(__tstate); | |
1948 | if (PyErr_Occurred()) SWIG_fail; | |
1949 | } | |
1950 | Py_INCREF(Py_None); resultobj = Py_None; | |
1951 | return resultobj; | |
1952 | fail: | |
1953 | return NULL; | |
1954 | } | |
1955 | ||
1956 | ||
1957 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1958 | PyObject *resultobj; | |
1959 | wxPen *arg1 = (wxPen *) 0 ; | |
1960 | int arg2 ; | |
1961 | PyObject * obj0 = 0 ; | |
994141e6 | 1962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1963 | char *kwnames[] = { |
1964 | (char *) "self",(char *) "style", NULL | |
1965 | }; | |
1966 | ||
994141e6 | 1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1969 | { |
1970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1971 | if (PyErr_Occurred()) SWIG_fail; | |
1972 | } | |
d14a1e28 RD |
1973 | { |
1974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1975 | (arg1)->SetStyle(arg2); | |
1976 | ||
1977 | wxPyEndAllowThreads(__tstate); | |
1978 | if (PyErr_Occurred()) SWIG_fail; | |
1979 | } | |
1980 | Py_INCREF(Py_None); resultobj = Py_None; | |
1981 | return resultobj; | |
1982 | fail: | |
1983 | return NULL; | |
1984 | } | |
1985 | ||
1986 | ||
1987 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1988 | PyObject *resultobj; | |
1989 | wxPen *arg1 = (wxPen *) 0 ; | |
1990 | int arg2 ; | |
1991 | PyObject * obj0 = 0 ; | |
994141e6 | 1992 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1993 | char *kwnames[] = { |
1994 | (char *) "self",(char *) "width", NULL | |
1995 | }; | |
1996 | ||
994141e6 | 1997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1999 | { |
2000 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2001 | if (PyErr_Occurred()) SWIG_fail; | |
2002 | } | |
d14a1e28 RD |
2003 | { |
2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2005 | (arg1)->SetWidth(arg2); | |
2006 | ||
2007 | wxPyEndAllowThreads(__tstate); | |
2008 | if (PyErr_Occurred()) SWIG_fail; | |
2009 | } | |
2010 | Py_INCREF(Py_None); resultobj = Py_None; | |
2011 | return resultobj; | |
2012 | fail: | |
2013 | return NULL; | |
2014 | } | |
2015 | ||
2016 | ||
2017 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject *resultobj; | |
2019 | wxPen *arg1 = (wxPen *) 0 ; | |
2020 | int arg2 ; | |
2021 | wxDash *arg3 = (wxDash *) 0 ; | |
2022 | PyObject * obj0 = 0 ; | |
2023 | PyObject * obj1 = 0 ; | |
2024 | char *kwnames[] = { | |
2025 | (char *) "self",(char *) "dashes", NULL | |
2026 | }; | |
2027 | ||
2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2030 | { | |
2031 | arg2 = PyList_Size(obj1); | |
2032 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2033 | if (arg3 == NULL) SWIG_fail; | |
2034 | } | |
2035 | { | |
2036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2037 | (arg1)->SetDashes(arg2,arg3); | |
2038 | ||
2039 | wxPyEndAllowThreads(__tstate); | |
2040 | if (PyErr_Occurred()) SWIG_fail; | |
2041 | } | |
2042 | Py_INCREF(Py_None); resultobj = Py_None; | |
2043 | { | |
2044 | if (arg3) delete [] arg3; | |
2045 | } | |
2046 | return resultobj; | |
2047 | fail: | |
2048 | { | |
2049 | if (arg3) delete [] arg3; | |
2050 | } | |
2051 | return NULL; | |
2052 | } | |
2053 | ||
2054 | ||
2055 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2056 | PyObject *resultobj; | |
2057 | wxPen *arg1 = (wxPen *) 0 ; | |
2058 | PyObject *result; | |
2059 | PyObject * obj0 = 0 ; | |
2060 | char *kwnames[] = { | |
2061 | (char *) "self", NULL | |
2062 | }; | |
2063 | ||
2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2066 | { | |
2067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2068 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2069 | ||
2070 | wxPyEndAllowThreads(__tstate); | |
2071 | if (PyErr_Occurred()) SWIG_fail; | |
2072 | } | |
2073 | resultobj = result; | |
2074 | return resultobj; | |
2075 | fail: | |
2076 | return NULL; | |
2077 | } | |
2078 | ||
2079 | ||
3adfb63b RD |
2080 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
2081 | PyObject *resultobj; | |
2082 | wxPen *arg1 = (wxPen *) 0 ; | |
22faec7d | 2083 | wxPen *arg2 = (wxPen *) 0 ; |
3adfb63b RD |
2084 | bool result; |
2085 | PyObject * obj0 = 0 ; | |
2086 | PyObject * obj1 = 0 ; | |
2087 | char *kwnames[] = { | |
22faec7d | 2088 | (char *) "self",(char *) "other", NULL |
3adfb63b RD |
2089 | }; |
2090 | ||
2091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2093 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22faec7d RD |
2094 | { |
2095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2096 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
2097 | ||
2098 | wxPyEndAllowThreads(__tstate); | |
2099 | if (PyErr_Occurred()) SWIG_fail; | |
3adfb63b | 2100 | } |
22faec7d RD |
2101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
2102 | return resultobj; | |
2103 | fail: | |
2104 | return NULL; | |
2105 | } | |
2106 | ||
2107 | ||
2108 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2109 | PyObject *resultobj; | |
2110 | wxPen *arg1 = (wxPen *) 0 ; | |
2111 | wxPen *arg2 = (wxPen *) 0 ; | |
2112 | bool result; | |
2113 | PyObject * obj0 = 0 ; | |
2114 | PyObject * obj1 = 0 ; | |
2115 | char *kwnames[] = { | |
2116 | (char *) "self",(char *) "other", NULL | |
2117 | }; | |
2118 | ||
2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2121 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3adfb63b RD |
2122 | { |
2123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 2124 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
3adfb63b RD |
2125 | |
2126 | wxPyEndAllowThreads(__tstate); | |
2127 | if (PyErr_Occurred()) SWIG_fail; | |
2128 | } | |
2129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2130 | return resultobj; | |
2131 | fail: | |
2132 | return NULL; | |
2133 | } | |
2134 | ||
2135 | ||
c9c7117a RD |
2136 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
2137 | PyObject *resultobj; | |
2138 | wxPen *arg1 = (wxPen *) 0 ; | |
2139 | int result; | |
2140 | PyObject * obj0 = 0 ; | |
2141 | char *kwnames[] = { | |
2142 | (char *) "self", NULL | |
2143 | }; | |
2144 | ||
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2147 | { | |
2148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2149 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2150 | ||
2151 | wxPyEndAllowThreads(__tstate); | |
2152 | if (PyErr_Occurred()) SWIG_fail; | |
2153 | } | |
994141e6 | 2154 | resultobj = SWIG_PyObj_FromInt((int)result); |
c9c7117a RD |
2155 | return resultobj; |
2156 | fail: | |
2157 | return NULL; | |
2158 | } | |
2159 | ||
2160 | ||
d14a1e28 RD |
2161 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
2162 | PyObject *obj; | |
2163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2164 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2165 | Py_INCREF(obj); | |
2166 | return Py_BuildValue((char *)""); | |
2167 | } | |
2168 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2169 | PyObject *resultobj; | |
2170 | wxColour *arg1 = 0 ; | |
2171 | int arg2 = (int) 1 ; | |
2172 | int arg3 = (int) wxSOLID ; | |
2173 | wxPyPen *result; | |
2174 | wxColour temp1 ; | |
2175 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2176 | PyObject * obj1 = 0 ; |
2177 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2178 | char *kwnames[] = { |
2179 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2180 | }; | |
2181 | ||
994141e6 | 2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2183 | { |
2184 | arg1 = &temp1; | |
2185 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2186 | } | |
994141e6 RD |
2187 | if (obj1) { |
2188 | { | |
2189 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2190 | if (PyErr_Occurred()) SWIG_fail; | |
2191 | } | |
2192 | } | |
2193 | if (obj2) { | |
2194 | { | |
2195 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2196 | if (PyErr_Occurred()) SWIG_fail; | |
2197 | } | |
2198 | } | |
d14a1e28 RD |
2199 | { |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
2206 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
2207 | return resultobj; | |
2208 | fail: | |
2209 | return NULL; | |
2210 | } | |
2211 | ||
2212 | ||
2213 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2214 | PyObject *resultobj; | |
2215 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2216 | PyObject * obj0 = 0 ; | |
2217 | char *kwnames[] = { | |
2218 | (char *) "self", NULL | |
2219 | }; | |
2220 | ||
2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2223 | { | |
2224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2225 | delete arg1; | |
2226 | ||
2227 | wxPyEndAllowThreads(__tstate); | |
2228 | if (PyErr_Occurred()) SWIG_fail; | |
2229 | } | |
2230 | Py_INCREF(Py_None); resultobj = Py_None; | |
2231 | return resultobj; | |
2232 | fail: | |
2233 | return NULL; | |
2234 | } | |
2235 | ||
2236 | ||
2237 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2238 | PyObject *resultobj; | |
2239 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2240 | int arg2 ; | |
2241 | wxDash *arg3 = (wxDash *) 0 ; | |
2242 | PyObject * obj0 = 0 ; | |
2243 | PyObject * obj1 = 0 ; | |
2244 | char *kwnames[] = { | |
2245 | (char *) "self",(char *) "dashes", NULL | |
2246 | }; | |
2247 | ||
2248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2250 | { | |
2251 | arg2 = PyList_Size(obj1); | |
2252 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2253 | if (arg3 == NULL) SWIG_fail; | |
2254 | } | |
2255 | { | |
2256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2257 | (arg1)->SetDashes(arg2,arg3); | |
2258 | ||
2259 | wxPyEndAllowThreads(__tstate); | |
2260 | if (PyErr_Occurred()) SWIG_fail; | |
2261 | } | |
2262 | Py_INCREF(Py_None); resultobj = Py_None; | |
2263 | { | |
2264 | if (arg3) delete [] arg3; | |
2265 | } | |
2266 | return resultobj; | |
2267 | fail: | |
2268 | { | |
2269 | if (arg3) delete [] arg3; | |
2270 | } | |
2271 | return NULL; | |
2272 | } | |
2273 | ||
2274 | ||
2275 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2276 | PyObject *obj; | |
2277 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2278 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2279 | Py_INCREF(obj); | |
2280 | return Py_BuildValue((char *)""); | |
2281 | } | |
2282 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2283 | PyObject *resultobj; | |
2284 | wxColour *arg1 = 0 ; | |
2285 | int arg2 = (int) wxSOLID ; | |
2286 | wxBrush *result; | |
2287 | wxColour temp1 ; | |
2288 | PyObject * obj0 = 0 ; | |
994141e6 | 2289 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2290 | char *kwnames[] = { |
2291 | (char *) "colour",(char *) "style", NULL | |
2292 | }; | |
2293 | ||
994141e6 | 2294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2295 | { |
2296 | arg1 = &temp1; | |
2297 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2298 | } | |
994141e6 RD |
2299 | if (obj1) { |
2300 | { | |
2301 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | } | |
d14a1e28 RD |
2305 | { |
2306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2307 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2308 | ||
2309 | wxPyEndAllowThreads(__tstate); | |
2310 | if (PyErr_Occurred()) SWIG_fail; | |
2311 | } | |
2312 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
2313 | return resultobj; | |
2314 | fail: | |
2315 | return NULL; | |
2316 | } | |
2317 | ||
2318 | ||
2319 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2320 | PyObject *resultobj; | |
2321 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2322 | PyObject * obj0 = 0 ; | |
2323 | char *kwnames[] = { | |
2324 | (char *) "self", NULL | |
2325 | }; | |
2326 | ||
2327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2329 | { | |
2330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2331 | delete arg1; | |
2332 | ||
2333 | wxPyEndAllowThreads(__tstate); | |
2334 | if (PyErr_Occurred()) SWIG_fail; | |
2335 | } | |
2336 | Py_INCREF(Py_None); resultobj = Py_None; | |
2337 | return resultobj; | |
2338 | fail: | |
2339 | return NULL; | |
2340 | } | |
2341 | ||
2342 | ||
2343 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2344 | PyObject *resultobj; | |
2345 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2346 | wxColour *arg2 = 0 ; | |
2347 | wxColour temp2 ; | |
2348 | PyObject * obj0 = 0 ; | |
2349 | PyObject * obj1 = 0 ; | |
2350 | char *kwnames[] = { | |
2351 | (char *) "self",(char *) "col", NULL | |
2352 | }; | |
2353 | ||
2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2356 | { | |
2357 | arg2 = &temp2; | |
2358 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2359 | } | |
2360 | { | |
2361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2362 | (arg1)->SetColour((wxColour const &)*arg2); | |
2363 | ||
2364 | wxPyEndAllowThreads(__tstate); | |
2365 | if (PyErr_Occurred()) SWIG_fail; | |
2366 | } | |
2367 | Py_INCREF(Py_None); resultobj = Py_None; | |
2368 | return resultobj; | |
2369 | fail: | |
2370 | return NULL; | |
2371 | } | |
2372 | ||
2373 | ||
2374 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2375 | PyObject *resultobj; | |
2376 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2377 | int arg2 ; | |
2378 | PyObject * obj0 = 0 ; | |
994141e6 | 2379 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2380 | char *kwnames[] = { |
2381 | (char *) "self",(char *) "style", NULL | |
2382 | }; | |
2383 | ||
994141e6 | 2384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2386 | { |
2387 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2388 | if (PyErr_Occurred()) SWIG_fail; | |
2389 | } | |
d14a1e28 RD |
2390 | { |
2391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2392 | (arg1)->SetStyle(arg2); | |
2393 | ||
2394 | wxPyEndAllowThreads(__tstate); | |
2395 | if (PyErr_Occurred()) SWIG_fail; | |
2396 | } | |
2397 | Py_INCREF(Py_None); resultobj = Py_None; | |
2398 | return resultobj; | |
2399 | fail: | |
2400 | return NULL; | |
2401 | } | |
2402 | ||
2403 | ||
2404 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2405 | PyObject *resultobj; | |
2406 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2407 | wxBitmap *arg2 = 0 ; | |
2408 | PyObject * obj0 = 0 ; | |
2409 | PyObject * obj1 = 0 ; | |
2410 | char *kwnames[] = { | |
2411 | (char *) "self",(char *) "stipple", NULL | |
2412 | }; | |
2413 | ||
2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2416 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2417 | if (arg2 == NULL) { | |
2418 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2419 | } | |
2420 | { | |
2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2422 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2423 | ||
2424 | wxPyEndAllowThreads(__tstate); | |
2425 | if (PyErr_Occurred()) SWIG_fail; | |
2426 | } | |
2427 | Py_INCREF(Py_None); resultobj = Py_None; | |
2428 | return resultobj; | |
2429 | fail: | |
2430 | return NULL; | |
2431 | } | |
2432 | ||
2433 | ||
2434 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2435 | PyObject *resultobj; | |
2436 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2437 | wxColour result; | |
2438 | PyObject * obj0 = 0 ; | |
2439 | char *kwnames[] = { | |
2440 | (char *) "self", NULL | |
2441 | }; | |
2442 | ||
2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2445 | { | |
2446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2447 | result = ((wxBrush const *)arg1)->GetColour(); | |
2448 | ||
2449 | wxPyEndAllowThreads(__tstate); | |
2450 | if (PyErr_Occurred()) SWIG_fail; | |
2451 | } | |
2452 | { | |
2453 | wxColour * resultptr; | |
2454 | resultptr = new wxColour((wxColour &) result); | |
2455 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2456 | } | |
2457 | return resultobj; | |
2458 | fail: | |
2459 | return NULL; | |
2460 | } | |
2461 | ||
2462 | ||
2463 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject *resultobj; | |
2465 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2466 | int result; | |
2467 | PyObject * obj0 = 0 ; | |
2468 | char *kwnames[] = { | |
2469 | (char *) "self", NULL | |
2470 | }; | |
2471 | ||
2472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2474 | { | |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2476 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2477 | ||
2478 | wxPyEndAllowThreads(__tstate); | |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
2480 | } | |
994141e6 | 2481 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2482 | return resultobj; |
2483 | fail: | |
2484 | return NULL; | |
2485 | } | |
2486 | ||
2487 | ||
2488 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2489 | PyObject *resultobj; | |
2490 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2491 | wxBitmap *result; | |
2492 | PyObject * obj0 = 0 ; | |
2493 | char *kwnames[] = { | |
2494 | (char *) "self", NULL | |
2495 | }; | |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2499 | { | |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2513 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj; | |
2515 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2516 | bool result; | |
2517 | PyObject * obj0 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "self", NULL | |
2520 | }; | |
2521 | ||
2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2524 | { | |
2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2526 | result = (bool)(arg1)->Ok(); | |
2527 | ||
2528 | wxPyEndAllowThreads(__tstate); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
2530 | } | |
4d5c3d91 | 2531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2532 | return resultobj; |
2533 | fail: | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
2538 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2539 | PyObject *obj; | |
2540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2541 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2542 | Py_INCREF(obj); | |
2543 | return Py_BuildValue((char *)""); | |
2544 | } | |
2545 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject *resultobj; | |
2547 | wxString *arg1 = 0 ; | |
2548 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2549 | wxBitmap *result; | |
e811c8ce | 2550 | bool temp1 = False ; |
d14a1e28 | 2551 | PyObject * obj0 = 0 ; |
994141e6 | 2552 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2553 | char *kwnames[] = { |
2554 | (char *) "name",(char *) "type", NULL | |
2555 | }; | |
2556 | ||
994141e6 | 2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2558 | { |
2559 | arg1 = wxString_in_helper(obj0); | |
2560 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2561 | temp1 = True; |
d14a1e28 | 2562 | } |
994141e6 RD |
2563 | if (obj1) { |
2564 | { | |
2565 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); | |
2566 | if (PyErr_Occurred()) SWIG_fail; | |
2567 | } | |
2568 | } | |
d14a1e28 RD |
2569 | { |
2570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2571 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2572 | ||
2573 | wxPyEndAllowThreads(__tstate); | |
2574 | if (PyErr_Occurred()) SWIG_fail; | |
2575 | } | |
2576 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2577 | { | |
2578 | if (temp1) | |
2579 | delete arg1; | |
2580 | } | |
2581 | return resultobj; | |
2582 | fail: | |
2583 | { | |
2584 | if (temp1) | |
2585 | delete arg1; | |
2586 | } | |
2587 | return NULL; | |
2588 | } | |
2589 | ||
2590 | ||
2591 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2592 | PyObject *resultobj; | |
2593 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2594 | PyObject * obj0 = 0 ; | |
2595 | char *kwnames[] = { | |
2596 | (char *) "self", NULL | |
2597 | }; | |
2598 | ||
2599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2601 | { | |
2602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2603 | delete arg1; | |
2604 | ||
2605 | wxPyEndAllowThreads(__tstate); | |
2606 | if (PyErr_Occurred()) SWIG_fail; | |
2607 | } | |
2608 | Py_INCREF(Py_None); resultobj = Py_None; | |
2609 | return resultobj; | |
2610 | fail: | |
2611 | return NULL; | |
2612 | } | |
2613 | ||
2614 | ||
2615 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2616 | PyObject *resultobj; | |
2617 | int arg1 ; | |
2618 | int arg2 ; | |
2619 | int arg3 = (int) -1 ; | |
2620 | wxBitmap *result; | |
994141e6 RD |
2621 | PyObject * obj0 = 0 ; |
2622 | PyObject * obj1 = 0 ; | |
2623 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2624 | char *kwnames[] = { |
2625 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2626 | }; | |
2627 | ||
994141e6 RD |
2628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2629 | { | |
2630 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2631 | if (PyErr_Occurred()) SWIG_fail; | |
2632 | } | |
2633 | { | |
2634 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2635 | if (PyErr_Occurred()) SWIG_fail; | |
2636 | } | |
2637 | if (obj2) { | |
2638 | { | |
2639 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2640 | if (PyErr_Occurred()) SWIG_fail; | |
2641 | } | |
2642 | } | |
d14a1e28 RD |
2643 | { |
2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2645 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2646 | ||
2647 | wxPyEndAllowThreads(__tstate); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
2650 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2651 | return resultobj; | |
2652 | fail: | |
2653 | return NULL; | |
2654 | } | |
2655 | ||
2656 | ||
2657 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2658 | PyObject *resultobj; | |
2659 | wxIcon *arg1 = 0 ; | |
2660 | wxBitmap *result; | |
2661 | PyObject * obj0 = 0 ; | |
2662 | char *kwnames[] = { | |
2663 | (char *) "icon", NULL | |
2664 | }; | |
2665 | ||
2666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2668 | if (arg1 == NULL) { | |
2669 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2670 | } | |
2671 | { | |
2672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2673 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2674 | ||
2675 | wxPyEndAllowThreads(__tstate); | |
2676 | if (PyErr_Occurred()) SWIG_fail; | |
2677 | } | |
2678 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2679 | return resultobj; | |
2680 | fail: | |
2681 | return NULL; | |
2682 | } | |
2683 | ||
2684 | ||
2685 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2686 | PyObject *resultobj; | |
2687 | wxImage *arg1 = 0 ; | |
2688 | int arg2 = (int) -1 ; | |
2689 | wxBitmap *result; | |
2690 | PyObject * obj0 = 0 ; | |
994141e6 | 2691 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2692 | char *kwnames[] = { |
2693 | (char *) "image",(char *) "depth", NULL | |
2694 | }; | |
2695 | ||
994141e6 | 2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2698 | if (arg1 == NULL) { | |
2699 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2700 | } | |
994141e6 RD |
2701 | if (obj1) { |
2702 | { | |
2703 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2704 | if (PyErr_Occurred()) SWIG_fail; | |
2705 | } | |
2706 | } | |
d14a1e28 RD |
2707 | { |
2708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2709 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2710 | ||
2711 | wxPyEndAllowThreads(__tstate); | |
2712 | if (PyErr_Occurred()) SWIG_fail; | |
2713 | } | |
2714 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2715 | return resultobj; | |
2716 | fail: | |
2717 | return NULL; | |
2718 | } | |
2719 | ||
2720 | ||
2721 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2722 | PyObject *resultobj; | |
2723 | PyObject *arg1 = (PyObject *) 0 ; | |
2724 | wxBitmap *result; | |
2725 | PyObject * obj0 = 0 ; | |
2726 | char *kwnames[] = { | |
2727 | (char *) "listOfStrings", NULL | |
2728 | }; | |
2729 | ||
2730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2731 | arg1 = obj0; | |
2732 | { | |
2733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2734 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2735 | ||
2736 | wxPyEndAllowThreads(__tstate); | |
2737 | if (PyErr_Occurred()) SWIG_fail; | |
2738 | } | |
2739 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2740 | return resultobj; | |
2741 | fail: | |
2742 | return NULL; | |
2743 | } | |
2744 | ||
2745 | ||
2746 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject *resultobj; | |
2748 | PyObject *arg1 = (PyObject *) 0 ; | |
2749 | int arg2 ; | |
2750 | int arg3 ; | |
2751 | int arg4 = (int) 1 ; | |
2752 | wxBitmap *result; | |
2753 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2754 | PyObject * obj1 = 0 ; |
2755 | PyObject * obj2 = 0 ; | |
2756 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2757 | char *kwnames[] = { |
2758 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2759 | }; | |
2760 | ||
994141e6 | 2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2762 | arg1 = obj0; |
994141e6 RD |
2763 | { |
2764 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2765 | if (PyErr_Occurred()) SWIG_fail; | |
2766 | } | |
2767 | { | |
2768 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2769 | if (PyErr_Occurred()) SWIG_fail; | |
2770 | } | |
2771 | if (obj3) { | |
2772 | { | |
2773 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2774 | if (PyErr_Occurred()) SWIG_fail; | |
2775 | } | |
2776 | } | |
d14a1e28 RD |
2777 | { |
2778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2779 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2780 | ||
2781 | wxPyEndAllowThreads(__tstate); | |
2782 | if (PyErr_Occurred()) SWIG_fail; | |
2783 | } | |
2784 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2785 | return resultobj; | |
2786 | fail: | |
2787 | return NULL; | |
2788 | } | |
2789 | ||
2790 | ||
2791 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2792 | PyObject *resultobj; | |
2793 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2794 | bool result; | |
2795 | PyObject * obj0 = 0 ; | |
2796 | char *kwnames[] = { | |
2797 | (char *) "self", NULL | |
2798 | }; | |
2799 | ||
2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2802 | { | |
2803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2804 | result = (bool)(arg1)->Ok(); | |
2805 | ||
2806 | wxPyEndAllowThreads(__tstate); | |
2807 | if (PyErr_Occurred()) SWIG_fail; | |
2808 | } | |
4d5c3d91 | 2809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2810 | return resultobj; |
2811 | fail: | |
2812 | return NULL; | |
2813 | } | |
2814 | ||
2815 | ||
2816 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2817 | PyObject *resultobj; | |
2818 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2819 | int result; | |
2820 | PyObject * obj0 = 0 ; | |
2821 | char *kwnames[] = { | |
2822 | (char *) "self", NULL | |
2823 | }; | |
2824 | ||
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2827 | { | |
2828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2829 | result = (int)(arg1)->GetWidth(); | |
2830 | ||
2831 | wxPyEndAllowThreads(__tstate); | |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
2833 | } | |
994141e6 | 2834 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2835 | return resultobj; |
2836 | fail: | |
2837 | return NULL; | |
2838 | } | |
2839 | ||
2840 | ||
2841 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2842 | PyObject *resultobj; | |
2843 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2844 | int result; | |
2845 | PyObject * obj0 = 0 ; | |
2846 | char *kwnames[] = { | |
2847 | (char *) "self", NULL | |
2848 | }; | |
2849 | ||
2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2852 | { | |
2853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2854 | result = (int)(arg1)->GetHeight(); | |
2855 | ||
2856 | wxPyEndAllowThreads(__tstate); | |
2857 | if (PyErr_Occurred()) SWIG_fail; | |
2858 | } | |
994141e6 | 2859 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2860 | return resultobj; |
2861 | fail: | |
2862 | return NULL; | |
2863 | } | |
2864 | ||
2865 | ||
2866 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2867 | PyObject *resultobj; | |
2868 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2869 | int result; | |
2870 | PyObject * obj0 = 0 ; | |
2871 | char *kwnames[] = { | |
2872 | (char *) "self", NULL | |
2873 | }; | |
2874 | ||
2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2877 | { | |
2878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2879 | result = (int)(arg1)->GetDepth(); | |
2880 | ||
2881 | wxPyEndAllowThreads(__tstate); | |
2882 | if (PyErr_Occurred()) SWIG_fail; | |
2883 | } | |
994141e6 | 2884 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2885 | return resultobj; |
2886 | fail: | |
2887 | return NULL; | |
2888 | } | |
2889 | ||
2890 | ||
2891 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2892 | PyObject *resultobj; | |
2893 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2894 | SwigValueWrapper< wxImage > result; | |
2895 | PyObject * obj0 = 0 ; | |
2896 | char *kwnames[] = { | |
2897 | (char *) "self", NULL | |
2898 | }; | |
2899 | ||
2900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2902 | { | |
2903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2904 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2905 | ||
2906 | wxPyEndAllowThreads(__tstate); | |
2907 | if (PyErr_Occurred()) SWIG_fail; | |
2908 | } | |
2909 | { | |
2910 | wxImage * resultptr; | |
2911 | resultptr = new wxImage((wxImage &) result); | |
2912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2913 | } | |
2914 | return resultobj; | |
2915 | fail: | |
2916 | return NULL; | |
2917 | } | |
2918 | ||
2919 | ||
2920 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2921 | PyObject *resultobj; | |
2922 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2923 | wxMask *result; | |
2924 | PyObject * obj0 = 0 ; | |
2925 | char *kwnames[] = { | |
2926 | (char *) "self", NULL | |
2927 | }; | |
2928 | ||
2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2931 | { | |
2932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2933 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2934 | ||
2935 | wxPyEndAllowThreads(__tstate); | |
2936 | if (PyErr_Occurred()) SWIG_fail; | |
2937 | } | |
2938 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2939 | return resultobj; | |
2940 | fail: | |
2941 | return NULL; | |
2942 | } | |
2943 | ||
2944 | ||
2945 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2946 | PyObject *resultobj; | |
2947 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2948 | wxMask *arg2 = (wxMask *) 0 ; | |
2949 | PyObject * obj0 = 0 ; | |
2950 | PyObject * obj1 = 0 ; | |
2951 | char *kwnames[] = { | |
2952 | (char *) "self",(char *) "mask", NULL | |
2953 | }; | |
2954 | ||
2955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2957 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2958 | { | |
2959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2960 | (arg1)->SetMask(arg2); | |
2961 | ||
2962 | wxPyEndAllowThreads(__tstate); | |
2963 | if (PyErr_Occurred()) SWIG_fail; | |
2964 | } | |
2965 | Py_INCREF(Py_None); resultobj = Py_None; | |
2966 | return resultobj; | |
2967 | fail: | |
2968 | return NULL; | |
2969 | } | |
2970 | ||
2971 | ||
2972 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2973 | PyObject *resultobj; | |
2974 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2975 | wxColour *arg2 = 0 ; | |
2976 | wxColour temp2 ; | |
2977 | PyObject * obj0 = 0 ; | |
2978 | PyObject * obj1 = 0 ; | |
2979 | char *kwnames[] = { | |
2980 | (char *) "self",(char *) "colour", NULL | |
2981 | }; | |
2982 | ||
2983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2985 | { | |
2986 | arg2 = &temp2; | |
2987 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2988 | } | |
2989 | { | |
2990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2991 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2992 | ||
2993 | wxPyEndAllowThreads(__tstate); | |
2994 | if (PyErr_Occurred()) SWIG_fail; | |
2995 | } | |
2996 | Py_INCREF(Py_None); resultobj = Py_None; | |
2997 | return resultobj; | |
2998 | fail: | |
2999 | return NULL; | |
3000 | } | |
3001 | ||
3002 | ||
3003 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3004 | PyObject *resultobj; | |
3005 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3006 | wxRect *arg2 = 0 ; | |
3007 | SwigValueWrapper< wxBitmap > result; | |
3008 | wxRect temp2 ; | |
3009 | PyObject * obj0 = 0 ; | |
3010 | PyObject * obj1 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self",(char *) "rect", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3017 | { | |
3018 | arg2 = &temp2; | |
3019 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3020 | } | |
3021 | { | |
3022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3023 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3024 | ||
3025 | wxPyEndAllowThreads(__tstate); | |
3026 | if (PyErr_Occurred()) SWIG_fail; | |
3027 | } | |
3028 | { | |
3029 | wxBitmap * resultptr; | |
3030 | resultptr = new wxBitmap((wxBitmap &) result); | |
3031 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
3032 | } | |
3033 | return resultobj; | |
3034 | fail: | |
3035 | return NULL; | |
3036 | } | |
3037 | ||
3038 | ||
3039 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3040 | PyObject *resultobj; | |
3041 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3042 | wxString *arg2 = 0 ; | |
3043 | int arg3 ; | |
3044 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
3045 | bool result; | |
e811c8ce | 3046 | bool temp2 = False ; |
d14a1e28 RD |
3047 | PyObject * obj0 = 0 ; |
3048 | PyObject * obj1 = 0 ; | |
994141e6 | 3049 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3050 | PyObject * obj3 = 0 ; |
3051 | char *kwnames[] = { | |
3052 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3053 | }; | |
3054 | ||
994141e6 | 3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3057 | { | |
3058 | arg2 = wxString_in_helper(obj1); | |
3059 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3060 | temp2 = True; |
d14a1e28 | 3061 | } |
994141e6 RD |
3062 | { |
3063 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3064 | if (PyErr_Occurred()) SWIG_fail; | |
3065 | } | |
d14a1e28 RD |
3066 | if (obj3) { |
3067 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3068 | } | |
3069 | { | |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
4d5c3d91 | 3076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3077 | { |
3078 | if (temp2) | |
3079 | delete arg2; | |
3080 | } | |
3081 | return resultobj; | |
3082 | fail: | |
3083 | { | |
3084 | if (temp2) | |
3085 | delete arg2; | |
3086 | } | |
3087 | return NULL; | |
3088 | } | |
3089 | ||
3090 | ||
3091 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3092 | PyObject *resultobj; | |
3093 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3094 | wxString *arg2 = 0 ; | |
3095 | int arg3 ; | |
3096 | bool result; | |
e811c8ce | 3097 | bool temp2 = False ; |
d14a1e28 RD |
3098 | PyObject * obj0 = 0 ; |
3099 | PyObject * obj1 = 0 ; | |
994141e6 | 3100 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3101 | char *kwnames[] = { |
3102 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3103 | }; | |
3104 | ||
994141e6 | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3107 | { | |
3108 | arg2 = wxString_in_helper(obj1); | |
3109 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3110 | temp2 = True; |
d14a1e28 | 3111 | } |
994141e6 RD |
3112 | { |
3113 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3114 | if (PyErr_Occurred()) SWIG_fail; | |
3115 | } | |
d14a1e28 RD |
3116 | { |
3117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3118 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3119 | ||
3120 | wxPyEndAllowThreads(__tstate); | |
3121 | if (PyErr_Occurred()) SWIG_fail; | |
3122 | } | |
4d5c3d91 | 3123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3124 | { |
3125 | if (temp2) | |
3126 | delete arg2; | |
3127 | } | |
3128 | return resultobj; | |
3129 | fail: | |
3130 | { | |
3131 | if (temp2) | |
3132 | delete arg2; | |
3133 | } | |
3134 | return NULL; | |
3135 | } | |
3136 | ||
3137 | ||
3138 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject *resultobj; | |
3140 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3141 | wxIcon *arg2 = 0 ; | |
3142 | bool result; | |
3143 | PyObject * obj0 = 0 ; | |
3144 | PyObject * obj1 = 0 ; | |
3145 | char *kwnames[] = { | |
3146 | (char *) "self",(char *) "icon", NULL | |
3147 | }; | |
3148 | ||
3149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3151 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3152 | if (arg2 == NULL) { | |
3153 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3154 | } | |
3155 | { | |
3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3157 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3158 | ||
3159 | wxPyEndAllowThreads(__tstate); | |
3160 | if (PyErr_Occurred()) SWIG_fail; | |
3161 | } | |
4d5c3d91 | 3162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3163 | return resultobj; |
3164 | fail: | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3172 | int arg2 ; | |
3173 | PyObject * obj0 = 0 ; | |
994141e6 | 3174 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3175 | char *kwnames[] = { |
3176 | (char *) "self",(char *) "height", NULL | |
3177 | }; | |
3178 | ||
994141e6 | 3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3181 | { |
3182 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3183 | if (PyErr_Occurred()) SWIG_fail; | |
3184 | } | |
d14a1e28 RD |
3185 | { |
3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3187 | (arg1)->SetHeight(arg2); | |
3188 | ||
3189 | wxPyEndAllowThreads(__tstate); | |
3190 | if (PyErr_Occurred()) SWIG_fail; | |
3191 | } | |
3192 | Py_INCREF(Py_None); resultobj = Py_None; | |
3193 | return resultobj; | |
3194 | fail: | |
3195 | return NULL; | |
3196 | } | |
3197 | ||
3198 | ||
3199 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3200 | PyObject *resultobj; | |
3201 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3202 | int arg2 ; | |
3203 | PyObject * obj0 = 0 ; | |
994141e6 | 3204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3205 | char *kwnames[] = { |
3206 | (char *) "self",(char *) "width", NULL | |
3207 | }; | |
3208 | ||
994141e6 | 3209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3211 | { |
3212 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3213 | if (PyErr_Occurred()) SWIG_fail; | |
3214 | } | |
d14a1e28 RD |
3215 | { |
3216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3217 | (arg1)->SetWidth(arg2); | |
3218 | ||
3219 | wxPyEndAllowThreads(__tstate); | |
3220 | if (PyErr_Occurred()) SWIG_fail; | |
3221 | } | |
3222 | Py_INCREF(Py_None); resultobj = Py_None; | |
3223 | return resultobj; | |
3224 | fail: | |
3225 | return NULL; | |
3226 | } | |
3227 | ||
3228 | ||
3229 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject *resultobj; | |
3231 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3232 | int arg2 ; | |
3233 | PyObject * obj0 = 0 ; | |
994141e6 | 3234 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3235 | char *kwnames[] = { |
3236 | (char *) "self",(char *) "depth", NULL | |
3237 | }; | |
3238 | ||
994141e6 | 3239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3241 | { |
3242 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3243 | if (PyErr_Occurred()) SWIG_fail; | |
3244 | } | |
d14a1e28 RD |
3245 | { |
3246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3247 | (arg1)->SetDepth(arg2); | |
3248 | ||
3249 | wxPyEndAllowThreads(__tstate); | |
3250 | if (PyErr_Occurred()) SWIG_fail; | |
3251 | } | |
3252 | Py_INCREF(Py_None); resultobj = Py_None; | |
3253 | return resultobj; | |
3254 | fail: | |
3255 | return NULL; | |
3256 | } | |
3257 | ||
3258 | ||
3259 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3260 | PyObject *obj; | |
3261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3262 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3263 | Py_INCREF(obj); | |
3264 | return Py_BuildValue((char *)""); | |
3265 | } | |
3266 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3267 | PyObject *resultobj; | |
3268 | wxBitmap *arg1 = 0 ; | |
0482c494 RD |
3269 | wxColour const &arg2_defvalue = wxNullColour ; |
3270 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3271 | wxMask *result; |
3272 | wxColour temp2 ; | |
3273 | PyObject * obj0 = 0 ; | |
3274 | PyObject * obj1 = 0 ; | |
3275 | char *kwnames[] = { | |
3276 | (char *) "bitmap",(char *) "colour", NULL | |
3277 | }; | |
3278 | ||
0482c494 | 3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3281 | if (arg1 == NULL) { | |
3282 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3283 | } | |
0482c494 RD |
3284 | if (obj1) { |
3285 | { | |
3286 | arg2 = &temp2; | |
3287 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3288 | } | |
d14a1e28 RD |
3289 | } |
3290 | { | |
3291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0482c494 | 3292 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3293 | |
3294 | wxPyEndAllowThreads(__tstate); | |
3295 | if (PyErr_Occurred()) SWIG_fail; | |
3296 | } | |
3297 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3298 | return resultobj; | |
3299 | fail: | |
3300 | return NULL; | |
3301 | } | |
3302 | ||
3303 | ||
3304 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3305 | PyObject *obj; | |
3306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3307 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3308 | Py_INCREF(obj); | |
3309 | return Py_BuildValue((char *)""); | |
3310 | } | |
3311 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3312 | PyObject *resultobj; | |
3313 | wxString *arg1 = 0 ; | |
f87da722 | 3314 | int arg2 ; |
d14a1e28 RD |
3315 | int arg3 = (int) -1 ; |
3316 | int arg4 = (int) -1 ; | |
3317 | wxIcon *result; | |
e811c8ce | 3318 | bool temp1 = False ; |
d14a1e28 | 3319 | PyObject * obj0 = 0 ; |
994141e6 RD |
3320 | PyObject * obj1 = 0 ; |
3321 | PyObject * obj2 = 0 ; | |
3322 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3323 | char *kwnames[] = { |
f87da722 | 3324 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3325 | }; |
3326 | ||
994141e6 | 3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3328 | { |
3329 | arg1 = wxString_in_helper(obj0); | |
3330 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3331 | temp1 = True; |
d14a1e28 RD |
3332 | } |
3333 | { | |
994141e6 RD |
3334 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); |
3335 | if (PyErr_Occurred()) SWIG_fail; | |
3336 | } | |
3337 | if (obj2) { | |
3338 | { | |
3339 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3340 | if (PyErr_Occurred()) SWIG_fail; | |
3341 | } | |
3342 | } | |
3343 | if (obj3) { | |
3344 | { | |
3345 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3346 | if (PyErr_Occurred()) SWIG_fail; | |
3347 | } | |
3348 | } | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3352 | ||
3353 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
3354 | if (PyErr_Occurred()) SWIG_fail; |
3355 | } | |
3356 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3357 | { | |
3358 | if (temp1) | |
3359 | delete arg1; | |
3360 | } | |
3361 | return resultobj; | |
3362 | fail: | |
3363 | { | |
3364 | if (temp1) | |
3365 | delete arg1; | |
3366 | } | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
3371 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3372 | PyObject *resultobj; | |
3373 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3374 | PyObject * obj0 = 0 ; | |
3375 | char *kwnames[] = { | |
3376 | (char *) "self", NULL | |
3377 | }; | |
3378 | ||
3379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3381 | { | |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3383 | delete arg1; | |
3384 | ||
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
3388 | Py_INCREF(Py_None); resultobj = Py_None; | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | return NULL; | |
3392 | } | |
3393 | ||
3394 | ||
3395 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject *resultobj; | |
3397 | wxIcon *result; | |
3398 | char *kwnames[] = { | |
3399 | NULL | |
3400 | }; | |
3401 | ||
3402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3403 | { | |
3404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3405 | result = (wxIcon *)new wxIcon(); | |
3406 | ||
3407 | wxPyEndAllowThreads(__tstate); | |
3408 | if (PyErr_Occurred()) SWIG_fail; | |
3409 | } | |
3410 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3411 | return resultobj; | |
3412 | fail: | |
3413 | return NULL; | |
3414 | } | |
3415 | ||
3416 | ||
3417 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3418 | PyObject *resultobj; | |
3419 | wxIconLocation *arg1 = 0 ; | |
3420 | wxIcon *result; | |
3421 | PyObject * obj0 = 0 ; | |
3422 | char *kwnames[] = { | |
3423 | (char *) "loc", NULL | |
3424 | }; | |
3425 | ||
3426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3428 | if (arg1 == NULL) { | |
3429 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3430 | } | |
3431 | { | |
3432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3433 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3434 | ||
3435 | wxPyEndAllowThreads(__tstate); | |
3436 | if (PyErr_Occurred()) SWIG_fail; | |
3437 | } | |
3438 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3439 | return resultobj; | |
3440 | fail: | |
3441 | return NULL; | |
3442 | } | |
3443 | ||
3444 | ||
3445 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3446 | PyObject *resultobj; | |
3447 | wxBitmap *arg1 = 0 ; | |
3448 | wxIcon *result; | |
3449 | PyObject * obj0 = 0 ; | |
3450 | char *kwnames[] = { | |
3451 | (char *) "bmp", NULL | |
3452 | }; | |
3453 | ||
3454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3456 | if (arg1 == NULL) { | |
3457 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3458 | } | |
3459 | { | |
3460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3461 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3462 | ||
3463 | wxPyEndAllowThreads(__tstate); | |
3464 | if (PyErr_Occurred()) SWIG_fail; | |
3465 | } | |
3466 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3467 | return resultobj; | |
3468 | fail: | |
3469 | return NULL; | |
3470 | } | |
3471 | ||
3472 | ||
3473 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3474 | PyObject *resultobj; | |
3475 | PyObject *arg1 = (PyObject *) 0 ; | |
3476 | wxIcon *result; | |
3477 | PyObject * obj0 = 0 ; | |
3478 | char *kwnames[] = { | |
3479 | (char *) "listOfStrings", NULL | |
3480 | }; | |
3481 | ||
3482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3483 | arg1 = obj0; | |
3484 | { | |
3485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3486 | result = (wxIcon *)new_wxIcon(arg1); | |
3487 | ||
3488 | wxPyEndAllowThreads(__tstate); | |
3489 | if (PyErr_Occurred()) SWIG_fail; | |
3490 | } | |
3491 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3492 | return resultobj; | |
3493 | fail: | |
3494 | return NULL; | |
3495 | } | |
3496 | ||
3497 | ||
3498 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3499 | PyObject *resultobj; | |
3500 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3501 | wxString *arg2 = 0 ; | |
f87da722 | 3502 | int arg3 ; |
d14a1e28 | 3503 | bool result; |
e811c8ce | 3504 | bool temp2 = False ; |
d14a1e28 RD |
3505 | PyObject * obj0 = 0 ; |
3506 | PyObject * obj1 = 0 ; | |
994141e6 | 3507 | PyObject * obj2 = 0 ; |
d14a1e28 | 3508 | char *kwnames[] = { |
f87da722 | 3509 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3510 | }; |
3511 | ||
994141e6 | 3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3514 | { | |
3515 | arg2 = wxString_in_helper(obj1); | |
3516 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3517 | temp2 = True; |
d14a1e28 | 3518 | } |
994141e6 RD |
3519 | { |
3520 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3521 | if (PyErr_Occurred()) SWIG_fail; | |
3522 | } | |
d14a1e28 RD |
3523 | { |
3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3525 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3526 | |
3527 | wxPyEndAllowThreads(__tstate); | |
3528 | if (PyErr_Occurred()) SWIG_fail; | |
3529 | } | |
4d5c3d91 | 3530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3531 | { |
3532 | if (temp2) | |
3533 | delete arg2; | |
3534 | } | |
3535 | return resultobj; | |
3536 | fail: | |
3537 | { | |
3538 | if (temp2) | |
3539 | delete arg2; | |
3540 | } | |
3541 | return NULL; | |
3542 | } | |
3543 | ||
3544 | ||
3545 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3546 | PyObject *resultobj; | |
3547 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3548 | bool result; | |
3549 | PyObject * obj0 = 0 ; | |
3550 | char *kwnames[] = { | |
3551 | (char *) "self", NULL | |
3552 | }; | |
3553 | ||
3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3556 | { | |
3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3558 | result = (bool)(arg1)->Ok(); | |
3559 | ||
3560 | wxPyEndAllowThreads(__tstate); | |
3561 | if (PyErr_Occurred()) SWIG_fail; | |
3562 | } | |
4d5c3d91 | 3563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3564 | return resultobj; |
3565 | fail: | |
3566 | return NULL; | |
3567 | } | |
3568 | ||
3569 | ||
3570 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3571 | PyObject *resultobj; | |
3572 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3573 | int result; | |
3574 | PyObject * obj0 = 0 ; | |
3575 | char *kwnames[] = { | |
3576 | (char *) "self", NULL | |
3577 | }; | |
3578 | ||
3579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3581 | { | |
3582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3583 | result = (int)(arg1)->GetWidth(); | |
3584 | ||
3585 | wxPyEndAllowThreads(__tstate); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | } | |
994141e6 | 3588 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3589 | return resultobj; |
3590 | fail: | |
3591 | return NULL; | |
3592 | } | |
3593 | ||
3594 | ||
3595 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3596 | PyObject *resultobj; | |
3597 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3598 | int result; | |
3599 | PyObject * obj0 = 0 ; | |
3600 | char *kwnames[] = { | |
3601 | (char *) "self", NULL | |
3602 | }; | |
3603 | ||
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3606 | { | |
3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3608 | result = (int)(arg1)->GetHeight(); | |
3609 | ||
3610 | wxPyEndAllowThreads(__tstate); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
994141e6 | 3613 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3614 | return resultobj; |
3615 | fail: | |
3616 | return NULL; | |
3617 | } | |
3618 | ||
3619 | ||
3620 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3621 | PyObject *resultobj; | |
3622 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3623 | int result; | |
3624 | PyObject * obj0 = 0 ; | |
3625 | char *kwnames[] = { | |
3626 | (char *) "self", NULL | |
3627 | }; | |
3628 | ||
3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3631 | { | |
3632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3633 | result = (int)(arg1)->GetDepth(); | |
3634 | ||
3635 | wxPyEndAllowThreads(__tstate); | |
3636 | if (PyErr_Occurred()) SWIG_fail; | |
3637 | } | |
994141e6 | 3638 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3639 | return resultobj; |
3640 | fail: | |
3641 | return NULL; | |
3642 | } | |
3643 | ||
3644 | ||
3645 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3646 | PyObject *resultobj; | |
3647 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3648 | int arg2 ; | |
3649 | PyObject * obj0 = 0 ; | |
994141e6 | 3650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3651 | char *kwnames[] = { |
3652 | (char *) "self",(char *) "w", NULL | |
3653 | }; | |
3654 | ||
994141e6 | 3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3657 | { |
3658 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3659 | if (PyErr_Occurred()) SWIG_fail; | |
3660 | } | |
d14a1e28 RD |
3661 | { |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | (arg1)->SetWidth(arg2); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | Py_INCREF(Py_None); resultobj = Py_None; | |
3669 | return resultobj; | |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
3675 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3676 | PyObject *resultobj; | |
3677 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3678 | int arg2 ; | |
3679 | PyObject * obj0 = 0 ; | |
994141e6 | 3680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3681 | char *kwnames[] = { |
3682 | (char *) "self",(char *) "h", NULL | |
3683 | }; | |
3684 | ||
994141e6 | 3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3687 | { |
3688 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3689 | if (PyErr_Occurred()) SWIG_fail; | |
3690 | } | |
d14a1e28 RD |
3691 | { |
3692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3693 | (arg1)->SetHeight(arg2); | |
3694 | ||
3695 | wxPyEndAllowThreads(__tstate); | |
3696 | if (PyErr_Occurred()) SWIG_fail; | |
3697 | } | |
3698 | Py_INCREF(Py_None); resultobj = Py_None; | |
3699 | return resultobj; | |
3700 | fail: | |
3701 | return NULL; | |
3702 | } | |
3703 | ||
3704 | ||
3705 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3706 | PyObject *resultobj; | |
3707 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3708 | int arg2 ; | |
3709 | PyObject * obj0 = 0 ; | |
994141e6 | 3710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3711 | char *kwnames[] = { |
3712 | (char *) "self",(char *) "d", NULL | |
3713 | }; | |
3714 | ||
994141e6 | 3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3717 | { |
3718 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3719 | if (PyErr_Occurred()) SWIG_fail; | |
3720 | } | |
d14a1e28 RD |
3721 | { |
3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3723 | (arg1)->SetDepth(arg2); | |
3724 | ||
3725 | wxPyEndAllowThreads(__tstate); | |
3726 | if (PyErr_Occurred()) SWIG_fail; | |
3727 | } | |
3728 | Py_INCREF(Py_None); resultobj = Py_None; | |
3729 | return resultobj; | |
3730 | fail: | |
3731 | return NULL; | |
3732 | } | |
3733 | ||
3734 | ||
3735 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3736 | PyObject *resultobj; | |
3737 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3738 | wxBitmap *arg2 = 0 ; | |
3739 | PyObject * obj0 = 0 ; | |
3740 | PyObject * obj1 = 0 ; | |
3741 | char *kwnames[] = { | |
3742 | (char *) "self",(char *) "bmp", NULL | |
3743 | }; | |
3744 | ||
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3747 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3748 | if (arg2 == NULL) { | |
3749 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3750 | } | |
3751 | { | |
3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3753 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3754 | ||
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) SWIG_fail; | |
3757 | } | |
3758 | Py_INCREF(Py_None); resultobj = Py_None; | |
3759 | return resultobj; | |
3760 | fail: | |
3761 | return NULL; | |
3762 | } | |
3763 | ||
3764 | ||
3765 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3766 | PyObject *obj; | |
3767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3768 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3769 | Py_INCREF(obj); | |
3770 | return Py_BuildValue((char *)""); | |
3771 | } | |
3772 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3773 | PyObject *resultobj; | |
3774 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3775 | int arg2 = (int) 0 ; | |
3776 | wxIconLocation *result; | |
7eae615b | 3777 | bool temp1 = False ; |
d14a1e28 | 3778 | PyObject * obj0 = 0 ; |
994141e6 | 3779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3780 | char *kwnames[] = { |
3781 | (char *) "filename",(char *) "num", NULL | |
3782 | }; | |
3783 | ||
994141e6 | 3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3785 | if (obj0) { |
7eae615b RD |
3786 | { |
3787 | arg1 = wxString_in_helper(obj0); | |
3788 | if (arg1 == NULL) SWIG_fail; | |
3789 | temp1 = True; | |
3790 | } | |
d14a1e28 | 3791 | } |
994141e6 RD |
3792 | if (obj1) { |
3793 | { | |
3794 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
3797 | } | |
d14a1e28 RD |
3798 | { |
3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3800 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3801 | ||
3802 | wxPyEndAllowThreads(__tstate); | |
3803 | if (PyErr_Occurred()) SWIG_fail; | |
3804 | } | |
3805 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
7eae615b RD |
3806 | { |
3807 | if (temp1) | |
3808 | delete arg1; | |
3809 | } | |
d14a1e28 RD |
3810 | return resultobj; |
3811 | fail: | |
7eae615b RD |
3812 | { |
3813 | if (temp1) | |
3814 | delete arg1; | |
3815 | } | |
d14a1e28 RD |
3816 | return NULL; |
3817 | } | |
3818 | ||
3819 | ||
3820 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3821 | PyObject *resultobj; | |
3822 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3823 | PyObject * obj0 = 0 ; | |
3824 | char *kwnames[] = { | |
3825 | (char *) "self", NULL | |
3826 | }; | |
3827 | ||
3828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3830 | { | |
3831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3832 | delete arg1; | |
3833 | ||
3834 | wxPyEndAllowThreads(__tstate); | |
3835 | if (PyErr_Occurred()) SWIG_fail; | |
3836 | } | |
3837 | Py_INCREF(Py_None); resultobj = Py_None; | |
3838 | return resultobj; | |
3839 | fail: | |
3840 | return NULL; | |
3841 | } | |
3842 | ||
3843 | ||
3844 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3845 | PyObject *resultobj; | |
3846 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3847 | bool result; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "self", NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3855 | { | |
3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3857 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3858 | ||
3859 | wxPyEndAllowThreads(__tstate); | |
3860 | if (PyErr_Occurred()) SWIG_fail; | |
3861 | } | |
4d5c3d91 | 3862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3863 | return resultobj; |
3864 | fail: | |
3865 | return NULL; | |
3866 | } | |
3867 | ||
3868 | ||
3869 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3870 | PyObject *resultobj; | |
3871 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3872 | wxString *arg2 = 0 ; | |
e811c8ce | 3873 | bool temp2 = False ; |
d14a1e28 RD |
3874 | PyObject * obj0 = 0 ; |
3875 | PyObject * obj1 = 0 ; | |
3876 | char *kwnames[] = { | |
3877 | (char *) "self",(char *) "filename", NULL | |
3878 | }; | |
3879 | ||
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3882 | { | |
3883 | arg2 = wxString_in_helper(obj1); | |
3884 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3885 | temp2 = True; |
d14a1e28 RD |
3886 | } |
3887 | { | |
3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3889 | (arg1)->SetFileName((wxString const &)*arg2); | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | Py_INCREF(Py_None); resultobj = Py_None; | |
3895 | { | |
3896 | if (temp2) | |
3897 | delete arg2; | |
3898 | } | |
3899 | return resultobj; | |
3900 | fail: | |
3901 | { | |
3902 | if (temp2) | |
3903 | delete arg2; | |
3904 | } | |
3905 | return NULL; | |
3906 | } | |
3907 | ||
3908 | ||
3909 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject *resultobj; | |
3911 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3912 | wxString *result; | |
3913 | PyObject * obj0 = 0 ; | |
3914 | char *kwnames[] = { | |
3915 | (char *) "self", NULL | |
3916 | }; | |
3917 | ||
3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3920 | { | |
3921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3922 | { | |
3923 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3924 | result = (wxString *) &_result_ref; | |
3925 | } | |
3926 | ||
3927 | wxPyEndAllowThreads(__tstate); | |
3928 | if (PyErr_Occurred()) SWIG_fail; | |
3929 | } | |
cc6dd355 RD |
3930 | { |
3931 | #if wxUSE_UNICODE | |
3932 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3933 | #else | |
3934 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3935 | #endif | |
3936 | } | |
d14a1e28 RD |
3937 | return resultobj; |
3938 | fail: | |
3939 | return NULL; | |
3940 | } | |
3941 | ||
3942 | ||
3943 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3944 | PyObject *resultobj; | |
3945 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3946 | int arg2 ; | |
3947 | PyObject * obj0 = 0 ; | |
994141e6 | 3948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3949 | char *kwnames[] = { |
3950 | (char *) "self",(char *) "num", NULL | |
3951 | }; | |
3952 | ||
994141e6 | 3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3955 | { |
3956 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
d14a1e28 RD |
3959 | { |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3961 | wxIconLocation_SetIndex(arg1,arg2); | |
3962 | ||
3963 | wxPyEndAllowThreads(__tstate); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | } | |
3966 | Py_INCREF(Py_None); resultobj = Py_None; | |
3967 | return resultobj; | |
3968 | fail: | |
3969 | return NULL; | |
3970 | } | |
3971 | ||
3972 | ||
3973 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3974 | PyObject *resultobj; | |
3975 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3976 | int result; | |
3977 | PyObject * obj0 = 0 ; | |
3978 | char *kwnames[] = { | |
3979 | (char *) "self", NULL | |
3980 | }; | |
3981 | ||
3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3984 | { | |
3985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3986 | result = (int)wxIconLocation_GetIndex(arg1); | |
3987 | ||
3988 | wxPyEndAllowThreads(__tstate); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
994141e6 | 3991 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3992 | return resultobj; |
3993 | fail: | |
3994 | return NULL; | |
3995 | } | |
3996 | ||
3997 | ||
3998 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3999 | PyObject *obj; | |
4000 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4001 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4002 | Py_INCREF(obj); | |
4003 | return Py_BuildValue((char *)""); | |
4004 | } | |
4005 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject *resultobj; | |
4007 | wxIconBundle *result; | |
4008 | char *kwnames[] = { | |
4009 | NULL | |
4010 | }; | |
4011 | ||
4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4013 | { | |
4014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4015 | result = (wxIconBundle *)new wxIconBundle(); | |
4016 | ||
4017 | wxPyEndAllowThreads(__tstate); | |
4018 | if (PyErr_Occurred()) SWIG_fail; | |
4019 | } | |
4020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4021 | return resultobj; | |
4022 | fail: | |
4023 | return NULL; | |
4024 | } | |
4025 | ||
4026 | ||
4027 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4028 | PyObject *resultobj; | |
4029 | wxString *arg1 = 0 ; | |
4030 | long arg2 ; | |
4031 | wxIconBundle *result; | |
e811c8ce | 4032 | bool temp1 = False ; |
d14a1e28 | 4033 | PyObject * obj0 = 0 ; |
994141e6 | 4034 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4035 | char *kwnames[] = { |
4036 | (char *) "file",(char *) "type", NULL | |
4037 | }; | |
4038 | ||
994141e6 | 4039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4040 | { |
4041 | arg1 = wxString_in_helper(obj0); | |
4042 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4043 | temp1 = True; |
d14a1e28 | 4044 | } |
994141e6 RD |
4045 | { |
4046 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4047 | if (PyErr_Occurred()) SWIG_fail; | |
4048 | } | |
d14a1e28 RD |
4049 | { |
4050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4051 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4052 | ||
4053 | wxPyEndAllowThreads(__tstate); | |
4054 | if (PyErr_Occurred()) SWIG_fail; | |
4055 | } | |
4056 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4057 | { | |
4058 | if (temp1) | |
4059 | delete arg1; | |
4060 | } | |
4061 | return resultobj; | |
4062 | fail: | |
4063 | { | |
4064 | if (temp1) | |
4065 | delete arg1; | |
4066 | } | |
4067 | return NULL; | |
4068 | } | |
4069 | ||
4070 | ||
4071 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4072 | PyObject *resultobj; | |
4073 | wxIcon *arg1 = 0 ; | |
4074 | wxIconBundle *result; | |
4075 | PyObject * obj0 = 0 ; | |
4076 | char *kwnames[] = { | |
4077 | (char *) "icon", NULL | |
4078 | }; | |
4079 | ||
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4082 | if (arg1 == NULL) { | |
4083 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4084 | } | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4088 | ||
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
4093 | return resultobj; | |
4094 | fail: | |
4095 | return NULL; | |
4096 | } | |
4097 | ||
4098 | ||
4099 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4100 | PyObject *resultobj; | |
4101 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4102 | PyObject * obj0 = 0 ; | |
4103 | char *kwnames[] = { | |
4104 | (char *) "self", NULL | |
4105 | }; | |
4106 | ||
4107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | delete arg1; | |
4112 | ||
4113 | wxPyEndAllowThreads(__tstate); | |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
4115 | } | |
4116 | Py_INCREF(Py_None); resultobj = Py_None; | |
4117 | return resultobj; | |
4118 | fail: | |
4119 | return NULL; | |
4120 | } | |
4121 | ||
4122 | ||
4123 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4124 | PyObject *resultobj; | |
4125 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4126 | wxIcon *arg2 = 0 ; | |
4127 | PyObject * obj0 = 0 ; | |
4128 | PyObject * obj1 = 0 ; | |
4129 | char *kwnames[] = { | |
4130 | (char *) "self",(char *) "icon", NULL | |
4131 | }; | |
4132 | ||
4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4135 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4136 | if (arg2 == NULL) { | |
4137 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4138 | } | |
4139 | { | |
4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4141 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4142 | ||
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | Py_INCREF(Py_None); resultobj = Py_None; | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
4150 | } | |
4151 | ||
4152 | ||
4153 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4154 | PyObject *resultobj; | |
4155 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4156 | wxString *arg2 = 0 ; | |
4157 | long arg3 ; | |
e811c8ce | 4158 | bool temp2 = False ; |
d14a1e28 RD |
4159 | PyObject * obj0 = 0 ; |
4160 | PyObject * obj1 = 0 ; | |
994141e6 | 4161 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4162 | char *kwnames[] = { |
4163 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4164 | }; | |
4165 | ||
994141e6 | 4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4168 | { | |
4169 | arg2 = wxString_in_helper(obj1); | |
4170 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4171 | temp2 = True; |
d14a1e28 | 4172 | } |
994141e6 RD |
4173 | { |
4174 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
d14a1e28 RD |
4177 | { |
4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4179 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4180 | ||
4181 | wxPyEndAllowThreads(__tstate); | |
4182 | if (PyErr_Occurred()) SWIG_fail; | |
4183 | } | |
4184 | Py_INCREF(Py_None); resultobj = Py_None; | |
4185 | { | |
4186 | if (temp2) | |
4187 | delete arg2; | |
4188 | } | |
4189 | return resultobj; | |
4190 | fail: | |
4191 | { | |
4192 | if (temp2) | |
4193 | delete arg2; | |
4194 | } | |
4195 | return NULL; | |
4196 | } | |
4197 | ||
4198 | ||
4199 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject *resultobj; | |
4201 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4202 | wxSize *arg2 = 0 ; | |
4203 | wxIcon *result; | |
4204 | wxSize temp2 ; | |
4205 | PyObject * obj0 = 0 ; | |
4206 | PyObject * obj1 = 0 ; | |
4207 | char *kwnames[] = { | |
4208 | (char *) "self",(char *) "size", NULL | |
4209 | }; | |
4210 | ||
4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4213 | { | |
4214 | arg2 = &temp2; | |
4215 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4216 | } | |
4217 | { | |
4218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4219 | { | |
4220 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4221 | result = (wxIcon *) &_result_ref; | |
4222 | } | |
4223 | ||
4224 | wxPyEndAllowThreads(__tstate); | |
4225 | if (PyErr_Occurred()) SWIG_fail; | |
4226 | } | |
4227 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
4228 | return resultobj; | |
4229 | fail: | |
4230 | return NULL; | |
4231 | } | |
4232 | ||
4233 | ||
4234 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4235 | PyObject *obj; | |
4236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4237 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4238 | Py_INCREF(obj); | |
4239 | return Py_BuildValue((char *)""); | |
4240 | } | |
4241 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj; | |
4243 | wxString *arg1 = (wxString *) 0 ; | |
4244 | long arg2 ; | |
4245 | int arg3 = (int) 0 ; | |
4246 | int arg4 = (int) 0 ; | |
4247 | wxCursor *result; | |
7eae615b | 4248 | bool temp1 = False ; |
d14a1e28 | 4249 | PyObject * obj0 = 0 ; |
994141e6 RD |
4250 | PyObject * obj1 = 0 ; |
4251 | PyObject * obj2 = 0 ; | |
4252 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4253 | char *kwnames[] = { |
4254 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4255 | }; | |
4256 | ||
994141e6 | 4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4258 | { |
4259 | arg1 = wxString_in_helper(obj0); | |
4260 | if (arg1 == NULL) SWIG_fail; | |
4261 | temp1 = True; | |
4262 | } | |
994141e6 RD |
4263 | { |
4264 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
4267 | if (obj2) { | |
4268 | { | |
4269 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4270 | if (PyErr_Occurred()) SWIG_fail; | |
4271 | } | |
4272 | } | |
4273 | if (obj3) { | |
4274 | { | |
4275 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4276 | if (PyErr_Occurred()) SWIG_fail; | |
4277 | } | |
4278 | } | |
d14a1e28 RD |
4279 | { |
4280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4281 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4282 | ||
4283 | wxPyEndAllowThreads(__tstate); | |
4284 | if (PyErr_Occurred()) SWIG_fail; | |
4285 | } | |
4286 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
7eae615b RD |
4287 | { |
4288 | if (temp1) | |
4289 | delete arg1; | |
4290 | } | |
d14a1e28 RD |
4291 | return resultobj; |
4292 | fail: | |
7eae615b RD |
4293 | { |
4294 | if (temp1) | |
4295 | delete arg1; | |
4296 | } | |
d14a1e28 RD |
4297 | return NULL; |
4298 | } | |
4299 | ||
4300 | ||
4301 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4302 | PyObject *resultobj; | |
4303 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4304 | PyObject * obj0 = 0 ; | |
4305 | char *kwnames[] = { | |
4306 | (char *) "self", NULL | |
4307 | }; | |
4308 | ||
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4311 | { | |
4312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4313 | delete arg1; | |
4314 | ||
4315 | wxPyEndAllowThreads(__tstate); | |
4316 | if (PyErr_Occurred()) SWIG_fail; | |
4317 | } | |
4318 | Py_INCREF(Py_None); resultobj = Py_None; | |
4319 | return resultobj; | |
4320 | fail: | |
4321 | return NULL; | |
4322 | } | |
4323 | ||
4324 | ||
4325 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4326 | PyObject *resultobj; | |
4327 | int arg1 ; | |
4328 | wxCursor *result; | |
994141e6 | 4329 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4330 | char *kwnames[] = { |
4331 | (char *) "id", NULL | |
4332 | }; | |
4333 | ||
994141e6 RD |
4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
4335 | { | |
4336 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4337 | if (PyErr_Occurred()) SWIG_fail; | |
4338 | } | |
d14a1e28 RD |
4339 | { |
4340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4341 | result = (wxCursor *)new wxCursor(arg1); | |
4342 | ||
4343 | wxPyEndAllowThreads(__tstate); | |
4344 | if (PyErr_Occurred()) SWIG_fail; | |
4345 | } | |
4346 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4347 | return resultobj; | |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject *resultobj; | |
4355 | wxImage *arg1 = 0 ; | |
4356 | wxCursor *result; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "image", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4364 | if (arg1 == NULL) { | |
4365 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4366 | } | |
4367 | { | |
4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4369 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4370 | ||
4371 | wxPyEndAllowThreads(__tstate); | |
4372 | if (PyErr_Occurred()) SWIG_fail; | |
4373 | } | |
4374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4375 | return resultobj; | |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
4381 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject *resultobj; | |
4383 | PyObject *arg1 = (PyObject *) 0 ; | |
4384 | int arg2 ; | |
4385 | int arg3 ; | |
4386 | int arg4 = (int) -1 ; | |
4387 | int arg5 = (int) -1 ; | |
4388 | PyObject *arg6 = (PyObject *) 0 ; | |
4389 | wxCursor *result; | |
4390 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4391 | PyObject * obj1 = 0 ; |
4392 | PyObject * obj2 = 0 ; | |
4393 | PyObject * obj3 = 0 ; | |
4394 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4395 | PyObject * obj5 = 0 ; |
4396 | char *kwnames[] = { | |
4397 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4398 | }; | |
4399 | ||
994141e6 | 4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4401 | arg1 = obj0; |
994141e6 RD |
4402 | { |
4403 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4404 | if (PyErr_Occurred()) SWIG_fail; | |
4405 | } | |
4406 | { | |
4407 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4408 | if (PyErr_Occurred()) SWIG_fail; | |
4409 | } | |
4410 | if (obj3) { | |
4411 | { | |
4412 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4413 | if (PyErr_Occurred()) SWIG_fail; | |
4414 | } | |
4415 | } | |
4416 | if (obj4) { | |
4417 | { | |
4418 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4419 | if (PyErr_Occurred()) SWIG_fail; | |
4420 | } | |
4421 | } | |
d14a1e28 RD |
4422 | if (obj5) { |
4423 | arg6 = obj5; | |
4424 | } | |
4425 | { | |
4426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4427 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4428 | ||
4429 | wxPyEndAllowThreads(__tstate); | |
4430 | if (PyErr_Occurred()) SWIG_fail; | |
4431 | } | |
4432 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4433 | return resultobj; | |
4434 | fail: | |
4435 | return NULL; | |
4436 | } | |
4437 | ||
4438 | ||
4439 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4440 | PyObject *resultobj; | |
4441 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4442 | bool result; | |
4443 | PyObject * obj0 = 0 ; | |
4444 | char *kwnames[] = { | |
4445 | (char *) "self", NULL | |
4446 | }; | |
4447 | ||
4448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4450 | { | |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | result = (bool)(arg1)->Ok(); | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4d5c3d91 | 4457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4458 | return resultobj; |
4459 | fail: | |
4460 | return NULL; | |
4461 | } | |
4462 | ||
4463 | ||
4464 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4465 | PyObject *obj; | |
4466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4467 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4468 | Py_INCREF(obj); | |
4469 | return Py_BuildValue((char *)""); | |
4470 | } | |
4471 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4472 | PyObject *resultobj; | |
e811c8ce RD |
4473 | int arg1 = (int) 0 ; |
4474 | int arg2 = (int) 0 ; | |
4475 | int arg3 = (int) 0 ; | |
4476 | int arg4 = (int) 0 ; | |
d14a1e28 | 4477 | wxRegion *result; |
994141e6 RD |
4478 | PyObject * obj0 = 0 ; |
4479 | PyObject * obj1 = 0 ; | |
4480 | PyObject * obj2 = 0 ; | |
4481 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4482 | char *kwnames[] = { |
4483 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4484 | }; | |
4485 | ||
994141e6 RD |
4486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4487 | if (obj0) { | |
4488 | { | |
4489 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | } | |
4493 | if (obj1) { | |
4494 | { | |
4495 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4496 | if (PyErr_Occurred()) SWIG_fail; | |
4497 | } | |
4498 | } | |
4499 | if (obj2) { | |
4500 | { | |
4501 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4502 | if (PyErr_Occurred()) SWIG_fail; | |
4503 | } | |
4504 | } | |
4505 | if (obj3) { | |
4506 | { | |
4507 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4508 | if (PyErr_Occurred()) SWIG_fail; | |
4509 | } | |
4510 | } | |
d14a1e28 RD |
4511 | { |
4512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4513 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4514 | ||
4515 | wxPyEndAllowThreads(__tstate); | |
4516 | if (PyErr_Occurred()) SWIG_fail; | |
4517 | } | |
4518 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4519 | return resultobj; | |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
4525 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxBitmap *arg1 = 0 ; | |
4528 | wxColour const &arg2_defvalue = wxNullColour ; | |
4529 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4530 | int arg3 = (int) 0 ; | |
4531 | wxRegion *result; | |
4532 | wxColour temp2 ; | |
4533 | PyObject * obj0 = 0 ; | |
4534 | PyObject * obj1 = 0 ; | |
994141e6 | 4535 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4536 | char *kwnames[] = { |
4537 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4538 | }; | |
4539 | ||
994141e6 | 4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4542 | if (arg1 == NULL) { | |
4543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4544 | } | |
4545 | if (obj1) { | |
4546 | { | |
4547 | arg2 = &temp2; | |
4548 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4549 | } | |
4550 | } | |
994141e6 RD |
4551 | if (obj2) { |
4552 | { | |
4553 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4554 | if (PyErr_Occurred()) SWIG_fail; | |
4555 | } | |
4556 | } | |
d14a1e28 RD |
4557 | { |
4558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4559 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4560 | ||
4561 | wxPyEndAllowThreads(__tstate); | |
4562 | if (PyErr_Occurred()) SWIG_fail; | |
4563 | } | |
4564 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4565 | return resultobj; | |
4566 | fail: | |
4567 | return NULL; | |
4568 | } | |
4569 | ||
4570 | ||
4571 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4572 | PyObject *resultobj; | |
4573 | int arg1 ; | |
4574 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4575 | int arg3 = (int) wxWINDING_RULE ; | |
4576 | wxRegion *result; | |
4577 | PyObject * obj0 = 0 ; | |
994141e6 | 4578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4579 | char *kwnames[] = { |
4580 | (char *) "points",(char *) "fillStyle", NULL | |
4581 | }; | |
4582 | ||
994141e6 | 4583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4584 | { |
4585 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4586 | if (arg2 == NULL) SWIG_fail; | |
4587 | } | |
994141e6 RD |
4588 | if (obj1) { |
4589 | { | |
4590 | arg3 = (int) SWIG_PyObj_AsInt(obj1); | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4593 | } | |
d14a1e28 RD |
4594 | { |
4595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4596 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4597 | ||
4598 | wxPyEndAllowThreads(__tstate); | |
4599 | if (PyErr_Occurred()) SWIG_fail; | |
4600 | } | |
4601 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4602 | { | |
4603 | if (arg2) delete [] arg2; | |
4604 | } | |
4605 | return resultobj; | |
4606 | fail: | |
4607 | { | |
4608 | if (arg2) delete [] arg2; | |
4609 | } | |
4610 | return NULL; | |
4611 | } | |
4612 | ||
4613 | ||
4614 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4615 | PyObject *resultobj; | |
4616 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4617 | PyObject * obj0 = 0 ; | |
4618 | char *kwnames[] = { | |
4619 | (char *) "self", NULL | |
4620 | }; | |
4621 | ||
4622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4624 | { | |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | delete arg1; | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
4631 | Py_INCREF(Py_None); resultobj = Py_None; | |
4632 | return resultobj; | |
4633 | fail: | |
4634 | return NULL; | |
4635 | } | |
4636 | ||
4637 | ||
4638 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject *resultobj; | |
4640 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4641 | PyObject * obj0 = 0 ; | |
4642 | char *kwnames[] = { | |
4643 | (char *) "self", NULL | |
4644 | }; | |
4645 | ||
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4648 | { | |
4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4650 | (arg1)->Clear(); | |
4651 | ||
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | Py_INCREF(Py_None); resultobj = Py_None; | |
4656 | return resultobj; | |
4657 | fail: | |
4658 | return NULL; | |
4659 | } | |
4660 | ||
4661 | ||
4662 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4663 | PyObject *resultobj; | |
4664 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4665 | int arg2 ; |
4666 | int arg3 ; | |
d14a1e28 RD |
4667 | bool result; |
4668 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4669 | PyObject * obj1 = 0 ; |
4670 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4671 | char *kwnames[] = { |
4672 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4673 | }; | |
4674 | ||
994141e6 | 4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4677 | { |
4678 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
4681 | { | |
4682 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4683 | if (PyErr_Occurred()) SWIG_fail; | |
4684 | } | |
d14a1e28 RD |
4685 | { |
4686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4687 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4688 | ||
4689 | wxPyEndAllowThreads(__tstate); | |
4690 | if (PyErr_Occurred()) SWIG_fail; | |
4691 | } | |
4d5c3d91 | 4692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4693 | return resultobj; |
4694 | fail: | |
4695 | return NULL; | |
4696 | } | |
4697 | ||
4698 | ||
4699 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4700 | PyObject *resultobj; | |
4701 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4702 | int arg2 ; |
4703 | int arg3 ; | |
d14a1e28 RD |
4704 | int result; |
4705 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4706 | PyObject * obj1 = 0 ; |
4707 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4708 | char *kwnames[] = { |
4709 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4710 | }; | |
4711 | ||
994141e6 | 4712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4714 | { |
4715 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
4717 | } | |
4718 | { | |
4719 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
d14a1e28 RD |
4722 | { |
4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4724 | result = (int)(arg1)->Contains(arg2,arg3); | |
4725 | ||
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
994141e6 | 4729 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4730 | return resultobj; |
4731 | fail: | |
4732 | return NULL; | |
4733 | } | |
4734 | ||
4735 | ||
4736 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4737 | PyObject *resultobj; | |
4738 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4739 | wxPoint *arg2 = 0 ; | |
4740 | int result; | |
4741 | wxPoint temp2 ; | |
4742 | PyObject * obj0 = 0 ; | |
4743 | PyObject * obj1 = 0 ; | |
4744 | char *kwnames[] = { | |
4745 | (char *) "self",(char *) "pt", NULL | |
4746 | }; | |
4747 | ||
4748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4750 | { | |
4751 | arg2 = &temp2; | |
4752 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4753 | } | |
4754 | { | |
4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4756 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4757 | ||
4758 | wxPyEndAllowThreads(__tstate); | |
4759 | if (PyErr_Occurred()) SWIG_fail; | |
4760 | } | |
994141e6 | 4761 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4762 | return resultobj; |
4763 | fail: | |
4764 | return NULL; | |
4765 | } | |
4766 | ||
4767 | ||
4768 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4769 | PyObject *resultobj; | |
4770 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4771 | wxRect *arg2 = 0 ; | |
4772 | int result; | |
4773 | wxRect temp2 ; | |
4774 | PyObject * obj0 = 0 ; | |
4775 | PyObject * obj1 = 0 ; | |
4776 | char *kwnames[] = { | |
4777 | (char *) "self",(char *) "rect", NULL | |
4778 | }; | |
4779 | ||
4780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4782 | { | |
4783 | arg2 = &temp2; | |
4784 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4785 | } | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
994141e6 | 4793 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4794 | return resultobj; |
4795 | fail: | |
4796 | return NULL; | |
4797 | } | |
4798 | ||
4799 | ||
4800 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject *resultobj; | |
4802 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4803 | int arg2 ; |
4804 | int arg3 ; | |
4805 | int arg4 ; | |
4806 | int arg5 ; | |
d14a1e28 RD |
4807 | int result; |
4808 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4809 | PyObject * obj1 = 0 ; |
4810 | PyObject * obj2 = 0 ; | |
4811 | PyObject * obj3 = 0 ; | |
4812 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4813 | char *kwnames[] = { |
4814 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4815 | }; | |
4816 | ||
994141e6 | 4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4819 | { |
4820 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | } | |
4823 | { | |
4824 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4825 | if (PyErr_Occurred()) SWIG_fail; | |
4826 | } | |
4827 | { | |
4828 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
4831 | { | |
4832 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
4834 | } | |
d14a1e28 RD |
4835 | { |
4836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4837 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4838 | ||
4839 | wxPyEndAllowThreads(__tstate); | |
4840 | if (PyErr_Occurred()) SWIG_fail; | |
4841 | } | |
994141e6 | 4842 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4843 | return resultobj; |
4844 | fail: | |
4845 | return NULL; | |
4846 | } | |
4847 | ||
4848 | ||
4849 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4850 | PyObject *resultobj; | |
4851 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4852 | wxRect result; | |
4853 | PyObject * obj0 = 0 ; | |
4854 | char *kwnames[] = { | |
4855 | (char *) "self", NULL | |
4856 | }; | |
4857 | ||
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4860 | { | |
4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4862 | result = (arg1)->GetBox(); | |
4863 | ||
4864 | wxPyEndAllowThreads(__tstate); | |
4865 | if (PyErr_Occurred()) SWIG_fail; | |
4866 | } | |
4867 | { | |
4868 | wxRect * resultptr; | |
4869 | resultptr = new wxRect((wxRect &) result); | |
4870 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4871 | } | |
4872 | return resultobj; | |
4873 | fail: | |
4874 | return NULL; | |
4875 | } | |
4876 | ||
4877 | ||
4878 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4879 | PyObject *resultobj; | |
4880 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4881 | int arg2 ; |
4882 | int arg3 ; | |
4883 | int arg4 ; | |
4884 | int arg5 ; | |
d14a1e28 RD |
4885 | bool result; |
4886 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4887 | PyObject * obj1 = 0 ; |
4888 | PyObject * obj2 = 0 ; | |
4889 | PyObject * obj3 = 0 ; | |
4890 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4891 | char *kwnames[] = { |
4892 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4893 | }; | |
4894 | ||
994141e6 | 4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4897 | { |
4898 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4899 | if (PyErr_Occurred()) SWIG_fail; | |
4900 | } | |
4901 | { | |
4902 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4903 | if (PyErr_Occurred()) SWIG_fail; | |
4904 | } | |
4905 | { | |
4906 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | { | |
4910 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | } | |
d14a1e28 RD |
4913 | { |
4914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4915 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4916 | ||
4917 | wxPyEndAllowThreads(__tstate); | |
4918 | if (PyErr_Occurred()) SWIG_fail; | |
4919 | } | |
4d5c3d91 | 4920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4921 | return resultobj; |
4922 | fail: | |
4923 | return NULL; | |
4924 | } | |
4925 | ||
4926 | ||
4927 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4928 | PyObject *resultobj; | |
4929 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4930 | wxRect *arg2 = 0 ; | |
4931 | bool result; | |
4932 | wxRect temp2 ; | |
4933 | PyObject * obj0 = 0 ; | |
4934 | PyObject * obj1 = 0 ; | |
4935 | char *kwnames[] = { | |
4936 | (char *) "self",(char *) "rect", NULL | |
4937 | }; | |
4938 | ||
4939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4941 | { | |
4942 | arg2 = &temp2; | |
4943 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4944 | } | |
4945 | { | |
4946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4947 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4948 | ||
4949 | wxPyEndAllowThreads(__tstate); | |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
4951 | } | |
4d5c3d91 | 4952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4953 | return resultobj; |
4954 | fail: | |
4955 | return NULL; | |
4956 | } | |
4957 | ||
4958 | ||
4959 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4960 | PyObject *resultobj; | |
4961 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4962 | wxRegion *arg2 = 0 ; | |
4963 | bool result; | |
4964 | PyObject * obj0 = 0 ; | |
4965 | PyObject * obj1 = 0 ; | |
4966 | char *kwnames[] = { | |
4967 | (char *) "self",(char *) "region", NULL | |
4968 | }; | |
4969 | ||
4970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4972 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4973 | if (arg2 == NULL) { | |
4974 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4975 | } | |
4976 | { | |
4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4978 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4979 | ||
4980 | wxPyEndAllowThreads(__tstate); | |
4981 | if (PyErr_Occurred()) SWIG_fail; | |
4982 | } | |
4d5c3d91 | 4983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4984 | return resultobj; |
4985 | fail: | |
4986 | return NULL; | |
4987 | } | |
4988 | ||
4989 | ||
4990 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4991 | PyObject *resultobj; | |
4992 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4993 | bool result; | |
4994 | PyObject * obj0 = 0 ; | |
4995 | char *kwnames[] = { | |
4996 | (char *) "self", NULL | |
4997 | }; | |
4998 | ||
4999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5001 | { | |
5002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5003 | result = (bool)(arg1)->IsEmpty(); | |
5004 | ||
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
4d5c3d91 | 5008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5009 | return resultobj; |
5010 | fail: | |
5011 | return NULL; | |
5012 | } | |
5013 | ||
5014 | ||
5015 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject *resultobj; | |
5017 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5018 | int arg2 ; |
5019 | int arg3 ; | |
5020 | int arg4 ; | |
5021 | int arg5 ; | |
d14a1e28 RD |
5022 | bool result; |
5023 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5024 | PyObject * obj1 = 0 ; |
5025 | PyObject * obj2 = 0 ; | |
5026 | PyObject * obj3 = 0 ; | |
5027 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5028 | char *kwnames[] = { |
5029 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5030 | }; | |
5031 | ||
994141e6 | 5032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5034 | { |
5035 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
5038 | { | |
5039 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | { | |
5043 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5044 | if (PyErr_Occurred()) SWIG_fail; | |
5045 | } | |
5046 | { | |
5047 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5048 | if (PyErr_Occurred()) SWIG_fail; | |
5049 | } | |
d14a1e28 RD |
5050 | { |
5051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5052 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5053 | ||
5054 | wxPyEndAllowThreads(__tstate); | |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | } | |
4d5c3d91 | 5057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5058 | return resultobj; |
5059 | fail: | |
5060 | return NULL; | |
5061 | } | |
5062 | ||
5063 | ||
5064 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5065 | PyObject *resultobj; | |
5066 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5067 | wxRect *arg2 = 0 ; | |
5068 | bool result; | |
5069 | wxRect temp2 ; | |
5070 | PyObject * obj0 = 0 ; | |
5071 | PyObject * obj1 = 0 ; | |
5072 | char *kwnames[] = { | |
5073 | (char *) "self",(char *) "rect", NULL | |
5074 | }; | |
5075 | ||
5076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5078 | { | |
5079 | arg2 = &temp2; | |
5080 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5081 | } | |
5082 | { | |
5083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5084 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5085 | ||
5086 | wxPyEndAllowThreads(__tstate); | |
5087 | if (PyErr_Occurred()) SWIG_fail; | |
5088 | } | |
4d5c3d91 | 5089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5090 | return resultobj; |
5091 | fail: | |
5092 | return NULL; | |
5093 | } | |
5094 | ||
5095 | ||
5096 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5097 | PyObject *resultobj; | |
5098 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5099 | wxRegion *arg2 = 0 ; | |
5100 | bool result; | |
5101 | PyObject * obj0 = 0 ; | |
5102 | PyObject * obj1 = 0 ; | |
5103 | char *kwnames[] = { | |
5104 | (char *) "self",(char *) "region", NULL | |
5105 | }; | |
5106 | ||
5107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5109 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5110 | if (arg2 == NULL) { | |
5111 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5112 | } | |
5113 | { | |
5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5115 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5116 | ||
5117 | wxPyEndAllowThreads(__tstate); | |
5118 | if (PyErr_Occurred()) SWIG_fail; | |
5119 | } | |
4d5c3d91 | 5120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5121 | return resultobj; |
5122 | fail: | |
5123 | return NULL; | |
5124 | } | |
5125 | ||
5126 | ||
5127 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5128 | PyObject *resultobj; | |
5129 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5130 | int arg2 ; |
5131 | int arg3 ; | |
5132 | int arg4 ; | |
5133 | int arg5 ; | |
d14a1e28 RD |
5134 | bool result; |
5135 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5136 | PyObject * obj1 = 0 ; |
5137 | PyObject * obj2 = 0 ; | |
5138 | PyObject * obj3 = 0 ; | |
5139 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5140 | char *kwnames[] = { |
5141 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5142 | }; | |
5143 | ||
994141e6 | 5144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5146 | { |
5147 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5148 | if (PyErr_Occurred()) SWIG_fail; | |
5149 | } | |
5150 | { | |
5151 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
5154 | { | |
5155 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5156 | if (PyErr_Occurred()) SWIG_fail; | |
5157 | } | |
5158 | { | |
5159 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | } | |
d14a1e28 RD |
5162 | { |
5163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5164 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5165 | ||
5166 | wxPyEndAllowThreads(__tstate); | |
5167 | if (PyErr_Occurred()) SWIG_fail; | |
5168 | } | |
4d5c3d91 | 5169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5170 | return resultobj; |
5171 | fail: | |
5172 | return NULL; | |
5173 | } | |
5174 | ||
5175 | ||
5176 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5177 | PyObject *resultobj; | |
5178 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5179 | wxRect *arg2 = 0 ; | |
5180 | bool result; | |
5181 | wxRect temp2 ; | |
5182 | PyObject * obj0 = 0 ; | |
5183 | PyObject * obj1 = 0 ; | |
5184 | char *kwnames[] = { | |
5185 | (char *) "self",(char *) "rect", NULL | |
5186 | }; | |
5187 | ||
5188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5190 | { | |
5191 | arg2 = &temp2; | |
5192 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5193 | } | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
4d5c3d91 | 5201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5202 | return resultobj; |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
5208 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5209 | PyObject *resultobj; | |
5210 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5211 | wxRegion *arg2 = 0 ; | |
5212 | bool result; | |
5213 | PyObject * obj0 = 0 ; | |
5214 | PyObject * obj1 = 0 ; | |
5215 | char *kwnames[] = { | |
5216 | (char *) "self",(char *) "region", NULL | |
5217 | }; | |
5218 | ||
5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5221 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5222 | if (arg2 == NULL) { | |
5223 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5224 | } | |
5225 | { | |
5226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5227 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5228 | ||
5229 | wxPyEndAllowThreads(__tstate); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
4d5c3d91 | 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_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5240 | PyObject *resultobj; | |
5241 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5242 | int arg2 ; |
5243 | int arg3 ; | |
5244 | int arg4 ; | |
5245 | int arg5 ; | |
d14a1e28 RD |
5246 | bool result; |
5247 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5248 | PyObject * obj1 = 0 ; |
5249 | PyObject * obj2 = 0 ; | |
5250 | PyObject * obj3 = 0 ; | |
5251 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5252 | char *kwnames[] = { |
5253 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5254 | }; | |
5255 | ||
994141e6 | 5256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5258 | { |
5259 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5260 | if (PyErr_Occurred()) SWIG_fail; | |
5261 | } | |
5262 | { | |
5263 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5264 | if (PyErr_Occurred()) SWIG_fail; | |
5265 | } | |
5266 | { | |
5267 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
5270 | { | |
5271 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
d14a1e28 RD |
5274 | { |
5275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5276 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5277 | ||
5278 | wxPyEndAllowThreads(__tstate); | |
5279 | if (PyErr_Occurred()) SWIG_fail; | |
5280 | } | |
4d5c3d91 | 5281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5282 | return resultobj; |
5283 | fail: | |
5284 | return NULL; | |
5285 | } | |
5286 | ||
5287 | ||
5288 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject *resultobj; | |
5290 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5291 | wxRect *arg2 = 0 ; | |
5292 | bool result; | |
5293 | wxRect temp2 ; | |
5294 | PyObject * obj0 = 0 ; | |
5295 | PyObject * obj1 = 0 ; | |
5296 | char *kwnames[] = { | |
5297 | (char *) "self",(char *) "rect", NULL | |
5298 | }; | |
5299 | ||
5300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5302 | { | |
5303 | arg2 = &temp2; | |
5304 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5305 | } | |
5306 | { | |
5307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5308 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5309 | ||
5310 | wxPyEndAllowThreads(__tstate); | |
5311 | if (PyErr_Occurred()) SWIG_fail; | |
5312 | } | |
4d5c3d91 | 5313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5314 | return resultobj; |
5315 | fail: | |
5316 | return NULL; | |
5317 | } | |
5318 | ||
5319 | ||
5320 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5321 | PyObject *resultobj; | |
5322 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5323 | wxRegion *arg2 = 0 ; | |
5324 | bool result; | |
5325 | PyObject * obj0 = 0 ; | |
5326 | PyObject * obj1 = 0 ; | |
5327 | char *kwnames[] = { | |
5328 | (char *) "self",(char *) "region", NULL | |
5329 | }; | |
5330 | ||
5331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5333 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5334 | if (arg2 == NULL) { | |
5335 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5336 | } | |
5337 | { | |
5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5339 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5340 | ||
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
4d5c3d91 | 5344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5345 | return resultobj; |
5346 | fail: | |
5347 | return NULL; | |
5348 | } | |
5349 | ||
5350 | ||
5351 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5352 | PyObject *resultobj; | |
5353 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5354 | SwigValueWrapper< wxBitmap > result; | |
5355 | PyObject * obj0 = 0 ; | |
5356 | char *kwnames[] = { | |
5357 | (char *) "self", NULL | |
5358 | }; | |
5359 | ||
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5362 | { | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | result = (arg1)->ConvertToBitmap(); | |
5365 | ||
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | { | |
5370 | wxBitmap * resultptr; | |
5371 | resultptr = new wxBitmap((wxBitmap &) result); | |
5372 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5373 | } | |
5374 | return resultobj; | |
5375 | fail: | |
5376 | return NULL; | |
5377 | } | |
5378 | ||
5379 | ||
5380 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5381 | PyObject *resultobj; | |
5382 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5383 | wxBitmap *arg2 = 0 ; | |
5384 | wxColour const &arg3_defvalue = wxNullColour ; | |
5385 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5386 | int arg4 = (int) 0 ; | |
5387 | bool result; | |
5388 | wxColour temp3 ; | |
5389 | PyObject * obj0 = 0 ; | |
5390 | PyObject * obj1 = 0 ; | |
5391 | PyObject * obj2 = 0 ; | |
994141e6 | 5392 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5393 | char *kwnames[] = { |
5394 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5395 | }; | |
5396 | ||
994141e6 | 5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5399 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5400 | if (arg2 == NULL) { | |
5401 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5402 | } | |
5403 | if (obj2) { | |
5404 | { | |
5405 | arg3 = &temp3; | |
5406 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5407 | } | |
5408 | } | |
994141e6 RD |
5409 | if (obj3) { |
5410 | { | |
5411 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5412 | if (PyErr_Occurred()) SWIG_fail; | |
5413 | } | |
5414 | } | |
d14a1e28 RD |
5415 | { |
5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5417 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5418 | ||
5419 | wxPyEndAllowThreads(__tstate); | |
5420 | if (PyErr_Occurred()) SWIG_fail; | |
5421 | } | |
4d5c3d91 | 5422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5423 | return resultobj; |
5424 | fail: | |
5425 | return NULL; | |
5426 | } | |
5427 | ||
5428 | ||
5429 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5430 | PyObject *obj; | |
5431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5432 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5433 | Py_INCREF(obj); | |
5434 | return Py_BuildValue((char *)""); | |
5435 | } | |
5436 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxRegion *arg1 = 0 ; | |
5439 | wxRegionIterator *result; | |
5440 | PyObject * obj0 = 0 ; | |
5441 | char *kwnames[] = { | |
5442 | (char *) "region", NULL | |
5443 | }; | |
5444 | ||
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5447 | if (arg1 == NULL) { | |
5448 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5449 | } | |
5450 | { | |
5451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5452 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5453 | ||
5454 | wxPyEndAllowThreads(__tstate); | |
5455 | if (PyErr_Occurred()) SWIG_fail; | |
5456 | } | |
5457 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5458 | return resultobj; | |
5459 | fail: | |
5460 | return NULL; | |
5461 | } | |
5462 | ||
5463 | ||
5464 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5465 | PyObject *resultobj; | |
5466 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5467 | PyObject * obj0 = 0 ; | |
5468 | char *kwnames[] = { | |
5469 | (char *) "self", NULL | |
5470 | }; | |
5471 | ||
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5474 | { | |
5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5476 | delete arg1; | |
5477 | ||
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | Py_INCREF(Py_None); resultobj = Py_None; | |
5482 | return resultobj; | |
5483 | fail: | |
5484 | return NULL; | |
5485 | } | |
5486 | ||
5487 | ||
5488 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5489 | PyObject *resultobj; | |
5490 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5491 | int result; |
d14a1e28 RD |
5492 | PyObject * obj0 = 0 ; |
5493 | char *kwnames[] = { | |
5494 | (char *) "self", NULL | |
5495 | }; | |
5496 | ||
5497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5499 | { | |
5500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5501 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5502 | |
5503 | wxPyEndAllowThreads(__tstate); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | } | |
994141e6 | 5506 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5507 | return resultobj; |
5508 | fail: | |
5509 | return NULL; | |
5510 | } | |
5511 | ||
5512 | ||
5513 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5514 | PyObject *resultobj; | |
5515 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5516 | int result; |
d14a1e28 RD |
5517 | PyObject * obj0 = 0 ; |
5518 | char *kwnames[] = { | |
5519 | (char *) "self", NULL | |
5520 | }; | |
5521 | ||
5522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5524 | { | |
5525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5526 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5527 | |
5528 | wxPyEndAllowThreads(__tstate); | |
5529 | if (PyErr_Occurred()) SWIG_fail; | |
5530 | } | |
994141e6 | 5531 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5532 | return resultobj; |
5533 | fail: | |
5534 | return NULL; | |
5535 | } | |
5536 | ||
5537 | ||
5538 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject *resultobj; | |
5540 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5541 | int result; |
d14a1e28 RD |
5542 | PyObject * obj0 = 0 ; |
5543 | char *kwnames[] = { | |
5544 | (char *) "self", NULL | |
5545 | }; | |
5546 | ||
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5549 | { | |
5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5551 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5552 | |
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
994141e6 | 5556 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5557 | return resultobj; |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5566 | int result; |
d14a1e28 RD |
5567 | PyObject * obj0 = 0 ; |
5568 | char *kwnames[] = { | |
5569 | (char *) "self", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5574 | { | |
5575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5576 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5577 | |
5578 | wxPyEndAllowThreads(__tstate); | |
5579 | if (PyErr_Occurred()) SWIG_fail; | |
5580 | } | |
994141e6 | 5581 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5582 | return resultobj; |
5583 | fail: | |
5584 | return NULL; | |
5585 | } | |
5586 | ||
5587 | ||
5588 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5589 | PyObject *resultobj; | |
5590 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5591 | int result; |
d14a1e28 RD |
5592 | PyObject * obj0 = 0 ; |
5593 | char *kwnames[] = { | |
5594 | (char *) "self", NULL | |
5595 | }; | |
5596 | ||
5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5599 | { | |
5600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5601 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5602 | |
5603 | wxPyEndAllowThreads(__tstate); | |
5604 | if (PyErr_Occurred()) SWIG_fail; | |
5605 | } | |
994141e6 | 5606 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5607 | return resultobj; |
5608 | fail: | |
5609 | return NULL; | |
5610 | } | |
5611 | ||
5612 | ||
5613 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5614 | PyObject *resultobj; | |
5615 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5616 | int result; |
d14a1e28 RD |
5617 | PyObject * obj0 = 0 ; |
5618 | char *kwnames[] = { | |
5619 | (char *) "self", NULL | |
5620 | }; | |
5621 | ||
5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5624 | { | |
5625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5626 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5627 | |
5628 | wxPyEndAllowThreads(__tstate); | |
5629 | if (PyErr_Occurred()) SWIG_fail; | |
5630 | } | |
994141e6 | 5631 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5632 | return resultobj; |
5633 | fail: | |
5634 | return NULL; | |
5635 | } | |
5636 | ||
5637 | ||
5638 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5639 | PyObject *resultobj; | |
5640 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5641 | wxRect result; | |
5642 | PyObject * obj0 = 0 ; | |
5643 | char *kwnames[] = { | |
5644 | (char *) "self", NULL | |
5645 | }; | |
5646 | ||
5647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5649 | { | |
5650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5651 | result = (arg1)->GetRect(); | |
5652 | ||
5653 | wxPyEndAllowThreads(__tstate); | |
5654 | if (PyErr_Occurred()) SWIG_fail; | |
5655 | } | |
5656 | { | |
5657 | wxRect * resultptr; | |
5658 | resultptr = new wxRect((wxRect &) result); | |
5659 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5660 | } | |
5661 | return resultobj; | |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
5667 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5668 | PyObject *resultobj; | |
5669 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5670 | bool result; | |
5671 | PyObject * obj0 = 0 ; | |
5672 | char *kwnames[] = { | |
5673 | (char *) "self", NULL | |
5674 | }; | |
5675 | ||
5676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5678 | { | |
5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5680 | result = (bool)(arg1)->HaveRects(); | |
5681 | ||
5682 | wxPyEndAllowThreads(__tstate); | |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
5684 | } | |
4d5c3d91 | 5685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5686 | return resultobj; |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
5692 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject *resultobj; | |
5694 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5695 | PyObject * obj0 = 0 ; | |
5696 | char *kwnames[] = { | |
5697 | (char *) "self", NULL | |
5698 | }; | |
5699 | ||
5700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5702 | { | |
5703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5704 | (arg1)->Reset(); | |
5705 | ||
5706 | wxPyEndAllowThreads(__tstate); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
5709 | Py_INCREF(Py_None); resultobj = Py_None; | |
5710 | return resultobj; | |
5711 | fail: | |
5712 | return NULL; | |
5713 | } | |
5714 | ||
5715 | ||
5716 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject *resultobj; | |
5718 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5719 | PyObject * obj0 = 0 ; | |
5720 | char *kwnames[] = { | |
5721 | (char *) "self", NULL | |
5722 | }; | |
5723 | ||
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5726 | { | |
5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5728 | wxRegionIterator_Next(arg1); | |
5729 | ||
5730 | wxPyEndAllowThreads(__tstate); | |
5731 | if (PyErr_Occurred()) SWIG_fail; | |
5732 | } | |
5733 | Py_INCREF(Py_None); resultobj = Py_None; | |
5734 | return resultobj; | |
5735 | fail: | |
5736 | return NULL; | |
5737 | } | |
5738 | ||
5739 | ||
5740 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject *resultobj; | |
5742 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5743 | bool result; | |
5744 | PyObject * obj0 = 0 ; | |
5745 | char *kwnames[] = { | |
5746 | (char *) "self", NULL | |
5747 | }; | |
5748 | ||
5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5751 | { | |
5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5753 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5754 | ||
5755 | wxPyEndAllowThreads(__tstate); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | } | |
4d5c3d91 | 5758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5759 | return resultobj; |
5760 | fail: | |
5761 | return NULL; | |
5762 | } | |
5763 | ||
5764 | ||
5765 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5766 | PyObject *obj; | |
5767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5768 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5769 | Py_INCREF(obj); | |
5770 | return Py_BuildValue((char *)""); | |
5771 | } | |
5772 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject *resultobj; | |
5774 | wxNativeFontInfo *result; | |
5775 | char *kwnames[] = { | |
5776 | NULL | |
5777 | }; | |
5778 | ||
5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5780 | { | |
5781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5782 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5783 | ||
5784 | wxPyEndAllowThreads(__tstate); | |
5785 | if (PyErr_Occurred()) SWIG_fail; | |
5786 | } | |
5787 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5788 | return resultobj; | |
5789 | fail: | |
5790 | return NULL; | |
5791 | } | |
5792 | ||
5793 | ||
5794 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject *resultobj; | |
5796 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5797 | PyObject * obj0 = 0 ; | |
5798 | char *kwnames[] = { | |
5799 | (char *) "self", NULL | |
5800 | }; | |
5801 | ||
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5804 | { | |
5805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5806 | delete arg1; | |
5807 | ||
5808 | wxPyEndAllowThreads(__tstate); | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | } | |
5811 | Py_INCREF(Py_None); resultobj = Py_None; | |
5812 | return resultobj; | |
5813 | fail: | |
5814 | return NULL; | |
5815 | } | |
5816 | ||
5817 | ||
5818 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5819 | PyObject *resultobj; | |
5820 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5821 | PyObject * obj0 = 0 ; | |
5822 | char *kwnames[] = { | |
5823 | (char *) "self", NULL | |
5824 | }; | |
5825 | ||
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5828 | { | |
5829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5830 | (arg1)->Init(); | |
5831 | ||
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
5835 | Py_INCREF(Py_None); resultobj = Py_None; | |
5836 | return resultobj; | |
5837 | fail: | |
5838 | return NULL; | |
5839 | } | |
5840 | ||
5841 | ||
5842 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5843 | PyObject *resultobj; | |
5844 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5845 | wxFont *arg2 = 0 ; | |
5846 | PyObject * obj0 = 0 ; | |
5847 | PyObject * obj1 = 0 ; | |
5848 | char *kwnames[] = { | |
5849 | (char *) "self",(char *) "font", NULL | |
5850 | }; | |
5851 | ||
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5855 | if (arg2 == NULL) { | |
5856 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5857 | } | |
5858 | { | |
5859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5860 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5861 | ||
5862 | wxPyEndAllowThreads(__tstate); | |
5863 | if (PyErr_Occurred()) SWIG_fail; | |
5864 | } | |
5865 | Py_INCREF(Py_None); resultobj = Py_None; | |
5866 | return resultobj; | |
5867 | fail: | |
5868 | return NULL; | |
5869 | } | |
5870 | ||
5871 | ||
5872 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5873 | PyObject *resultobj; | |
5874 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5875 | int result; | |
5876 | PyObject * obj0 = 0 ; | |
5877 | char *kwnames[] = { | |
5878 | (char *) "self", NULL | |
5879 | }; | |
5880 | ||
5881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5886 | ||
5887 | wxPyEndAllowThreads(__tstate); | |
5888 | if (PyErr_Occurred()) SWIG_fail; | |
5889 | } | |
994141e6 | 5890 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5891 | return resultobj; |
5892 | fail: | |
5893 | return NULL; | |
5894 | } | |
5895 | ||
5896 | ||
5897 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject *resultobj; | |
5899 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5900 | int result; | |
5901 | PyObject * obj0 = 0 ; | |
5902 | char *kwnames[] = { | |
5903 | (char *) "self", NULL | |
5904 | }; | |
5905 | ||
5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5908 | { | |
5909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5910 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5911 | ||
5912 | wxPyEndAllowThreads(__tstate); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | } | |
994141e6 | 5915 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5916 | return resultobj; |
5917 | fail: | |
5918 | return NULL; | |
5919 | } | |
5920 | ||
5921 | ||
5922 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject *resultobj; | |
5924 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5925 | int result; | |
5926 | PyObject * obj0 = 0 ; | |
5927 | char *kwnames[] = { | |
5928 | (char *) "self", NULL | |
5929 | }; | |
5930 | ||
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5933 | { | |
5934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5935 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5936 | ||
5937 | wxPyEndAllowThreads(__tstate); | |
5938 | if (PyErr_Occurred()) SWIG_fail; | |
5939 | } | |
994141e6 | 5940 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5941 | return resultobj; |
5942 | fail: | |
5943 | return NULL; | |
5944 | } | |
5945 | ||
5946 | ||
5947 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5948 | PyObject *resultobj; | |
5949 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5950 | bool result; | |
5951 | PyObject * obj0 = 0 ; | |
5952 | char *kwnames[] = { | |
5953 | (char *) "self", NULL | |
5954 | }; | |
5955 | ||
5956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
4d5c3d91 | 5965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5966 | return resultobj; |
5967 | fail: | |
5968 | return NULL; | |
5969 | } | |
5970 | ||
5971 | ||
5972 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5973 | PyObject *resultobj; | |
5974 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5975 | wxString result; | |
5976 | PyObject * obj0 = 0 ; | |
5977 | char *kwnames[] = { | |
5978 | (char *) "self", NULL | |
5979 | }; | |
5980 | ||
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5983 | { | |
5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5985 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5986 | ||
5987 | wxPyEndAllowThreads(__tstate); | |
5988 | if (PyErr_Occurred()) SWIG_fail; | |
5989 | } | |
5990 | { | |
5991 | #if wxUSE_UNICODE | |
5992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5993 | #else | |
5994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5995 | #endif | |
5996 | } | |
5997 | return resultobj; | |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject *resultobj; | |
6005 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6006 | int result; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | char *kwnames[] = { | |
6009 | (char *) "self", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6014 | { | |
6015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6016 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6017 | ||
6018 | wxPyEndAllowThreads(__tstate); | |
6019 | if (PyErr_Occurred()) SWIG_fail; | |
6020 | } | |
994141e6 | 6021 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6022 | return resultobj; |
6023 | fail: | |
6024 | return NULL; | |
6025 | } | |
6026 | ||
6027 | ||
6028 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6029 | PyObject *resultobj; | |
6030 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6031 | int result; | |
6032 | PyObject * obj0 = 0 ; | |
6033 | char *kwnames[] = { | |
6034 | (char *) "self", NULL | |
6035 | }; | |
6036 | ||
6037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6039 | { | |
6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6041 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6042 | ||
6043 | wxPyEndAllowThreads(__tstate); | |
6044 | if (PyErr_Occurred()) SWIG_fail; | |
6045 | } | |
994141e6 | 6046 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6047 | return resultobj; |
6048 | fail: | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
6053 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6054 | PyObject *resultobj; | |
6055 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6056 | int arg2 ; | |
6057 | PyObject * obj0 = 0 ; | |
994141e6 | 6058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6059 | char *kwnames[] = { |
6060 | (char *) "self",(char *) "pointsize", NULL | |
6061 | }; | |
6062 | ||
994141e6 | 6063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6065 | { |
6066 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6067 | if (PyErr_Occurred()) SWIG_fail; | |
6068 | } | |
d14a1e28 RD |
6069 | { |
6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6071 | (arg1)->SetPointSize(arg2); | |
6072 | ||
6073 | wxPyEndAllowThreads(__tstate); | |
6074 | if (PyErr_Occurred()) SWIG_fail; | |
6075 | } | |
6076 | Py_INCREF(Py_None); resultobj = Py_None; | |
6077 | return resultobj; | |
6078 | fail: | |
6079 | return NULL; | |
6080 | } | |
6081 | ||
6082 | ||
6083 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6084 | PyObject *resultobj; | |
6085 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6086 | int arg2 ; | |
6087 | PyObject * obj0 = 0 ; | |
994141e6 | 6088 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6089 | char *kwnames[] = { |
6090 | (char *) "self",(char *) "style", NULL | |
6091 | }; | |
6092 | ||
994141e6 | 6093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6095 | { |
6096 | arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1); | |
6097 | if (PyErr_Occurred()) SWIG_fail; | |
6098 | } | |
d14a1e28 RD |
6099 | { |
6100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6101 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6102 | ||
6103 | wxPyEndAllowThreads(__tstate); | |
6104 | if (PyErr_Occurred()) SWIG_fail; | |
6105 | } | |
6106 | Py_INCREF(Py_None); resultobj = Py_None; | |
6107 | return resultobj; | |
6108 | fail: | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
6113 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject *resultobj; | |
6115 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6116 | int arg2 ; | |
6117 | PyObject * obj0 = 0 ; | |
994141e6 | 6118 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6119 | char *kwnames[] = { |
6120 | (char *) "self",(char *) "weight", NULL | |
6121 | }; | |
6122 | ||
994141e6 | 6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6125 | { |
6126 | arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1); | |
6127 | if (PyErr_Occurred()) SWIG_fail; | |
6128 | } | |
d14a1e28 RD |
6129 | { |
6130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6131 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6132 | ||
6133 | wxPyEndAllowThreads(__tstate); | |
6134 | if (PyErr_Occurred()) SWIG_fail; | |
6135 | } | |
6136 | Py_INCREF(Py_None); resultobj = Py_None; | |
6137 | return resultobj; | |
6138 | fail: | |
6139 | return NULL; | |
6140 | } | |
6141 | ||
6142 | ||
6143 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6144 | PyObject *resultobj; | |
6145 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6146 | bool arg2 ; | |
6147 | PyObject * obj0 = 0 ; | |
6148 | PyObject * obj1 = 0 ; | |
6149 | char *kwnames[] = { | |
6150 | (char *) "self",(char *) "underlined", NULL | |
6151 | }; | |
6152 | ||
6153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 6155 | { |
994141e6 | 6156 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
6157 | if (PyErr_Occurred()) SWIG_fail; |
6158 | } | |
d14a1e28 RD |
6159 | { |
6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6161 | (arg1)->SetUnderlined(arg2); | |
6162 | ||
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
6166 | Py_INCREF(Py_None); resultobj = Py_None; | |
6167 | return resultobj; | |
6168 | fail: | |
6169 | return NULL; | |
6170 | } | |
6171 | ||
6172 | ||
6173 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6174 | PyObject *resultobj; | |
6175 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6176 | wxString arg2 ; | |
d14a1e28 RD |
6177 | PyObject * obj0 = 0 ; |
6178 | PyObject * obj1 = 0 ; | |
6179 | char *kwnames[] = { | |
6180 | (char *) "self",(char *) "facename", NULL | |
6181 | }; | |
6182 | ||
6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce RD |
6185 | { |
6186 | wxString* sptr = wxString_in_helper(obj1); | |
6187 | if (sptr == NULL) SWIG_fail; | |
6188 | arg2 = *sptr; | |
6189 | delete sptr; | |
6190 | } | |
d14a1e28 RD |
6191 | { |
6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6193 | (arg1)->SetFaceName(arg2); | |
6194 | ||
6195 | wxPyEndAllowThreads(__tstate); | |
6196 | if (PyErr_Occurred()) SWIG_fail; | |
6197 | } | |
6198 | Py_INCREF(Py_None); resultobj = Py_None; | |
6199 | return resultobj; | |
6200 | fail: | |
6201 | return NULL; | |
6202 | } | |
6203 | ||
6204 | ||
6205 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6206 | PyObject *resultobj; | |
6207 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6208 | int arg2 ; | |
6209 | PyObject * obj0 = 0 ; | |
994141e6 | 6210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6211 | char *kwnames[] = { |
6212 | (char *) "self",(char *) "family", NULL | |
6213 | }; | |
6214 | ||
994141e6 | 6215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6217 | { |
6218 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
6219 | if (PyErr_Occurred()) SWIG_fail; | |
6220 | } | |
d14a1e28 RD |
6221 | { |
6222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6223 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6224 | ||
6225 | wxPyEndAllowThreads(__tstate); | |
6226 | if (PyErr_Occurred()) SWIG_fail; | |
6227 | } | |
6228 | Py_INCREF(Py_None); resultobj = Py_None; | |
6229 | return resultobj; | |
6230 | fail: | |
6231 | return NULL; | |
6232 | } | |
6233 | ||
6234 | ||
6235 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6236 | PyObject *resultobj; | |
6237 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6238 | int arg2 ; | |
6239 | PyObject * obj0 = 0 ; | |
994141e6 | 6240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6241 | char *kwnames[] = { |
6242 | (char *) "self",(char *) "encoding", NULL | |
6243 | }; | |
6244 | ||
994141e6 | 6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6247 | { |
6248 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
d14a1e28 RD |
6251 | { |
6252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6253 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6254 | ||
6255 | wxPyEndAllowThreads(__tstate); | |
6256 | if (PyErr_Occurred()) SWIG_fail; | |
6257 | } | |
6258 | Py_INCREF(Py_None); resultobj = Py_None; | |
6259 | return resultobj; | |
6260 | fail: | |
6261 | return NULL; | |
6262 | } | |
6263 | ||
6264 | ||
6265 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6266 | PyObject *resultobj; | |
6267 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6268 | wxString *arg2 = 0 ; | |
6269 | bool result; | |
e811c8ce | 6270 | bool temp2 = False ; |
d14a1e28 RD |
6271 | PyObject * obj0 = 0 ; |
6272 | PyObject * obj1 = 0 ; | |
6273 | char *kwnames[] = { | |
6274 | (char *) "self",(char *) "s", NULL | |
6275 | }; | |
6276 | ||
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6279 | { | |
6280 | arg2 = wxString_in_helper(obj1); | |
6281 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6282 | temp2 = True; |
d14a1e28 RD |
6283 | } |
6284 | { | |
6285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6286 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6287 | ||
6288 | wxPyEndAllowThreads(__tstate); | |
6289 | if (PyErr_Occurred()) SWIG_fail; | |
6290 | } | |
4d5c3d91 | 6291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6292 | { |
6293 | if (temp2) | |
6294 | delete arg2; | |
6295 | } | |
6296 | return resultobj; | |
6297 | fail: | |
6298 | { | |
6299 | if (temp2) | |
6300 | delete arg2; | |
6301 | } | |
6302 | return NULL; | |
6303 | } | |
6304 | ||
6305 | ||
6306 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6307 | PyObject *resultobj; | |
6308 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6309 | wxString result; | |
6310 | PyObject * obj0 = 0 ; | |
6311 | char *kwnames[] = { | |
6312 | (char *) "self", NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6317 | { | |
6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6319 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6320 | ||
6321 | wxPyEndAllowThreads(__tstate); | |
6322 | if (PyErr_Occurred()) SWIG_fail; | |
6323 | } | |
6324 | { | |
6325 | #if wxUSE_UNICODE | |
6326 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6327 | #else | |
6328 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6329 | #endif | |
6330 | } | |
6331 | return resultobj; | |
6332 | fail: | |
6333 | return NULL; | |
6334 | } | |
6335 | ||
6336 | ||
6337 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6338 | PyObject *resultobj; | |
6339 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6340 | wxString result; | |
6341 | PyObject * obj0 = 0 ; | |
6342 | char *kwnames[] = { | |
6343 | (char *) "self", NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6348 | { | |
6349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6350 | result = wxNativeFontInfo___str__(arg1); | |
6351 | ||
6352 | wxPyEndAllowThreads(__tstate); | |
6353 | if (PyErr_Occurred()) SWIG_fail; | |
6354 | } | |
6355 | { | |
6356 | #if wxUSE_UNICODE | |
6357 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6358 | #else | |
6359 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6360 | #endif | |
6361 | } | |
6362 | return resultobj; | |
6363 | fail: | |
6364 | return NULL; | |
6365 | } | |
6366 | ||
6367 | ||
6368 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject *resultobj; | |
6370 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6371 | wxString *arg2 = 0 ; | |
6372 | bool result; | |
e811c8ce | 6373 | bool temp2 = False ; |
d14a1e28 RD |
6374 | PyObject * obj0 = 0 ; |
6375 | PyObject * obj1 = 0 ; | |
6376 | char *kwnames[] = { | |
6377 | (char *) "self",(char *) "s", NULL | |
6378 | }; | |
6379 | ||
6380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6382 | { | |
6383 | arg2 = wxString_in_helper(obj1); | |
6384 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6385 | temp2 = True; |
d14a1e28 RD |
6386 | } |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6390 | ||
6391 | wxPyEndAllowThreads(__tstate); | |
6392 | if (PyErr_Occurred()) SWIG_fail; | |
6393 | } | |
4d5c3d91 | 6394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6395 | { |
6396 | if (temp2) | |
6397 | delete arg2; | |
6398 | } | |
6399 | return resultobj; | |
6400 | fail: | |
6401 | { | |
6402 | if (temp2) | |
6403 | delete arg2; | |
6404 | } | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
6409 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6410 | PyObject *resultobj; | |
6411 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6412 | wxString result; | |
6413 | PyObject * obj0 = 0 ; | |
6414 | char *kwnames[] = { | |
6415 | (char *) "self", NULL | |
6416 | }; | |
6417 | ||
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6420 | { | |
6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6422 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6423 | ||
6424 | wxPyEndAllowThreads(__tstate); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | } | |
6427 | { | |
6428 | #if wxUSE_UNICODE | |
6429 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6430 | #else | |
6431 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6432 | #endif | |
6433 | } | |
6434 | return resultobj; | |
6435 | fail: | |
6436 | return NULL; | |
6437 | } | |
6438 | ||
6439 | ||
6440 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6441 | PyObject *obj; | |
6442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6443 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6444 | Py_INCREF(obj); | |
6445 | return Py_BuildValue((char *)""); | |
6446 | } | |
6447 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6448 | PyObject *resultobj; | |
6449 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6450 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 6451 | bool temp2 = False ; |
d14a1e28 RD |
6452 | PyObject * obj0 = 0 ; |
6453 | PyObject * obj1 = 0 ; | |
6454 | char *kwnames[] = { | |
6455 | (char *) "self",(char *) "facename", NULL | |
6456 | }; | |
6457 | ||
6458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
6460 | { |
6461 | arg2 = wxString_in_helper(obj1); | |
6462 | if (arg2 == NULL) SWIG_fail; | |
6463 | temp2 = True; | |
6464 | } | |
196addbf | 6465 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6466 | |
6467 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6468 | { |
6469 | if (temp2) | |
6470 | delete arg2; | |
6471 | } | |
d14a1e28 RD |
6472 | return resultobj; |
6473 | fail: | |
7eae615b RD |
6474 | { |
6475 | if (temp2) | |
6476 | delete arg2; | |
6477 | } | |
d14a1e28 RD |
6478 | return NULL; |
6479 | } | |
6480 | ||
6481 | ||
6482 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6483 | PyObject *resultobj; | |
6484 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6485 | wxString *result; |
d14a1e28 RD |
6486 | PyObject * obj0 = 0 ; |
6487 | char *kwnames[] = { | |
6488 | (char *) "self", NULL | |
6489 | }; | |
6490 | ||
6491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 6493 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6494 | |
6495 | { | |
6496 | #if wxUSE_UNICODE | |
196addbf | 6497 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6498 | #else |
196addbf | 6499 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6500 | #endif |
6501 | } | |
6502 | return resultobj; | |
6503 | fail: | |
6504 | return NULL; | |
6505 | } | |
6506 | ||
6507 | ||
6508 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6509 | PyObject *resultobj; | |
6510 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6511 | int arg2 ; | |
6512 | PyObject * obj0 = 0 ; | |
994141e6 | 6513 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6514 | char *kwnames[] = { |
6515 | (char *) "self",(char *) "encoding", NULL | |
6516 | }; | |
6517 | ||
994141e6 | 6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6520 | { |
6521 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6522 | if (PyErr_Occurred()) SWIG_fail; | |
6523 | } | |
d14a1e28 RD |
6524 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6525 | ||
6526 | Py_INCREF(Py_None); resultobj = Py_None; | |
6527 | return resultobj; | |
6528 | fail: | |
6529 | return NULL; | |
6530 | } | |
6531 | ||
6532 | ||
6533 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6534 | PyObject *resultobj; | |
6535 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6536 | int result; | |
6537 | PyObject * obj0 = 0 ; | |
6538 | char *kwnames[] = { | |
6539 | (char *) "self", NULL | |
6540 | }; | |
6541 | ||
6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6544 | result = (int) ((arg1)->encoding); | |
6545 | ||
994141e6 | 6546 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6547 | return resultobj; |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
6553 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6554 | PyObject *resultobj; | |
6555 | wxNativeEncodingInfo *result; | |
6556 | char *kwnames[] = { | |
6557 | NULL | |
6558 | }; | |
6559 | ||
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6561 | { | |
6562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6563 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6564 | ||
6565 | wxPyEndAllowThreads(__tstate); | |
6566 | if (PyErr_Occurred()) SWIG_fail; | |
6567 | } | |
6568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6569 | return resultobj; | |
6570 | fail: | |
6571 | return NULL; | |
6572 | } | |
6573 | ||
6574 | ||
6575 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6576 | PyObject *resultobj; | |
6577 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6578 | PyObject * obj0 = 0 ; | |
6579 | char *kwnames[] = { | |
6580 | (char *) "self", NULL | |
6581 | }; | |
6582 | ||
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | delete arg1; | |
6588 | ||
6589 | wxPyEndAllowThreads(__tstate); | |
6590 | if (PyErr_Occurred()) SWIG_fail; | |
6591 | } | |
6592 | Py_INCREF(Py_None); resultobj = Py_None; | |
6593 | return resultobj; | |
6594 | fail: | |
6595 | return NULL; | |
6596 | } | |
6597 | ||
6598 | ||
6599 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6600 | PyObject *resultobj; | |
6601 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6602 | wxString *arg2 = 0 ; | |
6603 | bool result; | |
e811c8ce | 6604 | bool temp2 = False ; |
d14a1e28 RD |
6605 | PyObject * obj0 = 0 ; |
6606 | PyObject * obj1 = 0 ; | |
6607 | char *kwnames[] = { | |
6608 | (char *) "self",(char *) "s", NULL | |
6609 | }; | |
6610 | ||
6611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6613 | { | |
6614 | arg2 = wxString_in_helper(obj1); | |
6615 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6616 | temp2 = True; |
d14a1e28 RD |
6617 | } |
6618 | { | |
6619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6620 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6621 | ||
6622 | wxPyEndAllowThreads(__tstate); | |
6623 | if (PyErr_Occurred()) SWIG_fail; | |
6624 | } | |
4d5c3d91 | 6625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6626 | { |
6627 | if (temp2) | |
6628 | delete arg2; | |
6629 | } | |
6630 | return resultobj; | |
6631 | fail: | |
6632 | { | |
6633 | if (temp2) | |
6634 | delete arg2; | |
6635 | } | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
6640 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6641 | PyObject *resultobj; | |
6642 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6643 | wxString result; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | char *kwnames[] = { | |
6646 | (char *) "self", NULL | |
6647 | }; | |
6648 | ||
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6651 | { | |
6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6653 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6654 | ||
6655 | wxPyEndAllowThreads(__tstate); | |
6656 | if (PyErr_Occurred()) SWIG_fail; | |
6657 | } | |
6658 | { | |
6659 | #if wxUSE_UNICODE | |
6660 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6661 | #else | |
6662 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6663 | #endif | |
6664 | } | |
6665 | return resultobj; | |
6666 | fail: | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6672 | PyObject *obj; | |
6673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6674 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6675 | Py_INCREF(obj); | |
6676 | return Py_BuildValue((char *)""); | |
6677 | } | |
6678 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6679 | PyObject *resultobj; | |
6680 | int arg1 ; | |
6681 | wxNativeEncodingInfo *result; | |
994141e6 | 6682 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6683 | char *kwnames[] = { |
6684 | (char *) "encoding", NULL | |
6685 | }; | |
6686 | ||
994141e6 | 6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
d14a1e28 | 6688 | { |
994141e6 RD |
6689 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); |
6690 | if (PyErr_Occurred()) SWIG_fail; | |
6691 | } | |
6692 | { | |
6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6694 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
6695 | |
6696 | wxPyEndAllowThreads(__tstate); | |
6697 | if (PyErr_Occurred()) SWIG_fail; | |
6698 | } | |
6699 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6700 | return resultobj; | |
6701 | fail: | |
6702 | return NULL; | |
6703 | } | |
6704 | ||
6705 | ||
6706 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj; | |
6708 | wxNativeEncodingInfo *arg1 = 0 ; | |
6709 | bool result; | |
6710 | PyObject * obj0 = 0 ; | |
6711 | char *kwnames[] = { | |
6712 | (char *) "info", NULL | |
6713 | }; | |
6714 | ||
6715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6717 | if (arg1 == NULL) { | |
6718 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6719 | } | |
6720 | { | |
6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6722 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6723 | ||
6724 | wxPyEndAllowThreads(__tstate); | |
6725 | if (PyErr_Occurred()) SWIG_fail; | |
6726 | } | |
4d5c3d91 | 6727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6728 | return resultobj; |
6729 | fail: | |
6730 | return NULL; | |
6731 | } | |
6732 | ||
6733 | ||
6734 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject *resultobj; | |
6736 | wxFontMapper *result; | |
6737 | char *kwnames[] = { | |
6738 | NULL | |
6739 | }; | |
6740 | ||
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6742 | { | |
6743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6744 | result = (wxFontMapper *)new wxFontMapper(); | |
6745 | ||
6746 | wxPyEndAllowThreads(__tstate); | |
6747 | if (PyErr_Occurred()) SWIG_fail; | |
6748 | } | |
6749 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6750 | return resultobj; | |
6751 | fail: | |
6752 | return NULL; | |
6753 | } | |
6754 | ||
6755 | ||
6756 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6757 | PyObject *resultobj; | |
6758 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6759 | PyObject * obj0 = 0 ; | |
6760 | char *kwnames[] = { | |
6761 | (char *) "self", NULL | |
6762 | }; | |
6763 | ||
6764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6766 | { | |
6767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6768 | delete arg1; | |
6769 | ||
6770 | wxPyEndAllowThreads(__tstate); | |
6771 | if (PyErr_Occurred()) SWIG_fail; | |
6772 | } | |
6773 | Py_INCREF(Py_None); resultobj = Py_None; | |
6774 | return resultobj; | |
6775 | fail: | |
6776 | return NULL; | |
6777 | } | |
6778 | ||
6779 | ||
6780 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6781 | PyObject *resultobj; | |
6782 | wxFontMapper *result; | |
6783 | char *kwnames[] = { | |
6784 | NULL | |
6785 | }; | |
6786 | ||
6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6788 | { | |
6789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6790 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6791 | ||
6792 | wxPyEndAllowThreads(__tstate); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
6795 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6796 | return resultobj; | |
6797 | fail: | |
6798 | return NULL; | |
6799 | } | |
6800 | ||
6801 | ||
6802 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6803 | PyObject *resultobj; | |
6804 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6805 | wxFontMapper *result; | |
6806 | PyObject * obj0 = 0 ; | |
6807 | char *kwnames[] = { | |
6808 | (char *) "mapper", NULL | |
6809 | }; | |
6810 | ||
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6813 | { | |
6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6815 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6816 | ||
6817 | wxPyEndAllowThreads(__tstate); | |
6818 | if (PyErr_Occurred()) SWIG_fail; | |
6819 | } | |
6820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6821 | return resultobj; | |
6822 | fail: | |
6823 | return NULL; | |
6824 | } | |
6825 | ||
6826 | ||
6827 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6828 | PyObject *resultobj; | |
6829 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6830 | wxString *arg2 = 0 ; | |
e811c8ce | 6831 | bool arg3 = (bool) True ; |
d14a1e28 | 6832 | int result; |
e811c8ce | 6833 | bool temp2 = False ; |
d14a1e28 RD |
6834 | PyObject * obj0 = 0 ; |
6835 | PyObject * obj1 = 0 ; | |
6836 | PyObject * obj2 = 0 ; | |
6837 | char *kwnames[] = { | |
6838 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6839 | }; | |
6840 | ||
6841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6843 | { | |
6844 | arg2 = wxString_in_helper(obj1); | |
6845 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6846 | temp2 = True; |
d14a1e28 RD |
6847 | } |
6848 | if (obj2) { | |
a41e16b6 | 6849 | { |
994141e6 | 6850 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6851 | if (PyErr_Occurred()) SWIG_fail; |
6852 | } | |
d14a1e28 RD |
6853 | } |
6854 | { | |
6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6856 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6857 | ||
6858 | wxPyEndAllowThreads(__tstate); | |
6859 | if (PyErr_Occurred()) SWIG_fail; | |
6860 | } | |
994141e6 | 6861 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6862 | { |
6863 | if (temp2) | |
6864 | delete arg2; | |
6865 | } | |
6866 | return resultobj; | |
6867 | fail: | |
6868 | { | |
6869 | if (temp2) | |
6870 | delete arg2; | |
6871 | } | |
6872 | return NULL; | |
6873 | } | |
6874 | ||
6875 | ||
6876 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6877 | PyObject *resultobj; | |
6878 | size_t result; | |
6879 | char *kwnames[] = { | |
6880 | NULL | |
6881 | }; | |
6882 | ||
6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6884 | { | |
6885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6886 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6887 | ||
6888 | wxPyEndAllowThreads(__tstate); | |
6889 | if (PyErr_Occurred()) SWIG_fail; | |
6890 | } | |
994141e6 | 6891 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6892 | return resultobj; |
6893 | fail: | |
6894 | return NULL; | |
6895 | } | |
6896 | ||
6897 | ||
6898 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6899 | PyObject *resultobj; | |
6900 | size_t arg1 ; | |
6901 | int result; | |
6902 | PyObject * obj0 = 0 ; | |
6903 | char *kwnames[] = { | |
6904 | (char *) "n", NULL | |
6905 | }; | |
6906 | ||
6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
a41e16b6 | 6908 | { |
994141e6 | 6909 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
6910 | if (PyErr_Occurred()) SWIG_fail; |
6911 | } | |
d14a1e28 RD |
6912 | { |
6913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6914 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6915 | ||
6916 | wxPyEndAllowThreads(__tstate); | |
6917 | if (PyErr_Occurred()) SWIG_fail; | |
6918 | } | |
994141e6 | 6919 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6920 | return resultobj; |
6921 | fail: | |
6922 | return NULL; | |
6923 | } | |
6924 | ||
6925 | ||
6926 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6927 | PyObject *resultobj; | |
6928 | int arg1 ; | |
6929 | wxString result; | |
994141e6 | 6930 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6931 | char *kwnames[] = { |
6932 | (char *) "encoding", NULL | |
6933 | }; | |
6934 | ||
994141e6 RD |
6935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
6936 | { | |
6937 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6938 | if (PyErr_Occurred()) SWIG_fail; | |
6939 | } | |
d14a1e28 RD |
6940 | { |
6941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6942 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6943 | ||
6944 | wxPyEndAllowThreads(__tstate); | |
6945 | if (PyErr_Occurred()) SWIG_fail; | |
6946 | } | |
6947 | { | |
6948 | #if wxUSE_UNICODE | |
6949 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6950 | #else | |
6951 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6952 | #endif | |
6953 | } | |
6954 | return resultobj; | |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
6960 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6961 | PyObject *resultobj; | |
6962 | int arg1 ; | |
6963 | wxString result; | |
994141e6 | 6964 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6965 | char *kwnames[] = { |
6966 | (char *) "encoding", NULL | |
6967 | }; | |
6968 | ||
994141e6 RD |
6969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
6970 | { | |
6971 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6972 | if (PyErr_Occurred()) SWIG_fail; | |
6973 | } | |
d14a1e28 RD |
6974 | { |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6977 | ||
6978 | wxPyEndAllowThreads(__tstate); | |
6979 | if (PyErr_Occurred()) SWIG_fail; | |
6980 | } | |
6981 | { | |
6982 | #if wxUSE_UNICODE | |
6983 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6984 | #else | |
6985 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6986 | #endif | |
6987 | } | |
6988 | return resultobj; | |
6989 | fail: | |
6990 | return NULL; | |
6991 | } | |
6992 | ||
6993 | ||
6994 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6995 | PyObject *resultobj; | |
6996 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6997 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6998 | PyObject * obj0 = 0 ; | |
6999 | PyObject * obj1 = 0 ; | |
7000 | char *kwnames[] = { | |
7001 | (char *) "self",(char *) "config", NULL | |
7002 | }; | |
7003 | ||
7004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7006 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7007 | { | |
7008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7009 | (arg1)->SetConfig(arg2); | |
7010 | ||
7011 | wxPyEndAllowThreads(__tstate); | |
7012 | if (PyErr_Occurred()) SWIG_fail; | |
7013 | } | |
7014 | Py_INCREF(Py_None); resultobj = Py_None; | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | return NULL; | |
7018 | } | |
7019 | ||
7020 | ||
7021 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7022 | PyObject *resultobj; | |
7023 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7024 | wxString *arg2 = 0 ; | |
e811c8ce | 7025 | bool temp2 = False ; |
d14a1e28 RD |
7026 | PyObject * obj0 = 0 ; |
7027 | PyObject * obj1 = 0 ; | |
7028 | char *kwnames[] = { | |
7029 | (char *) "self",(char *) "prefix", NULL | |
7030 | }; | |
7031 | ||
7032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
7033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7034 | { | |
7035 | arg2 = wxString_in_helper(obj1); | |
7036 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7037 | temp2 = True; |
d14a1e28 RD |
7038 | } |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | Py_INCREF(Py_None); resultobj = Py_None; | |
7047 | { | |
7048 | if (temp2) | |
7049 | delete arg2; | |
7050 | } | |
7051 | return resultobj; | |
7052 | fail: | |
7053 | { | |
7054 | if (temp2) | |
7055 | delete arg2; | |
7056 | } | |
7057 | return NULL; | |
7058 | } | |
7059 | ||
7060 | ||
7061 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7062 | PyObject *resultobj; | |
7063 | wxString result; | |
7064 | char *kwnames[] = { | |
7065 | NULL | |
7066 | }; | |
7067 | ||
7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7069 | { | |
7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7071 | result = wxFontMapper::GetDefaultConfigPath(); | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
7076 | { | |
7077 | #if wxUSE_UNICODE | |
7078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7079 | #else | |
7080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7081 | #endif | |
7082 | } | |
7083 | return resultobj; | |
7084 | fail: | |
7085 | return NULL; | |
7086 | } | |
7087 | ||
7088 | ||
7089 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject *resultobj; | |
7091 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7092 | int arg2 ; | |
7093 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7094 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 7095 | bool arg4 = (bool) True ; |
d14a1e28 | 7096 | PyObject *result; |
e811c8ce | 7097 | bool temp3 = False ; |
d14a1e28 | 7098 | PyObject * obj0 = 0 ; |
994141e6 | 7099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7100 | PyObject * obj2 = 0 ; |
7101 | PyObject * obj3 = 0 ; | |
7102 | char *kwnames[] = { | |
7103 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7104 | }; | |
7105 | ||
994141e6 | 7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7108 | { |
7109 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7110 | if (PyErr_Occurred()) SWIG_fail; | |
7111 | } | |
d14a1e28 RD |
7112 | if (obj2) { |
7113 | { | |
7114 | arg3 = wxString_in_helper(obj2); | |
7115 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7116 | temp3 = True; |
d14a1e28 RD |
7117 | } |
7118 | } | |
7119 | if (obj3) { | |
a41e16b6 | 7120 | { |
994141e6 | 7121 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
7122 | if (PyErr_Occurred()) SWIG_fail; |
7123 | } | |
d14a1e28 RD |
7124 | } |
7125 | { | |
7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7127 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7128 | ||
7129 | wxPyEndAllowThreads(__tstate); | |
7130 | if (PyErr_Occurred()) SWIG_fail; | |
7131 | } | |
7132 | resultobj = result; | |
7133 | { | |
7134 | if (temp3) | |
7135 | delete arg3; | |
7136 | } | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | { | |
7140 | if (temp3) | |
7141 | delete arg3; | |
7142 | } | |
7143 | return NULL; | |
7144 | } | |
7145 | ||
7146 | ||
7147 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7148 | PyObject *resultobj; | |
7149 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7150 | int arg2 ; | |
7151 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7152 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7153 | bool result; | |
e811c8ce | 7154 | bool temp3 = False ; |
d14a1e28 | 7155 | PyObject * obj0 = 0 ; |
994141e6 | 7156 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7157 | PyObject * obj2 = 0 ; |
7158 | char *kwnames[] = { | |
7159 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7160 | }; | |
7161 | ||
994141e6 | 7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7164 | { |
7165 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7166 | if (PyErr_Occurred()) SWIG_fail; | |
7167 | } | |
d14a1e28 RD |
7168 | if (obj2) { |
7169 | { | |
7170 | arg3 = wxString_in_helper(obj2); | |
7171 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7172 | temp3 = True; |
d14a1e28 RD |
7173 | } |
7174 | } | |
7175 | { | |
7176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7177 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7178 | ||
7179 | wxPyEndAllowThreads(__tstate); | |
7180 | if (PyErr_Occurred()) SWIG_fail; | |
7181 | } | |
4d5c3d91 | 7182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7183 | { |
7184 | if (temp3) | |
7185 | delete arg3; | |
7186 | } | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | { | |
7190 | if (temp3) | |
7191 | delete arg3; | |
7192 | } | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
7197 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7198 | PyObject *resultobj; | |
7199 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7200 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7201 | PyObject * obj0 = 0 ; | |
7202 | PyObject * obj1 = 0 ; | |
7203 | char *kwnames[] = { | |
7204 | (char *) "self",(char *) "parent", NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7209 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7210 | { | |
7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7212 | (arg1)->SetDialogParent(arg2); | |
7213 | ||
7214 | wxPyEndAllowThreads(__tstate); | |
7215 | if (PyErr_Occurred()) SWIG_fail; | |
7216 | } | |
7217 | Py_INCREF(Py_None); resultobj = Py_None; | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj; | |
7226 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7227 | wxString *arg2 = 0 ; | |
e811c8ce | 7228 | bool temp2 = False ; |
d14a1e28 RD |
7229 | PyObject * obj0 = 0 ; |
7230 | PyObject * obj1 = 0 ; | |
7231 | char *kwnames[] = { | |
7232 | (char *) "self",(char *) "title", NULL | |
7233 | }; | |
7234 | ||
7235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7237 | { | |
7238 | arg2 = wxString_in_helper(obj1); | |
7239 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7240 | temp2 = True; |
d14a1e28 RD |
7241 | } |
7242 | { | |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
7249 | Py_INCREF(Py_None); resultobj = Py_None; | |
7250 | { | |
7251 | if (temp2) | |
7252 | delete arg2; | |
7253 | } | |
7254 | return resultobj; | |
7255 | fail: | |
7256 | { | |
7257 | if (temp2) | |
7258 | delete arg2; | |
7259 | } | |
7260 | return NULL; | |
7261 | } | |
7262 | ||
7263 | ||
7264 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7265 | PyObject *obj; | |
7266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7267 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7268 | Py_INCREF(obj); | |
7269 | return Py_BuildValue((char *)""); | |
7270 | } | |
7271 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7272 | PyObject *resultobj; | |
7273 | int arg1 ; | |
7274 | int arg2 ; | |
7275 | int arg3 ; | |
7276 | int arg4 ; | |
e811c8ce | 7277 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7278 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7279 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7280 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7281 | wxFont *result; | |
e811c8ce | 7282 | bool temp6 = False ; |
994141e6 RD |
7283 | PyObject * obj0 = 0 ; |
7284 | PyObject * obj1 = 0 ; | |
7285 | PyObject * obj2 = 0 ; | |
7286 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7287 | PyObject * obj4 = 0 ; |
7288 | PyObject * obj5 = 0 ; | |
994141e6 | 7289 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7290 | char *kwnames[] = { |
7291 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7292 | }; | |
7293 | ||
994141e6 RD |
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
7295 | { | |
7296 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
7299 | { | |
7300 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7301 | if (PyErr_Occurred()) SWIG_fail; | |
7302 | } | |
7303 | { | |
7304 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7305 | if (PyErr_Occurred()) SWIG_fail; | |
7306 | } | |
7307 | { | |
7308 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
d14a1e28 | 7311 | if (obj4) { |
a41e16b6 | 7312 | { |
994141e6 | 7313 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
7314 | if (PyErr_Occurred()) SWIG_fail; |
7315 | } | |
d14a1e28 RD |
7316 | } |
7317 | if (obj5) { | |
7318 | { | |
7319 | arg6 = wxString_in_helper(obj5); | |
7320 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 7321 | temp6 = True; |
d14a1e28 RD |
7322 | } |
7323 | } | |
994141e6 RD |
7324 | if (obj6) { |
7325 | { | |
7326 | arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6); | |
7327 | if (PyErr_Occurred()) SWIG_fail; | |
7328 | } | |
7329 | } | |
d14a1e28 RD |
7330 | { |
7331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7332 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7333 | ||
7334 | wxPyEndAllowThreads(__tstate); | |
7335 | if (PyErr_Occurred()) SWIG_fail; | |
7336 | } | |
7337 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7338 | { | |
7339 | if (temp6) | |
7340 | delete arg6; | |
7341 | } | |
7342 | return resultobj; | |
7343 | fail: | |
7344 | { | |
7345 | if (temp6) | |
7346 | delete arg6; | |
7347 | } | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxFont *arg1 = (wxFont *) 0 ; | |
7355 | PyObject * obj0 = 0 ; | |
7356 | char *kwnames[] = { | |
7357 | (char *) "self", NULL | |
7358 | }; | |
7359 | ||
7360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7362 | { | |
7363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7364 | delete arg1; | |
7365 | ||
7366 | wxPyEndAllowThreads(__tstate); | |
7367 | if (PyErr_Occurred()) SWIG_fail; | |
7368 | } | |
7369 | Py_INCREF(Py_None); resultobj = Py_None; | |
7370 | return resultobj; | |
7371 | fail: | |
7372 | return NULL; | |
7373 | } | |
7374 | ||
7375 | ||
7376 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7377 | PyObject *resultobj; | |
7378 | wxNativeFontInfo *arg1 = 0 ; | |
7379 | wxFont *result; | |
7380 | PyObject * obj0 = 0 ; | |
7381 | char *kwnames[] = { | |
7382 | (char *) "info", NULL | |
7383 | }; | |
7384 | ||
7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7387 | if (arg1 == NULL) { | |
7388 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7389 | } | |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
7397 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject *resultobj; | |
7406 | wxString *arg1 = 0 ; | |
7407 | wxFont *result; | |
e811c8ce | 7408 | bool temp1 = False ; |
d14a1e28 RD |
7409 | PyObject * obj0 = 0 ; |
7410 | char *kwnames[] = { | |
7411 | (char *) "info", NULL | |
7412 | }; | |
7413 | ||
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7415 | { | |
7416 | arg1 = wxString_in_helper(obj0); | |
7417 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7418 | temp1 = True; |
d14a1e28 RD |
7419 | } |
7420 | { | |
7421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7422 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7423 | ||
7424 | wxPyEndAllowThreads(__tstate); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7428 | { | |
7429 | if (temp1) | |
7430 | delete arg1; | |
7431 | } | |
7432 | return resultobj; | |
7433 | fail: | |
7434 | { | |
7435 | if (temp1) | |
7436 | delete arg1; | |
7437 | } | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
7442 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7443 | PyObject *resultobj; | |
7444 | int arg1 ; | |
7445 | int arg2 ; | |
7446 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7447 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7448 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7449 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7450 | wxFont *result; | |
e811c8ce | 7451 | bool temp4 = False ; |
994141e6 RD |
7452 | PyObject * obj0 = 0 ; |
7453 | PyObject * obj1 = 0 ; | |
7454 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7455 | PyObject * obj3 = 0 ; |
994141e6 | 7456 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7457 | char *kwnames[] = { |
7458 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7459 | }; | |
7460 | ||
994141e6 RD |
7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7462 | { | |
7463 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7464 | if (PyErr_Occurred()) SWIG_fail; | |
7465 | } | |
7466 | { | |
7467 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
7468 | if (PyErr_Occurred()) SWIG_fail; | |
7469 | } | |
7470 | if (obj2) { | |
7471 | { | |
7472 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7473 | if (PyErr_Occurred()) SWIG_fail; | |
7474 | } | |
7475 | } | |
d14a1e28 RD |
7476 | if (obj3) { |
7477 | { | |
7478 | arg4 = wxString_in_helper(obj3); | |
7479 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7480 | temp4 = True; |
d14a1e28 RD |
7481 | } |
7482 | } | |
994141e6 RD |
7483 | if (obj4) { |
7484 | { | |
7485 | arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4); | |
7486 | if (PyErr_Occurred()) SWIG_fail; | |
7487 | } | |
7488 | } | |
d14a1e28 RD |
7489 | { |
7490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7491 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7492 | ||
7493 | wxPyEndAllowThreads(__tstate); | |
7494 | if (PyErr_Occurred()) SWIG_fail; | |
7495 | } | |
7496 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7497 | { | |
7498 | if (temp4) | |
7499 | delete arg4; | |
7500 | } | |
7501 | return resultobj; | |
7502 | fail: | |
7503 | { | |
7504 | if (temp4) | |
7505 | delete arg4; | |
7506 | } | |
7507 | return NULL; | |
7508 | } | |
7509 | ||
7510 | ||
7511 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7512 | PyObject *resultobj; | |
7513 | wxFont *arg1 = (wxFont *) 0 ; | |
7514 | bool result; | |
7515 | PyObject * obj0 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self", NULL | |
7518 | }; | |
7519 | ||
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7522 | { | |
7523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7524 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7525 | ||
7526 | wxPyEndAllowThreads(__tstate); | |
7527 | if (PyErr_Occurred()) SWIG_fail; | |
7528 | } | |
4d5c3d91 | 7529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7530 | return resultobj; |
7531 | fail: | |
7532 | return NULL; | |
7533 | } | |
7534 | ||
7535 | ||
7536 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject *resultobj; | |
7538 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7539 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7540 | bool result; |
7541 | PyObject * obj0 = 0 ; | |
7542 | PyObject * obj1 = 0 ; | |
7543 | char *kwnames[] = { | |
22faec7d | 7544 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7545 | }; |
7546 | ||
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7549 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
7550 | { |
7551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7552 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7553 | |
7554 | wxPyEndAllowThreads(__tstate); | |
7555 | if (PyErr_Occurred()) SWIG_fail; | |
7556 | } | |
4d5c3d91 | 7557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7558 | return resultobj; |
7559 | fail: | |
7560 | return NULL; | |
7561 | } | |
7562 | ||
7563 | ||
7564 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7565 | PyObject *resultobj; | |
7566 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7567 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7568 | bool result; |
7569 | PyObject * obj0 = 0 ; | |
7570 | PyObject * obj1 = 0 ; | |
7571 | char *kwnames[] = { | |
22faec7d | 7572 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7573 | }; |
7574 | ||
7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7577 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
7578 | { |
7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7580 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7581 | |
7582 | wxPyEndAllowThreads(__tstate); | |
7583 | if (PyErr_Occurred()) SWIG_fail; | |
7584 | } | |
4d5c3d91 | 7585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7586 | return resultobj; |
7587 | fail: | |
7588 | return NULL; | |
7589 | } | |
7590 | ||
7591 | ||
7592 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7593 | PyObject *resultobj; | |
7594 | wxFont *arg1 = (wxFont *) 0 ; | |
7595 | int result; | |
7596 | PyObject * obj0 = 0 ; | |
7597 | char *kwnames[] = { | |
7598 | (char *) "self", NULL | |
7599 | }; | |
7600 | ||
7601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7603 | { | |
7604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7605 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7606 | ||
7607 | wxPyEndAllowThreads(__tstate); | |
7608 | if (PyErr_Occurred()) SWIG_fail; | |
7609 | } | |
994141e6 | 7610 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7611 | return resultobj; |
7612 | fail: | |
7613 | return NULL; | |
7614 | } | |
7615 | ||
7616 | ||
7617 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7618 | PyObject *resultobj; | |
7619 | wxFont *arg1 = (wxFont *) 0 ; | |
7620 | int result; | |
7621 | PyObject * obj0 = 0 ; | |
7622 | char *kwnames[] = { | |
7623 | (char *) "self", NULL | |
7624 | }; | |
7625 | ||
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7628 | { | |
7629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7630 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7631 | ||
7632 | wxPyEndAllowThreads(__tstate); | |
7633 | if (PyErr_Occurred()) SWIG_fail; | |
7634 | } | |
994141e6 | 7635 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7636 | return resultobj; |
7637 | fail: | |
7638 | return NULL; | |
7639 | } | |
7640 | ||
7641 | ||
7642 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7643 | PyObject *resultobj; | |
7644 | wxFont *arg1 = (wxFont *) 0 ; | |
7645 | int result; | |
7646 | PyObject * obj0 = 0 ; | |
7647 | char *kwnames[] = { | |
7648 | (char *) "self", NULL | |
7649 | }; | |
7650 | ||
7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7653 | { | |
7654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7655 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7656 | ||
7657 | wxPyEndAllowThreads(__tstate); | |
7658 | if (PyErr_Occurred()) SWIG_fail; | |
7659 | } | |
994141e6 | 7660 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7661 | return resultobj; |
7662 | fail: | |
7663 | return NULL; | |
7664 | } | |
7665 | ||
7666 | ||
7667 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7668 | PyObject *resultobj; | |
7669 | wxFont *arg1 = (wxFont *) 0 ; | |
7670 | int result; | |
7671 | PyObject * obj0 = 0 ; | |
7672 | char *kwnames[] = { | |
7673 | (char *) "self", NULL | |
7674 | }; | |
7675 | ||
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7678 | { | |
7679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7680 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7681 | ||
7682 | wxPyEndAllowThreads(__tstate); | |
7683 | if (PyErr_Occurred()) SWIG_fail; | |
7684 | } | |
994141e6 | 7685 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7686 | return resultobj; |
7687 | fail: | |
7688 | return NULL; | |
7689 | } | |
7690 | ||
7691 | ||
7692 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7693 | PyObject *resultobj; | |
7694 | wxFont *arg1 = (wxFont *) 0 ; | |
7695 | bool result; | |
7696 | PyObject * obj0 = 0 ; | |
7697 | char *kwnames[] = { | |
7698 | (char *) "self", NULL | |
7699 | }; | |
7700 | ||
7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7703 | { | |
7704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7705 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7706 | ||
7707 | wxPyEndAllowThreads(__tstate); | |
7708 | if (PyErr_Occurred()) SWIG_fail; | |
7709 | } | |
4d5c3d91 | 7710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7711 | return resultobj; |
7712 | fail: | |
7713 | return NULL; | |
7714 | } | |
7715 | ||
7716 | ||
7717 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7718 | PyObject *resultobj; | |
7719 | wxFont *arg1 = (wxFont *) 0 ; | |
7720 | wxString result; | |
7721 | PyObject * obj0 = 0 ; | |
7722 | char *kwnames[] = { | |
7723 | (char *) "self", NULL | |
7724 | }; | |
7725 | ||
7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7728 | { | |
7729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7730 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7731 | ||
7732 | wxPyEndAllowThreads(__tstate); | |
7733 | if (PyErr_Occurred()) SWIG_fail; | |
7734 | } | |
7735 | { | |
7736 | #if wxUSE_UNICODE | |
7737 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7738 | #else | |
7739 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7740 | #endif | |
7741 | } | |
7742 | return resultobj; | |
7743 | fail: | |
7744 | return NULL; | |
7745 | } | |
7746 | ||
7747 | ||
7748 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject *resultobj; | |
7750 | wxFont *arg1 = (wxFont *) 0 ; | |
7751 | int result; | |
7752 | PyObject * obj0 = 0 ; | |
7753 | char *kwnames[] = { | |
7754 | (char *) "self", NULL | |
7755 | }; | |
7756 | ||
7757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7759 | { | |
7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7761 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7762 | ||
7763 | wxPyEndAllowThreads(__tstate); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | } | |
994141e6 | 7766 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7767 | return resultobj; |
7768 | fail: | |
7769 | return NULL; | |
7770 | } | |
7771 | ||
7772 | ||
7773 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject *resultobj; | |
7775 | wxFont *arg1 = (wxFont *) 0 ; | |
7776 | wxNativeFontInfo *result; | |
7777 | PyObject * obj0 = 0 ; | |
7778 | char *kwnames[] = { | |
7779 | (char *) "self", NULL | |
7780 | }; | |
7781 | ||
7782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) SWIG_fail; | |
7790 | } | |
7791 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7792 | return resultobj; | |
7793 | fail: | |
7794 | return NULL; | |
7795 | } | |
7796 | ||
7797 | ||
7798 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7799 | PyObject *resultobj; | |
7800 | wxFont *arg1 = (wxFont *) 0 ; | |
7801 | bool result; | |
7802 | PyObject * obj0 = 0 ; | |
7803 | char *kwnames[] = { | |
7804 | (char *) "self", NULL | |
7805 | }; | |
7806 | ||
7807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7809 | { | |
7810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7811 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7812 | ||
7813 | wxPyEndAllowThreads(__tstate); | |
7814 | if (PyErr_Occurred()) SWIG_fail; | |
7815 | } | |
4d5c3d91 | 7816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7817 | return resultobj; |
7818 | fail: | |
7819 | return NULL; | |
7820 | } | |
7821 | ||
7822 | ||
7823 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7824 | PyObject *resultobj; | |
7825 | wxFont *arg1 = (wxFont *) 0 ; | |
7826 | wxString result; | |
7827 | PyObject * obj0 = 0 ; | |
7828 | char *kwnames[] = { | |
7829 | (char *) "self", NULL | |
7830 | }; | |
7831 | ||
7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7834 | { | |
7835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7836 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7837 | ||
7838 | wxPyEndAllowThreads(__tstate); | |
7839 | if (PyErr_Occurred()) SWIG_fail; | |
7840 | } | |
7841 | { | |
7842 | #if wxUSE_UNICODE | |
7843 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7844 | #else | |
7845 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7846 | #endif | |
7847 | } | |
7848 | return resultobj; | |
7849 | fail: | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
7854 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7855 | PyObject *resultobj; | |
7856 | wxFont *arg1 = (wxFont *) 0 ; | |
7857 | wxString result; | |
7858 | PyObject * obj0 = 0 ; | |
7859 | char *kwnames[] = { | |
7860 | (char *) "self", NULL | |
7861 | }; | |
7862 | ||
7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7865 | { | |
7866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7867 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7868 | ||
7869 | wxPyEndAllowThreads(__tstate); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | } | |
7872 | { | |
7873 | #if wxUSE_UNICODE | |
7874 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7875 | #else | |
7876 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7877 | #endif | |
7878 | } | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | return NULL; | |
7882 | } | |
7883 | ||
7884 | ||
7885 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7886 | PyObject *resultobj; | |
7887 | wxFont *arg1 = (wxFont *) 0 ; | |
7888 | int arg2 ; | |
7889 | PyObject * obj0 = 0 ; | |
994141e6 | 7890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7891 | char *kwnames[] = { |
7892 | (char *) "self",(char *) "pointSize", NULL | |
7893 | }; | |
7894 | ||
994141e6 | 7895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7897 | { |
7898 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
d14a1e28 RD |
7901 | { |
7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7903 | (arg1)->SetPointSize(arg2); | |
7904 | ||
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | Py_INCREF(Py_None); resultobj = Py_None; | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | return NULL; | |
7912 | } | |
7913 | ||
7914 | ||
7915 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7916 | PyObject *resultobj; | |
7917 | wxFont *arg1 = (wxFont *) 0 ; | |
7918 | int arg2 ; | |
7919 | PyObject * obj0 = 0 ; | |
994141e6 | 7920 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7921 | char *kwnames[] = { |
7922 | (char *) "self",(char *) "family", NULL | |
7923 | }; | |
7924 | ||
994141e6 | 7925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7927 | { |
7928 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7929 | if (PyErr_Occurred()) SWIG_fail; | |
7930 | } | |
d14a1e28 RD |
7931 | { |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | (arg1)->SetFamily(arg2); | |
7934 | ||
7935 | wxPyEndAllowThreads(__tstate); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | Py_INCREF(Py_None); resultobj = Py_None; | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | return NULL; | |
7942 | } | |
7943 | ||
7944 | ||
7945 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject *resultobj; | |
7947 | wxFont *arg1 = (wxFont *) 0 ; | |
7948 | int arg2 ; | |
7949 | PyObject * obj0 = 0 ; | |
994141e6 | 7950 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7951 | char *kwnames[] = { |
7952 | (char *) "self",(char *) "style", NULL | |
7953 | }; | |
7954 | ||
994141e6 | 7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7957 | { |
7958 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7959 | if (PyErr_Occurred()) SWIG_fail; | |
7960 | } | |
d14a1e28 RD |
7961 | { |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7963 | (arg1)->SetStyle(arg2); | |
7964 | ||
7965 | wxPyEndAllowThreads(__tstate); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | } | |
7968 | Py_INCREF(Py_None); resultobj = Py_None; | |
7969 | return resultobj; | |
7970 | fail: | |
7971 | return NULL; | |
7972 | } | |
7973 | ||
7974 | ||
7975 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7976 | PyObject *resultobj; | |
7977 | wxFont *arg1 = (wxFont *) 0 ; | |
7978 | int arg2 ; | |
7979 | PyObject * obj0 = 0 ; | |
994141e6 | 7980 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7981 | char *kwnames[] = { |
7982 | (char *) "self",(char *) "weight", NULL | |
7983 | }; | |
7984 | ||
994141e6 | 7985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7987 | { |
7988 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
d14a1e28 RD |
7991 | { |
7992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7993 | (arg1)->SetWeight(arg2); | |
7994 | ||
7995 | wxPyEndAllowThreads(__tstate); | |
7996 | if (PyErr_Occurred()) SWIG_fail; | |
7997 | } | |
7998 | Py_INCREF(Py_None); resultobj = Py_None; | |
7999 | return resultobj; | |
8000 | fail: | |
8001 | return NULL; | |
8002 | } | |
8003 | ||
8004 | ||
8005 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8006 | PyObject *resultobj; | |
8007 | wxFont *arg1 = (wxFont *) 0 ; | |
8008 | wxString *arg2 = 0 ; | |
e811c8ce | 8009 | bool temp2 = False ; |
d14a1e28 RD |
8010 | PyObject * obj0 = 0 ; |
8011 | PyObject * obj1 = 0 ; | |
8012 | char *kwnames[] = { | |
8013 | (char *) "self",(char *) "faceName", NULL | |
8014 | }; | |
8015 | ||
8016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
8017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8018 | { | |
8019 | arg2 = wxString_in_helper(obj1); | |
8020 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8021 | temp2 = True; |
d14a1e28 RD |
8022 | } |
8023 | { | |
8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8025 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8026 | ||
8027 | wxPyEndAllowThreads(__tstate); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
8029 | } | |
8030 | Py_INCREF(Py_None); resultobj = Py_None; | |
8031 | { | |
8032 | if (temp2) | |
8033 | delete arg2; | |
8034 | } | |
8035 | return resultobj; | |
8036 | fail: | |
8037 | { | |
8038 | if (temp2) | |
8039 | delete arg2; | |
8040 | } | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8046 | PyObject *resultobj; | |
8047 | wxFont *arg1 = (wxFont *) 0 ; | |
8048 | bool arg2 ; | |
8049 | PyObject * obj0 = 0 ; | |
8050 | PyObject * obj1 = 0 ; | |
8051 | char *kwnames[] = { | |
8052 | (char *) "self",(char *) "underlined", NULL | |
8053 | }; | |
8054 | ||
8055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 8057 | { |
994141e6 | 8058 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
8059 | if (PyErr_Occurred()) SWIG_fail; |
8060 | } | |
d14a1e28 RD |
8061 | { |
8062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8063 | (arg1)->SetUnderlined(arg2); | |
8064 | ||
8065 | wxPyEndAllowThreads(__tstate); | |
8066 | if (PyErr_Occurred()) SWIG_fail; | |
8067 | } | |
8068 | Py_INCREF(Py_None); resultobj = Py_None; | |
8069 | return resultobj; | |
8070 | fail: | |
8071 | return NULL; | |
8072 | } | |
8073 | ||
8074 | ||
8075 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8076 | PyObject *resultobj; | |
8077 | wxFont *arg1 = (wxFont *) 0 ; | |
8078 | int arg2 ; | |
8079 | PyObject * obj0 = 0 ; | |
994141e6 | 8080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8081 | char *kwnames[] = { |
8082 | (char *) "self",(char *) "encoding", NULL | |
8083 | }; | |
8084 | ||
994141e6 | 8085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8087 | { |
8088 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8089 | if (PyErr_Occurred()) SWIG_fail; | |
8090 | } | |
d14a1e28 RD |
8091 | { |
8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8093 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8094 | ||
8095 | wxPyEndAllowThreads(__tstate); | |
8096 | if (PyErr_Occurred()) SWIG_fail; | |
8097 | } | |
8098 | Py_INCREF(Py_None); resultobj = Py_None; | |
8099 | return resultobj; | |
8100 | fail: | |
8101 | return NULL; | |
8102 | } | |
8103 | ||
8104 | ||
8105 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8106 | PyObject *resultobj; | |
8107 | wxFont *arg1 = (wxFont *) 0 ; | |
8108 | wxNativeFontInfo *arg2 = 0 ; | |
8109 | PyObject * obj0 = 0 ; | |
8110 | PyObject * obj1 = 0 ; | |
8111 | char *kwnames[] = { | |
8112 | (char *) "self",(char *) "info", NULL | |
8113 | }; | |
8114 | ||
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",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_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8118 | if (arg2 == NULL) { | |
8119 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8120 | } | |
8121 | { | |
8122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8123 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8124 | ||
8125 | wxPyEndAllowThreads(__tstate); | |
8126 | if (PyErr_Occurred()) SWIG_fail; | |
8127 | } | |
8128 | Py_INCREF(Py_None); resultobj = Py_None; | |
8129 | return resultobj; | |
8130 | fail: | |
8131 | return NULL; | |
8132 | } | |
8133 | ||
8134 | ||
8135 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8136 | PyObject *resultobj; | |
8137 | wxFont *arg1 = (wxFont *) 0 ; | |
8138 | wxString *arg2 = 0 ; | |
e811c8ce | 8139 | bool temp2 = False ; |
d14a1e28 RD |
8140 | PyObject * obj0 = 0 ; |
8141 | PyObject * obj1 = 0 ; | |
8142 | char *kwnames[] = { | |
8143 | (char *) "self",(char *) "info", NULL | |
8144 | }; | |
8145 | ||
8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
8147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8148 | { | |
8149 | arg2 = wxString_in_helper(obj1); | |
8150 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8151 | temp2 = True; |
d14a1e28 RD |
8152 | } |
8153 | { | |
8154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8155 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8156 | ||
8157 | wxPyEndAllowThreads(__tstate); | |
8158 | if (PyErr_Occurred()) SWIG_fail; | |
8159 | } | |
8160 | Py_INCREF(Py_None); resultobj = Py_None; | |
8161 | { | |
8162 | if (temp2) | |
8163 | delete arg2; | |
8164 | } | |
8165 | return resultobj; | |
8166 | fail: | |
8167 | { | |
8168 | if (temp2) | |
8169 | delete arg2; | |
8170 | } | |
8171 | return NULL; | |
8172 | } | |
8173 | ||
8174 | ||
8175 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8176 | PyObject *resultobj; | |
8177 | wxFont *arg1 = (wxFont *) 0 ; | |
8178 | wxString *arg2 = 0 ; | |
e811c8ce | 8179 | bool temp2 = False ; |
d14a1e28 RD |
8180 | PyObject * obj0 = 0 ; |
8181 | PyObject * obj1 = 0 ; | |
8182 | char *kwnames[] = { | |
8183 | (char *) "self",(char *) "info", NULL | |
8184 | }; | |
8185 | ||
8186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8188 | { | |
8189 | arg2 = wxString_in_helper(obj1); | |
8190 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8191 | temp2 = True; |
d14a1e28 RD |
8192 | } |
8193 | { | |
8194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8195 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8196 | ||
8197 | wxPyEndAllowThreads(__tstate); | |
8198 | if (PyErr_Occurred()) SWIG_fail; | |
8199 | } | |
8200 | Py_INCREF(Py_None); resultobj = Py_None; | |
8201 | { | |
8202 | if (temp2) | |
8203 | delete arg2; | |
8204 | } | |
8205 | return resultobj; | |
8206 | fail: | |
8207 | { | |
8208 | if (temp2) | |
8209 | delete arg2; | |
8210 | } | |
8211 | return NULL; | |
8212 | } | |
8213 | ||
8214 | ||
8215 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8216 | PyObject *resultobj; | |
8217 | wxFont *arg1 = (wxFont *) 0 ; | |
8218 | wxString result; | |
8219 | PyObject * obj0 = 0 ; | |
8220 | char *kwnames[] = { | |
8221 | (char *) "self", NULL | |
8222 | }; | |
8223 | ||
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8226 | { | |
8227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8228 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8229 | ||
8230 | wxPyEndAllowThreads(__tstate); | |
8231 | if (PyErr_Occurred()) SWIG_fail; | |
8232 | } | |
8233 | { | |
8234 | #if wxUSE_UNICODE | |
8235 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8236 | #else | |
8237 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8238 | #endif | |
8239 | } | |
8240 | return resultobj; | |
8241 | fail: | |
8242 | return NULL; | |
8243 | } | |
8244 | ||
8245 | ||
8246 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8247 | PyObject *resultobj; | |
8248 | wxFont *arg1 = (wxFont *) 0 ; | |
8249 | wxString result; | |
8250 | PyObject * obj0 = 0 ; | |
8251 | char *kwnames[] = { | |
8252 | (char *) "self", NULL | |
8253 | }; | |
8254 | ||
8255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8257 | { | |
8258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8259 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8260 | ||
8261 | wxPyEndAllowThreads(__tstate); | |
8262 | if (PyErr_Occurred()) SWIG_fail; | |
8263 | } | |
8264 | { | |
8265 | #if wxUSE_UNICODE | |
8266 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8267 | #else | |
8268 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8269 | #endif | |
8270 | } | |
8271 | return resultobj; | |
8272 | fail: | |
8273 | return NULL; | |
8274 | } | |
8275 | ||
8276 | ||
8277 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8278 | PyObject *resultobj; | |
8279 | wxFont *arg1 = (wxFont *) 0 ; | |
8280 | wxString result; | |
8281 | PyObject * obj0 = 0 ; | |
8282 | char *kwnames[] = { | |
8283 | (char *) "self", NULL | |
8284 | }; | |
8285 | ||
8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | } | |
8295 | { | |
8296 | #if wxUSE_UNICODE | |
8297 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8298 | #else | |
8299 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8300 | #endif | |
8301 | } | |
8302 | return resultobj; | |
8303 | fail: | |
8304 | return NULL; | |
8305 | } | |
8306 | ||
8307 | ||
8308 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8309 | PyObject *resultobj; | |
8310 | wxFont *arg1 = (wxFont *) 0 ; | |
e811c8ce | 8311 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8312 | PyObject * obj0 = 0 ; |
8313 | PyObject * obj1 = 0 ; | |
8314 | char *kwnames[] = { | |
8315 | (char *) "self",(char *) "no", NULL | |
8316 | }; | |
8317 | ||
8318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8320 | if (obj1) { | |
a41e16b6 | 8321 | { |
994141e6 | 8322 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
8323 | if (PyErr_Occurred()) SWIG_fail; |
8324 | } | |
d14a1e28 RD |
8325 | } |
8326 | { | |
8327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8328 | (arg1)->SetNoAntiAliasing(arg2); | |
8329 | ||
8330 | wxPyEndAllowThreads(__tstate); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
8333 | Py_INCREF(Py_None); resultobj = Py_None; | |
8334 | return resultobj; | |
8335 | fail: | |
8336 | return NULL; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8341 | PyObject *resultobj; | |
8342 | wxFont *arg1 = (wxFont *) 0 ; | |
8343 | bool result; | |
8344 | PyObject * obj0 = 0 ; | |
8345 | char *kwnames[] = { | |
8346 | (char *) "self", NULL | |
8347 | }; | |
8348 | ||
8349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8351 | { | |
8352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8353 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8354 | ||
8355 | wxPyEndAllowThreads(__tstate); | |
8356 | if (PyErr_Occurred()) SWIG_fail; | |
8357 | } | |
4d5c3d91 | 8358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8359 | return resultobj; |
8360 | fail: | |
8361 | return NULL; | |
8362 | } | |
8363 | ||
8364 | ||
8365 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8366 | PyObject *resultobj; | |
8367 | int result; | |
8368 | char *kwnames[] = { | |
8369 | NULL | |
8370 | }; | |
8371 | ||
8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8373 | { | |
8374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8375 | result = (int)wxFont::GetDefaultEncoding(); | |
8376 | ||
8377 | wxPyEndAllowThreads(__tstate); | |
8378 | if (PyErr_Occurred()) SWIG_fail; | |
8379 | } | |
994141e6 | 8380 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8381 | return resultobj; |
8382 | fail: | |
8383 | return NULL; | |
8384 | } | |
8385 | ||
8386 | ||
8387 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8388 | PyObject *resultobj; | |
8389 | int arg1 ; | |
994141e6 | 8390 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8391 | char *kwnames[] = { |
8392 | (char *) "encoding", NULL | |
8393 | }; | |
8394 | ||
994141e6 RD |
8395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
8396 | { | |
8397 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
8398 | if (PyErr_Occurred()) SWIG_fail; | |
8399 | } | |
d14a1e28 RD |
8400 | { |
8401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8402 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8403 | ||
8404 | wxPyEndAllowThreads(__tstate); | |
8405 | if (PyErr_Occurred()) SWIG_fail; | |
8406 | } | |
8407 | Py_INCREF(Py_None); resultobj = Py_None; | |
8408 | return resultobj; | |
8409 | fail: | |
8410 | return NULL; | |
8411 | } | |
8412 | ||
8413 | ||
8414 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8415 | PyObject *obj; | |
8416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8417 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8418 | Py_INCREF(obj); | |
8419 | return Py_BuildValue((char *)""); | |
8420 | } | |
8421 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8422 | PyObject *resultobj; | |
8423 | wxPyFontEnumerator *result; | |
8424 | char *kwnames[] = { | |
8425 | NULL | |
8426 | }; | |
8427 | ||
8428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8429 | { | |
8430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8431 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8432 | ||
8433 | wxPyEndAllowThreads(__tstate); | |
8434 | if (PyErr_Occurred()) SWIG_fail; | |
8435 | } | |
8436 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8437 | return resultobj; | |
8438 | fail: | |
8439 | return NULL; | |
8440 | } | |
8441 | ||
8442 | ||
8443 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8444 | PyObject *resultobj; | |
8445 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8446 | PyObject * obj0 = 0 ; | |
8447 | char *kwnames[] = { | |
8448 | (char *) "self", NULL | |
8449 | }; | |
8450 | ||
8451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8453 | { | |
8454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8455 | delete arg1; | |
8456 | ||
8457 | wxPyEndAllowThreads(__tstate); | |
8458 | if (PyErr_Occurred()) SWIG_fail; | |
8459 | } | |
8460 | Py_INCREF(Py_None); resultobj = Py_None; | |
8461 | return resultobj; | |
8462 | fail: | |
8463 | return NULL; | |
8464 | } | |
8465 | ||
8466 | ||
8467 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8468 | PyObject *resultobj; | |
8469 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8470 | PyObject *arg2 = (PyObject *) 0 ; | |
8471 | PyObject *arg3 = (PyObject *) 0 ; | |
8472 | bool arg4 ; | |
8473 | PyObject * obj0 = 0 ; | |
8474 | PyObject * obj1 = 0 ; | |
8475 | PyObject * obj2 = 0 ; | |
8476 | PyObject * obj3 = 0 ; | |
8477 | char *kwnames[] = { | |
8478 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8479 | }; | |
8480 | ||
8481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8483 | arg2 = obj1; | |
8484 | arg3 = obj2; | |
a41e16b6 | 8485 | { |
994141e6 | 8486 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
8487 | if (PyErr_Occurred()) SWIG_fail; |
8488 | } | |
d14a1e28 RD |
8489 | { |
8490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8491 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8492 | ||
8493 | wxPyEndAllowThreads(__tstate); | |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8495 | } | |
8496 | Py_INCREF(Py_None); resultobj = Py_None; | |
8497 | return resultobj; | |
8498 | fail: | |
8499 | return NULL; | |
8500 | } | |
8501 | ||
8502 | ||
8503 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8504 | PyObject *resultobj; | |
8505 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8506 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
e811c8ce | 8507 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8508 | bool result; |
8509 | PyObject * obj0 = 0 ; | |
994141e6 | 8510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8511 | PyObject * obj2 = 0 ; |
8512 | char *kwnames[] = { | |
8513 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8514 | }; | |
8515 | ||
994141e6 | 8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8518 | if (obj1) { |
8519 | { | |
8520 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8521 | if (PyErr_Occurred()) SWIG_fail; | |
8522 | } | |
8523 | } | |
d14a1e28 | 8524 | if (obj2) { |
a41e16b6 | 8525 | { |
994141e6 | 8526 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
8527 | if (PyErr_Occurred()) SWIG_fail; |
8528 | } | |
d14a1e28 RD |
8529 | } |
8530 | { | |
8531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8532 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8533 | ||
8534 | wxPyEndAllowThreads(__tstate); | |
8535 | if (PyErr_Occurred()) SWIG_fail; | |
8536 | } | |
4d5c3d91 | 8537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8538 | return resultobj; |
8539 | fail: | |
8540 | return NULL; | |
8541 | } | |
8542 | ||
8543 | ||
8544 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8545 | PyObject *resultobj; | |
8546 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8547 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8548 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8549 | bool result; | |
e811c8ce | 8550 | bool temp2 = False ; |
d14a1e28 RD |
8551 | PyObject * obj0 = 0 ; |
8552 | PyObject * obj1 = 0 ; | |
8553 | char *kwnames[] = { | |
8554 | (char *) "self",(char *) "facename", NULL | |
8555 | }; | |
8556 | ||
8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8559 | if (obj1) { | |
8560 | { | |
8561 | arg2 = wxString_in_helper(obj1); | |
8562 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8563 | temp2 = True; |
d14a1e28 RD |
8564 | } |
8565 | } | |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8569 | ||
8570 | wxPyEndAllowThreads(__tstate); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
4d5c3d91 | 8573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8574 | { |
8575 | if (temp2) | |
8576 | delete arg2; | |
8577 | } | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | { | |
8581 | if (temp2) | |
8582 | delete arg2; | |
8583 | } | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
8588 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8589 | PyObject *resultobj; | |
8590 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8591 | PyObject *result; | |
8592 | PyObject * obj0 = 0 ; | |
8593 | char *kwnames[] = { | |
8594 | (char *) "self", NULL | |
8595 | }; | |
8596 | ||
8597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8599 | { | |
8600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8601 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8602 | ||
8603 | wxPyEndAllowThreads(__tstate); | |
8604 | if (PyErr_Occurred()) SWIG_fail; | |
8605 | } | |
8606 | resultobj = result; | |
8607 | return resultobj; | |
8608 | fail: | |
8609 | return NULL; | |
8610 | } | |
8611 | ||
8612 | ||
8613 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8614 | PyObject *resultobj; | |
8615 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8616 | PyObject *result; | |
8617 | PyObject * obj0 = 0 ; | |
8618 | char *kwnames[] = { | |
8619 | (char *) "self", NULL | |
8620 | }; | |
8621 | ||
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8624 | { | |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8627 | ||
8628 | wxPyEndAllowThreads(__tstate); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
8631 | resultobj = result; | |
8632 | return resultobj; | |
8633 | fail: | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
8638 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8639 | PyObject *obj; | |
8640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8641 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8642 | Py_INCREF(obj); | |
8643 | return Py_BuildValue((char *)""); | |
8644 | } | |
8645 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8646 | PyObject *resultobj; | |
8647 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8648 | int arg2 ; | |
8649 | PyObject * obj0 = 0 ; | |
994141e6 | 8650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8651 | char *kwnames[] = { |
8652 | (char *) "self",(char *) "Language", NULL | |
8653 | }; | |
8654 | ||
994141e6 | 8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8657 | { |
8658 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
d14a1e28 RD |
8661 | if (arg1) (arg1)->Language = arg2; |
8662 | ||
8663 | Py_INCREF(Py_None); resultobj = Py_None; | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
8670 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj; | |
8672 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8673 | int result; | |
8674 | PyObject * obj0 = 0 ; | |
8675 | char *kwnames[] = { | |
8676 | (char *) "self", NULL | |
8677 | }; | |
8678 | ||
8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8681 | result = (int) ((arg1)->Language); | |
8682 | ||
994141e6 | 8683 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8684 | return resultobj; |
8685 | fail: | |
8686 | return NULL; | |
8687 | } | |
8688 | ||
8689 | ||
8690 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8691 | PyObject *resultobj; | |
8692 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8693 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8694 | bool temp2 = False ; |
d14a1e28 RD |
8695 | PyObject * obj0 = 0 ; |
8696 | PyObject * obj1 = 0 ; | |
8697 | char *kwnames[] = { | |
8698 | (char *) "self",(char *) "CanonicalName", NULL | |
8699 | }; | |
8700 | ||
8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8703 | { |
8704 | arg2 = wxString_in_helper(obj1); | |
8705 | if (arg2 == NULL) SWIG_fail; | |
8706 | temp2 = True; | |
8707 | } | |
196addbf | 8708 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8709 | |
8710 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8711 | { |
8712 | if (temp2) | |
8713 | delete arg2; | |
8714 | } | |
d14a1e28 RD |
8715 | return resultobj; |
8716 | fail: | |
7eae615b RD |
8717 | { |
8718 | if (temp2) | |
8719 | delete arg2; | |
8720 | } | |
d14a1e28 RD |
8721 | return NULL; |
8722 | } | |
8723 | ||
8724 | ||
8725 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8726 | PyObject *resultobj; | |
8727 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8728 | wxString *result; |
d14a1e28 RD |
8729 | PyObject * obj0 = 0 ; |
8730 | char *kwnames[] = { | |
8731 | (char *) "self", NULL | |
8732 | }; | |
8733 | ||
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8736 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8737 | |
8738 | { | |
8739 | #if wxUSE_UNICODE | |
196addbf | 8740 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8741 | #else |
196addbf | 8742 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8743 | #endif |
8744 | } | |
8745 | return resultobj; | |
8746 | fail: | |
8747 | return NULL; | |
8748 | } | |
8749 | ||
8750 | ||
8751 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8752 | PyObject *resultobj; | |
8753 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8754 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8755 | bool temp2 = False ; |
d14a1e28 RD |
8756 | PyObject * obj0 = 0 ; |
8757 | PyObject * obj1 = 0 ; | |
8758 | char *kwnames[] = { | |
8759 | (char *) "self",(char *) "Description", NULL | |
8760 | }; | |
8761 | ||
8762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8764 | { |
8765 | arg2 = wxString_in_helper(obj1); | |
8766 | if (arg2 == NULL) SWIG_fail; | |
8767 | temp2 = True; | |
8768 | } | |
196addbf | 8769 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8770 | |
8771 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8772 | { |
8773 | if (temp2) | |
8774 | delete arg2; | |
8775 | } | |
d14a1e28 RD |
8776 | return resultobj; |
8777 | fail: | |
7eae615b RD |
8778 | { |
8779 | if (temp2) | |
8780 | delete arg2; | |
8781 | } | |
d14a1e28 RD |
8782 | return NULL; |
8783 | } | |
8784 | ||
8785 | ||
8786 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8787 | PyObject *resultobj; | |
8788 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8789 | wxString *result; |
d14a1e28 RD |
8790 | PyObject * obj0 = 0 ; |
8791 | char *kwnames[] = { | |
8792 | (char *) "self", NULL | |
8793 | }; | |
8794 | ||
8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8797 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8798 | |
8799 | { | |
8800 | #if wxUSE_UNICODE | |
196addbf | 8801 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8802 | #else |
196addbf | 8803 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8804 | #endif |
8805 | } | |
8806 | return resultobj; | |
8807 | fail: | |
8808 | return NULL; | |
8809 | } | |
8810 | ||
8811 | ||
8812 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8813 | PyObject *obj; | |
8814 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8815 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8816 | Py_INCREF(obj); | |
8817 | return Py_BuildValue((char *)""); | |
8818 | } | |
8819 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8820 | PyObject *resultobj; | |
8821 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8822 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8823 | wxLocale *result; | |
994141e6 RD |
8824 | PyObject * obj0 = 0 ; |
8825 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8826 | char *kwnames[] = { |
8827 | (char *) "language",(char *) "flags", NULL | |
8828 | }; | |
8829 | ||
994141e6 RD |
8830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
8831 | if (obj0) { | |
8832 | { | |
8833 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
8835 | } | |
8836 | } | |
8837 | if (obj1) { | |
8838 | { | |
8839 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8840 | if (PyErr_Occurred()) SWIG_fail; | |
8841 | } | |
8842 | } | |
d14a1e28 RD |
8843 | { |
8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8845 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8846 | ||
8847 | wxPyEndAllowThreads(__tstate); | |
8848 | if (PyErr_Occurred()) SWIG_fail; | |
8849 | } | |
8850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8851 | return resultobj; | |
8852 | fail: | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
8857 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8858 | PyObject *resultobj; | |
8859 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8860 | PyObject * obj0 = 0 ; | |
8861 | char *kwnames[] = { | |
8862 | (char *) "self", NULL | |
8863 | }; | |
8864 | ||
8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8867 | { | |
8868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8869 | delete arg1; | |
8870 | ||
8871 | wxPyEndAllowThreads(__tstate); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
8873 | } | |
8874 | Py_INCREF(Py_None); resultobj = Py_None; | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | return NULL; | |
8878 | } | |
8879 | ||
8880 | ||
8881 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8882 | PyObject *resultobj; | |
8883 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8884 | wxString *arg2 = 0 ; | |
8885 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8886 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8887 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8888 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
e811c8ce RD |
8889 | bool arg5 = (bool) True ; |
8890 | bool arg6 = (bool) False ; | |
d14a1e28 | 8891 | bool result; |
e811c8ce RD |
8892 | bool temp2 = False ; |
8893 | bool temp3 = False ; | |
8894 | bool temp4 = False ; | |
d14a1e28 RD |
8895 | PyObject * obj0 = 0 ; |
8896 | PyObject * obj1 = 0 ; | |
8897 | PyObject * obj2 = 0 ; | |
8898 | PyObject * obj3 = 0 ; | |
8899 | PyObject * obj4 = 0 ; | |
8900 | PyObject * obj5 = 0 ; | |
8901 | char *kwnames[] = { | |
8902 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8903 | }; | |
8904 | ||
8905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8907 | { | |
8908 | arg2 = wxString_in_helper(obj1); | |
8909 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8910 | temp2 = True; |
d14a1e28 RD |
8911 | } |
8912 | if (obj2) { | |
8913 | { | |
8914 | arg3 = wxString_in_helper(obj2); | |
8915 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8916 | temp3 = True; |
d14a1e28 RD |
8917 | } |
8918 | } | |
8919 | if (obj3) { | |
8920 | { | |
8921 | arg4 = wxString_in_helper(obj3); | |
8922 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8923 | temp4 = True; |
d14a1e28 RD |
8924 | } |
8925 | } | |
8926 | if (obj4) { | |
a41e16b6 | 8927 | { |
994141e6 | 8928 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
8929 | if (PyErr_Occurred()) SWIG_fail; |
8930 | } | |
d14a1e28 RD |
8931 | } |
8932 | if (obj5) { | |
a41e16b6 | 8933 | { |
994141e6 | 8934 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
a41e16b6 RD |
8935 | if (PyErr_Occurred()) SWIG_fail; |
8936 | } | |
d14a1e28 RD |
8937 | } |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8941 | ||
8942 | wxPyEndAllowThreads(__tstate); | |
8943 | if (PyErr_Occurred()) SWIG_fail; | |
8944 | } | |
4d5c3d91 | 8945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8946 | { |
8947 | if (temp2) | |
8948 | delete arg2; | |
8949 | } | |
8950 | { | |
8951 | if (temp3) | |
8952 | delete arg3; | |
8953 | } | |
8954 | { | |
8955 | if (temp4) | |
8956 | delete arg4; | |
8957 | } | |
8958 | return resultobj; | |
8959 | fail: | |
8960 | { | |
8961 | if (temp2) | |
8962 | delete arg2; | |
8963 | } | |
8964 | { | |
8965 | if (temp3) | |
8966 | delete arg3; | |
8967 | } | |
8968 | { | |
8969 | if (temp4) | |
8970 | delete arg4; | |
8971 | } | |
8972 | return NULL; | |
8973 | } | |
8974 | ||
8975 | ||
8976 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8977 | PyObject *resultobj; | |
8978 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8979 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8980 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8981 | bool result; | |
8982 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8983 | PyObject * obj1 = 0 ; |
8984 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8985 | char *kwnames[] = { |
8986 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8987 | }; | |
8988 | ||
994141e6 | 8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8991 | if (obj1) { |
8992 | { | |
8993 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
8995 | } | |
8996 | } | |
8997 | if (obj2) { | |
8998 | { | |
8999 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9000 | if (PyErr_Occurred()) SWIG_fail; | |
9001 | } | |
9002 | } | |
d14a1e28 RD |
9003 | { |
9004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9005 | result = (bool)(arg1)->Init(arg2,arg3); | |
9006 | ||
9007 | wxPyEndAllowThreads(__tstate); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | } | |
4d5c3d91 | 9010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9011 | return resultobj; |
9012 | fail: | |
9013 | return NULL; | |
9014 | } | |
9015 | ||
9016 | ||
9017 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9018 | PyObject *resultobj; | |
9019 | int result; | |
9020 | char *kwnames[] = { | |
9021 | NULL | |
9022 | }; | |
9023 | ||
9024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9025 | { | |
9026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9027 | result = (int)wxLocale::GetSystemLanguage(); | |
9028 | ||
9029 | wxPyEndAllowThreads(__tstate); | |
9030 | if (PyErr_Occurred()) SWIG_fail; | |
9031 | } | |
994141e6 | 9032 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9033 | return resultobj; |
9034 | fail: | |
9035 | return NULL; | |
9036 | } | |
9037 | ||
9038 | ||
9039 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9040 | PyObject *resultobj; | |
9041 | int result; | |
9042 | char *kwnames[] = { | |
9043 | NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9047 | { | |
9048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9049 | result = (int)wxLocale::GetSystemEncoding(); | |
9050 | ||
9051 | wxPyEndAllowThreads(__tstate); | |
9052 | if (PyErr_Occurred()) SWIG_fail; | |
9053 | } | |
994141e6 | 9054 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9055 | return resultobj; |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj; | |
9063 | wxString result; | |
9064 | char *kwnames[] = { | |
9065 | NULL | |
9066 | }; | |
9067 | ||
9068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9069 | { | |
9070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9071 | result = wxLocale::GetSystemEncodingName(); | |
9072 | ||
9073 | wxPyEndAllowThreads(__tstate); | |
9074 | if (PyErr_Occurred()) SWIG_fail; | |
9075 | } | |
9076 | { | |
9077 | #if wxUSE_UNICODE | |
9078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9079 | #else | |
9080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9081 | #endif | |
9082 | } | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
9089 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9090 | PyObject *resultobj; | |
9091 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9092 | bool result; | |
9093 | PyObject * obj0 = 0 ; | |
9094 | char *kwnames[] = { | |
9095 | (char *) "self", NULL | |
9096 | }; | |
9097 | ||
9098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9100 | { | |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
4d5c3d91 | 9107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9108 | return resultobj; |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj; | |
9116 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9117 | wxString result; | |
9118 | PyObject * obj0 = 0 ; | |
9119 | char *kwnames[] = { | |
9120 | (char *) "self", NULL | |
9121 | }; | |
9122 | ||
9123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
9124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9125 | { | |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9127 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9128 | ||
9129 | wxPyEndAllowThreads(__tstate); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
9132 | { | |
9133 | #if wxUSE_UNICODE | |
9134 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9135 | #else | |
9136 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9137 | #endif | |
9138 | } | |
9139 | return resultobj; | |
9140 | fail: | |
9141 | return NULL; | |
9142 | } | |
9143 | ||
9144 | ||
9145 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9146 | PyObject *resultobj; | |
9147 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9148 | int result; | |
9149 | PyObject * obj0 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9156 | { | |
9157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9158 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9159 | ||
9160 | wxPyEndAllowThreads(__tstate); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
9162 | } | |
994141e6 | 9163 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9164 | return resultobj; |
9165 | fail: | |
9166 | return NULL; | |
9167 | } | |
9168 | ||
9169 | ||
9170 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject *resultobj; | |
9172 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9173 | wxString result; | |
9174 | PyObject * obj0 = 0 ; | |
9175 | char *kwnames[] = { | |
9176 | (char *) "self", NULL | |
9177 | }; | |
9178 | ||
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9181 | { | |
9182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9183 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9184 | ||
9185 | wxPyEndAllowThreads(__tstate); | |
9186 | if (PyErr_Occurred()) SWIG_fail; | |
9187 | } | |
9188 | { | |
9189 | #if wxUSE_UNICODE | |
9190 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9191 | #else | |
9192 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9193 | #endif | |
9194 | } | |
9195 | return resultobj; | |
9196 | fail: | |
9197 | return NULL; | |
9198 | } | |
9199 | ||
9200 | ||
9201 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9202 | PyObject *resultobj; | |
9203 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9204 | wxString result; | |
9205 | PyObject * obj0 = 0 ; | |
9206 | char *kwnames[] = { | |
9207 | (char *) "self", NULL | |
9208 | }; | |
9209 | ||
9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9212 | { | |
9213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9214 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9215 | ||
9216 | wxPyEndAllowThreads(__tstate); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | } | |
9219 | { | |
9220 | #if wxUSE_UNICODE | |
9221 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9222 | #else | |
9223 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9224 | #endif | |
9225 | } | |
9226 | return resultobj; | |
9227 | fail: | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
9232 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject *resultobj; | |
9234 | wxString *arg1 = 0 ; | |
e811c8ce | 9235 | bool temp1 = False ; |
d14a1e28 RD |
9236 | PyObject * obj0 = 0 ; |
9237 | char *kwnames[] = { | |
9238 | (char *) "prefix", NULL | |
9239 | }; | |
9240 | ||
9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9242 | { | |
9243 | arg1 = wxString_in_helper(obj0); | |
9244 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9245 | temp1 = True; |
d14a1e28 RD |
9246 | } |
9247 | { | |
9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9249 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9250 | ||
9251 | wxPyEndAllowThreads(__tstate); | |
9252 | if (PyErr_Occurred()) SWIG_fail; | |
9253 | } | |
9254 | Py_INCREF(Py_None); resultobj = Py_None; | |
9255 | { | |
9256 | if (temp1) | |
9257 | delete arg1; | |
9258 | } | |
9259 | return resultobj; | |
9260 | fail: | |
9261 | { | |
9262 | if (temp1) | |
9263 | delete arg1; | |
9264 | } | |
9265 | return NULL; | |
9266 | } | |
9267 | ||
9268 | ||
9269 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9270 | PyObject *resultobj; | |
9271 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9272 | wxString *arg2 = 0 ; | |
9273 | bool result; | |
e811c8ce | 9274 | bool temp2 = False ; |
d14a1e28 RD |
9275 | PyObject * obj0 = 0 ; |
9276 | PyObject * obj1 = 0 ; | |
9277 | char *kwnames[] = { | |
9278 | (char *) "self",(char *) "szDomain", NULL | |
9279 | }; | |
9280 | ||
9281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9283 | { | |
9284 | arg2 = wxString_in_helper(obj1); | |
9285 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9286 | temp2 = True; |
d14a1e28 RD |
9287 | } |
9288 | { | |
9289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9290 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9291 | ||
9292 | wxPyEndAllowThreads(__tstate); | |
9293 | if (PyErr_Occurred()) SWIG_fail; | |
9294 | } | |
4d5c3d91 | 9295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9296 | { |
9297 | if (temp2) | |
9298 | delete arg2; | |
9299 | } | |
9300 | return resultobj; | |
9301 | fail: | |
9302 | { | |
9303 | if (temp2) | |
9304 | delete arg2; | |
9305 | } | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
9310 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9311 | PyObject *resultobj; | |
9312 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9313 | wxString *arg2 = 0 ; | |
9314 | bool result; | |
e811c8ce | 9315 | bool temp2 = False ; |
d14a1e28 RD |
9316 | PyObject * obj0 = 0 ; |
9317 | PyObject * obj1 = 0 ; | |
9318 | char *kwnames[] = { | |
9319 | (char *) "self",(char *) "szDomain", NULL | |
9320 | }; | |
9321 | ||
9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9324 | { | |
9325 | arg2 = wxString_in_helper(obj1); | |
9326 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9327 | temp2 = True; |
d14a1e28 RD |
9328 | } |
9329 | { | |
9330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9331 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9332 | ||
9333 | wxPyEndAllowThreads(__tstate); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
4d5c3d91 | 9336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9337 | { |
9338 | if (temp2) | |
9339 | delete arg2; | |
9340 | } | |
9341 | return resultobj; | |
9342 | fail: | |
9343 | { | |
9344 | if (temp2) | |
9345 | delete arg2; | |
9346 | } | |
9347 | return NULL; | |
9348 | } | |
9349 | ||
9350 | ||
9351 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9352 | PyObject *resultobj; | |
9353 | int arg1 ; | |
9354 | wxLanguageInfo *result; | |
994141e6 | 9355 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9356 | char *kwnames[] = { |
9357 | (char *) "lang", NULL | |
9358 | }; | |
9359 | ||
994141e6 RD |
9360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
9361 | { | |
9362 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
d14a1e28 RD |
9365 | { |
9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9367 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9368 | ||
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
9372 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
9379 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9380 | PyObject *resultobj; | |
9381 | int arg1 ; | |
9382 | wxString result; | |
994141e6 | 9383 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9384 | char *kwnames[] = { |
9385 | (char *) "lang", NULL | |
9386 | }; | |
9387 | ||
994141e6 RD |
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
9389 | { | |
9390 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | } | |
d14a1e28 RD |
9393 | { |
9394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9395 | result = wxLocale::GetLanguageName(arg1); | |
9396 | ||
9397 | wxPyEndAllowThreads(__tstate); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | } | |
9400 | { | |
9401 | #if wxUSE_UNICODE | |
9402 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9403 | #else | |
9404 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9405 | #endif | |
9406 | } | |
9407 | return resultobj; | |
9408 | fail: | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
9413 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9414 | PyObject *resultobj; | |
9415 | wxString *arg1 = 0 ; | |
9416 | wxLanguageInfo *result; | |
e811c8ce | 9417 | bool temp1 = False ; |
d14a1e28 RD |
9418 | PyObject * obj0 = 0 ; |
9419 | char *kwnames[] = { | |
9420 | (char *) "locale", NULL | |
9421 | }; | |
9422 | ||
9423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9424 | { | |
9425 | arg1 = wxString_in_helper(obj0); | |
9426 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9427 | temp1 = True; |
d14a1e28 RD |
9428 | } |
9429 | { | |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9437 | { | |
9438 | if (temp1) | |
9439 | delete arg1; | |
9440 | } | |
9441 | return resultobj; | |
9442 | fail: | |
9443 | { | |
9444 | if (temp1) | |
9445 | delete arg1; | |
9446 | } | |
9447 | return NULL; | |
9448 | } | |
9449 | ||
9450 | ||
9451 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9452 | PyObject *resultobj; | |
9453 | wxLanguageInfo *arg1 = 0 ; | |
9454 | PyObject * obj0 = 0 ; | |
9455 | char *kwnames[] = { | |
9456 | (char *) "info", NULL | |
9457 | }; | |
9458 | ||
9459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
9460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9461 | if (arg1 == NULL) { | |
9462 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9463 | } | |
9464 | { | |
9465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9466 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9467 | ||
9468 | wxPyEndAllowThreads(__tstate); | |
9469 | if (PyErr_Occurred()) SWIG_fail; | |
9470 | } | |
9471 | Py_INCREF(Py_None); resultobj = Py_None; | |
9472 | return resultobj; | |
9473 | fail: | |
9474 | return NULL; | |
9475 | } | |
9476 | ||
9477 | ||
9478 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9479 | PyObject *resultobj; | |
9480 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9481 | wxString *arg2 = 0 ; | |
9482 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9483 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9484 | wxString result; | |
e811c8ce RD |
9485 | bool temp2 = False ; |
9486 | bool temp3 = False ; | |
d14a1e28 RD |
9487 | PyObject * obj0 = 0 ; |
9488 | PyObject * obj1 = 0 ; | |
9489 | PyObject * obj2 = 0 ; | |
9490 | char *kwnames[] = { | |
9491 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9492 | }; | |
9493 | ||
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9496 | { | |
9497 | arg2 = wxString_in_helper(obj1); | |
9498 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9499 | temp2 = True; |
d14a1e28 RD |
9500 | } |
9501 | if (obj2) { | |
9502 | { | |
9503 | arg3 = wxString_in_helper(obj2); | |
9504 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9505 | temp3 = True; |
d14a1e28 RD |
9506 | } |
9507 | } | |
9508 | { | |
9509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9510 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9511 | ||
9512 | wxPyEndAllowThreads(__tstate); | |
9513 | if (PyErr_Occurred()) SWIG_fail; | |
9514 | } | |
9515 | { | |
9516 | #if wxUSE_UNICODE | |
9517 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9518 | #else | |
9519 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9520 | #endif | |
9521 | } | |
9522 | { | |
9523 | if (temp2) | |
9524 | delete arg2; | |
9525 | } | |
9526 | { | |
9527 | if (temp3) | |
9528 | delete arg3; | |
9529 | } | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | { | |
9533 | if (temp2) | |
9534 | delete arg2; | |
9535 | } | |
9536 | { | |
9537 | if (temp3) | |
9538 | delete arg3; | |
9539 | } | |
9540 | return NULL; | |
9541 | } | |
9542 | ||
9543 | ||
9544 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9545 | PyObject *resultobj; | |
9546 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9547 | wxString *result; | |
9548 | PyObject * obj0 = 0 ; | |
9549 | char *kwnames[] = { | |
9550 | (char *) "self", NULL | |
9551 | }; | |
9552 | ||
9553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9555 | { | |
9556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9557 | { | |
9558 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9559 | result = (wxString *) &_result_ref; | |
9560 | } | |
9561 | ||
9562 | wxPyEndAllowThreads(__tstate); | |
9563 | if (PyErr_Occurred()) SWIG_fail; | |
9564 | } | |
cc6dd355 RD |
9565 | { |
9566 | #if wxUSE_UNICODE | |
9567 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9568 | #else | |
9569 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9570 | #endif | |
9571 | } | |
d14a1e28 RD |
9572 | return resultobj; |
9573 | fail: | |
9574 | return NULL; | |
9575 | } | |
9576 | ||
9577 | ||
9578 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9579 | PyObject *obj; | |
9580 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9581 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9582 | Py_INCREF(obj); | |
9583 | return Py_BuildValue((char *)""); | |
9584 | } | |
9585 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9586 | PyObject *resultobj; | |
9587 | wxLocale *result; | |
9588 | char *kwnames[] = { | |
9589 | NULL | |
9590 | }; | |
9591 | ||
9592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9593 | { | |
9594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9595 | result = (wxLocale *)wxGetLocale(); | |
9596 | ||
9597 | wxPyEndAllowThreads(__tstate); | |
9598 | if (PyErr_Occurred()) SWIG_fail; | |
9599 | } | |
9600 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9601 | return resultobj; | |
9602 | fail: | |
9603 | return NULL; | |
9604 | } | |
9605 | ||
9606 | ||
9607 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9608 | PyObject *resultobj; | |
9609 | wxString *arg1 = 0 ; | |
9610 | wxString result; | |
e811c8ce | 9611 | bool temp1 = False ; |
d14a1e28 RD |
9612 | PyObject * obj0 = 0 ; |
9613 | ||
9614 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9615 | { | |
9616 | arg1 = wxString_in_helper(obj0); | |
9617 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9618 | temp1 = True; |
d14a1e28 RD |
9619 | } |
9620 | { | |
9621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9622 | result = wxGetTranslation((wxString const &)*arg1); | |
9623 | ||
9624 | wxPyEndAllowThreads(__tstate); | |
9625 | if (PyErr_Occurred()) SWIG_fail; | |
9626 | } | |
9627 | { | |
9628 | #if wxUSE_UNICODE | |
9629 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9630 | #else | |
9631 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9632 | #endif | |
9633 | } | |
9634 | { | |
9635 | if (temp1) | |
9636 | delete arg1; | |
9637 | } | |
9638 | return resultobj; | |
9639 | fail: | |
9640 | { | |
9641 | if (temp1) | |
9642 | delete arg1; | |
9643 | } | |
9644 | return NULL; | |
9645 | } | |
9646 | ||
9647 | ||
9648 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9649 | PyObject *resultobj; | |
9650 | wxString *arg1 = 0 ; | |
9651 | wxString *arg2 = 0 ; | |
9652 | size_t arg3 ; | |
9653 | wxString result; | |
e811c8ce RD |
9654 | bool temp1 = False ; |
9655 | bool temp2 = False ; | |
d14a1e28 RD |
9656 | PyObject * obj0 = 0 ; |
9657 | PyObject * obj1 = 0 ; | |
9658 | PyObject * obj2 = 0 ; | |
9659 | ||
9660 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9661 | { | |
9662 | arg1 = wxString_in_helper(obj0); | |
9663 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9664 | temp1 = True; |
d14a1e28 RD |
9665 | } |
9666 | { | |
9667 | arg2 = wxString_in_helper(obj1); | |
9668 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9669 | temp2 = True; |
d14a1e28 | 9670 | } |
a41e16b6 | 9671 | { |
994141e6 | 9672 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
9673 | if (PyErr_Occurred()) SWIG_fail; |
9674 | } | |
d14a1e28 RD |
9675 | { |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9677 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9678 | ||
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | { | |
9683 | #if wxUSE_UNICODE | |
9684 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9685 | #else | |
9686 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9687 | #endif | |
9688 | } | |
9689 | { | |
9690 | if (temp1) | |
9691 | delete arg1; | |
9692 | } | |
9693 | { | |
9694 | if (temp2) | |
9695 | delete arg2; | |
9696 | } | |
9697 | return resultobj; | |
9698 | fail: | |
9699 | { | |
9700 | if (temp1) | |
9701 | delete arg1; | |
9702 | } | |
9703 | { | |
9704 | if (temp2) | |
9705 | delete arg2; | |
9706 | } | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
9711 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9712 | int argc; | |
9713 | PyObject *argv[4]; | |
9714 | int ii; | |
9715 | ||
9716 | argc = PyObject_Length(args); | |
9717 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9718 | argv[ii] = PyTuple_GetItem(args,ii); | |
9719 | } | |
9720 | if (argc == 1) { | |
9721 | int _v; | |
9722 | { | |
4d5c3d91 | 9723 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9724 | } |
9725 | if (_v) { | |
9726 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9727 | } | |
9728 | } | |
9729 | if (argc == 3) { | |
9730 | int _v; | |
9731 | { | |
4d5c3d91 | 9732 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9733 | } |
9734 | if (_v) { | |
9735 | { | |
4d5c3d91 | 9736 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
9737 | } |
9738 | if (_v) { | |
9739 | { | |
994141e6 | 9740 | SWIG_PyObj_AsUnsignedLong(argv[2]); |
a41e16b6 RD |
9741 | if (PyErr_Occurred()) { |
9742 | _v = 0; | |
9743 | PyErr_Clear(); | |
9744 | } else { | |
9745 | _v = 1; | |
9746 | } | |
d14a1e28 RD |
9747 | } |
9748 | if (_v) { | |
9749 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9750 | } | |
9751 | } | |
9752 | } | |
9753 | } | |
9754 | ||
9755 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
9760 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9761 | PyObject *resultobj; | |
9762 | wxEncodingConverter *result; | |
9763 | char *kwnames[] = { | |
9764 | NULL | |
9765 | }; | |
9766 | ||
9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9768 | { | |
9769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9770 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9771 | ||
9772 | wxPyEndAllowThreads(__tstate); | |
9773 | if (PyErr_Occurred()) SWIG_fail; | |
9774 | } | |
9775 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9776 | return resultobj; | |
9777 | fail: | |
9778 | return NULL; | |
9779 | } | |
9780 | ||
9781 | ||
9782 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9783 | PyObject *resultobj; | |
9784 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9785 | PyObject * obj0 = 0 ; | |
9786 | char *kwnames[] = { | |
9787 | (char *) "self", NULL | |
9788 | }; | |
9789 | ||
9790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9792 | { | |
9793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9794 | delete arg1; | |
9795 | ||
9796 | wxPyEndAllowThreads(__tstate); | |
9797 | if (PyErr_Occurred()) SWIG_fail; | |
9798 | } | |
9799 | Py_INCREF(Py_None); resultobj = Py_None; | |
9800 | return resultobj; | |
9801 | fail: | |
9802 | return NULL; | |
9803 | } | |
9804 | ||
9805 | ||
9806 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9807 | PyObject *resultobj; | |
9808 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9809 | int arg2 ; | |
9810 | int arg3 ; | |
9811 | int arg4 = (int) wxCONVERT_STRICT ; | |
9812 | bool result; | |
9813 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9814 | PyObject * obj1 = 0 ; |
9815 | PyObject * obj2 = 0 ; | |
9816 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9817 | char *kwnames[] = { |
9818 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9819 | }; | |
9820 | ||
994141e6 | 9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 9822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9823 | { |
9824 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
9826 | } | |
9827 | { | |
9828 | arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2); | |
9829 | if (PyErr_Occurred()) SWIG_fail; | |
9830 | } | |
9831 | if (obj3) { | |
9832 | { | |
9833 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
9836 | } | |
d14a1e28 RD |
9837 | { |
9838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9839 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9840 | ||
9841 | wxPyEndAllowThreads(__tstate); | |
9842 | if (PyErr_Occurred()) SWIG_fail; | |
9843 | } | |
4d5c3d91 | 9844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9845 | return resultobj; |
9846 | fail: | |
9847 | return NULL; | |
9848 | } | |
9849 | ||
9850 | ||
9851 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9852 | PyObject *resultobj; | |
9853 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9854 | wxString *arg2 = 0 ; | |
9855 | wxString result; | |
e811c8ce | 9856 | bool temp2 = False ; |
d14a1e28 RD |
9857 | PyObject * obj0 = 0 ; |
9858 | PyObject * obj1 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self",(char *) "input", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9865 | { | |
9866 | arg2 = wxString_in_helper(obj1); | |
9867 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9868 | temp2 = True; |
d14a1e28 RD |
9869 | } |
9870 | { | |
9871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9872 | result = (arg1)->Convert((wxString const &)*arg2); | |
9873 | ||
9874 | wxPyEndAllowThreads(__tstate); | |
9875 | if (PyErr_Occurred()) SWIG_fail; | |
9876 | } | |
9877 | { | |
9878 | #if wxUSE_UNICODE | |
9879 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9880 | #else | |
9881 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9882 | #endif | |
9883 | } | |
9884 | { | |
9885 | if (temp2) | |
9886 | delete arg2; | |
9887 | } | |
9888 | return resultobj; | |
9889 | fail: | |
9890 | { | |
9891 | if (temp2) | |
9892 | delete arg2; | |
9893 | } | |
9894 | return NULL; | |
9895 | } | |
9896 | ||
9897 | ||
9898 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9899 | PyObject *resultobj; | |
9900 | int arg1 ; | |
9901 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9902 | wxFontEncodingArray result; | |
994141e6 RD |
9903 | PyObject * obj0 = 0 ; |
9904 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9905 | char *kwnames[] = { |
9906 | (char *) "enc",(char *) "platform", NULL | |
9907 | }; | |
9908 | ||
994141e6 RD |
9909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
9910 | { | |
9911 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | if (obj1) { | |
9915 | { | |
9916 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | } | |
d14a1e28 RD |
9920 | { |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
9927 | { | |
9928 | resultobj = PyList_New(0); | |
9929 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9930 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9931 | PyList_Append(resultobj, number); | |
9932 | Py_DECREF(number); | |
9933 | } | |
9934 | } | |
9935 | return resultobj; | |
9936 | fail: | |
9937 | return NULL; | |
9938 | } | |
9939 | ||
9940 | ||
9941 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject *resultobj; | |
9943 | int arg1 ; | |
9944 | wxFontEncodingArray result; | |
994141e6 | 9945 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9946 | char *kwnames[] = { |
9947 | (char *) "enc", NULL | |
9948 | }; | |
9949 | ||
994141e6 RD |
9950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
9951 | { | |
9952 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9953 | if (PyErr_Occurred()) SWIG_fail; | |
9954 | } | |
d14a1e28 RD |
9955 | { |
9956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9957 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9958 | ||
9959 | wxPyEndAllowThreads(__tstate); | |
9960 | if (PyErr_Occurred()) SWIG_fail; | |
9961 | } | |
9962 | { | |
9963 | resultobj = PyList_New(0); | |
9964 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9965 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9966 | PyList_Append(resultobj, number); | |
9967 | Py_DECREF(number); | |
9968 | } | |
9969 | } | |
9970 | return resultobj; | |
9971 | fail: | |
9972 | return NULL; | |
9973 | } | |
9974 | ||
9975 | ||
9976 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9977 | PyObject *resultobj; | |
9978 | int arg1 ; | |
9979 | int arg2 ; | |
9980 | bool result; | |
994141e6 RD |
9981 | PyObject * obj0 = 0 ; |
9982 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9983 | char *kwnames[] = { |
9984 | (char *) "encIn",(char *) "encOut", NULL | |
9985 | }; | |
9986 | ||
994141e6 RD |
9987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
9988 | { | |
9989 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9990 | if (PyErr_Occurred()) SWIG_fail; | |
9991 | } | |
9992 | { | |
9993 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
d14a1e28 RD |
9996 | { |
9997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9998 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9999 | ||
10000 | wxPyEndAllowThreads(__tstate); | |
10001 | if (PyErr_Occurred()) SWIG_fail; | |
10002 | } | |
4d5c3d91 | 10003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10004 | return resultobj; |
10005 | fail: | |
10006 | return NULL; | |
10007 | } | |
10008 | ||
10009 | ||
10010 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10011 | PyObject *obj; | |
10012 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10013 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10014 | Py_INCREF(obj); | |
10015 | return Py_BuildValue((char *)""); | |
10016 | } | |
10017 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject *resultobj; | |
10019 | wxDC *arg1 = (wxDC *) 0 ; | |
10020 | PyObject * obj0 = 0 ; | |
10021 | char *kwnames[] = { | |
10022 | (char *) "self", NULL | |
10023 | }; | |
10024 | ||
10025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
10026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10027 | { | |
10028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10029 | delete arg1; | |
10030 | ||
10031 | wxPyEndAllowThreads(__tstate); | |
10032 | if (PyErr_Occurred()) SWIG_fail; | |
10033 | } | |
10034 | Py_INCREF(Py_None); resultobj = Py_None; | |
10035 | return resultobj; | |
10036 | fail: | |
10037 | return NULL; | |
10038 | } | |
10039 | ||
10040 | ||
10041 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10042 | PyObject *resultobj; | |
10043 | wxDC *arg1 = (wxDC *) 0 ; | |
10044 | PyObject * obj0 = 0 ; | |
10045 | char *kwnames[] = { | |
10046 | (char *) "self", NULL | |
10047 | }; | |
10048 | ||
10049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
10050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10051 | { | |
10052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10053 | (arg1)->BeginDrawing(); | |
10054 | ||
10055 | wxPyEndAllowThreads(__tstate); | |
10056 | if (PyErr_Occurred()) SWIG_fail; | |
10057 | } | |
10058 | Py_INCREF(Py_None); resultobj = Py_None; | |
10059 | return resultobj; | |
10060 | fail: | |
10061 | return NULL; | |
10062 | } | |
10063 | ||
10064 | ||
10065 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10066 | PyObject *resultobj; | |
10067 | wxDC *arg1 = (wxDC *) 0 ; | |
10068 | PyObject * obj0 = 0 ; | |
10069 | char *kwnames[] = { | |
10070 | (char *) "self", NULL | |
10071 | }; | |
10072 | ||
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10075 | { | |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10077 | (arg1)->EndDrawing(); | |
10078 | ||
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | } | |
10082 | Py_INCREF(Py_None); resultobj = Py_None; | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
10089 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10090 | PyObject *resultobj; | |
10091 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10092 | int arg2 ; |
10093 | int arg3 ; | |
d14a1e28 RD |
10094 | wxColour *arg4 = 0 ; |
10095 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10096 | bool result; | |
10097 | wxColour temp4 ; | |
10098 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10099 | PyObject * obj1 = 0 ; |
10100 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10101 | PyObject * obj3 = 0 ; |
994141e6 | 10102 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10103 | char *kwnames[] = { |
10104 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10105 | }; | |
10106 | ||
994141e6 | 10107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10109 | { |
10110 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
10112 | } | |
10113 | { | |
10114 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
d14a1e28 RD |
10117 | { |
10118 | arg4 = &temp4; | |
10119 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10120 | } | |
994141e6 RD |
10121 | if (obj4) { |
10122 | { | |
10123 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10124 | if (PyErr_Occurred()) SWIG_fail; | |
10125 | } | |
10126 | } | |
d14a1e28 RD |
10127 | { |
10128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10129 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10130 | ||
10131 | wxPyEndAllowThreads(__tstate); | |
10132 | if (PyErr_Occurred()) SWIG_fail; | |
10133 | } | |
4d5c3d91 | 10134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10135 | return resultobj; |
10136 | fail: | |
10137 | return NULL; | |
10138 | } | |
10139 | ||
10140 | ||
10141 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10142 | PyObject *resultobj; | |
10143 | wxDC *arg1 = (wxDC *) 0 ; | |
10144 | wxPoint *arg2 = 0 ; | |
10145 | wxColour *arg3 = 0 ; | |
10146 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10147 | bool result; | |
10148 | wxPoint temp2 ; | |
10149 | wxColour temp3 ; | |
10150 | PyObject * obj0 = 0 ; | |
10151 | PyObject * obj1 = 0 ; | |
10152 | PyObject * obj2 = 0 ; | |
994141e6 | 10153 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10154 | char *kwnames[] = { |
10155 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10156 | }; | |
10157 | ||
994141e6 | 10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10160 | { | |
10161 | arg2 = &temp2; | |
10162 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10163 | } | |
10164 | { | |
10165 | arg3 = &temp3; | |
10166 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10167 | } | |
994141e6 RD |
10168 | if (obj3) { |
10169 | { | |
10170 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10171 | if (PyErr_Occurred()) SWIG_fail; | |
10172 | } | |
10173 | } | |
d14a1e28 RD |
10174 | { |
10175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10176 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10177 | ||
10178 | wxPyEndAllowThreads(__tstate); | |
10179 | if (PyErr_Occurred()) SWIG_fail; | |
10180 | } | |
4d5c3d91 | 10181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10182 | return resultobj; |
10183 | fail: | |
10184 | return NULL; | |
10185 | } | |
10186 | ||
10187 | ||
10188 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10189 | PyObject *resultobj; | |
10190 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10191 | int arg2 ; |
10192 | int arg3 ; | |
d14a1e28 RD |
10193 | wxColour result; |
10194 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10195 | PyObject * obj1 = 0 ; |
10196 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10197 | char *kwnames[] = { |
10198 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10199 | }; | |
10200 | ||
994141e6 | 10201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10203 | { |
10204 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10205 | if (PyErr_Occurred()) SWIG_fail; | |
10206 | } | |
10207 | { | |
10208 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10209 | if (PyErr_Occurred()) SWIG_fail; | |
10210 | } | |
d14a1e28 RD |
10211 | { |
10212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10213 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10214 | ||
10215 | wxPyEndAllowThreads(__tstate); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
10217 | } | |
10218 | { | |
10219 | wxColour * resultptr; | |
10220 | resultptr = new wxColour((wxColour &) result); | |
10221 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10222 | } | |
10223 | return resultobj; | |
10224 | fail: | |
10225 | return NULL; | |
10226 | } | |
10227 | ||
10228 | ||
10229 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject *resultobj; | |
10231 | wxDC *arg1 = (wxDC *) 0 ; | |
10232 | wxPoint *arg2 = 0 ; | |
10233 | wxColour result; | |
10234 | wxPoint temp2 ; | |
10235 | PyObject * obj0 = 0 ; | |
10236 | PyObject * obj1 = 0 ; | |
10237 | char *kwnames[] = { | |
10238 | (char *) "self",(char *) "pt", NULL | |
10239 | }; | |
10240 | ||
10241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
10242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10243 | { | |
10244 | arg2 = &temp2; | |
10245 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10246 | } | |
10247 | { | |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | { | |
10255 | wxColour * resultptr; | |
10256 | resultptr = new wxColour((wxColour &) result); | |
10257 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10258 | } | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10266 | PyObject *resultobj; | |
10267 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10268 | int arg2 ; |
10269 | int arg3 ; | |
10270 | int arg4 ; | |
10271 | int arg5 ; | |
d14a1e28 | 10272 | PyObject * obj0 = 0 ; |
994141e6 RD |
10273 | PyObject * obj1 = 0 ; |
10274 | PyObject * obj2 = 0 ; | |
10275 | PyObject * obj3 = 0 ; | |
10276 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10277 | char *kwnames[] = { |
10278 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10279 | }; | |
10280 | ||
994141e6 | 10281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10283 | { |
10284 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10285 | if (PyErr_Occurred()) SWIG_fail; | |
10286 | } | |
10287 | { | |
10288 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | } | |
10291 | { | |
10292 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | { | |
10296 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10297 | if (PyErr_Occurred()) SWIG_fail; | |
10298 | } | |
d14a1e28 RD |
10299 | { |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | Py_INCREF(Py_None); resultobj = Py_None; | |
10307 | return resultobj; | |
10308 | fail: | |
10309 | return NULL; | |
10310 | } | |
10311 | ||
10312 | ||
10313 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10314 | PyObject *resultobj; | |
10315 | wxDC *arg1 = (wxDC *) 0 ; | |
10316 | wxPoint *arg2 = 0 ; | |
10317 | wxPoint *arg3 = 0 ; | |
10318 | wxPoint temp2 ; | |
10319 | wxPoint temp3 ; | |
10320 | PyObject * obj0 = 0 ; | |
10321 | PyObject * obj1 = 0 ; | |
10322 | PyObject * obj2 = 0 ; | |
10323 | char *kwnames[] = { | |
10324 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10325 | }; | |
10326 | ||
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10329 | { | |
10330 | arg2 = &temp2; | |
10331 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10332 | } | |
10333 | { | |
10334 | arg3 = &temp3; | |
10335 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10336 | } | |
10337 | { | |
10338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10339 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10340 | ||
10341 | wxPyEndAllowThreads(__tstate); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | } | |
10344 | Py_INCREF(Py_None); resultobj = Py_None; | |
10345 | return resultobj; | |
10346 | fail: | |
10347 | return NULL; | |
10348 | } | |
10349 | ||
10350 | ||
10351 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10352 | PyObject *resultobj; | |
10353 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10354 | int arg2 ; |
10355 | int arg3 ; | |
d14a1e28 | 10356 | PyObject * obj0 = 0 ; |
994141e6 RD |
10357 | PyObject * obj1 = 0 ; |
10358 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10359 | char *kwnames[] = { |
10360 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10361 | }; | |
10362 | ||
994141e6 | 10363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10365 | { |
10366 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
10369 | { | |
10370 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10371 | if (PyErr_Occurred()) SWIG_fail; | |
10372 | } | |
d14a1e28 RD |
10373 | { |
10374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10375 | (arg1)->CrossHair(arg2,arg3); | |
10376 | ||
10377 | wxPyEndAllowThreads(__tstate); | |
10378 | if (PyErr_Occurred()) SWIG_fail; | |
10379 | } | |
10380 | Py_INCREF(Py_None); resultobj = Py_None; | |
10381 | return resultobj; | |
10382 | fail: | |
10383 | return NULL; | |
10384 | } | |
10385 | ||
10386 | ||
10387 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10388 | PyObject *resultobj; | |
10389 | wxDC *arg1 = (wxDC *) 0 ; | |
10390 | wxPoint *arg2 = 0 ; | |
10391 | wxPoint temp2 ; | |
10392 | PyObject * obj0 = 0 ; | |
10393 | PyObject * obj1 = 0 ; | |
10394 | char *kwnames[] = { | |
10395 | (char *) "self",(char *) "pt", NULL | |
10396 | }; | |
10397 | ||
10398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
10399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10400 | { | |
10401 | arg2 = &temp2; | |
10402 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10403 | } | |
10404 | { | |
10405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10406 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10407 | ||
10408 | wxPyEndAllowThreads(__tstate); | |
10409 | if (PyErr_Occurred()) SWIG_fail; | |
10410 | } | |
10411 | Py_INCREF(Py_None); resultobj = Py_None; | |
10412 | return resultobj; | |
10413 | fail: | |
10414 | return NULL; | |
10415 | } | |
10416 | ||
10417 | ||
10418 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10419 | PyObject *resultobj; | |
10420 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10421 | int arg2 ; |
10422 | int arg3 ; | |
10423 | int arg4 ; | |
10424 | int arg5 ; | |
10425 | int arg6 ; | |
10426 | int arg7 ; | |
d14a1e28 | 10427 | PyObject * obj0 = 0 ; |
994141e6 RD |
10428 | PyObject * obj1 = 0 ; |
10429 | PyObject * obj2 = 0 ; | |
10430 | PyObject * obj3 = 0 ; | |
10431 | PyObject * obj4 = 0 ; | |
10432 | PyObject * obj5 = 0 ; | |
10433 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10434 | char *kwnames[] = { |
10435 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10436 | }; | |
10437 | ||
994141e6 | 10438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10440 | { |
10441 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
10444 | { | |
10445 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | } | |
10448 | { | |
10449 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10450 | if (PyErr_Occurred()) SWIG_fail; | |
10451 | } | |
10452 | { | |
10453 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10454 | if (PyErr_Occurred()) SWIG_fail; | |
10455 | } | |
10456 | { | |
10457 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | { | |
10461 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
10463 | } | |
d14a1e28 RD |
10464 | { |
10465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10466 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10467 | ||
10468 | wxPyEndAllowThreads(__tstate); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
10470 | } | |
10471 | Py_INCREF(Py_None); resultobj = Py_None; | |
10472 | return resultobj; | |
10473 | fail: | |
10474 | return NULL; | |
10475 | } | |
10476 | ||
10477 | ||
10478 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10479 | PyObject *resultobj; | |
10480 | wxDC *arg1 = (wxDC *) 0 ; | |
10481 | wxPoint *arg2 = 0 ; | |
10482 | wxPoint *arg3 = 0 ; | |
10483 | wxPoint *arg4 = 0 ; | |
10484 | wxPoint temp2 ; | |
10485 | wxPoint temp3 ; | |
10486 | wxPoint temp4 ; | |
10487 | PyObject * obj0 = 0 ; | |
10488 | PyObject * obj1 = 0 ; | |
10489 | PyObject * obj2 = 0 ; | |
10490 | PyObject * obj3 = 0 ; | |
10491 | char *kwnames[] = { | |
10492 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10493 | }; | |
10494 | ||
10495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10497 | { | |
10498 | arg2 = &temp2; | |
10499 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10500 | } | |
10501 | { | |
10502 | arg3 = &temp3; | |
10503 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10504 | } | |
10505 | { | |
10506 | arg4 = &temp4; | |
10507 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10508 | } | |
10509 | { | |
10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10511 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10512 | ||
10513 | wxPyEndAllowThreads(__tstate); | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
10516 | Py_INCREF(Py_None); resultobj = Py_None; | |
10517 | return resultobj; | |
10518 | fail: | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
10523 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10524 | PyObject *resultobj; | |
10525 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10526 | int arg2 ; |
10527 | int arg3 ; | |
10528 | int arg4 ; | |
10529 | int arg5 ; | |
d14a1e28 | 10530 | PyObject * obj0 = 0 ; |
994141e6 RD |
10531 | PyObject * obj1 = 0 ; |
10532 | PyObject * obj2 = 0 ; | |
10533 | PyObject * obj3 = 0 ; | |
10534 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10535 | char *kwnames[] = { |
10536 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10537 | }; | |
10538 | ||
994141e6 | 10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10541 | { | |
994141e6 | 10542 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
d14a1e28 RD |
10543 | if (PyErr_Occurred()) SWIG_fail; |
10544 | } | |
994141e6 RD |
10545 | { |
10546 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10547 | if (PyErr_Occurred()) SWIG_fail; | |
10548 | } | |
10549 | { | |
10550 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10551 | if (PyErr_Occurred()) SWIG_fail; | |
10552 | } | |
10553 | { | |
10554 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10555 | if (PyErr_Occurred()) SWIG_fail; | |
10556 | } | |
10557 | { | |
10558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10559 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10560 | ||
10561 | wxPyEndAllowThreads(__tstate); | |
10562 | if (PyErr_Occurred()) SWIG_fail; | |
10563 | } | |
10564 | Py_INCREF(Py_None); resultobj = Py_None; | |
10565 | return resultobj; | |
10566 | fail: | |
10567 | return NULL; | |
10568 | } | |
10569 | ||
10570 | ||
d14a1e28 RD |
10571 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
10572 | PyObject *resultobj; | |
10573 | wxDC *arg1 = (wxDC *) 0 ; | |
10574 | wxRect *arg2 = 0 ; | |
10575 | wxRect temp2 ; | |
10576 | PyObject * obj0 = 0 ; | |
10577 | PyObject * obj1 = 0 ; | |
10578 | char *kwnames[] = { | |
10579 | (char *) "self",(char *) "rect", NULL | |
10580 | }; | |
10581 | ||
10582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
10583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10584 | { | |
10585 | arg2 = &temp2; | |
10586 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10587 | } | |
10588 | { | |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10590 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10591 | ||
10592 | wxPyEndAllowThreads(__tstate); | |
10593 | if (PyErr_Occurred()) SWIG_fail; | |
10594 | } | |
10595 | Py_INCREF(Py_None); resultobj = Py_None; | |
10596 | return resultobj; | |
10597 | fail: | |
10598 | return NULL; | |
10599 | } | |
10600 | ||
10601 | ||
10602 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject *resultobj; | |
10604 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10605 | int arg2 ; |
10606 | int arg3 ; | |
10607 | int arg4 ; | |
10608 | int arg5 ; | |
d14a1e28 RD |
10609 | double arg6 ; |
10610 | double arg7 ; | |
10611 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10612 | PyObject * obj1 = 0 ; |
10613 | PyObject * obj2 = 0 ; | |
10614 | PyObject * obj3 = 0 ; | |
10615 | PyObject * obj4 = 0 ; | |
10616 | PyObject * obj5 = 0 ; | |
10617 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10618 | char *kwnames[] = { |
10619 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10620 | }; | |
10621 | ||
994141e6 | 10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10624 | { |
10625 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10626 | if (PyErr_Occurred()) SWIG_fail; | |
10627 | } | |
10628 | { | |
10629 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10630 | if (PyErr_Occurred()) SWIG_fail; | |
10631 | } | |
10632 | { | |
10633 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10634 | if (PyErr_Occurred()) SWIG_fail; | |
10635 | } | |
10636 | { | |
10637 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10638 | if (PyErr_Occurred()) SWIG_fail; | |
10639 | } | |
10640 | { | |
10641 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | { | |
10645 | arg7 = (double) SWIG_PyObj_AsDouble(obj6); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
d14a1e28 RD |
10648 | { |
10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10650 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10651 | ||
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
10655 | Py_INCREF(Py_None); resultobj = Py_None; | |
10656 | return resultobj; | |
10657 | fail: | |
10658 | return NULL; | |
10659 | } | |
10660 | ||
10661 | ||
10662 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10663 | PyObject *resultobj; | |
10664 | wxDC *arg1 = (wxDC *) 0 ; | |
10665 | wxPoint *arg2 = 0 ; | |
10666 | wxSize *arg3 = 0 ; | |
10667 | double arg4 ; | |
10668 | double arg5 ; | |
10669 | wxPoint temp2 ; | |
10670 | wxSize temp3 ; | |
10671 | PyObject * obj0 = 0 ; | |
10672 | PyObject * obj1 = 0 ; | |
10673 | PyObject * obj2 = 0 ; | |
994141e6 RD |
10674 | PyObject * obj3 = 0 ; |
10675 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10676 | char *kwnames[] = { |
10677 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10678 | }; | |
10679 | ||
994141e6 | 10680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10682 | { | |
10683 | arg2 = &temp2; | |
10684 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10685 | } | |
10686 | { | |
10687 | arg3 = &temp3; | |
10688 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10689 | } | |
994141e6 RD |
10690 | { |
10691 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10692 | if (PyErr_Occurred()) SWIG_fail; | |
10693 | } | |
10694 | { | |
10695 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | } | |
d14a1e28 RD |
10698 | { |
10699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10700 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10701 | ||
10702 | wxPyEndAllowThreads(__tstate); | |
10703 | if (PyErr_Occurred()) SWIG_fail; | |
10704 | } | |
10705 | Py_INCREF(Py_None); resultobj = Py_None; | |
10706 | return resultobj; | |
10707 | fail: | |
10708 | return NULL; | |
10709 | } | |
10710 | ||
10711 | ||
10712 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10713 | PyObject *resultobj; | |
10714 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10715 | int arg2 ; |
10716 | int arg3 ; | |
d14a1e28 | 10717 | PyObject * obj0 = 0 ; |
994141e6 RD |
10718 | PyObject * obj1 = 0 ; |
10719 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10720 | char *kwnames[] = { |
10721 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10722 | }; | |
10723 | ||
994141e6 | 10724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10726 | { |
10727 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | { | |
10731 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
d14a1e28 RD |
10734 | { |
10735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10736 | (arg1)->DrawPoint(arg2,arg3); | |
10737 | ||
10738 | wxPyEndAllowThreads(__tstate); | |
10739 | if (PyErr_Occurred()) SWIG_fail; | |
10740 | } | |
10741 | Py_INCREF(Py_None); resultobj = Py_None; | |
10742 | return resultobj; | |
10743 | fail: | |
10744 | return NULL; | |
10745 | } | |
10746 | ||
10747 | ||
10748 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10749 | PyObject *resultobj; | |
10750 | wxDC *arg1 = (wxDC *) 0 ; | |
10751 | wxPoint *arg2 = 0 ; | |
10752 | wxPoint temp2 ; | |
10753 | PyObject * obj0 = 0 ; | |
10754 | PyObject * obj1 = 0 ; | |
10755 | char *kwnames[] = { | |
10756 | (char *) "self",(char *) "pt", NULL | |
10757 | }; | |
10758 | ||
10759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10761 | { | |
10762 | arg2 = &temp2; | |
10763 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10764 | } | |
10765 | { | |
10766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10767 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10768 | ||
10769 | wxPyEndAllowThreads(__tstate); | |
10770 | if (PyErr_Occurred()) SWIG_fail; | |
10771 | } | |
10772 | Py_INCREF(Py_None); resultobj = Py_None; | |
10773 | return resultobj; | |
10774 | fail: | |
10775 | return NULL; | |
10776 | } | |
10777 | ||
10778 | ||
10779 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10780 | PyObject *resultobj; | |
10781 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10782 | int arg2 ; |
10783 | int arg3 ; | |
10784 | int arg4 ; | |
10785 | int arg5 ; | |
d14a1e28 | 10786 | PyObject * obj0 = 0 ; |
994141e6 RD |
10787 | PyObject * obj1 = 0 ; |
10788 | PyObject * obj2 = 0 ; | |
10789 | PyObject * obj3 = 0 ; | |
10790 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10791 | char *kwnames[] = { |
10792 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10793 | }; | |
10794 | ||
994141e6 | 10795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10797 | { |
10798 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10799 | if (PyErr_Occurred()) SWIG_fail; | |
10800 | } | |
10801 | { | |
10802 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10803 | if (PyErr_Occurred()) SWIG_fail; | |
10804 | } | |
10805 | { | |
10806 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10807 | if (PyErr_Occurred()) SWIG_fail; | |
10808 | } | |
10809 | { | |
10810 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
10812 | } | |
d14a1e28 RD |
10813 | { |
10814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10815 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10816 | ||
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | Py_INCREF(Py_None); resultobj = Py_None; | |
10821 | return resultobj; | |
10822 | fail: | |
10823 | return NULL; | |
10824 | } | |
10825 | ||
10826 | ||
10827 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10828 | PyObject *resultobj; | |
10829 | wxDC *arg1 = (wxDC *) 0 ; | |
10830 | wxPoint *arg2 = 0 ; | |
10831 | wxSize *arg3 = 0 ; | |
10832 | wxPoint temp2 ; | |
10833 | wxSize temp3 ; | |
10834 | PyObject * obj0 = 0 ; | |
10835 | PyObject * obj1 = 0 ; | |
10836 | PyObject * obj2 = 0 ; | |
10837 | char *kwnames[] = { | |
10838 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10839 | }; | |
10840 | ||
10841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10843 | { | |
10844 | arg2 = &temp2; | |
10845 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10846 | } | |
10847 | { | |
10848 | arg3 = &temp3; | |
10849 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10850 | } | |
10851 | { | |
10852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10853 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10854 | ||
10855 | wxPyEndAllowThreads(__tstate); | |
10856 | if (PyErr_Occurred()) SWIG_fail; | |
10857 | } | |
10858 | Py_INCREF(Py_None); resultobj = Py_None; | |
10859 | return resultobj; | |
10860 | fail: | |
10861 | return NULL; | |
10862 | } | |
10863 | ||
10864 | ||
10865 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10866 | PyObject *resultobj; | |
10867 | wxDC *arg1 = (wxDC *) 0 ; | |
10868 | wxRect *arg2 = 0 ; | |
10869 | wxRect temp2 ; | |
10870 | PyObject * obj0 = 0 ; | |
10871 | PyObject * obj1 = 0 ; | |
10872 | char *kwnames[] = { | |
10873 | (char *) "self",(char *) "rect", NULL | |
10874 | }; | |
10875 | ||
10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10878 | { | |
10879 | arg2 = &temp2; | |
10880 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10881 | } | |
10882 | { | |
10883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10884 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10885 | ||
10886 | wxPyEndAllowThreads(__tstate); | |
10887 | if (PyErr_Occurred()) SWIG_fail; | |
10888 | } | |
10889 | Py_INCREF(Py_None); resultobj = Py_None; | |
10890 | return resultobj; | |
10891 | fail: | |
10892 | return NULL; | |
10893 | } | |
10894 | ||
10895 | ||
10896 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10897 | PyObject *resultobj; | |
10898 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10899 | int arg2 ; |
10900 | int arg3 ; | |
10901 | int arg4 ; | |
10902 | int arg5 ; | |
d14a1e28 RD |
10903 | double arg6 ; |
10904 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10905 | PyObject * obj1 = 0 ; |
10906 | PyObject * obj2 = 0 ; | |
10907 | PyObject * obj3 = 0 ; | |
10908 | PyObject * obj4 = 0 ; | |
10909 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
10910 | char *kwnames[] = { |
10911 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10912 | }; | |
10913 | ||
994141e6 | 10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 10915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10916 | { |
10917 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10918 | if (PyErr_Occurred()) SWIG_fail; | |
10919 | } | |
10920 | { | |
10921 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | { | |
10925 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
10928 | { | |
10929 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
10932 | { | |
10933 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10934 | if (PyErr_Occurred()) SWIG_fail; | |
10935 | } | |
d14a1e28 RD |
10936 | { |
10937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10938 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10939 | ||
10940 | wxPyEndAllowThreads(__tstate); | |
10941 | if (PyErr_Occurred()) SWIG_fail; | |
10942 | } | |
10943 | Py_INCREF(Py_None); resultobj = Py_None; | |
10944 | return resultobj; | |
10945 | fail: | |
10946 | return NULL; | |
10947 | } | |
10948 | ||
10949 | ||
10950 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10951 | PyObject *resultobj; | |
10952 | wxDC *arg1 = (wxDC *) 0 ; | |
10953 | wxPoint *arg2 = 0 ; | |
10954 | wxSize *arg3 = 0 ; | |
10955 | double arg4 ; | |
10956 | wxPoint temp2 ; | |
10957 | wxSize temp3 ; | |
10958 | PyObject * obj0 = 0 ; | |
10959 | PyObject * obj1 = 0 ; | |
10960 | PyObject * obj2 = 0 ; | |
994141e6 | 10961 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10962 | char *kwnames[] = { |
10963 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10964 | }; | |
10965 | ||
994141e6 | 10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10968 | { | |
10969 | arg2 = &temp2; | |
10970 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10971 | } | |
10972 | { | |
10973 | arg3 = &temp3; | |
10974 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10975 | } | |
994141e6 RD |
10976 | { |
10977 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10978 | if (PyErr_Occurred()) SWIG_fail; | |
10979 | } | |
d14a1e28 RD |
10980 | { |
10981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10982 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10983 | ||
10984 | wxPyEndAllowThreads(__tstate); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
10987 | Py_INCREF(Py_None); resultobj = Py_None; | |
10988 | return resultobj; | |
10989 | fail: | |
10990 | return NULL; | |
10991 | } | |
10992 | ||
10993 | ||
10994 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10995 | PyObject *resultobj; | |
10996 | wxDC *arg1 = (wxDC *) 0 ; | |
10997 | wxRect *arg2 = 0 ; | |
10998 | double arg3 ; | |
10999 | wxRect temp2 ; | |
11000 | PyObject * obj0 = 0 ; | |
11001 | PyObject * obj1 = 0 ; | |
994141e6 | 11002 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11003 | char *kwnames[] = { |
11004 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
11005 | }; | |
11006 | ||
994141e6 | 11007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11009 | { | |
11010 | arg2 = &temp2; | |
11011 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11012 | } | |
994141e6 RD |
11013 | { |
11014 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
11015 | if (PyErr_Occurred()) SWIG_fail; | |
11016 | } | |
d14a1e28 RD |
11017 | { |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | Py_INCREF(Py_None); resultobj = Py_None; | |
11025 | return resultobj; | |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject *resultobj; | |
11033 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11034 | int arg2 ; |
11035 | int arg3 ; | |
11036 | int arg4 ; | |
d14a1e28 | 11037 | PyObject * obj0 = 0 ; |
994141e6 RD |
11038 | PyObject * obj1 = 0 ; |
11039 | PyObject * obj2 = 0 ; | |
11040 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11041 | char *kwnames[] = { |
11042 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11043 | }; | |
11044 | ||
994141e6 | 11045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11047 | { |
11048 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11049 | if (PyErr_Occurred()) SWIG_fail; | |
11050 | } | |
11051 | { | |
11052 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11053 | if (PyErr_Occurred()) SWIG_fail; | |
11054 | } | |
11055 | { | |
11056 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11057 | if (PyErr_Occurred()) SWIG_fail; | |
11058 | } | |
d14a1e28 RD |
11059 | { |
11060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11061 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11062 | ||
11063 | wxPyEndAllowThreads(__tstate); | |
11064 | if (PyErr_Occurred()) SWIG_fail; | |
11065 | } | |
11066 | Py_INCREF(Py_None); resultobj = Py_None; | |
11067 | return resultobj; | |
11068 | fail: | |
11069 | return NULL; | |
11070 | } | |
11071 | ||
11072 | ||
11073 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11074 | PyObject *resultobj; | |
11075 | wxDC *arg1 = (wxDC *) 0 ; | |
11076 | wxPoint *arg2 = 0 ; | |
e811c8ce | 11077 | int arg3 ; |
d14a1e28 RD |
11078 | wxPoint temp2 ; |
11079 | PyObject * obj0 = 0 ; | |
11080 | PyObject * obj1 = 0 ; | |
994141e6 | 11081 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11082 | char *kwnames[] = { |
11083 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11084 | }; | |
11085 | ||
994141e6 | 11086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11088 | { | |
11089 | arg2 = &temp2; | |
11090 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11091 | } | |
994141e6 RD |
11092 | { |
11093 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11094 | if (PyErr_Occurred()) SWIG_fail; | |
11095 | } | |
d14a1e28 RD |
11096 | { |
11097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11098 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11099 | ||
11100 | wxPyEndAllowThreads(__tstate); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
11103 | Py_INCREF(Py_None); resultobj = Py_None; | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | return NULL; | |
11107 | } | |
11108 | ||
11109 | ||
11110 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11111 | PyObject *resultobj; | |
11112 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11113 | int arg2 ; |
11114 | int arg3 ; | |
11115 | int arg4 ; | |
11116 | int arg5 ; | |
d14a1e28 | 11117 | PyObject * obj0 = 0 ; |
994141e6 RD |
11118 | PyObject * obj1 = 0 ; |
11119 | PyObject * obj2 = 0 ; | |
11120 | PyObject * obj3 = 0 ; | |
11121 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11122 | char *kwnames[] = { |
11123 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11124 | }; | |
11125 | ||
994141e6 | 11126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11128 | { |
11129 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11130 | if (PyErr_Occurred()) SWIG_fail; | |
11131 | } | |
11132 | { | |
11133 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | { | |
11137 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11138 | if (PyErr_Occurred()) SWIG_fail; | |
11139 | } | |
11140 | { | |
11141 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11142 | if (PyErr_Occurred()) SWIG_fail; | |
11143 | } | |
d14a1e28 RD |
11144 | { |
11145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11146 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11147 | ||
11148 | wxPyEndAllowThreads(__tstate); | |
11149 | if (PyErr_Occurred()) SWIG_fail; | |
11150 | } | |
11151 | Py_INCREF(Py_None); resultobj = Py_None; | |
11152 | return resultobj; | |
11153 | fail: | |
11154 | return NULL; | |
11155 | } | |
11156 | ||
11157 | ||
11158 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11159 | PyObject *resultobj; | |
11160 | wxDC *arg1 = (wxDC *) 0 ; | |
11161 | wxPoint *arg2 = 0 ; | |
11162 | wxSize *arg3 = 0 ; | |
11163 | wxPoint temp2 ; | |
11164 | wxSize temp3 ; | |
11165 | PyObject * obj0 = 0 ; | |
11166 | PyObject * obj1 = 0 ; | |
11167 | PyObject * obj2 = 0 ; | |
11168 | char *kwnames[] = { | |
11169 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11170 | }; | |
11171 | ||
11172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11174 | { | |
11175 | arg2 = &temp2; | |
11176 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11177 | } | |
11178 | { | |
11179 | arg3 = &temp3; | |
11180 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11181 | } | |
11182 | { | |
11183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11184 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11185 | ||
11186 | wxPyEndAllowThreads(__tstate); | |
11187 | if (PyErr_Occurred()) SWIG_fail; | |
11188 | } | |
11189 | Py_INCREF(Py_None); resultobj = Py_None; | |
11190 | return resultobj; | |
11191 | fail: | |
11192 | return NULL; | |
11193 | } | |
11194 | ||
11195 | ||
11196 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11197 | PyObject *resultobj; | |
11198 | wxDC *arg1 = (wxDC *) 0 ; | |
11199 | wxRect *arg2 = 0 ; | |
11200 | wxRect temp2 ; | |
11201 | PyObject * obj0 = 0 ; | |
11202 | PyObject * obj1 = 0 ; | |
11203 | char *kwnames[] = { | |
11204 | (char *) "self",(char *) "rect", NULL | |
11205 | }; | |
11206 | ||
11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
11208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11209 | { | |
11210 | arg2 = &temp2; | |
11211 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11212 | } | |
11213 | { | |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11216 | ||
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | Py_INCREF(Py_None); resultobj = Py_None; | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
11227 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject *resultobj; | |
11229 | wxDC *arg1 = (wxDC *) 0 ; | |
11230 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11231 | int arg3 ; |
11232 | int arg4 ; | |
d14a1e28 RD |
11233 | PyObject * obj0 = 0 ; |
11234 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11235 | PyObject * obj2 = 0 ; |
11236 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11237 | char *kwnames[] = { |
11238 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11239 | }; | |
11240 | ||
994141e6 | 11241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11243 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11244 | if (arg2 == NULL) { | |
11245 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11246 | } | |
994141e6 RD |
11247 | { |
11248 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11249 | if (PyErr_Occurred()) SWIG_fail; | |
11250 | } | |
11251 | { | |
11252 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | } | |
d14a1e28 RD |
11255 | { |
11256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11257 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11258 | ||
11259 | wxPyEndAllowThreads(__tstate); | |
11260 | if (PyErr_Occurred()) SWIG_fail; | |
11261 | } | |
11262 | Py_INCREF(Py_None); resultobj = Py_None; | |
11263 | return resultobj; | |
11264 | fail: | |
11265 | return NULL; | |
11266 | } | |
11267 | ||
11268 | ||
11269 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11270 | PyObject *resultobj; | |
11271 | wxDC *arg1 = (wxDC *) 0 ; | |
11272 | wxIcon *arg2 = 0 ; | |
11273 | wxPoint *arg3 = 0 ; | |
11274 | wxPoint temp3 ; | |
11275 | PyObject * obj0 = 0 ; | |
11276 | PyObject * obj1 = 0 ; | |
11277 | PyObject * obj2 = 0 ; | |
11278 | char *kwnames[] = { | |
11279 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11280 | }; | |
11281 | ||
11282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11284 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11285 | if (arg2 == NULL) { | |
11286 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11287 | } | |
11288 | { | |
11289 | arg3 = &temp3; | |
11290 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11291 | } | |
11292 | { | |
11293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11294 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11295 | ||
11296 | wxPyEndAllowThreads(__tstate); | |
11297 | if (PyErr_Occurred()) SWIG_fail; | |
11298 | } | |
11299 | Py_INCREF(Py_None); resultobj = Py_None; | |
11300 | return resultobj; | |
11301 | fail: | |
11302 | return NULL; | |
11303 | } | |
11304 | ||
11305 | ||
11306 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11307 | PyObject *resultobj; | |
11308 | wxDC *arg1 = (wxDC *) 0 ; | |
11309 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11310 | int arg3 ; |
11311 | int arg4 ; | |
11312 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11313 | PyObject * obj0 = 0 ; |
11314 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11315 | PyObject * obj2 = 0 ; |
11316 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11317 | PyObject * obj4 = 0 ; |
11318 | char *kwnames[] = { | |
11319 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11320 | }; | |
11321 | ||
994141e6 | 11322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11325 | if (arg2 == NULL) { | |
11326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11327 | } | |
994141e6 RD |
11328 | { |
11329 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11330 | if (PyErr_Occurred()) SWIG_fail; | |
11331 | } | |
11332 | { | |
11333 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
d14a1e28 | 11336 | if (obj4) { |
a41e16b6 | 11337 | { |
994141e6 | 11338 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
11339 | if (PyErr_Occurred()) SWIG_fail; |
11340 | } | |
d14a1e28 RD |
11341 | } |
11342 | { | |
11343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11344 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11345 | ||
11346 | wxPyEndAllowThreads(__tstate); | |
11347 | if (PyErr_Occurred()) SWIG_fail; | |
11348 | } | |
11349 | Py_INCREF(Py_None); resultobj = Py_None; | |
11350 | return resultobj; | |
11351 | fail: | |
11352 | return NULL; | |
11353 | } | |
11354 | ||
11355 | ||
11356 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11357 | PyObject *resultobj; | |
11358 | wxDC *arg1 = (wxDC *) 0 ; | |
11359 | wxBitmap *arg2 = 0 ; | |
11360 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11361 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11362 | wxPoint temp3 ; |
11363 | PyObject * obj0 = 0 ; | |
11364 | PyObject * obj1 = 0 ; | |
11365 | PyObject * obj2 = 0 ; | |
11366 | PyObject * obj3 = 0 ; | |
11367 | char *kwnames[] = { | |
11368 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11369 | }; | |
11370 | ||
11371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11373 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11374 | if (arg2 == NULL) { | |
11375 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11376 | } | |
11377 | { | |
11378 | arg3 = &temp3; | |
11379 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11380 | } | |
11381 | if (obj3) { | |
a41e16b6 | 11382 | { |
994141e6 | 11383 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
11384 | if (PyErr_Occurred()) SWIG_fail; |
11385 | } | |
d14a1e28 RD |
11386 | } |
11387 | { | |
11388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11389 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11390 | ||
11391 | wxPyEndAllowThreads(__tstate); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
11394 | Py_INCREF(Py_None); resultobj = Py_None; | |
11395 | return resultobj; | |
11396 | fail: | |
11397 | return NULL; | |
11398 | } | |
11399 | ||
11400 | ||
11401 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11402 | PyObject *resultobj; | |
11403 | wxDC *arg1 = (wxDC *) 0 ; | |
11404 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11405 | int arg3 ; |
11406 | int arg4 ; | |
11407 | bool temp2 = False ; | |
d14a1e28 RD |
11408 | PyObject * obj0 = 0 ; |
11409 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11410 | PyObject * obj2 = 0 ; |
11411 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11412 | char *kwnames[] = { |
11413 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11414 | }; | |
11415 | ||
994141e6 | 11416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11418 | { | |
11419 | arg2 = wxString_in_helper(obj1); | |
11420 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11421 | temp2 = True; |
d14a1e28 | 11422 | } |
994141e6 RD |
11423 | { |
11424 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | } | |
11427 | { | |
11428 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
11430 | } | |
d14a1e28 RD |
11431 | { |
11432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11433 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11434 | ||
11435 | wxPyEndAllowThreads(__tstate); | |
11436 | if (PyErr_Occurred()) SWIG_fail; | |
11437 | } | |
11438 | Py_INCREF(Py_None); resultobj = Py_None; | |
11439 | { | |
11440 | if (temp2) | |
11441 | delete arg2; | |
11442 | } | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | { | |
11446 | if (temp2) | |
11447 | delete arg2; | |
11448 | } | |
11449 | return NULL; | |
11450 | } | |
11451 | ||
11452 | ||
11453 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11454 | PyObject *resultobj; | |
11455 | wxDC *arg1 = (wxDC *) 0 ; | |
11456 | wxString *arg2 = 0 ; | |
11457 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11458 | bool temp2 = False ; |
d14a1e28 RD |
11459 | wxPoint temp3 ; |
11460 | PyObject * obj0 = 0 ; | |
11461 | PyObject * obj1 = 0 ; | |
11462 | PyObject * obj2 = 0 ; | |
11463 | char *kwnames[] = { | |
11464 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11465 | }; | |
11466 | ||
11467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11469 | { | |
11470 | arg2 = wxString_in_helper(obj1); | |
11471 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11472 | temp2 = True; |
d14a1e28 RD |
11473 | } |
11474 | { | |
11475 | arg3 = &temp3; | |
11476 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11477 | } | |
11478 | { | |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11481 | ||
11482 | wxPyEndAllowThreads(__tstate); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | } | |
11485 | Py_INCREF(Py_None); resultobj = Py_None; | |
11486 | { | |
11487 | if (temp2) | |
11488 | delete arg2; | |
11489 | } | |
11490 | return resultobj; | |
11491 | fail: | |
11492 | { | |
11493 | if (temp2) | |
11494 | delete arg2; | |
11495 | } | |
11496 | return NULL; | |
11497 | } | |
11498 | ||
11499 | ||
11500 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11501 | PyObject *resultobj; | |
11502 | wxDC *arg1 = (wxDC *) 0 ; | |
11503 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11504 | int arg3 ; |
11505 | int arg4 ; | |
d14a1e28 | 11506 | double arg5 ; |
e811c8ce | 11507 | bool temp2 = False ; |
d14a1e28 RD |
11508 | PyObject * obj0 = 0 ; |
11509 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11510 | PyObject * obj2 = 0 ; |
11511 | PyObject * obj3 = 0 ; | |
11512 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11513 | char *kwnames[] = { |
11514 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11515 | }; | |
11516 | ||
994141e6 | 11517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11519 | { | |
11520 | arg2 = wxString_in_helper(obj1); | |
11521 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11522 | temp2 = True; |
d14a1e28 | 11523 | } |
994141e6 RD |
11524 | { |
11525 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11526 | if (PyErr_Occurred()) SWIG_fail; | |
11527 | } | |
11528 | { | |
11529 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
11532 | { | |
11533 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
11534 | if (PyErr_Occurred()) SWIG_fail; | |
11535 | } | |
d14a1e28 RD |
11536 | { |
11537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11538 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11539 | ||
11540 | wxPyEndAllowThreads(__tstate); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | } | |
11543 | Py_INCREF(Py_None); resultobj = Py_None; | |
11544 | { | |
11545 | if (temp2) | |
11546 | delete arg2; | |
11547 | } | |
11548 | return resultobj; | |
11549 | fail: | |
11550 | { | |
11551 | if (temp2) | |
11552 | delete arg2; | |
11553 | } | |
11554 | return NULL; | |
11555 | } | |
11556 | ||
11557 | ||
11558 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11559 | PyObject *resultobj; | |
11560 | wxDC *arg1 = (wxDC *) 0 ; | |
11561 | wxString *arg2 = 0 ; | |
11562 | wxPoint *arg3 = 0 ; | |
11563 | double arg4 ; | |
e811c8ce | 11564 | bool temp2 = False ; |
d14a1e28 RD |
11565 | wxPoint temp3 ; |
11566 | PyObject * obj0 = 0 ; | |
11567 | PyObject * obj1 = 0 ; | |
11568 | PyObject * obj2 = 0 ; | |
994141e6 | 11569 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11570 | char *kwnames[] = { |
11571 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11572 | }; | |
11573 | ||
994141e6 | 11574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11576 | { | |
11577 | arg2 = wxString_in_helper(obj1); | |
11578 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11579 | temp2 = True; |
d14a1e28 RD |
11580 | } |
11581 | { | |
11582 | arg3 = &temp3; | |
11583 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11584 | } | |
994141e6 RD |
11585 | { |
11586 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
d14a1e28 RD |
11589 | { |
11590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11591 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11592 | ||
11593 | wxPyEndAllowThreads(__tstate); | |
11594 | if (PyErr_Occurred()) SWIG_fail; | |
11595 | } | |
11596 | Py_INCREF(Py_None); resultobj = Py_None; | |
11597 | { | |
11598 | if (temp2) | |
11599 | delete arg2; | |
11600 | } | |
11601 | return resultobj; | |
11602 | fail: | |
11603 | { | |
11604 | if (temp2) | |
11605 | delete arg2; | |
11606 | } | |
11607 | return NULL; | |
11608 | } | |
11609 | ||
11610 | ||
11611 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11612 | PyObject *resultobj; | |
11613 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11614 | int arg2 ; |
11615 | int arg3 ; | |
11616 | int arg4 ; | |
11617 | int arg5 ; | |
d14a1e28 | 11618 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
11619 | int arg7 ; |
11620 | int arg8 ; | |
d14a1e28 | 11621 | int arg9 = (int) wxCOPY ; |
e811c8ce RD |
11622 | bool arg10 = (bool) False ; |
11623 | int arg11 = (int) -1 ; | |
11624 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11625 | bool result; |
11626 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11627 | PyObject * obj1 = 0 ; |
11628 | PyObject * obj2 = 0 ; | |
11629 | PyObject * obj3 = 0 ; | |
11630 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11631 | PyObject * obj5 = 0 ; |
994141e6 RD |
11632 | PyObject * obj6 = 0 ; |
11633 | PyObject * obj7 = 0 ; | |
11634 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11635 | PyObject * obj9 = 0 ; |
994141e6 RD |
11636 | PyObject * obj10 = 0 ; |
11637 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11638 | char *kwnames[] = { |
11639 | (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 | |
11640 | }; | |
11641 | ||
994141e6 | 11642 | 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 | 11643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11644 | { |
11645 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
11648 | { | |
11649 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11650 | if (PyErr_Occurred()) SWIG_fail; | |
11651 | } | |
11652 | { | |
11653 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11654 | if (PyErr_Occurred()) SWIG_fail; | |
11655 | } | |
11656 | { | |
11657 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11658 | if (PyErr_Occurred()) SWIG_fail; | |
11659 | } | |
d14a1e28 | 11660 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11661 | { |
11662 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
11663 | if (PyErr_Occurred()) SWIG_fail; | |
11664 | } | |
11665 | { | |
11666 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
11667 | if (PyErr_Occurred()) SWIG_fail; | |
11668 | } | |
11669 | if (obj8) { | |
11670 | { | |
11671 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
11672 | if (PyErr_Occurred()) SWIG_fail; | |
11673 | } | |
11674 | } | |
d14a1e28 | 11675 | if (obj9) { |
a41e16b6 | 11676 | { |
994141e6 RD |
11677 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
11678 | if (PyErr_Occurred()) SWIG_fail; | |
11679 | } | |
11680 | } | |
11681 | if (obj10) { | |
11682 | { | |
11683 | arg11 = (int) SWIG_PyObj_AsInt(obj10); | |
11684 | if (PyErr_Occurred()) SWIG_fail; | |
11685 | } | |
11686 | } | |
11687 | if (obj11) { | |
11688 | { | |
11689 | arg12 = (int) SWIG_PyObj_AsInt(obj11); | |
a41e16b6 RD |
11690 | if (PyErr_Occurred()) SWIG_fail; |
11691 | } | |
d14a1e28 RD |
11692 | } |
11693 | { | |
11694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11695 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11696 | ||
11697 | wxPyEndAllowThreads(__tstate); | |
11698 | if (PyErr_Occurred()) SWIG_fail; | |
11699 | } | |
4d5c3d91 | 11700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11701 | return resultobj; |
11702 | fail: | |
11703 | return NULL; | |
11704 | } | |
11705 | ||
11706 | ||
11707 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11708 | PyObject *resultobj; | |
11709 | wxDC *arg1 = (wxDC *) 0 ; | |
11710 | wxPoint *arg2 = 0 ; | |
11711 | wxSize *arg3 = 0 ; | |
11712 | wxDC *arg4 = (wxDC *) 0 ; | |
11713 | wxPoint *arg5 = 0 ; | |
11714 | int arg6 = (int) wxCOPY ; | |
e811c8ce | 11715 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11716 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11717 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11718 | bool result; | |
11719 | wxPoint temp2 ; | |
11720 | wxSize temp3 ; | |
11721 | wxPoint temp5 ; | |
11722 | wxPoint temp8 ; | |
11723 | PyObject * obj0 = 0 ; | |
11724 | PyObject * obj1 = 0 ; | |
11725 | PyObject * obj2 = 0 ; | |
11726 | PyObject * obj3 = 0 ; | |
11727 | PyObject * obj4 = 0 ; | |
994141e6 | 11728 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11729 | PyObject * obj6 = 0 ; |
11730 | PyObject * obj7 = 0 ; | |
11731 | char *kwnames[] = { | |
11732 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11733 | }; | |
11734 | ||
994141e6 | 11735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
11736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11737 | { | |
11738 | arg2 = &temp2; | |
11739 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11740 | } | |
11741 | { | |
11742 | arg3 = &temp3; | |
11743 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11744 | } | |
11745 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11746 | { | |
11747 | arg5 = &temp5; | |
11748 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11749 | } | |
994141e6 RD |
11750 | if (obj5) { |
11751 | { | |
11752 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11753 | if (PyErr_Occurred()) SWIG_fail; | |
11754 | } | |
11755 | } | |
d14a1e28 | 11756 | if (obj6) { |
a41e16b6 | 11757 | { |
994141e6 | 11758 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
11759 | if (PyErr_Occurred()) SWIG_fail; |
11760 | } | |
d14a1e28 RD |
11761 | } |
11762 | if (obj7) { | |
11763 | { | |
11764 | arg8 = &temp8; | |
11765 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11766 | } | |
11767 | } | |
11768 | { | |
11769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11770 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11771 | ||
11772 | wxPyEndAllowThreads(__tstate); | |
11773 | if (PyErr_Occurred()) SWIG_fail; | |
11774 | } | |
4d5c3d91 | 11775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11776 | return resultobj; |
11777 | fail: | |
11778 | return NULL; | |
11779 | } | |
11780 | ||
11781 | ||
11782 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11783 | PyObject *resultobj; | |
11784 | wxDC *arg1 = (wxDC *) 0 ; | |
11785 | int arg2 ; | |
11786 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11787 | int arg4 = (int) 0 ; |
11788 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11789 | PyObject * obj0 = 0 ; |
11790 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11791 | PyObject * obj2 = 0 ; |
11792 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11793 | char *kwnames[] = { |
11794 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11795 | }; | |
11796 | ||
994141e6 | 11797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11799 | { | |
11800 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11801 | if (arg3 == NULL) SWIG_fail; | |
11802 | } | |
994141e6 RD |
11803 | if (obj2) { |
11804 | { | |
11805 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11806 | if (PyErr_Occurred()) SWIG_fail; | |
11807 | } | |
11808 | } | |
11809 | if (obj3) { | |
11810 | { | |
11811 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | } | |
11814 | } | |
d14a1e28 RD |
11815 | { |
11816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11817 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11818 | ||
11819 | wxPyEndAllowThreads(__tstate); | |
11820 | if (PyErr_Occurred()) SWIG_fail; | |
11821 | } | |
11822 | Py_INCREF(Py_None); resultobj = Py_None; | |
11823 | { | |
11824 | if (arg3) delete [] arg3; | |
11825 | } | |
11826 | return resultobj; | |
11827 | fail: | |
11828 | { | |
11829 | if (arg3) delete [] arg3; | |
11830 | } | |
11831 | return NULL; | |
11832 | } | |
11833 | ||
11834 | ||
11835 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11836 | PyObject *resultobj; | |
11837 | wxDC *arg1 = (wxDC *) 0 ; | |
11838 | int arg2 ; | |
11839 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11840 | int arg4 = (int) 0 ; |
11841 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11842 | int arg6 = (int) wxODDEVEN_RULE ; |
11843 | PyObject * obj0 = 0 ; | |
11844 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11845 | PyObject * obj2 = 0 ; |
11846 | PyObject * obj3 = 0 ; | |
11847 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11848 | char *kwnames[] = { |
11849 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11850 | }; | |
11851 | ||
994141e6 | 11852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11854 | { | |
11855 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11856 | if (arg3 == NULL) SWIG_fail; | |
11857 | } | |
994141e6 RD |
11858 | if (obj2) { |
11859 | { | |
11860 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11861 | if (PyErr_Occurred()) SWIG_fail; | |
11862 | } | |
11863 | } | |
11864 | if (obj3) { | |
11865 | { | |
11866 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11867 | if (PyErr_Occurred()) SWIG_fail; | |
11868 | } | |
11869 | } | |
11870 | if (obj4) { | |
11871 | { | |
11872 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
11873 | if (PyErr_Occurred()) SWIG_fail; | |
11874 | } | |
11875 | } | |
d14a1e28 RD |
11876 | { |
11877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11878 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11879 | ||
11880 | wxPyEndAllowThreads(__tstate); | |
11881 | if (PyErr_Occurred()) SWIG_fail; | |
11882 | } | |
11883 | Py_INCREF(Py_None); resultobj = Py_None; | |
11884 | { | |
11885 | if (arg3) delete [] arg3; | |
11886 | } | |
11887 | return resultobj; | |
11888 | fail: | |
11889 | { | |
11890 | if (arg3) delete [] arg3; | |
11891 | } | |
11892 | return NULL; | |
11893 | } | |
11894 | ||
11895 | ||
11896 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11897 | PyObject *resultobj; | |
11898 | wxDC *arg1 = (wxDC *) 0 ; | |
11899 | wxString *arg2 = 0 ; | |
11900 | wxRect *arg3 = 0 ; | |
11901 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11902 | int arg5 = (int) -1 ; | |
e811c8ce | 11903 | bool temp2 = False ; |
d14a1e28 RD |
11904 | wxRect temp3 ; |
11905 | PyObject * obj0 = 0 ; | |
11906 | PyObject * obj1 = 0 ; | |
11907 | PyObject * obj2 = 0 ; | |
994141e6 RD |
11908 | PyObject * obj3 = 0 ; |
11909 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11910 | char *kwnames[] = { |
11911 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11912 | }; | |
11913 | ||
994141e6 | 11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11916 | { | |
11917 | arg2 = wxString_in_helper(obj1); | |
11918 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11919 | temp2 = True; |
d14a1e28 RD |
11920 | } |
11921 | { | |
11922 | arg3 = &temp3; | |
11923 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11924 | } | |
994141e6 RD |
11925 | if (obj3) { |
11926 | { | |
11927 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11928 | if (PyErr_Occurred()) SWIG_fail; | |
11929 | } | |
11930 | } | |
11931 | if (obj4) { | |
11932 | { | |
11933 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
11936 | } | |
11937 | { | |
11938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11939 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
11940 | |
11941 | wxPyEndAllowThreads(__tstate); | |
11942 | if (PyErr_Occurred()) SWIG_fail; | |
11943 | } | |
11944 | Py_INCREF(Py_None); resultobj = Py_None; | |
11945 | { | |
11946 | if (temp2) | |
11947 | delete arg2; | |
11948 | } | |
11949 | return resultobj; | |
11950 | fail: | |
11951 | { | |
11952 | if (temp2) | |
11953 | delete arg2; | |
11954 | } | |
11955 | return NULL; | |
11956 | } | |
11957 | ||
11958 | ||
11959 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11960 | PyObject *resultobj; | |
11961 | wxDC *arg1 = (wxDC *) 0 ; | |
11962 | wxString *arg2 = 0 ; | |
11963 | wxBitmap *arg3 = 0 ; | |
11964 | wxRect *arg4 = 0 ; | |
11965 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11966 | int arg6 = (int) -1 ; | |
11967 | wxRect result; | |
e811c8ce | 11968 | bool temp2 = False ; |
d14a1e28 RD |
11969 | wxRect temp4 ; |
11970 | PyObject * obj0 = 0 ; | |
11971 | PyObject * obj1 = 0 ; | |
11972 | PyObject * obj2 = 0 ; | |
11973 | PyObject * obj3 = 0 ; | |
994141e6 RD |
11974 | PyObject * obj4 = 0 ; |
11975 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11976 | char *kwnames[] = { |
11977 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11978 | }; | |
11979 | ||
994141e6 | 11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
11981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11982 | { | |
11983 | arg2 = wxString_in_helper(obj1); | |
11984 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11985 | temp2 = True; |
d14a1e28 RD |
11986 | } |
11987 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11988 | if (arg3 == NULL) { | |
11989 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11990 | } | |
11991 | { | |
11992 | arg4 = &temp4; | |
11993 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11994 | } | |
994141e6 RD |
11995 | if (obj4) { |
11996 | { | |
11997 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11998 | if (PyErr_Occurred()) SWIG_fail; | |
11999 | } | |
12000 | } | |
12001 | if (obj5) { | |
12002 | { | |
12003 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
12005 | } | |
12006 | } | |
d14a1e28 RD |
12007 | { |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12009 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12010 | ||
12011 | wxPyEndAllowThreads(__tstate); | |
12012 | if (PyErr_Occurred()) SWIG_fail; | |
12013 | } | |
12014 | { | |
12015 | wxRect * resultptr; | |
12016 | resultptr = new wxRect((wxRect &) result); | |
12017 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
12018 | } | |
12019 | { | |
12020 | if (temp2) | |
12021 | delete arg2; | |
12022 | } | |
12023 | return resultobj; | |
12024 | fail: | |
12025 | { | |
12026 | if (temp2) | |
12027 | delete arg2; | |
12028 | } | |
12029 | return NULL; | |
12030 | } | |
12031 | ||
12032 | ||
12033 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12034 | PyObject *resultobj; | |
12035 | wxDC *arg1 = (wxDC *) 0 ; | |
12036 | int arg2 ; | |
12037 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12038 | PyObject * obj0 = 0 ; | |
12039 | PyObject * obj1 = 0 ; | |
12040 | char *kwnames[] = { | |
12041 | (char *) "self",(char *) "points", NULL | |
12042 | }; | |
12043 | ||
12044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
12045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12046 | { | |
12047 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12048 | if (arg3 == NULL) SWIG_fail; | |
12049 | } | |
12050 | { | |
12051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12052 | (arg1)->DrawSpline(arg2,arg3); | |
12053 | ||
12054 | wxPyEndAllowThreads(__tstate); | |
12055 | if (PyErr_Occurred()) SWIG_fail; | |
12056 | } | |
12057 | Py_INCREF(Py_None); resultobj = Py_None; | |
12058 | { | |
12059 | if (arg3) delete [] arg3; | |
12060 | } | |
12061 | return resultobj; | |
12062 | fail: | |
12063 | { | |
12064 | if (arg3) delete [] arg3; | |
12065 | } | |
12066 | return NULL; | |
12067 | } | |
12068 | ||
12069 | ||
12070 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12071 | PyObject *resultobj; | |
12072 | wxDC *arg1 = (wxDC *) 0 ; | |
12073 | PyObject * obj0 = 0 ; | |
12074 | char *kwnames[] = { | |
12075 | (char *) "self", NULL | |
12076 | }; | |
12077 | ||
12078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
12079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12080 | { | |
12081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12082 | (arg1)->Clear(); | |
12083 | ||
12084 | wxPyEndAllowThreads(__tstate); | |
12085 | if (PyErr_Occurred()) SWIG_fail; | |
12086 | } | |
12087 | Py_INCREF(Py_None); resultobj = Py_None; | |
12088 | return resultobj; | |
12089 | fail: | |
12090 | return NULL; | |
12091 | } | |
12092 | ||
12093 | ||
12094 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12095 | PyObject *resultobj; | |
12096 | wxDC *arg1 = (wxDC *) 0 ; | |
12097 | wxString *arg2 = 0 ; | |
12098 | bool result; | |
e811c8ce | 12099 | bool temp2 = False ; |
d14a1e28 RD |
12100 | PyObject * obj0 = 0 ; |
12101 | PyObject * obj1 = 0 ; | |
12102 | char *kwnames[] = { | |
12103 | (char *) "self",(char *) "message", NULL | |
12104 | }; | |
12105 | ||
12106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
12107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12108 | { | |
12109 | arg2 = wxString_in_helper(obj1); | |
12110 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12111 | temp2 = True; |
d14a1e28 RD |
12112 | } |
12113 | { | |
12114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12115 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12116 | ||
12117 | wxPyEndAllowThreads(__tstate); | |
12118 | if (PyErr_Occurred()) SWIG_fail; | |
12119 | } | |
4d5c3d91 | 12120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12121 | { |
12122 | if (temp2) | |
12123 | delete arg2; | |
12124 | } | |
12125 | return resultobj; | |
12126 | fail: | |
12127 | { | |
12128 | if (temp2) | |
12129 | delete arg2; | |
12130 | } | |
12131 | return NULL; | |
12132 | } | |
12133 | ||
12134 | ||
12135 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12136 | PyObject *resultobj; | |
12137 | wxDC *arg1 = (wxDC *) 0 ; | |
12138 | PyObject * obj0 = 0 ; | |
12139 | char *kwnames[] = { | |
12140 | (char *) "self", NULL | |
12141 | }; | |
12142 | ||
12143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
12144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12145 | { | |
12146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12147 | (arg1)->EndDoc(); | |
12148 | ||
12149 | wxPyEndAllowThreads(__tstate); | |
12150 | if (PyErr_Occurred()) SWIG_fail; | |
12151 | } | |
12152 | Py_INCREF(Py_None); resultobj = Py_None; | |
12153 | return resultobj; | |
12154 | fail: | |
12155 | return NULL; | |
12156 | } | |
12157 | ||
12158 | ||
12159 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12160 | PyObject *resultobj; | |
12161 | wxDC *arg1 = (wxDC *) 0 ; | |
12162 | PyObject * obj0 = 0 ; | |
12163 | char *kwnames[] = { | |
12164 | (char *) "self", NULL | |
12165 | }; | |
12166 | ||
12167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12169 | { | |
12170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12171 | (arg1)->StartPage(); | |
12172 | ||
12173 | wxPyEndAllowThreads(__tstate); | |
12174 | if (PyErr_Occurred()) SWIG_fail; | |
12175 | } | |
12176 | Py_INCREF(Py_None); resultobj = Py_None; | |
12177 | return resultobj; | |
12178 | fail: | |
12179 | return NULL; | |
12180 | } | |
12181 | ||
12182 | ||
12183 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12184 | PyObject *resultobj; | |
12185 | wxDC *arg1 = (wxDC *) 0 ; | |
12186 | PyObject * obj0 = 0 ; | |
12187 | char *kwnames[] = { | |
12188 | (char *) "self", NULL | |
12189 | }; | |
12190 | ||
12191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12193 | { | |
12194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12195 | (arg1)->EndPage(); | |
12196 | ||
12197 | wxPyEndAllowThreads(__tstate); | |
12198 | if (PyErr_Occurred()) SWIG_fail; | |
12199 | } | |
12200 | Py_INCREF(Py_None); resultobj = Py_None; | |
12201 | return resultobj; | |
12202 | fail: | |
12203 | return NULL; | |
12204 | } | |
12205 | ||
12206 | ||
12207 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12208 | PyObject *resultobj; | |
12209 | wxDC *arg1 = (wxDC *) 0 ; | |
12210 | wxFont *arg2 = 0 ; | |
12211 | PyObject * obj0 = 0 ; | |
12212 | PyObject * obj1 = 0 ; | |
12213 | char *kwnames[] = { | |
12214 | (char *) "self",(char *) "font", NULL | |
12215 | }; | |
12216 | ||
12217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
12218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12219 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12220 | if (arg2 == NULL) { | |
12221 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12222 | } | |
12223 | { | |
12224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12225 | (arg1)->SetFont((wxFont const &)*arg2); | |
12226 | ||
12227 | wxPyEndAllowThreads(__tstate); | |
12228 | if (PyErr_Occurred()) SWIG_fail; | |
12229 | } | |
12230 | Py_INCREF(Py_None); resultobj = Py_None; | |
12231 | return resultobj; | |
12232 | fail: | |
12233 | return NULL; | |
12234 | } | |
12235 | ||
12236 | ||
12237 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12238 | PyObject *resultobj; | |
12239 | wxDC *arg1 = (wxDC *) 0 ; | |
12240 | wxPen *arg2 = 0 ; | |
12241 | PyObject * obj0 = 0 ; | |
12242 | PyObject * obj1 = 0 ; | |
12243 | char *kwnames[] = { | |
12244 | (char *) "self",(char *) "pen", NULL | |
12245 | }; | |
12246 | ||
12247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
12248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12249 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12250 | if (arg2 == NULL) { | |
12251 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12252 | } | |
12253 | { | |
12254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12255 | (arg1)->SetPen((wxPen const &)*arg2); | |
12256 | ||
12257 | wxPyEndAllowThreads(__tstate); | |
12258 | if (PyErr_Occurred()) SWIG_fail; | |
12259 | } | |
12260 | Py_INCREF(Py_None); resultobj = Py_None; | |
12261 | return resultobj; | |
12262 | fail: | |
12263 | return NULL; | |
12264 | } | |
12265 | ||
12266 | ||
12267 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12268 | PyObject *resultobj; | |
12269 | wxDC *arg1 = (wxDC *) 0 ; | |
12270 | wxBrush *arg2 = 0 ; | |
12271 | PyObject * obj0 = 0 ; | |
12272 | PyObject * obj1 = 0 ; | |
12273 | char *kwnames[] = { | |
12274 | (char *) "self",(char *) "brush", NULL | |
12275 | }; | |
12276 | ||
12277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
12278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12279 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12280 | if (arg2 == NULL) { | |
12281 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12282 | } | |
12283 | { | |
12284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12285 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12286 | ||
12287 | wxPyEndAllowThreads(__tstate); | |
12288 | if (PyErr_Occurred()) SWIG_fail; | |
12289 | } | |
12290 | Py_INCREF(Py_None); resultobj = Py_None; | |
12291 | return resultobj; | |
12292 | fail: | |
12293 | return NULL; | |
12294 | } | |
12295 | ||
12296 | ||
12297 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12298 | PyObject *resultobj; | |
12299 | wxDC *arg1 = (wxDC *) 0 ; | |
12300 | wxBrush *arg2 = 0 ; | |
12301 | PyObject * obj0 = 0 ; | |
12302 | PyObject * obj1 = 0 ; | |
12303 | char *kwnames[] = { | |
12304 | (char *) "self",(char *) "brush", NULL | |
12305 | }; | |
12306 | ||
12307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
12308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12309 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12310 | if (arg2 == NULL) { | |
12311 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12312 | } | |
12313 | { | |
12314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12315 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12316 | ||
12317 | wxPyEndAllowThreads(__tstate); | |
12318 | if (PyErr_Occurred()) SWIG_fail; | |
12319 | } | |
12320 | Py_INCREF(Py_None); resultobj = Py_None; | |
12321 | return resultobj; | |
12322 | fail: | |
12323 | return NULL; | |
12324 | } | |
12325 | ||
12326 | ||
12327 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12328 | PyObject *resultobj; | |
12329 | wxDC *arg1 = (wxDC *) 0 ; | |
12330 | int arg2 ; | |
12331 | PyObject * obj0 = 0 ; | |
994141e6 | 12332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12333 | char *kwnames[] = { |
12334 | (char *) "self",(char *) "mode", NULL | |
12335 | }; | |
12336 | ||
994141e6 | 12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12339 | { |
12340 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12341 | if (PyErr_Occurred()) SWIG_fail; | |
12342 | } | |
d14a1e28 RD |
12343 | { |
12344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12345 | (arg1)->SetBackgroundMode(arg2); | |
12346 | ||
12347 | wxPyEndAllowThreads(__tstate); | |
12348 | if (PyErr_Occurred()) SWIG_fail; | |
12349 | } | |
12350 | Py_INCREF(Py_None); resultobj = Py_None; | |
12351 | return resultobj; | |
12352 | fail: | |
12353 | return NULL; | |
12354 | } | |
12355 | ||
12356 | ||
12357 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12358 | PyObject *resultobj; | |
12359 | wxDC *arg1 = (wxDC *) 0 ; | |
12360 | wxPalette *arg2 = 0 ; | |
12361 | PyObject * obj0 = 0 ; | |
12362 | PyObject * obj1 = 0 ; | |
12363 | char *kwnames[] = { | |
12364 | (char *) "self",(char *) "palette", NULL | |
12365 | }; | |
12366 | ||
12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
12368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12369 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12370 | if (arg2 == NULL) { | |
12371 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12372 | } | |
12373 | { | |
12374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12375 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12376 | ||
12377 | wxPyEndAllowThreads(__tstate); | |
12378 | if (PyErr_Occurred()) SWIG_fail; | |
12379 | } | |
12380 | Py_INCREF(Py_None); resultobj = Py_None; | |
12381 | return resultobj; | |
12382 | fail: | |
12383 | return NULL; | |
12384 | } | |
12385 | ||
12386 | ||
242b7b46 | 12387 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12388 | PyObject *resultobj; |
12389 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12390 | int arg2 ; |
12391 | int arg3 ; | |
12392 | int arg4 ; | |
12393 | int arg5 ; | |
d14a1e28 | 12394 | PyObject * obj0 = 0 ; |
994141e6 RD |
12395 | PyObject * obj1 = 0 ; |
12396 | PyObject * obj2 = 0 ; | |
12397 | PyObject * obj3 = 0 ; | |
12398 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12399 | char *kwnames[] = { |
12400 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12401 | }; | |
12402 | ||
994141e6 | 12403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12405 | { |
12406 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
12408 | } | |
12409 | { | |
12410 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
12413 | { | |
12414 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12415 | if (PyErr_Occurred()) SWIG_fail; | |
12416 | } | |
12417 | { | |
12418 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12419 | if (PyErr_Occurred()) SWIG_fail; | |
12420 | } | |
d14a1e28 RD |
12421 | { |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12423 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
12428 | Py_INCREF(Py_None); resultobj = Py_None; | |
12429 | return resultobj; | |
12430 | fail: | |
12431 | return NULL; | |
12432 | } | |
12433 | ||
12434 | ||
242b7b46 RD |
12435 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12436 | PyObject *resultobj; | |
12437 | wxDC *arg1 = (wxDC *) 0 ; | |
12438 | wxPoint *arg2 = 0 ; | |
12439 | wxSize *arg3 = 0 ; | |
12440 | wxPoint temp2 ; | |
12441 | wxSize temp3 ; | |
12442 | PyObject * obj0 = 0 ; | |
12443 | PyObject * obj1 = 0 ; | |
12444 | PyObject * obj2 = 0 ; | |
12445 | char *kwnames[] = { | |
12446 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12447 | }; | |
12448 | ||
12449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12451 | { | |
12452 | arg2 = &temp2; | |
12453 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12454 | } | |
12455 | { | |
12456 | arg3 = &temp3; | |
12457 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12458 | } | |
12459 | { | |
12460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12461 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12462 | ||
12463 | wxPyEndAllowThreads(__tstate); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
12466 | Py_INCREF(Py_None); resultobj = Py_None; | |
12467 | return resultobj; | |
12468 | fail: | |
12469 | return NULL; | |
12470 | } | |
12471 | ||
12472 | ||
d14a1e28 RD |
12473 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
12474 | PyObject *resultobj; | |
12475 | wxDC *arg1 = (wxDC *) 0 ; | |
12476 | wxRect *arg2 = 0 ; | |
12477 | wxRect temp2 ; | |
12478 | PyObject * obj0 = 0 ; | |
12479 | PyObject * obj1 = 0 ; | |
12480 | char *kwnames[] = { | |
12481 | (char *) "self",(char *) "rect", NULL | |
12482 | }; | |
12483 | ||
12484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12486 | { | |
12487 | arg2 = &temp2; | |
12488 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12489 | } | |
12490 | { | |
12491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12492 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12493 | ||
12494 | wxPyEndAllowThreads(__tstate); | |
12495 | if (PyErr_Occurred()) SWIG_fail; | |
12496 | } | |
12497 | Py_INCREF(Py_None); resultobj = Py_None; | |
12498 | return resultobj; | |
12499 | fail: | |
12500 | return NULL; | |
12501 | } | |
12502 | ||
12503 | ||
12504 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12505 | PyObject *resultobj; | |
12506 | wxDC *arg1 = (wxDC *) 0 ; | |
12507 | wxRegion *arg2 = 0 ; | |
12508 | PyObject * obj0 = 0 ; | |
12509 | PyObject * obj1 = 0 ; | |
12510 | char *kwnames[] = { | |
12511 | (char *) "self",(char *) "region", NULL | |
12512 | }; | |
12513 | ||
12514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12517 | if (arg2 == NULL) { | |
12518 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12519 | } | |
12520 | { | |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
12527 | Py_INCREF(Py_None); resultobj = Py_None; | |
12528 | return resultobj; | |
12529 | fail: | |
12530 | return NULL; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12535 | PyObject *resultobj; | |
12536 | wxDC *arg1 = (wxDC *) 0 ; | |
12537 | PyObject * obj0 = 0 ; | |
12538 | char *kwnames[] = { | |
12539 | (char *) "self", NULL | |
12540 | }; | |
12541 | ||
12542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
12543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12544 | { | |
12545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12546 | (arg1)->DestroyClippingRegion(); | |
12547 | ||
12548 | wxPyEndAllowThreads(__tstate); | |
12549 | if (PyErr_Occurred()) SWIG_fail; | |
12550 | } | |
12551 | Py_INCREF(Py_None); resultobj = Py_None; | |
12552 | return resultobj; | |
12553 | fail: | |
12554 | return NULL; | |
12555 | } | |
12556 | ||
12557 | ||
12558 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12559 | PyObject *resultobj; | |
12560 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12561 | int *arg2 = (int *) 0 ; |
12562 | int *arg3 = (int *) 0 ; | |
12563 | int *arg4 = (int *) 0 ; | |
12564 | int *arg5 = (int *) 0 ; | |
12565 | int temp2 ; | |
12566 | int temp3 ; | |
12567 | int temp4 ; | |
12568 | int temp5 ; | |
d14a1e28 RD |
12569 | PyObject * obj0 = 0 ; |
12570 | char *kwnames[] = { | |
12571 | (char *) "self", NULL | |
12572 | }; | |
12573 | ||
12574 | arg2 = &temp2; | |
12575 | arg3 = &temp3; | |
12576 | arg4 = &temp4; | |
12577 | arg5 = &temp5; | |
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12580 | { | |
12581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12582 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12583 | ||
12584 | wxPyEndAllowThreads(__tstate); | |
12585 | if (PyErr_Occurred()) SWIG_fail; | |
12586 | } | |
12587 | Py_INCREF(Py_None); resultobj = Py_None; | |
12588 | { | |
12589 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12590 | resultobj = t_output_helper(resultobj,o); | |
12591 | } | |
12592 | { | |
12593 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12594 | resultobj = t_output_helper(resultobj,o); | |
12595 | } | |
12596 | { | |
12597 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12598 | resultobj = t_output_helper(resultobj,o); | |
12599 | } | |
12600 | { | |
12601 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12602 | resultobj = t_output_helper(resultobj,o); | |
12603 | } | |
12604 | return resultobj; | |
12605 | fail: | |
12606 | return NULL; | |
12607 | } | |
12608 | ||
12609 | ||
12610 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12611 | PyObject *resultobj; | |
12612 | wxDC *arg1 = (wxDC *) 0 ; | |
12613 | wxRect result; | |
12614 | PyObject * obj0 = 0 ; | |
12615 | char *kwnames[] = { | |
12616 | (char *) "self", NULL | |
12617 | }; | |
12618 | ||
12619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
12620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12621 | { | |
12622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12623 | result = wxDC_GetClippingRect(arg1); | |
12624 | ||
12625 | wxPyEndAllowThreads(__tstate); | |
12626 | if (PyErr_Occurred()) SWIG_fail; | |
12627 | } | |
12628 | { | |
12629 | wxRect * resultptr; | |
12630 | resultptr = new wxRect((wxRect &) result); | |
12631 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
12632 | } | |
12633 | return resultobj; | |
12634 | fail: | |
12635 | return NULL; | |
12636 | } | |
12637 | ||
12638 | ||
12639 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12640 | PyObject *resultobj; | |
12641 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12642 | int result; |
d14a1e28 RD |
12643 | PyObject * obj0 = 0 ; |
12644 | char *kwnames[] = { | |
12645 | (char *) "self", NULL | |
12646 | }; | |
12647 | ||
12648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
12649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12650 | { | |
12651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12652 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12653 | |
12654 | wxPyEndAllowThreads(__tstate); | |
12655 | if (PyErr_Occurred()) SWIG_fail; | |
12656 | } | |
994141e6 | 12657 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12658 | return resultobj; |
12659 | fail: | |
12660 | return NULL; | |
12661 | } | |
12662 | ||
12663 | ||
12664 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12665 | PyObject *resultobj; | |
12666 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12667 | int result; |
d14a1e28 RD |
12668 | PyObject * obj0 = 0 ; |
12669 | char *kwnames[] = { | |
12670 | (char *) "self", NULL | |
12671 | }; | |
12672 | ||
12673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
12674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12675 | { | |
12676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12677 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12678 | |
12679 | wxPyEndAllowThreads(__tstate); | |
12680 | if (PyErr_Occurred()) SWIG_fail; | |
12681 | } | |
994141e6 | 12682 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12683 | return resultobj; |
12684 | fail: | |
12685 | return NULL; | |
12686 | } | |
12687 | ||
12688 | ||
12689 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12690 | PyObject *resultobj; | |
12691 | wxDC *arg1 = (wxDC *) 0 ; | |
12692 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12693 | int *arg3 = (int *) 0 ; |
12694 | int *arg4 = (int *) 0 ; | |
12695 | bool temp2 = False ; | |
12696 | int temp3 ; | |
12697 | int temp4 ; | |
d14a1e28 RD |
12698 | PyObject * obj0 = 0 ; |
12699 | PyObject * obj1 = 0 ; | |
12700 | char *kwnames[] = { | |
12701 | (char *) "self",(char *) "string", NULL | |
12702 | }; | |
12703 | ||
12704 | arg3 = &temp3; | |
12705 | arg4 = &temp4; | |
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
12707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12708 | { | |
12709 | arg2 = wxString_in_helper(obj1); | |
12710 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12711 | temp2 = True; |
d14a1e28 RD |
12712 | } |
12713 | { | |
12714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12715 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12716 | ||
12717 | wxPyEndAllowThreads(__tstate); | |
12718 | if (PyErr_Occurred()) SWIG_fail; | |
12719 | } | |
12720 | Py_INCREF(Py_None); resultobj = Py_None; | |
12721 | { | |
12722 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12723 | resultobj = t_output_helper(resultobj,o); | |
12724 | } | |
12725 | { | |
12726 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12727 | resultobj = t_output_helper(resultobj,o); | |
12728 | } | |
12729 | { | |
12730 | if (temp2) | |
12731 | delete arg2; | |
12732 | } | |
12733 | return resultobj; | |
12734 | fail: | |
12735 | { | |
12736 | if (temp2) | |
12737 | delete arg2; | |
12738 | } | |
12739 | return NULL; | |
12740 | } | |
12741 | ||
12742 | ||
12743 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12744 | PyObject *resultobj; | |
12745 | wxDC *arg1 = (wxDC *) 0 ; | |
12746 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12747 | int *arg3 = (int *) 0 ; |
12748 | int *arg4 = (int *) 0 ; | |
12749 | int *arg5 = (int *) 0 ; | |
12750 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12751 | wxFont *arg7 = (wxFont *) NULL ; |
e811c8ce RD |
12752 | bool temp2 = False ; |
12753 | int temp3 ; | |
12754 | int temp4 ; | |
12755 | int temp5 ; | |
12756 | int temp6 ; | |
d14a1e28 RD |
12757 | PyObject * obj0 = 0 ; |
12758 | PyObject * obj1 = 0 ; | |
12759 | PyObject * obj2 = 0 ; | |
12760 | char *kwnames[] = { | |
12761 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12762 | }; | |
12763 | ||
12764 | arg3 = &temp3; | |
12765 | arg4 = &temp4; | |
12766 | arg5 = &temp5; | |
12767 | arg6 = &temp6; | |
12768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12770 | { | |
12771 | arg2 = wxString_in_helper(obj1); | |
12772 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12773 | temp2 = True; |
d14a1e28 RD |
12774 | } |
12775 | if (obj2) { | |
12776 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12777 | } | |
12778 | { | |
12779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12780 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12781 | ||
12782 | wxPyEndAllowThreads(__tstate); | |
12783 | if (PyErr_Occurred()) SWIG_fail; | |
12784 | } | |
12785 | Py_INCREF(Py_None); resultobj = Py_None; | |
12786 | { | |
12787 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12788 | resultobj = t_output_helper(resultobj,o); | |
12789 | } | |
12790 | { | |
12791 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12792 | resultobj = t_output_helper(resultobj,o); | |
12793 | } | |
12794 | { | |
12795 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12796 | resultobj = t_output_helper(resultobj,o); | |
12797 | } | |
12798 | { | |
12799 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12800 | resultobj = t_output_helper(resultobj,o); | |
12801 | } | |
12802 | { | |
12803 | if (temp2) | |
12804 | delete arg2; | |
12805 | } | |
12806 | return resultobj; | |
12807 | fail: | |
12808 | { | |
12809 | if (temp2) | |
12810 | delete arg2; | |
12811 | } | |
12812 | return NULL; | |
12813 | } | |
12814 | ||
12815 | ||
12816 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12817 | PyObject *resultobj; | |
12818 | wxDC *arg1 = (wxDC *) 0 ; | |
12819 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12820 | int *arg3 = (int *) 0 ; |
12821 | int *arg4 = (int *) 0 ; | |
12822 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12823 | wxFont *arg6 = (wxFont *) NULL ; |
e811c8ce RD |
12824 | bool temp2 = False ; |
12825 | int temp3 ; | |
12826 | int temp4 ; | |
12827 | int temp5 ; | |
d14a1e28 RD |
12828 | PyObject * obj0 = 0 ; |
12829 | PyObject * obj1 = 0 ; | |
12830 | PyObject * obj2 = 0 ; | |
12831 | char *kwnames[] = { | |
12832 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12833 | }; | |
12834 | ||
12835 | arg3 = &temp3; | |
12836 | arg4 = &temp4; | |
12837 | arg5 = &temp5; | |
12838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12840 | { | |
12841 | arg2 = wxString_in_helper(obj1); | |
12842 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12843 | temp2 = True; |
d14a1e28 RD |
12844 | } |
12845 | if (obj2) { | |
12846 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12847 | } | |
12848 | { | |
12849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12850 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12851 | ||
12852 | wxPyEndAllowThreads(__tstate); | |
12853 | if (PyErr_Occurred()) SWIG_fail; | |
12854 | } | |
12855 | Py_INCREF(Py_None); resultobj = Py_None; | |
12856 | { | |
12857 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12858 | resultobj = t_output_helper(resultobj,o); | |
12859 | } | |
12860 | { | |
12861 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12862 | resultobj = t_output_helper(resultobj,o); | |
12863 | } | |
12864 | { | |
12865 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12866 | resultobj = t_output_helper(resultobj,o); | |
12867 | } | |
12868 | { | |
12869 | if (temp2) | |
12870 | delete arg2; | |
12871 | } | |
12872 | return resultobj; | |
12873 | fail: | |
12874 | { | |
12875 | if (temp2) | |
12876 | delete arg2; | |
12877 | } | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
db914595 RD |
12882 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { |
12883 | PyObject *resultobj; | |
12884 | wxDC *arg1 = (wxDC *) 0 ; | |
12885 | wxString *arg2 = 0 ; | |
12886 | wxArrayInt result; | |
12887 | bool temp2 = False ; | |
12888 | PyObject * obj0 = 0 ; | |
12889 | PyObject * obj1 = 0 ; | |
12890 | char *kwnames[] = { | |
12891 | (char *) "self",(char *) "text", NULL | |
12892 | }; | |
12893 | ||
12894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
12895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12896 | { | |
12897 | arg2 = wxString_in_helper(obj1); | |
12898 | if (arg2 == NULL) SWIG_fail; | |
12899 | temp2 = True; | |
12900 | } | |
12901 | { | |
12902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12903 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
12904 | ||
12905 | wxPyEndAllowThreads(__tstate); | |
12906 | if (PyErr_Occurred()) SWIG_fail; | |
12907 | } | |
12908 | { | |
12909 | resultobj = PyList_New(0); | |
12910 | size_t idx; | |
12911 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
12912 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
12913 | PyList_Append(resultobj, val); | |
12914 | Py_DECREF(val); | |
12915 | } | |
12916 | } | |
12917 | { | |
12918 | if (temp2) | |
12919 | delete arg2; | |
12920 | } | |
12921 | return resultobj; | |
12922 | fail: | |
12923 | { | |
12924 | if (temp2) | |
12925 | delete arg2; | |
12926 | } | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
322913ce RD |
12931 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
12932 | PyObject *resultobj; | |
12933 | wxDC *arg1 = (wxDC *) 0 ; | |
12934 | wxSize result; | |
12935 | PyObject * obj0 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self", NULL | |
12938 | }; | |
12939 | ||
12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
12941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12942 | { | |
12943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12944 | result = (arg1)->GetSize(); | |
12945 | ||
12946 | wxPyEndAllowThreads(__tstate); | |
12947 | if (PyErr_Occurred()) SWIG_fail; | |
12948 | } | |
12949 | { | |
12950 | wxSize * resultptr; | |
12951 | resultptr = new wxSize((wxSize &) result); | |
12952 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12953 | } | |
12954 | return resultobj; | |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
d14a1e28 RD |
12960 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
12961 | PyObject *resultobj; | |
12962 | wxDC *arg1 = (wxDC *) 0 ; | |
12963 | int *arg2 = (int *) 0 ; | |
12964 | int *arg3 = (int *) 0 ; | |
12965 | int temp2 ; | |
12966 | int temp3 ; | |
12967 | PyObject * obj0 = 0 ; | |
12968 | char *kwnames[] = { | |
12969 | (char *) "self", NULL | |
12970 | }; | |
12971 | ||
12972 | arg2 = &temp2; | |
12973 | arg3 = &temp3; | |
12974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
12975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12976 | { | |
12977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12978 | (arg1)->GetSize(arg2,arg3); | |
12979 | ||
12980 | wxPyEndAllowThreads(__tstate); | |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | Py_INCREF(Py_None); resultobj = Py_None; | |
12984 | { | |
12985 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12986 | resultobj = t_output_helper(resultobj,o); | |
12987 | } | |
12988 | { | |
12989 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12990 | resultobj = t_output_helper(resultobj,o); | |
12991 | } | |
12992 | return resultobj; | |
12993 | fail: | |
12994 | return NULL; | |
12995 | } | |
12996 | ||
12997 | ||
322913ce | 12998 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12999 | PyObject *resultobj; |
13000 | wxDC *arg1 = (wxDC *) 0 ; | |
13001 | wxSize result; | |
13002 | PyObject * obj0 = 0 ; | |
13003 | char *kwnames[] = { | |
13004 | (char *) "self", NULL | |
13005 | }; | |
13006 | ||
322913ce | 13007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13009 | { | |
13010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13011 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
13012 | |
13013 | wxPyEndAllowThreads(__tstate); | |
13014 | if (PyErr_Occurred()) SWIG_fail; | |
13015 | } | |
13016 | { | |
13017 | wxSize * resultptr; | |
13018 | resultptr = new wxSize((wxSize &) result); | |
13019 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13020 | } | |
13021 | return resultobj; | |
13022 | fail: | |
13023 | return NULL; | |
13024 | } | |
13025 | ||
13026 | ||
322913ce | 13027 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13028 | PyObject *resultobj; |
13029 | wxDC *arg1 = (wxDC *) 0 ; | |
13030 | int *arg2 = (int *) 0 ; | |
13031 | int *arg3 = (int *) 0 ; | |
13032 | int temp2 ; | |
13033 | int temp3 ; | |
13034 | PyObject * obj0 = 0 ; | |
13035 | char *kwnames[] = { | |
13036 | (char *) "self", NULL | |
13037 | }; | |
13038 | ||
13039 | arg2 = &temp2; | |
13040 | arg3 = &temp3; | |
322913ce | 13041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13043 | { | |
13044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13045 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13046 | ||
13047 | wxPyEndAllowThreads(__tstate); | |
13048 | if (PyErr_Occurred()) SWIG_fail; | |
13049 | } | |
13050 | Py_INCREF(Py_None); resultobj = Py_None; | |
13051 | { | |
13052 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13053 | resultobj = t_output_helper(resultobj,o); | |
13054 | } | |
13055 | { | |
13056 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13057 | resultobj = t_output_helper(resultobj,o); | |
13058 | } | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | return NULL; | |
13062 | } | |
13063 | ||
13064 | ||
d14a1e28 RD |
13065 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
13066 | PyObject *resultobj; | |
13067 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13068 | int arg2 ; |
13069 | int result; | |
d14a1e28 | 13070 | PyObject * obj0 = 0 ; |
994141e6 | 13071 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13072 | char *kwnames[] = { |
13073 | (char *) "self",(char *) "x", NULL | |
13074 | }; | |
13075 | ||
994141e6 | 13076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13078 | { |
13079 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
d14a1e28 RD |
13082 | { |
13083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13084 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13085 | |
13086 | wxPyEndAllowThreads(__tstate); | |
13087 | if (PyErr_Occurred()) SWIG_fail; | |
13088 | } | |
994141e6 | 13089 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13090 | return resultobj; |
13091 | fail: | |
13092 | return NULL; | |
13093 | } | |
13094 | ||
13095 | ||
13096 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13097 | PyObject *resultobj; | |
13098 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13099 | int arg2 ; |
13100 | int result; | |
d14a1e28 | 13101 | PyObject * obj0 = 0 ; |
994141e6 | 13102 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13103 | char *kwnames[] = { |
13104 | (char *) "self",(char *) "y", NULL | |
13105 | }; | |
13106 | ||
994141e6 | 13107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13109 | { |
13110 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13111 | if (PyErr_Occurred()) SWIG_fail; | |
13112 | } | |
d14a1e28 RD |
13113 | { |
13114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13115 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13116 | |
13117 | wxPyEndAllowThreads(__tstate); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
994141e6 | 13120 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13121 | return resultobj; |
13122 | fail: | |
13123 | return NULL; | |
13124 | } | |
13125 | ||
13126 | ||
13127 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13128 | PyObject *resultobj; | |
13129 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13130 | int arg2 ; |
13131 | int result; | |
d14a1e28 | 13132 | PyObject * obj0 = 0 ; |
994141e6 | 13133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13134 | char *kwnames[] = { |
13135 | (char *) "self",(char *) "x", NULL | |
13136 | }; | |
13137 | ||
994141e6 | 13138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13140 | { |
13141 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13142 | if (PyErr_Occurred()) SWIG_fail; | |
13143 | } | |
d14a1e28 RD |
13144 | { |
13145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13146 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13147 | |
13148 | wxPyEndAllowThreads(__tstate); | |
13149 | if (PyErr_Occurred()) SWIG_fail; | |
13150 | } | |
994141e6 | 13151 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13152 | return resultobj; |
13153 | fail: | |
13154 | return NULL; | |
13155 | } | |
13156 | ||
13157 | ||
13158 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13159 | PyObject *resultobj; | |
13160 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13161 | int arg2 ; |
13162 | int result; | |
d14a1e28 | 13163 | PyObject * obj0 = 0 ; |
994141e6 | 13164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13165 | char *kwnames[] = { |
13166 | (char *) "self",(char *) "y", NULL | |
13167 | }; | |
13168 | ||
994141e6 | 13169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13171 | { |
13172 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
d14a1e28 RD |
13175 | { |
13176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13177 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13178 | |
13179 | wxPyEndAllowThreads(__tstate); | |
13180 | if (PyErr_Occurred()) SWIG_fail; | |
13181 | } | |
994141e6 | 13182 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13183 | return resultobj; |
13184 | fail: | |
13185 | return NULL; | |
13186 | } | |
13187 | ||
13188 | ||
13189 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13190 | PyObject *resultobj; | |
13191 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13192 | int arg2 ; |
13193 | int result; | |
d14a1e28 | 13194 | PyObject * obj0 = 0 ; |
994141e6 | 13195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13196 | char *kwnames[] = { |
13197 | (char *) "self",(char *) "x", NULL | |
13198 | }; | |
13199 | ||
994141e6 | 13200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13202 | { |
13203 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
d14a1e28 RD |
13206 | { |
13207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13208 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13209 | |
13210 | wxPyEndAllowThreads(__tstate); | |
13211 | if (PyErr_Occurred()) SWIG_fail; | |
13212 | } | |
994141e6 | 13213 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13214 | return resultobj; |
13215 | fail: | |
13216 | return NULL; | |
13217 | } | |
13218 | ||
13219 | ||
13220 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13221 | PyObject *resultobj; | |
13222 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13223 | int arg2 ; |
13224 | int result; | |
d14a1e28 | 13225 | PyObject * obj0 = 0 ; |
994141e6 | 13226 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13227 | char *kwnames[] = { |
13228 | (char *) "self",(char *) "y", NULL | |
13229 | }; | |
13230 | ||
994141e6 | 13231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13233 | { |
13234 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13235 | if (PyErr_Occurred()) SWIG_fail; | |
13236 | } | |
d14a1e28 RD |
13237 | { |
13238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13239 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13240 | |
13241 | wxPyEndAllowThreads(__tstate); | |
13242 | if (PyErr_Occurred()) SWIG_fail; | |
13243 | } | |
994141e6 | 13244 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13245 | return resultobj; |
13246 | fail: | |
13247 | return NULL; | |
13248 | } | |
13249 | ||
13250 | ||
13251 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13252 | PyObject *resultobj; | |
13253 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13254 | int arg2 ; |
13255 | int result; | |
d14a1e28 | 13256 | PyObject * obj0 = 0 ; |
994141e6 | 13257 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13258 | char *kwnames[] = { |
13259 | (char *) "self",(char *) "x", NULL | |
13260 | }; | |
13261 | ||
994141e6 | 13262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13264 | { |
13265 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13266 | if (PyErr_Occurred()) SWIG_fail; | |
13267 | } | |
d14a1e28 RD |
13268 | { |
13269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13270 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13271 | |
13272 | wxPyEndAllowThreads(__tstate); | |
13273 | if (PyErr_Occurred()) SWIG_fail; | |
13274 | } | |
994141e6 | 13275 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13276 | return resultobj; |
13277 | fail: | |
13278 | return NULL; | |
13279 | } | |
13280 | ||
13281 | ||
13282 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13283 | PyObject *resultobj; | |
13284 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13285 | int arg2 ; |
13286 | int result; | |
d14a1e28 | 13287 | PyObject * obj0 = 0 ; |
994141e6 | 13288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13289 | char *kwnames[] = { |
13290 | (char *) "self",(char *) "y", NULL | |
13291 | }; | |
13292 | ||
994141e6 | 13293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13295 | { |
13296 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
d14a1e28 RD |
13299 | { |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13301 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13302 | |
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
994141e6 | 13306 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13307 | return resultobj; |
13308 | fail: | |
13309 | return NULL; | |
13310 | } | |
13311 | ||
13312 | ||
13313 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13314 | PyObject *resultobj; | |
13315 | wxDC *arg1 = (wxDC *) 0 ; | |
13316 | bool result; | |
13317 | PyObject * obj0 = 0 ; | |
13318 | char *kwnames[] = { | |
13319 | (char *) "self", NULL | |
13320 | }; | |
13321 | ||
13322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13324 | { | |
13325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13326 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13327 | ||
13328 | wxPyEndAllowThreads(__tstate); | |
13329 | if (PyErr_Occurred()) SWIG_fail; | |
13330 | } | |
4d5c3d91 | 13331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13332 | return resultobj; |
13333 | fail: | |
13334 | return NULL; | |
13335 | } | |
13336 | ||
13337 | ||
13338 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13339 | PyObject *resultobj; | |
13340 | wxDC *arg1 = (wxDC *) 0 ; | |
13341 | bool result; | |
13342 | PyObject * obj0 = 0 ; | |
13343 | char *kwnames[] = { | |
13344 | (char *) "self", NULL | |
13345 | }; | |
13346 | ||
13347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13349 | { | |
13350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13351 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13352 | ||
13353 | wxPyEndAllowThreads(__tstate); | |
13354 | if (PyErr_Occurred()) SWIG_fail; | |
13355 | } | |
4d5c3d91 | 13356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13357 | return resultobj; |
13358 | fail: | |
13359 | return NULL; | |
13360 | } | |
13361 | ||
13362 | ||
13363 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13364 | PyObject *resultobj; | |
13365 | wxDC *arg1 = (wxDC *) 0 ; | |
13366 | int result; | |
13367 | PyObject * obj0 = 0 ; | |
13368 | char *kwnames[] = { | |
13369 | (char *) "self", NULL | |
13370 | }; | |
13371 | ||
13372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
13373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13374 | { | |
13375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13376 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13377 | ||
13378 | wxPyEndAllowThreads(__tstate); | |
13379 | if (PyErr_Occurred()) SWIG_fail; | |
13380 | } | |
994141e6 | 13381 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13382 | return resultobj; |
13383 | fail: | |
13384 | return NULL; | |
13385 | } | |
13386 | ||
13387 | ||
13388 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13389 | PyObject *resultobj; | |
13390 | wxDC *arg1 = (wxDC *) 0 ; | |
13391 | wxSize result; | |
13392 | PyObject * obj0 = 0 ; | |
13393 | char *kwnames[] = { | |
13394 | (char *) "self", NULL | |
13395 | }; | |
13396 | ||
13397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
13398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13399 | { | |
13400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13401 | result = ((wxDC const *)arg1)->GetPPI(); | |
13402 | ||
13403 | wxPyEndAllowThreads(__tstate); | |
13404 | if (PyErr_Occurred()) SWIG_fail; | |
13405 | } | |
13406 | { | |
13407 | wxSize * resultptr; | |
13408 | resultptr = new wxSize((wxSize &) result); | |
13409 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13410 | } | |
13411 | return resultobj; | |
13412 | fail: | |
13413 | return NULL; | |
13414 | } | |
13415 | ||
13416 | ||
13417 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13418 | PyObject *resultobj; | |
13419 | wxDC *arg1 = (wxDC *) 0 ; | |
13420 | bool result; | |
13421 | PyObject * obj0 = 0 ; | |
13422 | char *kwnames[] = { | |
13423 | (char *) "self", NULL | |
13424 | }; | |
13425 | ||
13426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
13427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13428 | { | |
13429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13430 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13431 | ||
13432 | wxPyEndAllowThreads(__tstate); | |
13433 | if (PyErr_Occurred()) SWIG_fail; | |
13434 | } | |
4d5c3d91 | 13435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13436 | return resultobj; |
13437 | fail: | |
13438 | return NULL; | |
13439 | } | |
13440 | ||
13441 | ||
13442 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13443 | PyObject *resultobj; | |
13444 | wxDC *arg1 = (wxDC *) 0 ; | |
13445 | int result; | |
13446 | PyObject * obj0 = 0 ; | |
13447 | char *kwnames[] = { | |
13448 | (char *) "self", NULL | |
13449 | }; | |
13450 | ||
13451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
13452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13453 | { | |
13454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13455 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13456 | ||
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
994141e6 | 13460 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13461 | return resultobj; |
13462 | fail: | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj; | |
13469 | wxDC *arg1 = (wxDC *) 0 ; | |
13470 | wxBrush *result; | |
13471 | PyObject * obj0 = 0 ; | |
13472 | char *kwnames[] = { | |
13473 | (char *) "self", NULL | |
13474 | }; | |
13475 | ||
13476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
13477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13478 | { | |
13479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13480 | { | |
13481 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13482 | result = (wxBrush *) &_result_ref; | |
13483 | } | |
13484 | ||
13485 | wxPyEndAllowThreads(__tstate); | |
13486 | if (PyErr_Occurred()) SWIG_fail; | |
13487 | } | |
13488 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13489 | return resultobj; | |
13490 | fail: | |
13491 | return NULL; | |
13492 | } | |
13493 | ||
13494 | ||
13495 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13496 | PyObject *resultobj; | |
13497 | wxDC *arg1 = (wxDC *) 0 ; | |
13498 | wxBrush *result; | |
13499 | PyObject * obj0 = 0 ; | |
13500 | char *kwnames[] = { | |
13501 | (char *) "self", NULL | |
13502 | }; | |
13503 | ||
13504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
13505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13506 | { | |
13507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13508 | { | |
13509 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13510 | result = (wxBrush *) &_result_ref; | |
13511 | } | |
13512 | ||
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | return NULL; | |
13520 | } | |
13521 | ||
13522 | ||
13523 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13524 | PyObject *resultobj; | |
13525 | wxDC *arg1 = (wxDC *) 0 ; | |
13526 | wxFont *result; | |
13527 | PyObject * obj0 = 0 ; | |
13528 | char *kwnames[] = { | |
13529 | (char *) "self", NULL | |
13530 | }; | |
13531 | ||
13532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
13533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13534 | { | |
13535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13536 | { | |
13537 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13538 | result = (wxFont *) &_result_ref; | |
13539 | } | |
13540 | ||
13541 | wxPyEndAllowThreads(__tstate); | |
13542 | if (PyErr_Occurred()) SWIG_fail; | |
13543 | } | |
13544 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
13545 | return resultobj; | |
13546 | fail: | |
13547 | return NULL; | |
13548 | } | |
13549 | ||
13550 | ||
13551 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13552 | PyObject *resultobj; | |
13553 | wxDC *arg1 = (wxDC *) 0 ; | |
13554 | wxPen *result; | |
13555 | PyObject * obj0 = 0 ; | |
13556 | char *kwnames[] = { | |
13557 | (char *) "self", NULL | |
13558 | }; | |
13559 | ||
13560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
13561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13562 | { | |
13563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13564 | { | |
13565 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13566 | result = (wxPen *) &_result_ref; | |
13567 | } | |
13568 | ||
13569 | wxPyEndAllowThreads(__tstate); | |
13570 | if (PyErr_Occurred()) SWIG_fail; | |
13571 | } | |
13572 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
13573 | return resultobj; | |
13574 | fail: | |
13575 | return NULL; | |
13576 | } | |
13577 | ||
13578 | ||
13579 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13580 | PyObject *resultobj; | |
13581 | wxDC *arg1 = (wxDC *) 0 ; | |
13582 | wxColour *result; | |
13583 | PyObject * obj0 = 0 ; | |
13584 | char *kwnames[] = { | |
13585 | (char *) "self", NULL | |
13586 | }; | |
13587 | ||
13588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
13589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13590 | { | |
13591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13592 | { | |
13593 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13594 | result = (wxColour *) &_result_ref; | |
13595 | } | |
13596 | ||
13597 | wxPyEndAllowThreads(__tstate); | |
13598 | if (PyErr_Occurred()) SWIG_fail; | |
13599 | } | |
13600 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13601 | return resultobj; | |
13602 | fail: | |
13603 | return NULL; | |
13604 | } | |
13605 | ||
13606 | ||
13607 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13608 | PyObject *resultobj; | |
13609 | wxDC *arg1 = (wxDC *) 0 ; | |
13610 | wxColour *result; | |
13611 | PyObject * obj0 = 0 ; | |
13612 | char *kwnames[] = { | |
13613 | (char *) "self", NULL | |
13614 | }; | |
13615 | ||
13616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
13617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13618 | { | |
13619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13620 | { | |
13621 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13622 | result = (wxColour *) &_result_ref; | |
13623 | } | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
13628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13629 | return resultobj; | |
13630 | fail: | |
13631 | return NULL; | |
13632 | } | |
13633 | ||
13634 | ||
13635 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13636 | PyObject *resultobj; | |
13637 | wxDC *arg1 = (wxDC *) 0 ; | |
13638 | wxColour *arg2 = 0 ; | |
13639 | wxColour temp2 ; | |
13640 | PyObject * obj0 = 0 ; | |
13641 | PyObject * obj1 = 0 ; | |
13642 | char *kwnames[] = { | |
13643 | (char *) "self",(char *) "colour", NULL | |
13644 | }; | |
13645 | ||
13646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
13647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13648 | { | |
13649 | arg2 = &temp2; | |
13650 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13651 | } | |
13652 | { | |
13653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13654 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13655 | ||
13656 | wxPyEndAllowThreads(__tstate); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | } | |
13659 | Py_INCREF(Py_None); resultobj = Py_None; | |
13660 | return resultobj; | |
13661 | fail: | |
13662 | return NULL; | |
13663 | } | |
13664 | ||
13665 | ||
13666 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13667 | PyObject *resultobj; | |
13668 | wxDC *arg1 = (wxDC *) 0 ; | |
13669 | wxColour *arg2 = 0 ; | |
13670 | wxColour temp2 ; | |
13671 | PyObject * obj0 = 0 ; | |
13672 | PyObject * obj1 = 0 ; | |
13673 | char *kwnames[] = { | |
13674 | (char *) "self",(char *) "colour", NULL | |
13675 | }; | |
13676 | ||
13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
13678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13679 | { | |
13680 | arg2 = &temp2; | |
13681 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13682 | } | |
13683 | { | |
13684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13685 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13686 | ||
13687 | wxPyEndAllowThreads(__tstate); | |
13688 | if (PyErr_Occurred()) SWIG_fail; | |
13689 | } | |
13690 | Py_INCREF(Py_None); resultobj = Py_None; | |
13691 | return resultobj; | |
13692 | fail: | |
13693 | return NULL; | |
13694 | } | |
13695 | ||
13696 | ||
13697 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13698 | PyObject *resultobj; | |
13699 | wxDC *arg1 = (wxDC *) 0 ; | |
13700 | int result; | |
13701 | PyObject * obj0 = 0 ; | |
13702 | char *kwnames[] = { | |
13703 | (char *) "self", NULL | |
13704 | }; | |
13705 | ||
13706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
13707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13708 | { | |
13709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13710 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13711 | ||
13712 | wxPyEndAllowThreads(__tstate); | |
13713 | if (PyErr_Occurred()) SWIG_fail; | |
13714 | } | |
994141e6 | 13715 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13716 | return resultobj; |
13717 | fail: | |
13718 | return NULL; | |
13719 | } | |
13720 | ||
13721 | ||
13722 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13723 | PyObject *resultobj; | |
13724 | wxDC *arg1 = (wxDC *) 0 ; | |
13725 | int arg2 ; | |
13726 | PyObject * obj0 = 0 ; | |
994141e6 | 13727 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13728 | char *kwnames[] = { |
13729 | (char *) "self",(char *) "mode", NULL | |
13730 | }; | |
13731 | ||
994141e6 | 13732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13734 | { |
13735 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13736 | if (PyErr_Occurred()) SWIG_fail; | |
13737 | } | |
d14a1e28 RD |
13738 | { |
13739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13740 | (arg1)->SetMapMode(arg2); | |
13741 | ||
13742 | wxPyEndAllowThreads(__tstate); | |
13743 | if (PyErr_Occurred()) SWIG_fail; | |
13744 | } | |
13745 | Py_INCREF(Py_None); resultobj = Py_None; | |
13746 | return resultobj; | |
13747 | fail: | |
13748 | return NULL; | |
13749 | } | |
13750 | ||
13751 | ||
13752 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13753 | PyObject *resultobj; | |
13754 | wxDC *arg1 = (wxDC *) 0 ; | |
13755 | double *arg2 = (double *) 0 ; | |
13756 | double *arg3 = (double *) 0 ; | |
13757 | double temp2 ; | |
13758 | double temp3 ; | |
13759 | PyObject * obj0 = 0 ; | |
13760 | char *kwnames[] = { | |
13761 | (char *) "self", NULL | |
13762 | }; | |
13763 | ||
13764 | arg2 = &temp2; | |
13765 | arg3 = &temp3; | |
13766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
13767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13768 | { | |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13770 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13771 | ||
13772 | wxPyEndAllowThreads(__tstate); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | Py_INCREF(Py_None); resultobj = Py_None; | |
13776 | { | |
13777 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13778 | resultobj = t_output_helper(resultobj,o); | |
13779 | } | |
13780 | { | |
13781 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13782 | resultobj = t_output_helper(resultobj,o); | |
13783 | } | |
13784 | return resultobj; | |
13785 | fail: | |
13786 | return NULL; | |
13787 | } | |
13788 | ||
13789 | ||
13790 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13791 | PyObject *resultobj; | |
13792 | wxDC *arg1 = (wxDC *) 0 ; | |
13793 | double arg2 ; | |
13794 | double arg3 ; | |
13795 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13796 | PyObject * obj1 = 0 ; |
13797 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13798 | char *kwnames[] = { |
13799 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13800 | }; | |
13801 | ||
994141e6 | 13802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13804 | { |
13805 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13806 | if (PyErr_Occurred()) SWIG_fail; | |
13807 | } | |
13808 | { | |
13809 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13810 | if (PyErr_Occurred()) SWIG_fail; | |
13811 | } | |
d14a1e28 RD |
13812 | { |
13813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13814 | (arg1)->SetUserScale(arg2,arg3); | |
13815 | ||
13816 | wxPyEndAllowThreads(__tstate); | |
13817 | if (PyErr_Occurred()) SWIG_fail; | |
13818 | } | |
13819 | Py_INCREF(Py_None); resultobj = Py_None; | |
13820 | return resultobj; | |
13821 | fail: | |
13822 | return NULL; | |
13823 | } | |
13824 | ||
13825 | ||
13826 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13827 | PyObject *resultobj; | |
13828 | wxDC *arg1 = (wxDC *) 0 ; | |
13829 | double *arg2 = (double *) 0 ; | |
13830 | double *arg3 = (double *) 0 ; | |
13831 | double temp2 ; | |
13832 | double temp3 ; | |
13833 | PyObject * obj0 = 0 ; | |
13834 | char *kwnames[] = { | |
13835 | (char *) "self", NULL | |
13836 | }; | |
13837 | ||
13838 | arg2 = &temp2; | |
13839 | arg3 = &temp3; | |
13840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
13841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13842 | { | |
13843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13844 | (arg1)->GetLogicalScale(arg2,arg3); | |
13845 | ||
13846 | wxPyEndAllowThreads(__tstate); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
13849 | Py_INCREF(Py_None); resultobj = Py_None; | |
13850 | { | |
13851 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13852 | resultobj = t_output_helper(resultobj,o); | |
13853 | } | |
13854 | { | |
13855 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13856 | resultobj = t_output_helper(resultobj,o); | |
13857 | } | |
13858 | return resultobj; | |
13859 | fail: | |
13860 | return NULL; | |
13861 | } | |
13862 | ||
13863 | ||
13864 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13865 | PyObject *resultobj; | |
13866 | wxDC *arg1 = (wxDC *) 0 ; | |
13867 | double arg2 ; | |
13868 | double arg3 ; | |
13869 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13870 | PyObject * obj1 = 0 ; |
13871 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13872 | char *kwnames[] = { |
13873 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13874 | }; | |
13875 | ||
994141e6 | 13876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13878 | { |
13879 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13880 | if (PyErr_Occurred()) SWIG_fail; | |
13881 | } | |
13882 | { | |
13883 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13884 | if (PyErr_Occurred()) SWIG_fail; | |
13885 | } | |
d14a1e28 RD |
13886 | { |
13887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13888 | (arg1)->SetLogicalScale(arg2,arg3); | |
13889 | ||
13890 | wxPyEndAllowThreads(__tstate); | |
13891 | if (PyErr_Occurred()) SWIG_fail; | |
13892 | } | |
13893 | Py_INCREF(Py_None); resultobj = Py_None; | |
13894 | return resultobj; | |
13895 | fail: | |
13896 | return NULL; | |
13897 | } | |
13898 | ||
13899 | ||
322913ce | 13900 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13901 | PyObject *resultobj; |
13902 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13903 | wxPoint result; |
d14a1e28 RD |
13904 | PyObject * obj0 = 0 ; |
13905 | char *kwnames[] = { | |
13906 | (char *) "self", NULL | |
13907 | }; | |
13908 | ||
322913ce | 13909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13913 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
13914 | |
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
d14a1e28 | 13918 | { |
322913ce RD |
13919 | wxPoint * resultptr; |
13920 | resultptr = new wxPoint((wxPoint &) result); | |
13921 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13922 | } |
13923 | return resultobj; | |
13924 | fail: | |
13925 | return NULL; | |
13926 | } | |
13927 | ||
13928 | ||
322913ce | 13929 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13930 | PyObject *resultobj; |
13931 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
13932 | int *arg2 = (int *) 0 ; |
13933 | int *arg3 = (int *) 0 ; | |
13934 | int temp2 ; | |
13935 | int temp3 ; | |
d14a1e28 RD |
13936 | PyObject * obj0 = 0 ; |
13937 | char *kwnames[] = { | |
13938 | (char *) "self", NULL | |
13939 | }; | |
13940 | ||
322913ce RD |
13941 | arg2 = &temp2; |
13942 | arg3 = &temp3; | |
13943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13945 | { | |
13946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13947 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
13948 | |
13949 | wxPyEndAllowThreads(__tstate); | |
13950 | if (PyErr_Occurred()) SWIG_fail; | |
13951 | } | |
322913ce | 13952 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13953 | { |
322913ce RD |
13954 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13955 | resultobj = t_output_helper(resultobj,o); | |
13956 | } | |
13957 | { | |
13958 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13959 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13960 | } |
13961 | return resultobj; | |
13962 | fail: | |
13963 | return NULL; | |
13964 | } | |
13965 | ||
13966 | ||
13967 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13968 | PyObject *resultobj; | |
13969 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13970 | int arg2 ; |
13971 | int arg3 ; | |
d14a1e28 | 13972 | PyObject * obj0 = 0 ; |
994141e6 RD |
13973 | PyObject * obj1 = 0 ; |
13974 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13975 | char *kwnames[] = { |
13976 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13977 | }; | |
13978 | ||
994141e6 | 13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13981 | { |
13982 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13983 | if (PyErr_Occurred()) SWIG_fail; | |
13984 | } | |
13985 | { | |
13986 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13987 | if (PyErr_Occurred()) SWIG_fail; | |
13988 | } | |
d14a1e28 RD |
13989 | { |
13990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13991 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
13992 | ||
13993 | wxPyEndAllowThreads(__tstate); | |
13994 | if (PyErr_Occurred()) SWIG_fail; | |
13995 | } | |
13996 | Py_INCREF(Py_None); resultobj = Py_None; | |
13997 | return resultobj; | |
13998 | fail: | |
13999 | return NULL; | |
14000 | } | |
14001 | ||
14002 | ||
322913ce | 14003 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14004 | PyObject *resultobj; |
14005 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14006 | wxPoint result; |
d14a1e28 RD |
14007 | PyObject * obj0 = 0 ; |
14008 | char *kwnames[] = { | |
14009 | (char *) "self", NULL | |
14010 | }; | |
14011 | ||
322913ce | 14012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
14013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14014 | { | |
14015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14016 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
14017 | |
14018 | wxPyEndAllowThreads(__tstate); | |
14019 | if (PyErr_Occurred()) SWIG_fail; | |
14020 | } | |
d14a1e28 | 14021 | { |
322913ce RD |
14022 | wxPoint * resultptr; |
14023 | resultptr = new wxPoint((wxPoint &) result); | |
14024 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
14025 | } |
14026 | return resultobj; | |
14027 | fail: | |
14028 | return NULL; | |
14029 | } | |
14030 | ||
14031 | ||
322913ce | 14032 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14033 | PyObject *resultobj; |
14034 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14035 | int *arg2 = (int *) 0 ; |
14036 | int *arg3 = (int *) 0 ; | |
14037 | int temp2 ; | |
14038 | int temp3 ; | |
d14a1e28 RD |
14039 | PyObject * obj0 = 0 ; |
14040 | char *kwnames[] = { | |
14041 | (char *) "self", NULL | |
14042 | }; | |
14043 | ||
322913ce RD |
14044 | arg2 = &temp2; |
14045 | arg3 = &temp3; | |
14046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
14047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14048 | { | |
14049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14050 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14051 | |
14052 | wxPyEndAllowThreads(__tstate); | |
14053 | if (PyErr_Occurred()) SWIG_fail; | |
14054 | } | |
322913ce | 14055 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14056 | { |
322913ce RD |
14057 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14058 | resultobj = t_output_helper(resultobj,o); | |
14059 | } | |
14060 | { | |
14061 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14062 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14063 | } |
14064 | return resultobj; | |
14065 | fail: | |
14066 | return NULL; | |
14067 | } | |
14068 | ||
14069 | ||
14070 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14071 | PyObject *resultobj; | |
14072 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14073 | int arg2 ; |
14074 | int arg3 ; | |
d14a1e28 | 14075 | PyObject * obj0 = 0 ; |
994141e6 RD |
14076 | PyObject * obj1 = 0 ; |
14077 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14078 | char *kwnames[] = { |
14079 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14080 | }; | |
14081 | ||
994141e6 | 14082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14084 | { |
14085 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14086 | if (PyErr_Occurred()) SWIG_fail; | |
14087 | } | |
14088 | { | |
14089 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
d14a1e28 RD |
14092 | { |
14093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14094 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14095 | ||
14096 | wxPyEndAllowThreads(__tstate); | |
14097 | if (PyErr_Occurred()) SWIG_fail; | |
14098 | } | |
14099 | Py_INCREF(Py_None); resultobj = Py_None; | |
14100 | return resultobj; | |
14101 | fail: | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
14106 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14107 | PyObject *resultobj; | |
14108 | wxDC *arg1 = (wxDC *) 0 ; | |
14109 | bool arg2 ; | |
14110 | bool arg3 ; | |
14111 | PyObject * obj0 = 0 ; | |
14112 | PyObject * obj1 = 0 ; | |
14113 | PyObject * obj2 = 0 ; | |
14114 | char *kwnames[] = { | |
14115 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14116 | }; | |
14117 | ||
14118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14120 | { |
994141e6 | 14121 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14122 | if (PyErr_Occurred()) SWIG_fail; |
14123 | } | |
14124 | { | |
994141e6 | 14125 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
14126 | if (PyErr_Occurred()) SWIG_fail; |
14127 | } | |
d14a1e28 RD |
14128 | { |
14129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14130 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14131 | ||
14132 | wxPyEndAllowThreads(__tstate); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
14135 | Py_INCREF(Py_None); resultobj = Py_None; | |
14136 | return resultobj; | |
14137 | fail: | |
14138 | return NULL; | |
14139 | } | |
14140 | ||
14141 | ||
14142 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14143 | PyObject *resultobj; | |
14144 | wxDC *arg1 = (wxDC *) 0 ; | |
14145 | int result; | |
14146 | PyObject * obj0 = 0 ; | |
14147 | char *kwnames[] = { | |
14148 | (char *) "self", NULL | |
14149 | }; | |
14150 | ||
14151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
14152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14153 | { | |
14154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14155 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14156 | ||
14157 | wxPyEndAllowThreads(__tstate); | |
14158 | if (PyErr_Occurred()) SWIG_fail; | |
14159 | } | |
994141e6 | 14160 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14161 | return resultobj; |
14162 | fail: | |
14163 | return NULL; | |
14164 | } | |
14165 | ||
14166 | ||
14167 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14168 | PyObject *resultobj; | |
14169 | wxDC *arg1 = (wxDC *) 0 ; | |
14170 | int arg2 ; | |
14171 | PyObject * obj0 = 0 ; | |
994141e6 | 14172 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14173 | char *kwnames[] = { |
14174 | (char *) "self",(char *) "function", NULL | |
14175 | }; | |
14176 | ||
994141e6 | 14177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14179 | { |
14180 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14181 | if (PyErr_Occurred()) SWIG_fail; | |
14182 | } | |
d14a1e28 RD |
14183 | { |
14184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14185 | (arg1)->SetLogicalFunction(arg2); | |
14186 | ||
14187 | wxPyEndAllowThreads(__tstate); | |
14188 | if (PyErr_Occurred()) SWIG_fail; | |
14189 | } | |
14190 | Py_INCREF(Py_None); resultobj = Py_None; | |
14191 | return resultobj; | |
14192 | fail: | |
14193 | return NULL; | |
14194 | } | |
14195 | ||
14196 | ||
14197 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14198 | PyObject *resultobj; | |
14199 | wxDC *arg1 = (wxDC *) 0 ; | |
14200 | bool arg2 ; | |
14201 | PyObject * obj0 = 0 ; | |
14202 | PyObject * obj1 = 0 ; | |
14203 | char *kwnames[] = { | |
14204 | (char *) "self",(char *) "opt", NULL | |
14205 | }; | |
14206 | ||
14207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
14208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14209 | { |
994141e6 | 14210 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14211 | if (PyErr_Occurred()) SWIG_fail; |
14212 | } | |
d14a1e28 RD |
14213 | { |
14214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14215 | (arg1)->SetOptimization(arg2); | |
14216 | ||
14217 | wxPyEndAllowThreads(__tstate); | |
14218 | if (PyErr_Occurred()) SWIG_fail; | |
14219 | } | |
14220 | Py_INCREF(Py_None); resultobj = Py_None; | |
14221 | return resultobj; | |
14222 | fail: | |
14223 | return NULL; | |
14224 | } | |
14225 | ||
14226 | ||
14227 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14228 | PyObject *resultobj; | |
14229 | wxDC *arg1 = (wxDC *) 0 ; | |
14230 | bool result; | |
14231 | PyObject * obj0 = 0 ; | |
14232 | char *kwnames[] = { | |
14233 | (char *) "self", NULL | |
14234 | }; | |
14235 | ||
14236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
14237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14238 | { | |
14239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14240 | result = (bool)(arg1)->GetOptimization(); | |
14241 | ||
14242 | wxPyEndAllowThreads(__tstate); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
4d5c3d91 | 14245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14246 | return resultobj; |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
14252 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14253 | PyObject *resultobj; | |
14254 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14255 | int arg2 ; |
14256 | int arg3 ; | |
d14a1e28 | 14257 | PyObject * obj0 = 0 ; |
994141e6 RD |
14258 | PyObject * obj1 = 0 ; |
14259 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14260 | char *kwnames[] = { |
14261 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14262 | }; | |
14263 | ||
994141e6 | 14264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14266 | { |
14267 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14268 | if (PyErr_Occurred()) SWIG_fail; | |
14269 | } | |
14270 | { | |
14271 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
d14a1e28 RD |
14274 | { |
14275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14276 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14277 | ||
14278 | wxPyEndAllowThreads(__tstate); | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | } | |
14281 | Py_INCREF(Py_None); resultobj = Py_None; | |
14282 | return resultobj; | |
14283 | fail: | |
14284 | return NULL; | |
14285 | } | |
14286 | ||
14287 | ||
14288 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14289 | PyObject *resultobj; | |
14290 | wxDC *arg1 = (wxDC *) 0 ; | |
14291 | PyObject * obj0 = 0 ; | |
14292 | char *kwnames[] = { | |
14293 | (char *) "self", NULL | |
14294 | }; | |
14295 | ||
14296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
14297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14298 | { | |
14299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14300 | (arg1)->ResetBoundingBox(); | |
14301 | ||
14302 | wxPyEndAllowThreads(__tstate); | |
14303 | if (PyErr_Occurred()) SWIG_fail; | |
14304 | } | |
14305 | Py_INCREF(Py_None); resultobj = Py_None; | |
14306 | return resultobj; | |
14307 | fail: | |
14308 | return NULL; | |
14309 | } | |
14310 | ||
14311 | ||
14312 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14313 | PyObject *resultobj; | |
14314 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14315 | int result; |
d14a1e28 RD |
14316 | PyObject * obj0 = 0 ; |
14317 | char *kwnames[] = { | |
14318 | (char *) "self", NULL | |
14319 | }; | |
14320 | ||
14321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
14322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14323 | { | |
14324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14325 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14326 | |
14327 | wxPyEndAllowThreads(__tstate); | |
14328 | if (PyErr_Occurred()) SWIG_fail; | |
14329 | } | |
994141e6 | 14330 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14331 | return resultobj; |
14332 | fail: | |
14333 | return NULL; | |
14334 | } | |
14335 | ||
14336 | ||
14337 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14338 | PyObject *resultobj; | |
14339 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14340 | int result; |
d14a1e28 RD |
14341 | PyObject * obj0 = 0 ; |
14342 | char *kwnames[] = { | |
14343 | (char *) "self", NULL | |
14344 | }; | |
14345 | ||
14346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
14347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14348 | { | |
14349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14350 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14351 | |
14352 | wxPyEndAllowThreads(__tstate); | |
14353 | if (PyErr_Occurred()) SWIG_fail; | |
14354 | } | |
994141e6 | 14355 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14356 | return resultobj; |
14357 | fail: | |
14358 | return NULL; | |
14359 | } | |
14360 | ||
14361 | ||
14362 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14363 | PyObject *resultobj; | |
14364 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14365 | int result; |
d14a1e28 RD |
14366 | PyObject * obj0 = 0 ; |
14367 | char *kwnames[] = { | |
14368 | (char *) "self", NULL | |
14369 | }; | |
14370 | ||
14371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
14372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14373 | { | |
14374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14375 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14376 | |
14377 | wxPyEndAllowThreads(__tstate); | |
14378 | if (PyErr_Occurred()) SWIG_fail; | |
14379 | } | |
994141e6 | 14380 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14381 | return resultobj; |
14382 | fail: | |
14383 | return NULL; | |
14384 | } | |
14385 | ||
14386 | ||
14387 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14388 | PyObject *resultobj; | |
14389 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14390 | int result; |
d14a1e28 RD |
14391 | PyObject * obj0 = 0 ; |
14392 | char *kwnames[] = { | |
14393 | (char *) "self", NULL | |
14394 | }; | |
14395 | ||
14396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
14397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14398 | { | |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14400 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14401 | |
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
994141e6 | 14405 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14406 | return resultobj; |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
14412 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14413 | PyObject *resultobj; | |
14414 | wxDC *arg1 = (wxDC *) 0 ; | |
14415 | int *arg2 = (int *) 0 ; | |
14416 | int *arg3 = (int *) 0 ; | |
14417 | int *arg4 = (int *) 0 ; | |
14418 | int *arg5 = (int *) 0 ; | |
14419 | int temp2 ; | |
14420 | int temp3 ; | |
14421 | int temp4 ; | |
14422 | int temp5 ; | |
14423 | PyObject * obj0 = 0 ; | |
14424 | char *kwnames[] = { | |
14425 | (char *) "self", NULL | |
14426 | }; | |
14427 | ||
14428 | arg2 = &temp2; | |
14429 | arg3 = &temp3; | |
14430 | arg4 = &temp4; | |
14431 | arg5 = &temp5; | |
14432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
14433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14434 | { | |
14435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14436 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14437 | ||
14438 | wxPyEndAllowThreads(__tstate); | |
14439 | if (PyErr_Occurred()) SWIG_fail; | |
14440 | } | |
14441 | Py_INCREF(Py_None); resultobj = Py_None; | |
14442 | { | |
14443 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14444 | resultobj = t_output_helper(resultobj,o); | |
14445 | } | |
14446 | { | |
14447 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14448 | resultobj = t_output_helper(resultobj,o); | |
14449 | } | |
14450 | { | |
14451 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14452 | resultobj = t_output_helper(resultobj,o); | |
14453 | } | |
14454 | { | |
14455 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14456 | resultobj = t_output_helper(resultobj,o); | |
14457 | } | |
14458 | return resultobj; | |
14459 | fail: | |
14460 | return NULL; | |
14461 | } | |
14462 | ||
14463 | ||
14464 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14465 | PyObject *resultobj; | |
14466 | wxDC *arg1 = (wxDC *) 0 ; | |
14467 | PyObject *arg2 = (PyObject *) 0 ; | |
14468 | PyObject *arg3 = (PyObject *) 0 ; | |
14469 | PyObject *arg4 = (PyObject *) 0 ; | |
14470 | PyObject *result; | |
14471 | PyObject * obj0 = 0 ; | |
14472 | PyObject * obj1 = 0 ; | |
14473 | PyObject * obj2 = 0 ; | |
14474 | PyObject * obj3 = 0 ; | |
14475 | char *kwnames[] = { | |
14476 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14477 | }; | |
14478 | ||
14479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14481 | arg2 = obj1; | |
14482 | arg3 = obj2; | |
14483 | arg4 = obj3; | |
14484 | { | |
14485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14486 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14487 | ||
14488 | wxPyEndAllowThreads(__tstate); | |
14489 | if (PyErr_Occurred()) SWIG_fail; | |
14490 | } | |
14491 | resultobj = result; | |
14492 | return resultobj; | |
14493 | fail: | |
14494 | return NULL; | |
14495 | } | |
14496 | ||
14497 | ||
14498 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14499 | PyObject *resultobj; | |
14500 | wxDC *arg1 = (wxDC *) 0 ; | |
14501 | PyObject *arg2 = (PyObject *) 0 ; | |
14502 | PyObject *arg3 = (PyObject *) 0 ; | |
14503 | PyObject *arg4 = (PyObject *) 0 ; | |
14504 | PyObject *result; | |
14505 | PyObject * obj0 = 0 ; | |
14506 | PyObject * obj1 = 0 ; | |
14507 | PyObject * obj2 = 0 ; | |
14508 | PyObject * obj3 = 0 ; | |
14509 | char *kwnames[] = { | |
14510 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14511 | }; | |
14512 | ||
14513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14515 | arg2 = obj1; | |
14516 | arg3 = obj2; | |
14517 | arg4 = obj3; | |
14518 | { | |
14519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14520 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14521 | ||
14522 | wxPyEndAllowThreads(__tstate); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
14524 | } | |
14525 | resultobj = result; | |
14526 | return resultobj; | |
14527 | fail: | |
14528 | return NULL; | |
14529 | } | |
14530 | ||
14531 | ||
14532 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14533 | PyObject *resultobj; | |
14534 | wxDC *arg1 = (wxDC *) 0 ; | |
14535 | PyObject *arg2 = (PyObject *) 0 ; | |
14536 | PyObject *arg3 = (PyObject *) 0 ; | |
14537 | PyObject *arg4 = (PyObject *) 0 ; | |
14538 | PyObject *result; | |
14539 | PyObject * obj0 = 0 ; | |
14540 | PyObject * obj1 = 0 ; | |
14541 | PyObject * obj2 = 0 ; | |
14542 | PyObject * obj3 = 0 ; | |
14543 | char *kwnames[] = { | |
14544 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14545 | }; | |
14546 | ||
14547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14549 | arg2 = obj1; | |
14550 | arg3 = obj2; | |
14551 | arg4 = obj3; | |
14552 | { | |
14553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14554 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14555 | ||
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | resultobj = result; | |
14560 | return resultobj; | |
14561 | fail: | |
14562 | return NULL; | |
14563 | } | |
14564 | ||
14565 | ||
14566 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14567 | PyObject *resultobj; | |
14568 | wxDC *arg1 = (wxDC *) 0 ; | |
14569 | PyObject *arg2 = (PyObject *) 0 ; | |
14570 | PyObject *arg3 = (PyObject *) 0 ; | |
14571 | PyObject *arg4 = (PyObject *) 0 ; | |
14572 | PyObject *result; | |
14573 | PyObject * obj0 = 0 ; | |
14574 | PyObject * obj1 = 0 ; | |
14575 | PyObject * obj2 = 0 ; | |
14576 | PyObject * obj3 = 0 ; | |
14577 | char *kwnames[] = { | |
14578 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14579 | }; | |
14580 | ||
14581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14583 | arg2 = obj1; | |
14584 | arg3 = obj2; | |
14585 | arg4 = obj3; | |
14586 | { | |
14587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14588 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14589 | ||
14590 | wxPyEndAllowThreads(__tstate); | |
14591 | if (PyErr_Occurred()) SWIG_fail; | |
14592 | } | |
14593 | resultobj = result; | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
14600 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14601 | PyObject *resultobj; | |
14602 | wxDC *arg1 = (wxDC *) 0 ; | |
14603 | PyObject *arg2 = (PyObject *) 0 ; | |
14604 | PyObject *arg3 = (PyObject *) 0 ; | |
14605 | PyObject *arg4 = (PyObject *) 0 ; | |
14606 | PyObject *result; | |
14607 | PyObject * obj0 = 0 ; | |
14608 | PyObject * obj1 = 0 ; | |
14609 | PyObject * obj2 = 0 ; | |
14610 | PyObject * obj3 = 0 ; | |
14611 | char *kwnames[] = { | |
14612 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14613 | }; | |
14614 | ||
14615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14617 | arg2 = obj1; | |
14618 | arg3 = obj2; | |
14619 | arg4 = obj3; | |
14620 | { | |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14623 | ||
14624 | wxPyEndAllowThreads(__tstate); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | } | |
14627 | resultobj = result; | |
14628 | return resultobj; | |
14629 | fail: | |
14630 | return NULL; | |
14631 | } | |
14632 | ||
14633 | ||
14634 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14635 | PyObject *resultobj; | |
14636 | wxDC *arg1 = (wxDC *) 0 ; | |
14637 | PyObject *arg2 = (PyObject *) 0 ; | |
14638 | PyObject *arg3 = (PyObject *) 0 ; | |
14639 | PyObject *arg4 = (PyObject *) 0 ; | |
14640 | PyObject *arg5 = (PyObject *) 0 ; | |
14641 | PyObject *result; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | PyObject * obj1 = 0 ; | |
14644 | PyObject * obj2 = 0 ; | |
14645 | PyObject * obj3 = 0 ; | |
14646 | PyObject * obj4 = 0 ; | |
14647 | char *kwnames[] = { | |
14648 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14649 | }; | |
14650 | ||
14651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14653 | arg2 = obj1; | |
14654 | arg3 = obj2; | |
14655 | arg4 = obj3; | |
14656 | arg5 = obj4; | |
14657 | { | |
14658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14659 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14660 | ||
14661 | wxPyEndAllowThreads(__tstate); | |
14662 | if (PyErr_Occurred()) SWIG_fail; | |
14663 | } | |
14664 | resultobj = result; | |
14665 | return resultobj; | |
14666 | fail: | |
14667 | return NULL; | |
14668 | } | |
14669 | ||
14670 | ||
14671 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14672 | PyObject *obj; | |
14673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14674 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14675 | Py_INCREF(obj); | |
14676 | return Py_BuildValue((char *)""); | |
14677 | } | |
14678 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14679 | PyObject *resultobj; | |
14680 | wxMemoryDC *result; | |
14681 | char *kwnames[] = { | |
14682 | NULL | |
14683 | }; | |
14684 | ||
14685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14686 | { | |
14687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14688 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14689 | ||
14690 | wxPyEndAllowThreads(__tstate); | |
14691 | if (PyErr_Occurred()) SWIG_fail; | |
14692 | } | |
14693 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14694 | return resultobj; | |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
14700 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14701 | PyObject *resultobj; | |
14702 | wxDC *arg1 = (wxDC *) 0 ; | |
14703 | wxMemoryDC *result; | |
14704 | PyObject * obj0 = 0 ; | |
14705 | char *kwnames[] = { | |
14706 | (char *) "oldDC", NULL | |
14707 | }; | |
14708 | ||
14709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
14710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14711 | { | |
14712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14713 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14714 | ||
14715 | wxPyEndAllowThreads(__tstate); | |
14716 | if (PyErr_Occurred()) SWIG_fail; | |
14717 | } | |
14718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14719 | return resultobj; | |
14720 | fail: | |
14721 | return NULL; | |
14722 | } | |
14723 | ||
14724 | ||
14725 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14726 | PyObject *resultobj; | |
14727 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14728 | wxBitmap *arg2 = 0 ; | |
14729 | PyObject * obj0 = 0 ; | |
14730 | PyObject * obj1 = 0 ; | |
14731 | char *kwnames[] = { | |
14732 | (char *) "self",(char *) "bitmap", NULL | |
14733 | }; | |
14734 | ||
14735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
14736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14737 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14738 | if (arg2 == NULL) { | |
14739 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14740 | } | |
14741 | { | |
14742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14743 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14744 | ||
14745 | wxPyEndAllowThreads(__tstate); | |
14746 | if (PyErr_Occurred()) SWIG_fail; | |
14747 | } | |
14748 | Py_INCREF(Py_None); resultobj = Py_None; | |
14749 | return resultobj; | |
14750 | fail: | |
14751 | return NULL; | |
14752 | } | |
14753 | ||
14754 | ||
14755 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
14756 | PyObject *obj; | |
14757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14758 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14759 | Py_INCREF(obj); | |
14760 | return Py_BuildValue((char *)""); | |
14761 | } | |
3adfb63b | 14762 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14763 | PyObject *resultobj; |
14764 | wxDC *arg1 = (wxDC *) 0 ; | |
14765 | wxBitmap *arg2 = 0 ; | |
14766 | wxBufferedDC *result; | |
14767 | PyObject * obj0 = 0 ; | |
14768 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14769 | |
3adfb63b | 14770 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14772 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14773 | if (arg2 == NULL) { | |
14774 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14775 | } | |
14776 | { | |
14777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14778 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
14779 | ||
14780 | wxPyEndAllowThreads(__tstate); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
14783 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14784 | return resultobj; | |
14785 | fail: | |
14786 | return NULL; | |
14787 | } | |
14788 | ||
14789 | ||
3adfb63b | 14790 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14791 | PyObject *resultobj; |
14792 | wxDC *arg1 = (wxDC *) 0 ; | |
14793 | wxSize *arg2 = 0 ; | |
14794 | wxBufferedDC *result; | |
14795 | wxSize temp2 ; | |
14796 | PyObject * obj0 = 0 ; | |
14797 | PyObject * obj1 = 0 ; | |
3adfb63b | 14798 | |
e498079e | 14799 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
3adfb63b RD |
14800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14801 | { | |
14802 | arg2 = &temp2; | |
14803 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14804 | } | |
3adfb63b RD |
14805 | { |
14806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 14807 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
3adfb63b RD |
14808 | |
14809 | wxPyEndAllowThreads(__tstate); | |
14810 | if (PyErr_Occurred()) SWIG_fail; | |
14811 | } | |
14812 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14813 | return resultobj; | |
14814 | fail: | |
14815 | return NULL; | |
14816 | } | |
14817 | ||
14818 | ||
14819 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
14820 | int argc; | |
e498079e | 14821 | PyObject *argv[3]; |
3adfb63b RD |
14822 | int ii; |
14823 | ||
14824 | argc = PyObject_Length(args); | |
e498079e | 14825 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
3adfb63b RD |
14826 | argv[ii] = PyTuple_GetItem(args,ii); |
14827 | } | |
14828 | if (argc == 2) { | |
14829 | int _v; | |
14830 | { | |
14831 | void *ptr; | |
14832 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14833 | _v = 0; | |
14834 | PyErr_Clear(); | |
14835 | } else { | |
14836 | _v = 1; | |
14837 | } | |
14838 | } | |
14839 | if (_v) { | |
14840 | { | |
14841 | void *ptr; | |
14842 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
14843 | _v = 0; | |
14844 | PyErr_Clear(); | |
14845 | } else { | |
14846 | _v = 1; | |
14847 | } | |
14848 | } | |
14849 | if (_v) { | |
14850 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
14851 | } | |
14852 | } | |
14853 | } | |
e498079e | 14854 | if (argc == 2) { |
3adfb63b RD |
14855 | int _v; |
14856 | { | |
14857 | void *ptr; | |
14858 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14859 | _v = 0; | |
14860 | PyErr_Clear(); | |
14861 | } else { | |
14862 | _v = 1; | |
14863 | } | |
14864 | } | |
14865 | if (_v) { | |
14866 | { | |
14867 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
14868 | } | |
14869 | if (_v) { | |
e498079e | 14870 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
3adfb63b RD |
14871 | } |
14872 | } | |
14873 | } | |
14874 | ||
14875 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
14880 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
14881 | PyObject *resultobj; | |
14882 | wxDC *arg1 = (wxDC *) 0 ; | |
14883 | wxSize *arg2 = 0 ; | |
3adfb63b RD |
14884 | wxBufferedDC *result; |
14885 | wxSize temp2 ; | |
14886 | PyObject * obj0 = 0 ; | |
14887 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14888 | |
e498079e | 14889 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14891 | { | |
14892 | arg2 = &temp2; | |
14893 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14894 | } | |
14895 | { | |
14896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 14897 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
14898 | |
14899 | wxPyEndAllowThreads(__tstate); | |
14900 | if (PyErr_Occurred()) SWIG_fail; | |
14901 | } | |
14902 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14903 | return resultobj; | |
14904 | fail: | |
14905 | return NULL; | |
14906 | } | |
14907 | ||
14908 | ||
e498079e | 14909 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14910 | PyObject *resultobj; |
14911 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | char *kwnames[] = { | |
14914 | (char *) "self", NULL | |
14915 | }; | |
14916 | ||
e498079e | 14917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
14918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 14921 | delete arg1; |
d14a1e28 RD |
14922 | |
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | Py_INCREF(Py_None); resultobj = Py_None; | |
14927 | return resultobj; | |
14928 | fail: | |
14929 | return NULL; | |
14930 | } | |
14931 | ||
14932 | ||
e498079e | 14933 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14934 | PyObject *resultobj; |
e498079e | 14935 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
3adfb63b | 14936 | PyObject * obj0 = 0 ; |
e498079e RD |
14937 | char *kwnames[] = { |
14938 | (char *) "self", NULL | |
14939 | }; | |
3adfb63b | 14940 | |
e498079e RD |
14941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
14942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3adfb63b RD |
14943 | { |
14944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 14945 | (arg1)->UnMask(); |
3adfb63b RD |
14946 | |
14947 | wxPyEndAllowThreads(__tstate); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
e498079e | 14950 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
14951 | return resultobj; |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
e498079e RD |
14957 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { |
14958 | PyObject *obj; | |
14959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14960 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
14961 | Py_INCREF(obj); | |
14962 | return Py_BuildValue((char *)""); | |
14963 | } | |
14964 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
14965 | PyObject *resultobj; |
14966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e498079e RD |
14967 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
14968 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
d14a1e28 RD |
14969 | wxBufferedPaintDC *result; |
14970 | PyObject * obj0 = 0 ; | |
14971 | PyObject * obj1 = 0 ; | |
e498079e RD |
14972 | char *kwnames[] = { |
14973 | (char *) "window",(char *) "buffer", NULL | |
14974 | }; | |
d14a1e28 | 14975 | |
e498079e | 14976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14978 | if (obj1) { | |
e498079e RD |
14979 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14980 | if (arg2 == NULL) { | |
14981 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
d14a1e28 RD |
14982 | } |
14983 | } | |
14984 | { | |
14985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 14986 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
14987 | |
14988 | wxPyEndAllowThreads(__tstate); | |
14989 | if (PyErr_Occurred()) SWIG_fail; | |
14990 | } | |
14991 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14992 | return resultobj; | |
14993 | fail: | |
14994 | return NULL; | |
14995 | } | |
14996 | ||
14997 | ||
14998 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
14999 | PyObject *obj; | |
15000 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15001 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15002 | Py_INCREF(obj); | |
15003 | return Py_BuildValue((char *)""); | |
15004 | } | |
15005 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15006 | PyObject *resultobj; | |
15007 | wxScreenDC *result; | |
15008 | char *kwnames[] = { | |
15009 | NULL | |
15010 | }; | |
15011 | ||
15012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15013 | { | |
15014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15015 | result = (wxScreenDC *)new wxScreenDC(); | |
15016 | ||
15017 | wxPyEndAllowThreads(__tstate); | |
15018 | if (PyErr_Occurred()) SWIG_fail; | |
15019 | } | |
15020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
15021 | return resultobj; | |
15022 | fail: | |
15023 | return NULL; | |
15024 | } | |
15025 | ||
15026 | ||
15027 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15028 | PyObject *resultobj; | |
15029 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15030 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15031 | bool result; | |
15032 | PyObject * obj0 = 0 ; | |
15033 | PyObject * obj1 = 0 ; | |
15034 | char *kwnames[] = { | |
15035 | (char *) "self",(char *) "window", NULL | |
15036 | }; | |
15037 | ||
15038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15040 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15041 | { | |
15042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15043 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15044 | ||
15045 | wxPyEndAllowThreads(__tstate); | |
15046 | if (PyErr_Occurred()) SWIG_fail; | |
15047 | } | |
4d5c3d91 | 15048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15049 | return resultobj; |
15050 | fail: | |
15051 | return NULL; | |
15052 | } | |
15053 | ||
15054 | ||
15055 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15056 | PyObject *resultobj; | |
15057 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15058 | wxRect *arg2 = (wxRect *) NULL ; | |
15059 | bool result; | |
15060 | PyObject * obj0 = 0 ; | |
15061 | PyObject * obj1 = 0 ; | |
15062 | char *kwnames[] = { | |
15063 | (char *) "self",(char *) "rect", NULL | |
15064 | }; | |
15065 | ||
15066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15068 | if (obj1) { | |
15069 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15070 | } | |
15071 | { | |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15074 | ||
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
4d5c3d91 | 15078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15079 | return resultobj; |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj; | |
15087 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15088 | bool result; | |
15089 | PyObject * obj0 = 0 ; | |
15090 | char *kwnames[] = { | |
15091 | (char *) "self", NULL | |
15092 | }; | |
15093 | ||
15094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15096 | { | |
15097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15098 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15099 | ||
15100 | wxPyEndAllowThreads(__tstate); | |
15101 | if (PyErr_Occurred()) SWIG_fail; | |
15102 | } | |
4d5c3d91 | 15103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15104 | return resultobj; |
15105 | fail: | |
15106 | return NULL; | |
15107 | } | |
15108 | ||
15109 | ||
15110 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15111 | PyObject *obj; | |
15112 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15113 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15114 | Py_INCREF(obj); | |
15115 | return Py_BuildValue((char *)""); | |
15116 | } | |
15117 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15118 | PyObject *resultobj; | |
15119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15120 | wxClientDC *result; | |
15121 | PyObject * obj0 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "win", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15128 | { | |
15129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15130 | result = (wxClientDC *)new wxClientDC(arg1); | |
15131 | ||
15132 | wxPyEndAllowThreads(__tstate); | |
15133 | if (PyErr_Occurred()) SWIG_fail; | |
15134 | } | |
15135 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
15136 | return resultobj; | |
15137 | fail: | |
15138 | return NULL; | |
15139 | } | |
15140 | ||
15141 | ||
15142 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15143 | PyObject *obj; | |
15144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15145 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15146 | Py_INCREF(obj); | |
15147 | return Py_BuildValue((char *)""); | |
15148 | } | |
15149 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15150 | PyObject *resultobj; | |
15151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15152 | wxPaintDC *result; | |
15153 | PyObject * obj0 = 0 ; | |
15154 | char *kwnames[] = { | |
15155 | (char *) "win", NULL | |
15156 | }; | |
15157 | ||
15158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15163 | ||
15164 | wxPyEndAllowThreads(__tstate); | |
15165 | if (PyErr_Occurred()) SWIG_fail; | |
15166 | } | |
15167 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
15168 | return resultobj; | |
15169 | fail: | |
15170 | return NULL; | |
15171 | } | |
15172 | ||
15173 | ||
15174 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15175 | PyObject *obj; | |
15176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15177 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15178 | Py_INCREF(obj); | |
15179 | return Py_BuildValue((char *)""); | |
15180 | } | |
15181 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15182 | PyObject *resultobj; | |
15183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15184 | wxWindowDC *result; | |
15185 | PyObject * obj0 = 0 ; | |
15186 | char *kwnames[] = { | |
15187 | (char *) "win", NULL | |
15188 | }; | |
15189 | ||
15190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15192 | { | |
15193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15194 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15195 | ||
15196 | wxPyEndAllowThreads(__tstate); | |
15197 | if (PyErr_Occurred()) SWIG_fail; | |
15198 | } | |
15199 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
15200 | return resultobj; | |
15201 | fail: | |
15202 | return NULL; | |
15203 | } | |
15204 | ||
15205 | ||
15206 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15207 | PyObject *obj; | |
15208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15209 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15210 | Py_INCREF(obj); | |
15211 | return Py_BuildValue((char *)""); | |
15212 | } | |
15213 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15214 | PyObject *resultobj; | |
15215 | wxDC *arg1 = 0 ; | |
15216 | bool arg2 ; | |
15217 | wxMirrorDC *result; | |
15218 | PyObject * obj0 = 0 ; | |
15219 | PyObject * obj1 = 0 ; | |
15220 | char *kwnames[] = { | |
15221 | (char *) "dc",(char *) "mirror", NULL | |
15222 | }; | |
15223 | ||
15224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15226 | if (arg1 == NULL) { | |
15227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15228 | } | |
a41e16b6 | 15229 | { |
994141e6 | 15230 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15231 | if (PyErr_Occurred()) SWIG_fail; |
15232 | } | |
d14a1e28 RD |
15233 | { |
15234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15235 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15236 | ||
15237 | wxPyEndAllowThreads(__tstate); | |
15238 | if (PyErr_Occurred()) SWIG_fail; | |
15239 | } | |
15240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
15241 | return resultobj; | |
15242 | fail: | |
15243 | return NULL; | |
15244 | } | |
15245 | ||
15246 | ||
15247 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15248 | PyObject *obj; | |
15249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15250 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15251 | Py_INCREF(obj); | |
15252 | return Py_BuildValue((char *)""); | |
15253 | } | |
15254 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15255 | PyObject *resultobj; | |
15256 | wxPrintData *arg1 = 0 ; | |
15257 | wxPostScriptDC *result; | |
15258 | PyObject * obj0 = 0 ; | |
15259 | char *kwnames[] = { | |
15260 | (char *) "printData", NULL | |
15261 | }; | |
15262 | ||
15263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15265 | if (arg1 == NULL) { | |
15266 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15267 | } | |
15268 | { | |
15269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15270 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15271 | ||
15272 | wxPyEndAllowThreads(__tstate); | |
15273 | if (PyErr_Occurred()) SWIG_fail; | |
15274 | } | |
15275 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
15282 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj; | |
15284 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15285 | wxPrintData *result; | |
15286 | PyObject * obj0 = 0 ; | |
15287 | char *kwnames[] = { | |
15288 | (char *) "self", NULL | |
15289 | }; | |
15290 | ||
15291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15293 | { | |
15294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15295 | { | |
15296 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15297 | result = (wxPrintData *) &_result_ref; | |
15298 | } | |
15299 | ||
15300 | wxPyEndAllowThreads(__tstate); | |
15301 | if (PyErr_Occurred()) SWIG_fail; | |
15302 | } | |
15303 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
15304 | return resultobj; | |
15305 | fail: | |
15306 | return NULL; | |
15307 | } | |
15308 | ||
15309 | ||
15310 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15311 | PyObject *resultobj; | |
15312 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15313 | wxPrintData *arg2 = 0 ; | |
15314 | PyObject * obj0 = 0 ; | |
15315 | PyObject * obj1 = 0 ; | |
15316 | char *kwnames[] = { | |
15317 | (char *) "self",(char *) "data", NULL | |
15318 | }; | |
15319 | ||
15320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15322 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15323 | if (arg2 == NULL) { | |
15324 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15325 | } | |
15326 | { | |
15327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15328 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15329 | ||
15330 | wxPyEndAllowThreads(__tstate); | |
15331 | if (PyErr_Occurred()) SWIG_fail; | |
15332 | } | |
15333 | Py_INCREF(Py_None); resultobj = Py_None; | |
15334 | return resultobj; | |
15335 | fail: | |
15336 | return NULL; | |
15337 | } | |
15338 | ||
15339 | ||
15340 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15341 | PyObject *resultobj; | |
15342 | int arg1 ; | |
994141e6 | 15343 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15344 | char *kwnames[] = { |
15345 | (char *) "ppi", NULL | |
15346 | }; | |
15347 | ||
994141e6 RD |
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15349 | { | |
15350 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15351 | if (PyErr_Occurred()) SWIG_fail; | |
15352 | } | |
d14a1e28 RD |
15353 | { |
15354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15355 | wxPostScriptDC::SetResolution(arg1); | |
15356 | ||
15357 | wxPyEndAllowThreads(__tstate); | |
15358 | if (PyErr_Occurred()) SWIG_fail; | |
15359 | } | |
15360 | Py_INCREF(Py_None); resultobj = Py_None; | |
15361 | return resultobj; | |
15362 | fail: | |
15363 | return NULL; | |
15364 | } | |
15365 | ||
15366 | ||
15367 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15368 | PyObject *resultobj; | |
15369 | int result; | |
15370 | char *kwnames[] = { | |
15371 | NULL | |
15372 | }; | |
15373 | ||
15374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15375 | { | |
15376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15377 | result = (int)wxPostScriptDC::GetResolution(); | |
15378 | ||
15379 | wxPyEndAllowThreads(__tstate); | |
15380 | if (PyErr_Occurred()) SWIG_fail; | |
15381 | } | |
994141e6 | 15382 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15383 | return resultobj; |
15384 | fail: | |
15385 | return NULL; | |
15386 | } | |
15387 | ||
15388 | ||
15389 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15390 | PyObject *obj; | |
15391 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15392 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15393 | Py_INCREF(obj); | |
15394 | return Py_BuildValue((char *)""); | |
15395 | } | |
15396 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15397 | PyObject *resultobj; | |
15398 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15399 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15400 | wxMetaFile *result; | |
e811c8ce | 15401 | bool temp1 = False ; |
d14a1e28 RD |
15402 | PyObject * obj0 = 0 ; |
15403 | char *kwnames[] = { | |
15404 | (char *) "filename", NULL | |
15405 | }; | |
15406 | ||
15407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15408 | if (obj0) { | |
15409 | { | |
15410 | arg1 = wxString_in_helper(obj0); | |
15411 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15412 | temp1 = True; |
d14a1e28 RD |
15413 | } |
15414 | } | |
15415 | { | |
15416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15417 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15418 | ||
15419 | wxPyEndAllowThreads(__tstate); | |
15420 | if (PyErr_Occurred()) SWIG_fail; | |
15421 | } | |
15422 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
15423 | { | |
15424 | if (temp1) | |
15425 | delete arg1; | |
15426 | } | |
15427 | return resultobj; | |
15428 | fail: | |
15429 | { | |
15430 | if (temp1) | |
15431 | delete arg1; | |
15432 | } | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
15437 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15438 | PyObject *obj; | |
15439 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15440 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15441 | Py_INCREF(obj); | |
15442 | return Py_BuildValue((char *)""); | |
15443 | } | |
15444 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15445 | PyObject *resultobj; | |
15446 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15447 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15448 | int arg2 = (int) 0 ; | |
15449 | int arg3 = (int) 0 ; | |
15450 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15451 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15452 | wxMetaFileDC *result; | |
e811c8ce RD |
15453 | bool temp1 = False ; |
15454 | bool temp4 = False ; | |
d14a1e28 | 15455 | PyObject * obj0 = 0 ; |
994141e6 RD |
15456 | PyObject * obj1 = 0 ; |
15457 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15458 | PyObject * obj3 = 0 ; |
15459 | char *kwnames[] = { | |
15460 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15461 | }; | |
15462 | ||
994141e6 | 15463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15464 | if (obj0) { |
15465 | { | |
15466 | arg1 = wxString_in_helper(obj0); | |
15467 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15468 | temp1 = True; |
d14a1e28 RD |
15469 | } |
15470 | } | |
994141e6 RD |
15471 | if (obj1) { |
15472 | { | |
15473 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15474 | if (PyErr_Occurred()) SWIG_fail; | |
15475 | } | |
15476 | } | |
15477 | if (obj2) { | |
15478 | { | |
15479 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15480 | if (PyErr_Occurred()) SWIG_fail; | |
15481 | } | |
15482 | } | |
d14a1e28 RD |
15483 | if (obj3) { |
15484 | { | |
15485 | arg4 = wxString_in_helper(obj3); | |
15486 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15487 | temp4 = True; |
d14a1e28 RD |
15488 | } |
15489 | } | |
15490 | { | |
15491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15492 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15493 | ||
15494 | wxPyEndAllowThreads(__tstate); | |
15495 | if (PyErr_Occurred()) SWIG_fail; | |
15496 | } | |
15497 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
15498 | { | |
15499 | if (temp1) | |
15500 | delete arg1; | |
15501 | } | |
15502 | { | |
15503 | if (temp4) | |
15504 | delete arg4; | |
15505 | } | |
15506 | return resultobj; | |
15507 | fail: | |
15508 | { | |
15509 | if (temp1) | |
15510 | delete arg1; | |
15511 | } | |
15512 | { | |
15513 | if (temp4) | |
15514 | delete arg4; | |
15515 | } | |
15516 | return NULL; | |
15517 | } | |
15518 | ||
15519 | ||
15520 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15521 | PyObject *obj; | |
15522 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15523 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15524 | Py_INCREF(obj); | |
15525 | return Py_BuildValue((char *)""); | |
15526 | } | |
15527 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15528 | PyObject *resultobj; | |
15529 | wxPrintData *arg1 = 0 ; | |
15530 | wxPrinterDC *result; | |
15531 | PyObject * obj0 = 0 ; | |
15532 | char *kwnames[] = { | |
15533 | (char *) "printData", NULL | |
15534 | }; | |
15535 | ||
15536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15538 | if (arg1 == NULL) { | |
15539 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15540 | } | |
15541 | { | |
15542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15543 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15544 | ||
15545 | wxPyEndAllowThreads(__tstate); | |
15546 | if (PyErr_Occurred()) SWIG_fail; | |
15547 | } | |
15548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
15549 | return resultobj; | |
15550 | fail: | |
15551 | return NULL; | |
15552 | } | |
15553 | ||
15554 | ||
15555 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
15556 | PyObject *obj; | |
15557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15558 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15559 | Py_INCREF(obj); | |
15560 | return Py_BuildValue((char *)""); | |
15561 | } | |
15562 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15563 | PyObject *resultobj; | |
15564 | int arg1 ; | |
15565 | int arg2 ; | |
e811c8ce | 15566 | int arg3 = (int) True ; |
d14a1e28 RD |
15567 | int arg4 = (int) 1 ; |
15568 | wxImageList *result; | |
994141e6 RD |
15569 | PyObject * obj0 = 0 ; |
15570 | PyObject * obj1 = 0 ; | |
15571 | PyObject * obj2 = 0 ; | |
15572 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15573 | char *kwnames[] = { |
15574 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15575 | }; | |
15576 | ||
994141e6 RD |
15577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15578 | { | |
15579 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15580 | if (PyErr_Occurred()) SWIG_fail; | |
15581 | } | |
15582 | { | |
15583 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15584 | if (PyErr_Occurred()) SWIG_fail; | |
15585 | } | |
15586 | if (obj2) { | |
15587 | { | |
15588 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15589 | if (PyErr_Occurred()) SWIG_fail; | |
15590 | } | |
15591 | } | |
15592 | if (obj3) { | |
15593 | { | |
15594 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15595 | if (PyErr_Occurred()) SWIG_fail; | |
15596 | } | |
15597 | } | |
d14a1e28 RD |
15598 | { |
15599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15600 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15601 | ||
15602 | wxPyEndAllowThreads(__tstate); | |
15603 | if (PyErr_Occurred()) SWIG_fail; | |
15604 | } | |
15605 | { | |
15606 | resultobj = wxPyMake_wxObject(result); | |
15607 | } | |
15608 | return resultobj; | |
15609 | fail: | |
15610 | return NULL; | |
15611 | } | |
15612 | ||
15613 | ||
15614 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15615 | PyObject *resultobj; | |
15616 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15617 | PyObject * obj0 = 0 ; | |
15618 | char *kwnames[] = { | |
15619 | (char *) "self", NULL | |
15620 | }; | |
15621 | ||
15622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15624 | { | |
15625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15626 | delete arg1; | |
15627 | ||
15628 | wxPyEndAllowThreads(__tstate); | |
15629 | if (PyErr_Occurred()) SWIG_fail; | |
15630 | } | |
15631 | Py_INCREF(Py_None); resultobj = Py_None; | |
15632 | return resultobj; | |
15633 | fail: | |
15634 | return NULL; | |
15635 | } | |
15636 | ||
15637 | ||
15638 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15639 | PyObject *resultobj; | |
15640 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15641 | wxBitmap *arg2 = 0 ; | |
15642 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15643 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15644 | int result; | |
15645 | PyObject * obj0 = 0 ; | |
15646 | PyObject * obj1 = 0 ; | |
15647 | PyObject * obj2 = 0 ; | |
15648 | char *kwnames[] = { | |
15649 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15650 | }; | |
15651 | ||
15652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15654 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15655 | if (arg2 == NULL) { | |
15656 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15657 | } | |
15658 | if (obj2) { | |
15659 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15660 | if (arg3 == NULL) { | |
15661 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15662 | } | |
15663 | } | |
15664 | { | |
15665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15666 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15667 | ||
15668 | wxPyEndAllowThreads(__tstate); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | } | |
994141e6 | 15671 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15672 | return resultobj; |
15673 | fail: | |
15674 | return NULL; | |
15675 | } | |
15676 | ||
15677 | ||
15678 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15679 | PyObject *resultobj; | |
15680 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15681 | wxBitmap *arg2 = 0 ; | |
15682 | wxColour *arg3 = 0 ; | |
15683 | int result; | |
15684 | wxColour temp3 ; | |
15685 | PyObject * obj0 = 0 ; | |
15686 | PyObject * obj1 = 0 ; | |
15687 | PyObject * obj2 = 0 ; | |
15688 | char *kwnames[] = { | |
15689 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
15690 | }; | |
15691 | ||
15692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15694 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15695 | if (arg2 == NULL) { | |
15696 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15697 | } | |
15698 | { | |
15699 | arg3 = &temp3; | |
15700 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15701 | } | |
15702 | { | |
15703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15704 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
15705 | ||
15706 | wxPyEndAllowThreads(__tstate); | |
15707 | if (PyErr_Occurred()) SWIG_fail; | |
15708 | } | |
994141e6 | 15709 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15710 | return resultobj; |
15711 | fail: | |
15712 | return NULL; | |
15713 | } | |
15714 | ||
15715 | ||
15716 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15717 | PyObject *resultobj; | |
15718 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15719 | wxIcon *arg2 = 0 ; | |
15720 | int result; | |
15721 | PyObject * obj0 = 0 ; | |
15722 | PyObject * obj1 = 0 ; | |
15723 | char *kwnames[] = { | |
15724 | (char *) "self",(char *) "icon", NULL | |
15725 | }; | |
15726 | ||
15727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15729 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15730 | if (arg2 == NULL) { | |
15731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15732 | } | |
15733 | { | |
15734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15735 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
15736 | ||
15737 | wxPyEndAllowThreads(__tstate); | |
15738 | if (PyErr_Occurred()) SWIG_fail; | |
15739 | } | |
994141e6 | 15740 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15741 | return resultobj; |
15742 | fail: | |
15743 | return NULL; | |
15744 | } | |
15745 | ||
15746 | ||
15747 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15748 | PyObject *resultobj; | |
15749 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15750 | int arg2 ; | |
15751 | wxBitmap *arg3 = 0 ; | |
15752 | bool result; | |
15753 | PyObject * obj0 = 0 ; | |
994141e6 | 15754 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15755 | PyObject * obj2 = 0 ; |
15756 | char *kwnames[] = { | |
15757 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
15758 | }; | |
15759 | ||
994141e6 | 15760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15762 | { |
15763 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15764 | if (PyErr_Occurred()) SWIG_fail; | |
15765 | } | |
d14a1e28 RD |
15766 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15767 | if (arg3 == NULL) { | |
15768 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15769 | } | |
15770 | { | |
15771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15772 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
15773 | ||
15774 | wxPyEndAllowThreads(__tstate); | |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
4d5c3d91 | 15777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15778 | return resultobj; |
15779 | fail: | |
15780 | return NULL; | |
15781 | } | |
15782 | ||
15783 | ||
15784 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15785 | PyObject *resultobj; | |
15786 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15787 | int arg2 ; | |
15788 | wxDC *arg3 = 0 ; | |
15789 | int arg4 ; | |
15790 | int arg5 ; | |
15791 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
e811c8ce | 15792 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15793 | bool result; |
15794 | PyObject * obj0 = 0 ; | |
994141e6 | 15795 | PyObject * obj1 = 0 ; |
d14a1e28 | 15796 | PyObject * obj2 = 0 ; |
994141e6 RD |
15797 | PyObject * obj3 = 0 ; |
15798 | PyObject * obj4 = 0 ; | |
15799 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15800 | PyObject * obj6 = 0 ; |
15801 | char *kwnames[] = { | |
15802 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15803 | }; | |
15804 | ||
994141e6 | 15805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 15806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15807 | { |
15808 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15809 | if (PyErr_Occurred()) SWIG_fail; | |
15810 | } | |
d14a1e28 RD |
15811 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15812 | if (arg3 == NULL) { | |
15813 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15814 | } | |
994141e6 RD |
15815 | { |
15816 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15817 | if (PyErr_Occurred()) SWIG_fail; | |
15818 | } | |
15819 | { | |
15820 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15821 | if (PyErr_Occurred()) SWIG_fail; | |
15822 | } | |
15823 | if (obj5) { | |
15824 | { | |
15825 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15826 | if (PyErr_Occurred()) SWIG_fail; | |
15827 | } | |
15828 | } | |
d14a1e28 | 15829 | if (obj6) { |
a41e16b6 | 15830 | { |
994141e6 | 15831 | arg7 = (bool const) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
15832 | if (PyErr_Occurred()) SWIG_fail; |
15833 | } | |
d14a1e28 RD |
15834 | } |
15835 | { | |
15836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15837 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15838 | ||
15839 | wxPyEndAllowThreads(__tstate); | |
15840 | if (PyErr_Occurred()) SWIG_fail; | |
15841 | } | |
4d5c3d91 | 15842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15843 | return resultobj; |
15844 | fail: | |
15845 | return NULL; | |
15846 | } | |
15847 | ||
15848 | ||
15849 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15850 | PyObject *resultobj; | |
15851 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15852 | int result; | |
15853 | PyObject * obj0 = 0 ; | |
15854 | char *kwnames[] = { | |
15855 | (char *) "self", NULL | |
15856 | }; | |
15857 | ||
15858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15860 | { | |
15861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15862 | result = (int)(arg1)->GetImageCount(); | |
15863 | ||
15864 | wxPyEndAllowThreads(__tstate); | |
15865 | if (PyErr_Occurred()) SWIG_fail; | |
15866 | } | |
994141e6 | 15867 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15868 | return resultobj; |
15869 | fail: | |
15870 | return NULL; | |
15871 | } | |
15872 | ||
15873 | ||
15874 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15875 | PyObject *resultobj; | |
15876 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15877 | int arg2 ; | |
15878 | bool result; | |
15879 | PyObject * obj0 = 0 ; | |
994141e6 | 15880 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15881 | char *kwnames[] = { |
15882 | (char *) "self",(char *) "index", NULL | |
15883 | }; | |
15884 | ||
994141e6 | 15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15887 | { |
15888 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15889 | if (PyErr_Occurred()) SWIG_fail; | |
15890 | } | |
d14a1e28 RD |
15891 | { |
15892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15893 | result = (bool)(arg1)->Remove(arg2); | |
15894 | ||
15895 | wxPyEndAllowThreads(__tstate); | |
15896 | if (PyErr_Occurred()) SWIG_fail; | |
15897 | } | |
4d5c3d91 | 15898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15899 | return resultobj; |
15900 | fail: | |
15901 | return NULL; | |
15902 | } | |
15903 | ||
15904 | ||
15905 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15906 | PyObject *resultobj; | |
15907 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15908 | bool result; | |
15909 | PyObject * obj0 = 0 ; | |
15910 | char *kwnames[] = { | |
15911 | (char *) "self", NULL | |
15912 | }; | |
15913 | ||
15914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15916 | { | |
15917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15918 | result = (bool)(arg1)->RemoveAll(); | |
15919 | ||
15920 | wxPyEndAllowThreads(__tstate); | |
15921 | if (PyErr_Occurred()) SWIG_fail; | |
15922 | } | |
4d5c3d91 | 15923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15924 | return resultobj; |
15925 | fail: | |
15926 | return NULL; | |
15927 | } | |
15928 | ||
15929 | ||
15930 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15931 | PyObject *resultobj; | |
15932 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15933 | int arg2 ; | |
15934 | int *arg3 = 0 ; | |
15935 | int *arg4 = 0 ; | |
15936 | int temp3 ; | |
15937 | int temp4 ; | |
15938 | PyObject * obj0 = 0 ; | |
994141e6 | 15939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15940 | char *kwnames[] = { |
15941 | (char *) "self",(char *) "index", NULL | |
15942 | }; | |
15943 | ||
15944 | arg3 = &temp3; | |
15945 | arg4 = &temp4; | |
994141e6 | 15946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15948 | { |
15949 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15950 | if (PyErr_Occurred()) SWIG_fail; | |
15951 | } | |
d14a1e28 RD |
15952 | { |
15953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15954 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
15955 | ||
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | Py_INCREF(Py_None); resultobj = Py_None; | |
15960 | { | |
15961 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15962 | resultobj = t_output_helper(resultobj,o); | |
15963 | } | |
15964 | { | |
15965 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15966 | resultobj = t_output_helper(resultobj,o); | |
15967 | } | |
15968 | return resultobj; | |
15969 | fail: | |
15970 | return NULL; | |
15971 | } | |
15972 | ||
15973 | ||
15974 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
15975 | PyObject *obj; | |
15976 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15977 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
15978 | Py_INCREF(obj); | |
15979 | return Py_BuildValue((char *)""); | |
15980 | } | |
994141e6 RD |
15981 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { |
15982 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15983 | return 1; | |
d14a1e28 RD |
15984 | } |
15985 | ||
15986 | ||
994141e6 RD |
15987 | static PyObject *_wrap_NORMAL_FONT_get() { |
15988 | PyObject *pyobj; | |
d14a1e28 | 15989 | |
994141e6 RD |
15990 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); |
15991 | return pyobj; | |
d14a1e28 RD |
15992 | } |
15993 | ||
15994 | ||
994141e6 RD |
15995 | static int _wrap_SMALL_FONT_set(PyObject *_val) { |
15996 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15997 | return 1; | |
d14a1e28 RD |
15998 | } |
15999 | ||
16000 | ||
994141e6 RD |
16001 | static PyObject *_wrap_SMALL_FONT_get() { |
16002 | PyObject *pyobj; | |
d14a1e28 | 16003 | |
994141e6 RD |
16004 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); |
16005 | return pyobj; | |
d14a1e28 RD |
16006 | } |
16007 | ||
16008 | ||
994141e6 RD |
16009 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { |
16010 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
16011 | return 1; | |
d14a1e28 | 16012 | } |
994141e6 RD |
16013 | |
16014 | ||
16015 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16016 | PyObject *pyobj; | |
d14a1e28 | 16017 | |
994141e6 RD |
16018 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); |
16019 | return pyobj; | |
d14a1e28 RD |
16020 | } |
16021 | ||
16022 | ||
994141e6 RD |
16023 | static int _wrap_SWISS_FONT_set(PyObject *_val) { |
16024 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
16025 | return 1; | |
d14a1e28 RD |
16026 | } |
16027 | ||
16028 | ||
994141e6 RD |
16029 | static PyObject *_wrap_SWISS_FONT_get() { |
16030 | PyObject *pyobj; | |
d14a1e28 | 16031 | |
994141e6 RD |
16032 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); |
16033 | return pyobj; | |
d14a1e28 RD |
16034 | } |
16035 | ||
16036 | ||
994141e6 RD |
16037 | static int _wrap_RED_PEN_set(PyObject *_val) { |
16038 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
16039 | return 1; | |
16040 | } | |
16041 | ||
16042 | ||
16043 | static PyObject *_wrap_RED_PEN_get() { | |
16044 | PyObject *pyobj; | |
d14a1e28 | 16045 | |
994141e6 RD |
16046 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); |
16047 | return pyobj; | |
d14a1e28 RD |
16048 | } |
16049 | ||
16050 | ||
994141e6 RD |
16051 | static int _wrap_CYAN_PEN_set(PyObject *_val) { |
16052 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16053 | return 1; | |
d14a1e28 | 16054 | } |
994141e6 RD |
16055 | |
16056 | ||
16057 | static PyObject *_wrap_CYAN_PEN_get() { | |
16058 | PyObject *pyobj; | |
d14a1e28 | 16059 | |
994141e6 RD |
16060 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); |
16061 | return pyobj; | |
d14a1e28 RD |
16062 | } |
16063 | ||
16064 | ||
994141e6 RD |
16065 | static int _wrap_GREEN_PEN_set(PyObject *_val) { |
16066 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16067 | return 1; | |
16068 | } | |
16069 | ||
16070 | ||
16071 | static PyObject *_wrap_GREEN_PEN_get() { | |
16072 | PyObject *pyobj; | |
d14a1e28 | 16073 | |
994141e6 RD |
16074 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); |
16075 | return pyobj; | |
d14a1e28 RD |
16076 | } |
16077 | ||
16078 | ||
994141e6 RD |
16079 | static int _wrap_BLACK_PEN_set(PyObject *_val) { |
16080 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16081 | return 1; | |
16082 | } | |
16083 | ||
16084 | ||
16085 | static PyObject *_wrap_BLACK_PEN_get() { | |
16086 | PyObject *pyobj; | |
d14a1e28 | 16087 | |
994141e6 RD |
16088 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); |
16089 | return pyobj; | |
d14a1e28 RD |
16090 | } |
16091 | ||
16092 | ||
994141e6 RD |
16093 | static int _wrap_WHITE_PEN_set(PyObject *_val) { |
16094 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16095 | return 1; | |
d14a1e28 RD |
16096 | } |
16097 | ||
16098 | ||
994141e6 RD |
16099 | static PyObject *_wrap_WHITE_PEN_get() { |
16100 | PyObject *pyobj; | |
d14a1e28 | 16101 | |
994141e6 RD |
16102 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); |
16103 | return pyobj; | |
d14a1e28 RD |
16104 | } |
16105 | ||
16106 | ||
994141e6 RD |
16107 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { |
16108 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16109 | return 1; | |
d14a1e28 RD |
16110 | } |
16111 | ||
16112 | ||
994141e6 RD |
16113 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
16114 | PyObject *pyobj; | |
d14a1e28 | 16115 | |
994141e6 RD |
16116 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); |
16117 | return pyobj; | |
d14a1e28 RD |
16118 | } |
16119 | ||
16120 | ||
994141e6 RD |
16121 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { |
16122 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16123 | return 1; | |
d14a1e28 RD |
16124 | } |
16125 | ||
16126 | ||
994141e6 RD |
16127 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
16128 | PyObject *pyobj; | |
d14a1e28 | 16129 | |
994141e6 RD |
16130 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); |
16131 | return pyobj; | |
d14a1e28 RD |
16132 | } |
16133 | ||
16134 | ||
994141e6 RD |
16135 | static int _wrap_GREY_PEN_set(PyObject *_val) { |
16136 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16137 | return 1; | |
d14a1e28 RD |
16138 | } |
16139 | ||
16140 | ||
994141e6 RD |
16141 | static PyObject *_wrap_GREY_PEN_get() { |
16142 | PyObject *pyobj; | |
16143 | ||
16144 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
16145 | return pyobj; | |
d14a1e28 | 16146 | } |
994141e6 RD |
16147 | |
16148 | ||
16149 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
16150 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
16151 | return 1; |
16152 | } | |
16153 | ||
16154 | ||
994141e6 | 16155 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
16156 | PyObject *pyobj; |
16157 | ||
994141e6 | 16158 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16159 | return pyobj; |
16160 | } | |
16161 | ||
16162 | ||
994141e6 RD |
16163 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { |
16164 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
d14a1e28 RD |
16165 | return 1; |
16166 | } | |
16167 | ||
16168 | ||
994141e6 | 16169 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
16170 | PyObject *pyobj; |
16171 | ||
994141e6 | 16172 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16173 | return pyobj; |
16174 | } | |
16175 | ||
16176 | ||
994141e6 RD |
16177 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { |
16178 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16179 | return 1; |
16180 | } | |
16181 | ||
16182 | ||
994141e6 | 16183 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16184 | PyObject *pyobj; |
16185 | ||
994141e6 | 16186 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16187 | return pyobj; |
16188 | } | |
16189 | ||
16190 | ||
994141e6 RD |
16191 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { |
16192 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16193 | return 1; |
16194 | } | |
16195 | ||
16196 | ||
994141e6 | 16197 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16198 | PyObject *pyobj; |
16199 | ||
994141e6 | 16200 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16201 | return pyobj; |
16202 | } | |
16203 | ||
16204 | ||
994141e6 RD |
16205 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { |
16206 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16207 | return 1; |
16208 | } | |
16209 | ||
16210 | ||
994141e6 | 16211 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16212 | PyObject *pyobj; |
16213 | ||
994141e6 | 16214 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16215 | return pyobj; |
16216 | } | |
16217 | ||
16218 | ||
994141e6 RD |
16219 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { |
16220 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16221 | return 1; |
16222 | } | |
16223 | ||
16224 | ||
994141e6 | 16225 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16226 | PyObject *pyobj; |
16227 | ||
994141e6 | 16228 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16229 | return pyobj; |
16230 | } | |
16231 | ||
16232 | ||
994141e6 RD |
16233 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { |
16234 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
16235 | return 1; |
16236 | } | |
16237 | ||
16238 | ||
994141e6 | 16239 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16240 | PyObject *pyobj; |
16241 | ||
994141e6 | 16242 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16243 | return pyobj; |
16244 | } | |
16245 | ||
16246 | ||
994141e6 RD |
16247 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { |
16248 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
16249 | return 1; |
16250 | } | |
16251 | ||
16252 | ||
994141e6 | 16253 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16254 | PyObject *pyobj; |
16255 | ||
994141e6 | 16256 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16257 | return pyobj; |
16258 | } | |
16259 | ||
16260 | ||
994141e6 RD |
16261 | static int _wrap_RED_BRUSH_set(PyObject *_val) { |
16262 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
16263 | return 1; |
16264 | } | |
16265 | ||
16266 | ||
994141e6 | 16267 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16268 | PyObject *pyobj; |
16269 | ||
994141e6 | 16270 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16271 | return pyobj; |
16272 | } | |
16273 | ||
16274 | ||
994141e6 RD |
16275 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { |
16276 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16277 | return 1; |
16278 | } | |
16279 | ||
16280 | ||
994141e6 | 16281 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16282 | PyObject *pyobj; |
16283 | ||
994141e6 | 16284 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16285 | return pyobj; |
16286 | } | |
16287 | ||
16288 | ||
994141e6 RD |
16289 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { |
16290 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16291 | return 1; |
16292 | } | |
16293 | ||
16294 | ||
994141e6 | 16295 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
16296 | PyObject *pyobj; |
16297 | ||
994141e6 | 16298 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16299 | return pyobj; |
16300 | } | |
16301 | ||
16302 | ||
994141e6 RD |
16303 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { |
16304 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16305 | return 1; |
16306 | } | |
16307 | ||
16308 | ||
994141e6 | 16309 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16310 | PyObject *pyobj; |
16311 | ||
994141e6 | 16312 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16313 | return pyobj; |
16314 | } | |
16315 | ||
16316 | ||
994141e6 RD |
16317 | static int _wrap_BLACK_set(PyObject *_val) { |
16318 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16319 | return 1; |
16320 | } | |
16321 | ||
16322 | ||
994141e6 | 16323 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16324 | PyObject *pyobj; |
16325 | ||
994141e6 | 16326 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16327 | return pyobj; |
16328 | } | |
16329 | ||
16330 | ||
994141e6 RD |
16331 | static int _wrap_WHITE_set(PyObject *_val) { |
16332 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16333 | return 1; |
16334 | } | |
16335 | ||
16336 | ||
994141e6 | 16337 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16338 | PyObject *pyobj; |
16339 | ||
994141e6 | 16340 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16341 | return pyobj; |
16342 | } | |
16343 | ||
16344 | ||
994141e6 RD |
16345 | static int _wrap_RED_set(PyObject *_val) { |
16346 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16347 | return 1; |
16348 | } | |
16349 | ||
16350 | ||
994141e6 | 16351 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16352 | PyObject *pyobj; |
16353 | ||
994141e6 | 16354 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16355 | return pyobj; |
16356 | } | |
16357 | ||
16358 | ||
994141e6 RD |
16359 | static int _wrap_BLUE_set(PyObject *_val) { |
16360 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16361 | return 1; |
16362 | } | |
16363 | ||
16364 | ||
994141e6 | 16365 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16366 | PyObject *pyobj; |
16367 | ||
994141e6 | 16368 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16369 | return pyobj; |
16370 | } | |
16371 | ||
16372 | ||
994141e6 RD |
16373 | static int _wrap_GREEN_set(PyObject *_val) { |
16374 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16375 | return 1; |
16376 | } | |
16377 | ||
16378 | ||
994141e6 | 16379 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16380 | PyObject *pyobj; |
16381 | ||
994141e6 | 16382 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16383 | return pyobj; |
16384 | } | |
16385 | ||
16386 | ||
994141e6 RD |
16387 | static int _wrap_CYAN_set(PyObject *_val) { |
16388 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16389 | return 1; |
16390 | } | |
16391 | ||
16392 | ||
994141e6 | 16393 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16394 | PyObject *pyobj; |
16395 | ||
994141e6 | 16396 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16397 | return pyobj; |
16398 | } | |
16399 | ||
16400 | ||
994141e6 RD |
16401 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { |
16402 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16403 | return 1; |
16404 | } | |
16405 | ||
16406 | ||
994141e6 | 16407 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16408 | PyObject *pyobj; |
16409 | ||
994141e6 | 16410 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16411 | return pyobj; |
16412 | } | |
16413 | ||
16414 | ||
994141e6 RD |
16415 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { |
16416 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16417 | return 1; |
16418 | } | |
16419 | ||
16420 | ||
994141e6 | 16421 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16422 | PyObject *pyobj; |
16423 | ||
994141e6 | 16424 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16425 | return pyobj; |
16426 | } | |
16427 | ||
16428 | ||
994141e6 RD |
16429 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { |
16430 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16431 | return 1; |
16432 | } | |
16433 | ||
16434 | ||
994141e6 | 16435 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16436 | PyObject *pyobj; |
16437 | ||
994141e6 | 16438 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16439 | return pyobj; |
16440 | } | |
16441 | ||
16442 | ||
994141e6 RD |
16443 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { |
16444 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16445 | return 1; |
16446 | } | |
16447 | ||
16448 | ||
994141e6 | 16449 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16450 | PyObject *pyobj; |
16451 | ||
994141e6 | 16452 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16453 | return pyobj; |
16454 | } | |
16455 | ||
16456 | ||
994141e6 RD |
16457 | static int _wrap_NullBitmap_set(PyObject *_val) { |
16458 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16459 | return 1; |
16460 | } | |
16461 | ||
16462 | ||
994141e6 | 16463 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16464 | PyObject *pyobj; |
16465 | ||
994141e6 | 16466 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16467 | return pyobj; |
16468 | } | |
16469 | ||
16470 | ||
994141e6 RD |
16471 | static int _wrap_NullIcon_set(PyObject *_val) { |
16472 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16473 | return 1; |
16474 | } | |
16475 | ||
16476 | ||
994141e6 | 16477 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16478 | PyObject *pyobj; |
16479 | ||
994141e6 | 16480 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16481 | return pyobj; |
16482 | } | |
16483 | ||
16484 | ||
994141e6 RD |
16485 | static int _wrap_NullCursor_set(PyObject *_val) { |
16486 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16487 | return 1; |
16488 | } | |
16489 | ||
16490 | ||
994141e6 | 16491 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16492 | PyObject *pyobj; |
16493 | ||
994141e6 | 16494 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16495 | return pyobj; |
16496 | } | |
16497 | ||
16498 | ||
994141e6 RD |
16499 | static int _wrap_NullPen_set(PyObject *_val) { |
16500 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16501 | return 1; |
16502 | } | |
16503 | ||
16504 | ||
994141e6 | 16505 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16506 | PyObject *pyobj; |
16507 | ||
994141e6 | 16508 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16509 | return pyobj; |
16510 | } | |
16511 | ||
16512 | ||
994141e6 RD |
16513 | static int _wrap_NullBrush_set(PyObject *_val) { |
16514 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16515 | return 1; |
16516 | } | |
16517 | ||
16518 | ||
994141e6 | 16519 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16520 | PyObject *pyobj; |
16521 | ||
994141e6 | 16522 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16523 | return pyobj; |
16524 | } | |
16525 | ||
16526 | ||
994141e6 RD |
16527 | static int _wrap_NullPalette_set(PyObject *_val) { |
16528 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16529 | return 1; |
16530 | } | |
16531 | ||
16532 | ||
994141e6 | 16533 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16534 | PyObject *pyobj; |
16535 | ||
994141e6 | 16536 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16537 | return pyobj; |
16538 | } | |
16539 | ||
16540 | ||
994141e6 RD |
16541 | static int _wrap_NullFont_set(PyObject *_val) { |
16542 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16543 | return 1; |
16544 | } | |
16545 | ||
16546 | ||
994141e6 | 16547 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16548 | PyObject *pyobj; |
16549 | ||
994141e6 | 16550 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16551 | return pyobj; |
16552 | } | |
16553 | ||
16554 | ||
994141e6 RD |
16555 | static int _wrap_NullColour_set(PyObject *_val) { |
16556 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16557 | return 1; |
16558 | } | |
16559 | ||
16560 | ||
994141e6 | 16561 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16562 | PyObject *pyobj; |
16563 | ||
994141e6 | 16564 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16565 | return pyobj; |
16566 | } | |
16567 | ||
16568 | ||
994141e6 RD |
16569 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16570 | PyObject *resultobj; | |
16571 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16572 | wxPen *arg2 = (wxPen *) 0 ; | |
16573 | PyObject * obj0 = 0 ; | |
16574 | PyObject * obj1 = 0 ; | |
16575 | char *kwnames[] = { | |
16576 | (char *) "self",(char *) "pen", NULL | |
16577 | }; | |
16578 | ||
16579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
16580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16581 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16582 | { | |
16583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16584 | (arg1)->AddPen(arg2); | |
16585 | ||
16586 | wxPyEndAllowThreads(__tstate); | |
16587 | if (PyErr_Occurred()) SWIG_fail; | |
16588 | } | |
16589 | Py_INCREF(Py_None); resultobj = Py_None; | |
16590 | return resultobj; | |
16591 | fail: | |
16592 | return NULL; | |
d14a1e28 RD |
16593 | } |
16594 | ||
16595 | ||
994141e6 RD |
16596 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16597 | PyObject *resultobj; | |
16598 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16599 | wxColour *arg2 = 0 ; | |
16600 | int arg3 ; | |
16601 | int arg4 ; | |
16602 | wxPen *result; | |
16603 | wxColour temp2 ; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | PyObject * obj1 = 0 ; | |
16606 | PyObject * obj2 = 0 ; | |
16607 | PyObject * obj3 = 0 ; | |
16608 | char *kwnames[] = { | |
16609 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16610 | }; | |
d14a1e28 | 16611 | |
994141e6 RD |
16612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
16613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16614 | { | |
16615 | arg2 = &temp2; | |
16616 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16617 | } | |
16618 | { | |
16619 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16620 | if (PyErr_Occurred()) SWIG_fail; | |
16621 | } | |
16622 | { | |
16623 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16624 | if (PyErr_Occurred()) SWIG_fail; | |
16625 | } | |
16626 | { | |
16627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16628 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16629 | ||
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
16633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
16634 | return resultobj; | |
16635 | fail: | |
16636 | return NULL; | |
d14a1e28 RD |
16637 | } |
16638 | ||
16639 | ||
994141e6 RD |
16640 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16641 | PyObject *resultobj; | |
16642 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16643 | wxPen *arg2 = (wxPen *) 0 ; | |
16644 | PyObject * obj0 = 0 ; | |
16645 | PyObject * obj1 = 0 ; | |
16646 | char *kwnames[] = { | |
16647 | (char *) "self",(char *) "pen", NULL | |
16648 | }; | |
16649 | ||
16650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
16651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16652 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16653 | { | |
16654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16655 | (arg1)->RemovePen(arg2); | |
16656 | ||
16657 | wxPyEndAllowThreads(__tstate); | |
16658 | if (PyErr_Occurred()) SWIG_fail; | |
16659 | } | |
16660 | Py_INCREF(Py_None); resultobj = Py_None; | |
16661 | return resultobj; | |
16662 | fail: | |
16663 | return NULL; | |
d14a1e28 RD |
16664 | } |
16665 | ||
16666 | ||
994141e6 RD |
16667 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16668 | PyObject *resultobj; | |
16669 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16670 | int result; | |
16671 | PyObject * obj0 = 0 ; | |
16672 | char *kwnames[] = { | |
16673 | (char *) "self", NULL | |
16674 | }; | |
d14a1e28 | 16675 | |
994141e6 RD |
16676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
16677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16678 | { | |
16679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16680 | result = (int)(arg1)->GetCount(); | |
16681 | ||
16682 | wxPyEndAllowThreads(__tstate); | |
16683 | if (PyErr_Occurred()) SWIG_fail; | |
16684 | } | |
16685 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16686 | return resultobj; | |
16687 | fail: | |
16688 | return NULL; | |
d14a1e28 RD |
16689 | } |
16690 | ||
16691 | ||
994141e6 RD |
16692 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
16693 | PyObject *obj; | |
16694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16695 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
16696 | Py_INCREF(obj); | |
16697 | return Py_BuildValue((char *)""); | |
16698 | } | |
16699 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16700 | PyObject *resultobj; | |
16701 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16702 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16703 | PyObject * obj0 = 0 ; | |
16704 | PyObject * obj1 = 0 ; | |
16705 | char *kwnames[] = { | |
16706 | (char *) "self",(char *) "brush", NULL | |
16707 | }; | |
16708 | ||
16709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
16710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16712 | { | |
16713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16714 | (arg1)->AddBrush(arg2); | |
16715 | ||
16716 | wxPyEndAllowThreads(__tstate); | |
16717 | if (PyErr_Occurred()) SWIG_fail; | |
16718 | } | |
16719 | Py_INCREF(Py_None); resultobj = Py_None; | |
16720 | return resultobj; | |
16721 | fail: | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
16726 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16727 | PyObject *resultobj; | |
16728 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16729 | wxColour *arg2 = 0 ; | |
16730 | int arg3 ; | |
16731 | wxBrush *result; | |
16732 | wxColour temp2 ; | |
16733 | PyObject * obj0 = 0 ; | |
16734 | PyObject * obj1 = 0 ; | |
16735 | PyObject * obj2 = 0 ; | |
16736 | char *kwnames[] = { | |
16737 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
16738 | }; | |
16739 | ||
16740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16742 | { | |
16743 | arg2 = &temp2; | |
16744 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16745 | } | |
16746 | { | |
16747 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16748 | if (PyErr_Occurred()) SWIG_fail; | |
16749 | } | |
16750 | { | |
16751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16752 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
16753 | ||
16754 | wxPyEndAllowThreads(__tstate); | |
16755 | if (PyErr_Occurred()) SWIG_fail; | |
16756 | } | |
16757 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
16758 | return resultobj; | |
16759 | fail: | |
16760 | return NULL; | |
d14a1e28 RD |
16761 | } |
16762 | ||
16763 | ||
994141e6 RD |
16764 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16765 | PyObject *resultobj; | |
16766 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16767 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16768 | PyObject * obj0 = 0 ; | |
16769 | PyObject * obj1 = 0 ; | |
16770 | char *kwnames[] = { | |
16771 | (char *) "self",(char *) "brush", NULL | |
16772 | }; | |
d14a1e28 | 16773 | |
994141e6 RD |
16774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
16775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16776 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16777 | { | |
16778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16779 | (arg1)->RemoveBrush(arg2); | |
16780 | ||
16781 | wxPyEndAllowThreads(__tstate); | |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
16783 | } | |
16784 | Py_INCREF(Py_None); resultobj = Py_None; | |
16785 | return resultobj; | |
16786 | fail: | |
16787 | return NULL; | |
d14a1e28 RD |
16788 | } |
16789 | ||
16790 | ||
994141e6 RD |
16791 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16792 | PyObject *resultobj; | |
16793 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16794 | int result; | |
16795 | PyObject * obj0 = 0 ; | |
16796 | char *kwnames[] = { | |
16797 | (char *) "self", NULL | |
16798 | }; | |
d14a1e28 | 16799 | |
994141e6 RD |
16800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
16801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16802 | { | |
16803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16804 | result = (int)(arg1)->GetCount(); | |
16805 | ||
16806 | wxPyEndAllowThreads(__tstate); | |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
16808 | } | |
16809 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16810 | return resultobj; | |
16811 | fail: | |
16812 | return NULL; | |
d14a1e28 RD |
16813 | } |
16814 | ||
16815 | ||
994141e6 RD |
16816 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
16817 | PyObject *obj; | |
16818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16819 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
16820 | Py_INCREF(obj); | |
16821 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16822 | } |
994141e6 RD |
16823 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16824 | PyObject *resultobj; | |
16825 | wxColourDatabase *result; | |
16826 | char *kwnames[] = { | |
16827 | NULL | |
16828 | }; | |
d14a1e28 | 16829 | |
994141e6 RD |
16830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
16831 | { | |
16832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16833 | result = (wxColourDatabase *)new wxColourDatabase(); | |
16834 | ||
16835 | wxPyEndAllowThreads(__tstate); | |
16836 | if (PyErr_Occurred()) SWIG_fail; | |
16837 | } | |
16838 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
16839 | return resultobj; | |
16840 | fail: | |
16841 | return NULL; | |
d14a1e28 RD |
16842 | } |
16843 | ||
16844 | ||
994141e6 RD |
16845 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16846 | PyObject *resultobj; | |
16847 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16848 | PyObject * obj0 = 0 ; | |
16849 | char *kwnames[] = { | |
16850 | (char *) "self", NULL | |
16851 | }; | |
d14a1e28 | 16852 | |
994141e6 RD |
16853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
16854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | delete arg1; | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | Py_INCREF(Py_None); resultobj = Py_None; | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
d14a1e28 RD |
16866 | } |
16867 | ||
16868 | ||
994141e6 RD |
16869 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
16870 | PyObject *resultobj; | |
16871 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16872 | wxString *arg2 = 0 ; | |
16873 | wxColour result; | |
16874 | bool temp2 = False ; | |
16875 | PyObject * obj0 = 0 ; | |
16876 | PyObject * obj1 = 0 ; | |
16877 | char *kwnames[] = { | |
16878 | (char *) "self",(char *) "name", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
16882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16883 | { | |
16884 | arg2 = wxString_in_helper(obj1); | |
16885 | if (arg2 == NULL) SWIG_fail; | |
16886 | temp2 = True; | |
16887 | } | |
16888 | { | |
16889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16890 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
16891 | ||
16892 | wxPyEndAllowThreads(__tstate); | |
16893 | if (PyErr_Occurred()) SWIG_fail; | |
16894 | } | |
16895 | { | |
16896 | wxColour * resultptr; | |
16897 | resultptr = new wxColour((wxColour &) result); | |
16898 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16899 | } | |
16900 | { | |
16901 | if (temp2) | |
16902 | delete arg2; | |
16903 | } | |
16904 | return resultobj; | |
16905 | fail: | |
16906 | { | |
16907 | if (temp2) | |
16908 | delete arg2; | |
16909 | } | |
16910 | return NULL; | |
d14a1e28 RD |
16911 | } |
16912 | ||
16913 | ||
994141e6 RD |
16914 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
16915 | PyObject *resultobj; | |
16916 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16917 | wxColour *arg2 = 0 ; | |
16918 | wxString result; | |
16919 | wxColour temp2 ; | |
16920 | PyObject * obj0 = 0 ; | |
16921 | PyObject * obj1 = 0 ; | |
16922 | char *kwnames[] = { | |
16923 | (char *) "self",(char *) "colour", NULL | |
16924 | }; | |
d14a1e28 | 16925 | |
994141e6 RD |
16926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
16927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16928 | { | |
16929 | arg2 = &temp2; | |
16930 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16931 | } | |
16932 | { | |
16933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16934 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
16935 | ||
16936 | wxPyEndAllowThreads(__tstate); | |
16937 | if (PyErr_Occurred()) SWIG_fail; | |
16938 | } | |
16939 | { | |
16940 | #if wxUSE_UNICODE | |
16941 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16942 | #else | |
16943 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16944 | #endif | |
16945 | } | |
16946 | return resultobj; | |
16947 | fail: | |
16948 | return NULL; | |
d14a1e28 RD |
16949 | } |
16950 | ||
16951 | ||
994141e6 RD |
16952 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
16953 | PyObject *resultobj; | |
16954 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16955 | wxString *arg2 = 0 ; | |
16956 | wxColour *arg3 = 0 ; | |
16957 | bool temp2 = False ; | |
16958 | wxColour temp3 ; | |
16959 | PyObject * obj0 = 0 ; | |
16960 | PyObject * obj1 = 0 ; | |
16961 | PyObject * obj2 = 0 ; | |
16962 | char *kwnames[] = { | |
16963 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
16964 | }; | |
16965 | ||
16966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16968 | { | |
16969 | arg2 = wxString_in_helper(obj1); | |
16970 | if (arg2 == NULL) SWIG_fail; | |
16971 | temp2 = True; | |
16972 | } | |
16973 | { | |
16974 | arg3 = &temp3; | |
16975 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16976 | } | |
16977 | { | |
16978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16979 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
16980 | ||
16981 | wxPyEndAllowThreads(__tstate); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | Py_INCREF(Py_None); resultobj = Py_None; | |
16985 | { | |
16986 | if (temp2) | |
16987 | delete arg2; | |
16988 | } | |
16989 | return resultobj; | |
16990 | fail: | |
16991 | { | |
16992 | if (temp2) | |
16993 | delete arg2; | |
16994 | } | |
16995 | return NULL; | |
d14a1e28 RD |
16996 | } |
16997 | ||
16998 | ||
994141e6 RD |
16999 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
17000 | PyObject *resultobj; | |
17001 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17002 | wxString *arg2 = 0 ; | |
17003 | int arg3 ; | |
17004 | int arg4 ; | |
17005 | int arg5 ; | |
17006 | bool temp2 = False ; | |
17007 | PyObject * obj0 = 0 ; | |
17008 | PyObject * obj1 = 0 ; | |
17009 | PyObject * obj2 = 0 ; | |
17010 | PyObject * obj3 = 0 ; | |
17011 | PyObject * obj4 = 0 ; | |
17012 | char *kwnames[] = { | |
17013 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17014 | }; | |
d14a1e28 | 17015 | |
994141e6 RD |
17016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
17017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17018 | { | |
17019 | arg2 = wxString_in_helper(obj1); | |
17020 | if (arg2 == NULL) SWIG_fail; | |
17021 | temp2 = True; | |
17022 | } | |
17023 | { | |
17024 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17025 | if (PyErr_Occurred()) SWIG_fail; | |
17026 | } | |
17027 | { | |
17028 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | { | |
17032 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | } | |
17035 | { | |
17036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17037 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17038 | ||
17039 | wxPyEndAllowThreads(__tstate); | |
17040 | if (PyErr_Occurred()) SWIG_fail; | |
17041 | } | |
17042 | Py_INCREF(Py_None); resultobj = Py_None; | |
17043 | { | |
17044 | if (temp2) | |
17045 | delete arg2; | |
17046 | } | |
17047 | return resultobj; | |
17048 | fail: | |
17049 | { | |
17050 | if (temp2) | |
17051 | delete arg2; | |
17052 | } | |
17053 | return NULL; | |
d14a1e28 RD |
17054 | } |
17055 | ||
17056 | ||
994141e6 RD |
17057 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
17058 | PyObject *obj; | |
17059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17060 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17061 | Py_INCREF(obj); | |
17062 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17063 | } |
994141e6 RD |
17064 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17065 | PyObject *resultobj; | |
17066 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17067 | wxFont *arg2 = (wxFont *) 0 ; | |
17068 | PyObject * obj0 = 0 ; | |
17069 | PyObject * obj1 = 0 ; | |
17070 | char *kwnames[] = { | |
17071 | (char *) "self",(char *) "font", NULL | |
17072 | }; | |
d14a1e28 | 17073 | |
994141e6 RD |
17074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
17075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17076 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17077 | { | |
17078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17079 | (arg1)->AddFont(arg2); | |
17080 | ||
17081 | wxPyEndAllowThreads(__tstate); | |
17082 | if (PyErr_Occurred()) SWIG_fail; | |
17083 | } | |
17084 | Py_INCREF(Py_None); resultobj = Py_None; | |
17085 | return resultobj; | |
17086 | fail: | |
17087 | return NULL; | |
d14a1e28 RD |
17088 | } |
17089 | ||
17090 | ||
994141e6 RD |
17091 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17092 | PyObject *resultobj; | |
17093 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17094 | int arg2 ; | |
17095 | int arg3 ; | |
17096 | int arg4 ; | |
17097 | int arg5 ; | |
17098 | bool arg6 = (bool) False ; | |
17099 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17100 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17101 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17102 | wxFont *result; | |
17103 | bool temp7 = False ; | |
17104 | PyObject * obj0 = 0 ; | |
17105 | PyObject * obj1 = 0 ; | |
17106 | PyObject * obj2 = 0 ; | |
17107 | PyObject * obj3 = 0 ; | |
17108 | PyObject * obj4 = 0 ; | |
17109 | PyObject * obj5 = 0 ; | |
17110 | PyObject * obj6 = 0 ; | |
17111 | PyObject * obj7 = 0 ; | |
17112 | char *kwnames[] = { | |
17113 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17114 | }; | |
d14a1e28 | 17115 | |
994141e6 RD |
17116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
17117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17118 | { | |
17119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17120 | if (PyErr_Occurred()) SWIG_fail; | |
17121 | } | |
17122 | { | |
17123 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17124 | if (PyErr_Occurred()) SWIG_fail; | |
17125 | } | |
17126 | { | |
17127 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17128 | if (PyErr_Occurred()) SWIG_fail; | |
17129 | } | |
17130 | { | |
17131 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17132 | if (PyErr_Occurred()) SWIG_fail; | |
17133 | } | |
17134 | if (obj5) { | |
17135 | { | |
17136 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | } | |
17140 | if (obj6) { | |
17141 | { | |
17142 | arg7 = wxString_in_helper(obj6); | |
17143 | if (arg7 == NULL) SWIG_fail; | |
17144 | temp7 = True; | |
17145 | } | |
17146 | } | |
17147 | if (obj7) { | |
17148 | { | |
17149 | arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7); | |
17150 | if (PyErr_Occurred()) SWIG_fail; | |
17151 | } | |
17152 | } | |
17153 | { | |
17154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17155 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17156 | ||
17157 | wxPyEndAllowThreads(__tstate); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | } | |
17160 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
17161 | { | |
17162 | if (temp7) | |
17163 | delete arg7; | |
17164 | } | |
17165 | return resultobj; | |
17166 | fail: | |
17167 | { | |
17168 | if (temp7) | |
17169 | delete arg7; | |
17170 | } | |
17171 | return NULL; | |
d14a1e28 RD |
17172 | } |
17173 | ||
17174 | ||
994141e6 RD |
17175 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17176 | PyObject *resultobj; | |
17177 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17178 | wxFont *arg2 = (wxFont *) 0 ; | |
17179 | PyObject * obj0 = 0 ; | |
17180 | PyObject * obj1 = 0 ; | |
17181 | char *kwnames[] = { | |
17182 | (char *) "self",(char *) "font", NULL | |
17183 | }; | |
d14a1e28 | 17184 | |
994141e6 RD |
17185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
17186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17187 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17188 | { | |
17189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17190 | (arg1)->RemoveFont(arg2); | |
17191 | ||
17192 | wxPyEndAllowThreads(__tstate); | |
17193 | if (PyErr_Occurred()) SWIG_fail; | |
17194 | } | |
17195 | Py_INCREF(Py_None); resultobj = Py_None; | |
17196 | return resultobj; | |
17197 | fail: | |
17198 | return NULL; | |
d14a1e28 RD |
17199 | } |
17200 | ||
17201 | ||
994141e6 RD |
17202 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17203 | PyObject *resultobj; | |
17204 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17205 | int result; | |
17206 | PyObject * obj0 = 0 ; | |
17207 | char *kwnames[] = { | |
17208 | (char *) "self", NULL | |
17209 | }; | |
d14a1e28 | 17210 | |
994141e6 RD |
17211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
17212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17213 | { | |
17214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17215 | result = (int)(arg1)->GetCount(); | |
17216 | ||
17217 | wxPyEndAllowThreads(__tstate); | |
17218 | if (PyErr_Occurred()) SWIG_fail; | |
17219 | } | |
17220 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17221 | return resultobj; | |
17222 | fail: | |
17223 | return NULL; | |
d14a1e28 RD |
17224 | } |
17225 | ||
17226 | ||
994141e6 RD |
17227 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
17228 | PyObject *obj; | |
17229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17230 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17231 | Py_INCREF(obj); | |
17232 | return Py_BuildValue((char *)""); | |
17233 | } | |
d14a1e28 RD |
17234 | static int _wrap_TheFontList_set(PyObject *_val) { |
17235 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
17236 | return 1; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_TheFontList_get() { | |
17241 | PyObject *pyobj; | |
17242 | ||
17243 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
17244 | return pyobj; | |
17245 | } | |
17246 | ||
17247 | ||
17248 | static int _wrap_ThePenList_set(PyObject *_val) { | |
17249 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
17250 | return 1; | |
17251 | } | |
17252 | ||
17253 | ||
17254 | static PyObject *_wrap_ThePenList_get() { | |
17255 | PyObject *pyobj; | |
17256 | ||
17257 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
17258 | return pyobj; | |
17259 | } | |
17260 | ||
17261 | ||
17262 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
17263 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
17264 | return 1; | |
17265 | } | |
17266 | ||
17267 | ||
17268 | static PyObject *_wrap_TheBrushList_get() { | |
17269 | PyObject *pyobj; | |
17270 | ||
17271 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
17272 | return pyobj; | |
17273 | } | |
17274 | ||
17275 | ||
17276 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
17277 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
17278 | return 1; | |
17279 | } | |
17280 | ||
17281 | ||
17282 | static PyObject *_wrap_TheColourDatabase_get() { | |
17283 | PyObject *pyobj; | |
17284 | ||
17285 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
17286 | return pyobj; | |
17287 | } | |
17288 | ||
17289 | ||
e811c8ce | 17290 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17291 | PyObject *resultobj; |
e811c8ce | 17292 | wxEffects *result; |
d14a1e28 | 17293 | char *kwnames[] = { |
e811c8ce | 17294 | NULL |
d14a1e28 RD |
17295 | }; |
17296 | ||
e811c8ce | 17297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
17298 | { |
17299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17300 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
17301 | |
17302 | wxPyEndAllowThreads(__tstate); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
e811c8ce | 17305 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
17306 | return resultobj; |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
e811c8ce | 17312 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17313 | PyObject *resultobj; |
e811c8ce RD |
17314 | wxEffects *arg1 = (wxEffects *) 0 ; |
17315 | wxColour result; | |
d14a1e28 | 17316 | PyObject * obj0 = 0 ; |
d14a1e28 | 17317 | char *kwnames[] = { |
e811c8ce | 17318 | (char *) "self", NULL |
d14a1e28 RD |
17319 | }; |
17320 | ||
e811c8ce RD |
17321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
17322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17323 | { |
17324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17325 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
17326 | |
17327 | wxPyEndAllowThreads(__tstate); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | } | |
e811c8ce RD |
17330 | { |
17331 | wxColour * resultptr; | |
17332 | resultptr = new wxColour((wxColour &) result); | |
17333 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17334 | } | |
d14a1e28 RD |
17335 | return resultobj; |
17336 | fail: | |
17337 | return NULL; | |
17338 | } | |
17339 | ||
17340 | ||
e811c8ce | 17341 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17342 | PyObject *resultobj; |
e811c8ce RD |
17343 | wxEffects *arg1 = (wxEffects *) 0 ; |
17344 | wxColour result; | |
d14a1e28 | 17345 | PyObject * obj0 = 0 ; |
d14a1e28 | 17346 | char *kwnames[] = { |
e811c8ce | 17347 | (char *) "self", NULL |
d14a1e28 RD |
17348 | }; |
17349 | ||
e811c8ce RD |
17350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
17351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17352 | { |
17353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17354 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17355 | |
17356 | wxPyEndAllowThreads(__tstate); | |
17357 | if (PyErr_Occurred()) SWIG_fail; | |
17358 | } | |
d14a1e28 | 17359 | { |
e811c8ce RD |
17360 | wxColour * resultptr; |
17361 | resultptr = new wxColour((wxColour &) result); | |
17362 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
17363 | } |
17364 | return resultobj; | |
17365 | fail: | |
d14a1e28 RD |
17366 | return NULL; |
17367 | } | |
17368 | ||
17369 | ||
e811c8ce | 17370 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17371 | PyObject *resultobj; |
e811c8ce RD |
17372 | wxEffects *arg1 = (wxEffects *) 0 ; |
17373 | wxColour result; | |
d14a1e28 | 17374 | PyObject * obj0 = 0 ; |
d14a1e28 | 17375 | char *kwnames[] = { |
e811c8ce | 17376 | (char *) "self", NULL |
d14a1e28 RD |
17377 | }; |
17378 | ||
e811c8ce RD |
17379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
17380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17381 | { |
17382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17383 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17384 | |
17385 | wxPyEndAllowThreads(__tstate); | |
17386 | if (PyErr_Occurred()) SWIG_fail; | |
17387 | } | |
e811c8ce RD |
17388 | { |
17389 | wxColour * resultptr; | |
17390 | resultptr = new wxColour((wxColour &) result); | |
17391 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17392 | } | |
d14a1e28 RD |
17393 | return resultobj; |
17394 | fail: | |
17395 | return NULL; | |
17396 | } | |
17397 | ||
17398 | ||
e811c8ce | 17399 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17400 | PyObject *resultobj; |
e811c8ce RD |
17401 | wxEffects *arg1 = (wxEffects *) 0 ; |
17402 | wxColour result; | |
d14a1e28 RD |
17403 | PyObject * obj0 = 0 ; |
17404 | char *kwnames[] = { | |
e811c8ce | 17405 | (char *) "self", NULL |
d14a1e28 RD |
17406 | }; |
17407 | ||
17408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
17409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17410 | { | |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17412 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17413 | ||
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | { | |
17418 | wxColour * resultptr; | |
17419 | resultptr = new wxColour((wxColour &) result); | |
17420 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17421 | } | |
17422 | return resultobj; | |
17423 | fail: | |
17424 | return NULL; | |
17425 | } | |
17426 | ||
17427 | ||
17428 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17429 | PyObject *resultobj; | |
17430 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17431 | wxColour result; | |
17432 | PyObject * obj0 = 0 ; | |
17433 | char *kwnames[] = { | |
17434 | (char *) "self", NULL | |
17435 | }; | |
17436 | ||
17437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
17438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17439 | { | |
17440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17441 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17442 | ||
17443 | wxPyEndAllowThreads(__tstate); | |
17444 | if (PyErr_Occurred()) SWIG_fail; | |
17445 | } | |
17446 | { | |
17447 | wxColour * resultptr; | |
17448 | resultptr = new wxColour((wxColour &) result); | |
17449 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17450 | } | |
17451 | return resultobj; | |
17452 | fail: | |
17453 | return NULL; | |
17454 | } | |
17455 | ||
17456 | ||
17457 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17458 | PyObject *resultobj; | |
17459 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17460 | wxColour *arg2 = 0 ; | |
17461 | wxColour temp2 ; | |
17462 | PyObject * obj0 = 0 ; | |
17463 | PyObject * obj1 = 0 ; | |
17464 | char *kwnames[] = { | |
17465 | (char *) "self",(char *) "c", NULL | |
17466 | }; | |
17467 | ||
17468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
17469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17470 | { | |
17471 | arg2 = &temp2; | |
17472 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17473 | } | |
17474 | { | |
17475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17476 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17477 | ||
17478 | wxPyEndAllowThreads(__tstate); | |
17479 | if (PyErr_Occurred()) SWIG_fail; | |
17480 | } | |
17481 | Py_INCREF(Py_None); resultobj = Py_None; | |
17482 | return resultobj; | |
17483 | fail: | |
17484 | return NULL; | |
17485 | } | |
17486 | ||
17487 | ||
17488 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17489 | PyObject *resultobj; | |
17490 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17491 | wxColour *arg2 = 0 ; | |
17492 | wxColour temp2 ; | |
17493 | PyObject * obj0 = 0 ; | |
17494 | PyObject * obj1 = 0 ; | |
17495 | char *kwnames[] = { | |
17496 | (char *) "self",(char *) "c", NULL | |
17497 | }; | |
17498 | ||
17499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
17500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17501 | { | |
17502 | arg2 = &temp2; | |
17503 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17504 | } | |
17505 | { | |
17506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17507 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17508 | ||
17509 | wxPyEndAllowThreads(__tstate); | |
17510 | if (PyErr_Occurred()) SWIG_fail; | |
17511 | } | |
17512 | Py_INCREF(Py_None); resultobj = Py_None; | |
17513 | return resultobj; | |
17514 | fail: | |
17515 | return NULL; | |
17516 | } | |
17517 | ||
17518 | ||
17519 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17520 | PyObject *resultobj; | |
17521 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17522 | wxColour *arg2 = 0 ; | |
17523 | wxColour temp2 ; | |
17524 | PyObject * obj0 = 0 ; | |
17525 | PyObject * obj1 = 0 ; | |
17526 | char *kwnames[] = { | |
17527 | (char *) "self",(char *) "c", NULL | |
17528 | }; | |
17529 | ||
17530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
17531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17532 | { | |
17533 | arg2 = &temp2; | |
17534 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17535 | } | |
17536 | { | |
17537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17538 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17539 | ||
17540 | wxPyEndAllowThreads(__tstate); | |
17541 | if (PyErr_Occurred()) SWIG_fail; | |
17542 | } | |
17543 | Py_INCREF(Py_None); resultobj = Py_None; | |
17544 | return resultobj; | |
17545 | fail: | |
17546 | return NULL; | |
17547 | } | |
17548 | ||
17549 | ||
17550 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17551 | PyObject *resultobj; | |
17552 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17553 | wxColour *arg2 = 0 ; | |
17554 | wxColour temp2 ; | |
17555 | PyObject * obj0 = 0 ; | |
17556 | PyObject * obj1 = 0 ; | |
17557 | char *kwnames[] = { | |
17558 | (char *) "self",(char *) "c", NULL | |
17559 | }; | |
17560 | ||
17561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
17562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17563 | { | |
17564 | arg2 = &temp2; | |
17565 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17566 | } | |
17567 | { | |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | Py_INCREF(Py_None); resultobj = Py_None; | |
17575 | return resultobj; | |
17576 | fail: | |
17577 | return NULL; | |
17578 | } | |
17579 | ||
17580 | ||
17581 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17582 | PyObject *resultobj; | |
17583 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17584 | wxColour *arg2 = 0 ; | |
17585 | wxColour temp2 ; | |
17586 | PyObject * obj0 = 0 ; | |
17587 | PyObject * obj1 = 0 ; | |
17588 | char *kwnames[] = { | |
17589 | (char *) "self",(char *) "c", NULL | |
17590 | }; | |
17591 | ||
17592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
17593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17594 | { | |
17595 | arg2 = &temp2; | |
17596 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17597 | } | |
17598 | { | |
17599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17600 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17601 | ||
17602 | wxPyEndAllowThreads(__tstate); | |
17603 | if (PyErr_Occurred()) SWIG_fail; | |
17604 | } | |
17605 | Py_INCREF(Py_None); resultobj = Py_None; | |
17606 | return resultobj; | |
17607 | fail: | |
17608 | return NULL; | |
17609 | } | |
17610 | ||
17611 | ||
17612 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17613 | PyObject *resultobj; | |
17614 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17615 | wxColour *arg2 = 0 ; | |
17616 | wxColour *arg3 = 0 ; | |
17617 | wxColour *arg4 = 0 ; | |
17618 | wxColour *arg5 = 0 ; | |
17619 | wxColour *arg6 = 0 ; | |
17620 | wxColour temp2 ; | |
17621 | wxColour temp3 ; | |
17622 | wxColour temp4 ; | |
17623 | wxColour temp5 ; | |
17624 | wxColour temp6 ; | |
17625 | PyObject * obj0 = 0 ; | |
17626 | PyObject * obj1 = 0 ; | |
17627 | PyObject * obj2 = 0 ; | |
17628 | PyObject * obj3 = 0 ; | |
17629 | PyObject * obj4 = 0 ; | |
17630 | PyObject * obj5 = 0 ; | |
17631 | char *kwnames[] = { | |
17632 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17633 | }; | |
17634 | ||
17635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17637 | { | |
17638 | arg2 = &temp2; | |
17639 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17640 | } | |
17641 | { | |
17642 | arg3 = &temp3; | |
17643 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17644 | } | |
17645 | { | |
17646 | arg4 = &temp4; | |
17647 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17648 | } | |
17649 | { | |
17650 | arg5 = &temp5; | |
17651 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17652 | } | |
17653 | { | |
17654 | arg6 = &temp6; | |
17655 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
17656 | } | |
17657 | { | |
17658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17659 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
17660 | ||
17661 | wxPyEndAllowThreads(__tstate); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | } | |
17664 | Py_INCREF(Py_None); resultobj = Py_None; | |
17665 | return resultobj; | |
17666 | fail: | |
17667 | return NULL; | |
17668 | } | |
17669 | ||
17670 | ||
17671 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17672 | PyObject *resultobj; | |
17673 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17674 | wxDC *arg2 = 0 ; | |
17675 | wxRect *arg3 = 0 ; | |
17676 | int arg4 = (int) 1 ; | |
17677 | wxRect temp3 ; | |
17678 | PyObject * obj0 = 0 ; | |
17679 | PyObject * obj1 = 0 ; | |
17680 | PyObject * obj2 = 0 ; | |
994141e6 | 17681 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
17682 | char *kwnames[] = { |
17683 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17684 | }; | |
17685 | ||
994141e6 | 17686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
17687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17688 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17689 | if (arg2 == NULL) { | |
17690 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17691 | } | |
17692 | { | |
17693 | arg3 = &temp3; | |
17694 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17695 | } | |
994141e6 RD |
17696 | if (obj3) { |
17697 | { | |
17698 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | } | |
17701 | } | |
d14a1e28 RD |
17702 | { |
17703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17704 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17705 | ||
17706 | wxPyEndAllowThreads(__tstate); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
17708 | } | |
17709 | Py_INCREF(Py_None); resultobj = Py_None; | |
17710 | return resultobj; | |
17711 | fail: | |
17712 | return NULL; | |
17713 | } | |
17714 | ||
17715 | ||
17716 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17717 | PyObject *resultobj; | |
17718 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17719 | wxRect *arg2 = 0 ; | |
17720 | wxDC *arg3 = 0 ; | |
17721 | wxBitmap *arg4 = 0 ; | |
17722 | bool result; | |
17723 | wxRect temp2 ; | |
17724 | PyObject * obj0 = 0 ; | |
17725 | PyObject * obj1 = 0 ; | |
17726 | PyObject * obj2 = 0 ; | |
17727 | PyObject * obj3 = 0 ; | |
17728 | char *kwnames[] = { | |
17729 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17730 | }; | |
17731 | ||
17732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17734 | { | |
17735 | arg2 = &temp2; | |
17736 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17737 | } | |
17738 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17739 | if (arg3 == NULL) { | |
17740 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17741 | } | |
17742 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17743 | if (arg4 == NULL) { | |
17744 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17745 | } | |
17746 | { | |
17747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17748 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17749 | ||
17750 | wxPyEndAllowThreads(__tstate); | |
17751 | if (PyErr_Occurred()) SWIG_fail; | |
17752 | } | |
4d5c3d91 | 17753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17754 | return resultobj; |
17755 | fail: | |
17756 | return NULL; | |
17757 | } | |
17758 | ||
17759 | ||
17760 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
17761 | PyObject *obj; | |
17762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17763 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17764 | Py_INCREF(obj); | |
17765 | return Py_BuildValue((char *)""); | |
17766 | } | |
17767 | static PyMethodDef SwigMethods[] = { | |
17768 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17769 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17770 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17771 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17772 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
17773 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
17774 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17775 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, |
17776 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
b88bce5f | 17777 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17778 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, |
17779 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
17780 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
17781 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17782 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17783 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f RD |
17784 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, |
17785 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17786 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
17787 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17788 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
b88bce5f | 17789 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17790 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, |
17791 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17792 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17793 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17794 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
17795 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17796 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
17797 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17798 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17799 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
17800 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17801 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17802 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17803 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17804 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17805 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
17806 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17807 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17808 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17809 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17810 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17811 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 17812 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
22faec7d | 17813 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, |
c9c7117a | 17814 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17815 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
17816 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17817 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17818 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17819 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
17820 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17821 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17822 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17823 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17824 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17825 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17826 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17827 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17828 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17829 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
17830 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17831 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17832 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17833 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17834 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17835 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17836 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17837 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17838 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17839 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17840 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17841 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
17842 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
17843 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
17844 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17845 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17846 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
17847 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17848 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17849 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17850 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17851 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17852 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
17853 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17854 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, |
17855 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17856 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17857 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
17858 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
17859 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17860 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17861 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17862 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17863 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17864 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17865 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17866 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17867 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17868 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17869 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17870 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
17871 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17872 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17873 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17874 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17875 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17876 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17877 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17878 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
17879 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17880 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17881 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17882 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17883 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17884 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17885 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
17886 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
17887 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17888 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17889 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
17890 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17891 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17892 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17893 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
17894 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
17895 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17896 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
17897 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
17898 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17899 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
17900 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
17901 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
17902 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
17903 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
17904 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
17905 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
17906 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
17907 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
17908 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
17909 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
17910 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
17911 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
17912 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
17913 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
17914 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
17915 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
17916 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
17917 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
17918 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17919 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17920 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
17921 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17922 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17923 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
17924 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
17925 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
17926 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17927 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
17928 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17929 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
17930 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
17931 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
17932 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
17933 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
17934 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
17935 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17936 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17937 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
17938 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
17939 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17940 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17941 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17942 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17943 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17944 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17945 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17946 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17947 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17948 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17949 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17950 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17951 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17952 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17953 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17954 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17955 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
17956 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
17957 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
17958 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
17959 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
17960 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
17961 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
17962 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
17963 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17964 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17965 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17966 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17967 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
17968 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17969 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17970 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17971 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17972 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
17973 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
17974 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17975 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
17976 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17977 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17978 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
17979 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
17980 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17981 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17982 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17983 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
17984 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
17985 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
17986 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
17987 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
17988 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
17989 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
17990 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
17991 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
17992 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17993 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17994 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17995 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17996 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17997 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17998 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17999 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18000 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18001 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18002 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18003 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
18004 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
18005 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18006 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18007 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18008 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18009 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18010 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18011 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18012 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18013 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18014 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
18015 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18016 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
18017 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
18018 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
18019 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18020 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18021 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18022 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18023 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
18024 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18025 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18026 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
18027 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18028 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18029 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18030 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18031 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
18032 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
18033 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
18034 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
18035 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
18036 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
18037 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
18038 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
18039 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18040 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18041 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
18042 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
18043 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18044 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18045 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18046 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18047 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18048 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18049 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
18050 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
18051 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
18052 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
18053 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
18054 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18055 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
18056 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18057 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18058 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
18059 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
18060 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
18061 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18062 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
18063 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18064 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18065 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
18066 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
18067 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18068 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18069 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
18070 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
18071 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
18072 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18073 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18074 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
18075 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
18076 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
18077 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18078 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
18079 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
18080 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
18081 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
18082 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18083 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
18084 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
18085 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
18086 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18087 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
18088 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
18089 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
18090 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18091 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18092 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18093 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18094 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18095 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18096 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
18097 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
18098 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
18099 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
18100 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
18101 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
18102 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
18103 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
18104 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18105 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18106 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
18107 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18108 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
18109 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
18110 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
18111 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
18112 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18113 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18114 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18115 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18116 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18117 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18118 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18119 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18120 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18121 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18122 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18123 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18124 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18125 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18126 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
242b7b46 | 18127 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18128 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18129 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18130 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18131 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18132 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18133 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18134 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18135 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18136 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18137 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18138 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 18139 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18140 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18141 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18142 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18143 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18144 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
18145 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18146 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18147 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18148 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18149 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18150 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18151 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18152 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18153 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18154 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18155 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18156 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18157 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18158 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18159 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18160 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18161 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18162 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18163 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18164 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18165 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18166 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18167 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18168 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18169 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18170 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18171 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18172 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18173 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18174 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18175 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18176 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18177 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
18178 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
18179 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18180 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18181 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18182 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18183 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18184 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18185 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18186 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18187 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18188 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18189 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18190 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18191 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18192 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18193 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18194 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18195 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18196 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18197 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18198 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18199 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18200 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
3adfb63b RD |
18201 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
18202 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
e498079e | 18203 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18204 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
18205 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
e498079e | 18206 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18207 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
18208 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
18209 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
18210 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18211 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18212 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
18213 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
18214 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
18215 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18216 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
18217 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
18218 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
18219 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
18220 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
18221 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
18222 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18223 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18224 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18225 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18226 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
18227 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18228 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
18229 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
18230 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
18231 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
18232 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
18233 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18234 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18235 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
18236 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
18237 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18238 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
18239 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
18240 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
18241 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
18242 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
18243 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18244 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
18245 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
18246 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
18247 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
18248 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18249 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
18250 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
18251 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
18252 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
18253 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18254 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
18255 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18256 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18257 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
18258 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
18259 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
18260 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
18261 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
18262 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
18263 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
18264 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
18265 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18266 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
18267 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
18268 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18269 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18270 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18271 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18272 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18273 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18274 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18275 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18276 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18277 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18278 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
18279 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
18280 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18281 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
18282 | { NULL, NULL } | |
18283 | }; | |
18284 | ||
18285 | ||
18286 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18287 | ||
e811c8ce RD |
18288 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
18289 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18290 | } | |
18291 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18292 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18293 | } | |
18294 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18295 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18296 | } | |
d14a1e28 RD |
18297 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
18298 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18299 | } | |
18300 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18301 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18302 | } | |
d14a1e28 RD |
18303 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
18304 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18305 | } | |
18306 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18307 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18308 | } | |
18309 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18310 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18311 | } | |
18312 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18313 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18314 | } | |
18315 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18316 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18317 | } | |
18318 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18319 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18320 | } | |
18321 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18322 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18323 | } | |
18324 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18325 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18326 | } | |
18327 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18328 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18329 | } | |
18330 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18331 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18332 | } | |
18333 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18334 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18335 | } | |
18336 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18337 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18338 | } | |
18339 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18340 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18341 | } | |
18342 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18343 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18344 | } | |
18345 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18346 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18347 | } | |
18348 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18349 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18350 | } | |
18351 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18352 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18353 | } | |
18354 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18355 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18356 | } | |
18357 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18358 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18359 | } | |
18360 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18361 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18362 | } | |
18363 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18364 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18365 | } | |
18366 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18367 | return (void *)((wxObject *) ((wxDC *) x)); | |
18368 | } | |
18369 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18370 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18371 | } | |
18372 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18373 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18374 | } | |
18375 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18376 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18377 | } | |
18378 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18379 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18380 | } | |
18381 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18382 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18383 | } | |
18384 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18385 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18386 | } | |
18387 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18388 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18389 | } | |
18390 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18391 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18392 | } | |
18393 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18394 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18395 | } | |
18396 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18397 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18398 | } | |
18399 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18400 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18401 | } | |
18402 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18403 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18404 | } | |
18405 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18406 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18407 | } | |
18408 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18409 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18410 | } | |
18411 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18412 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18413 | } | |
18414 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18415 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18416 | } | |
18417 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18418 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18419 | } | |
18420 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18421 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18422 | } | |
18423 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18424 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18425 | } | |
18426 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18427 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18428 | } | |
18429 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18430 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18431 | } | |
18432 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18433 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18434 | } | |
18435 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18436 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18437 | } | |
18438 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18439 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18440 | } | |
18441 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18442 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18443 | } | |
18444 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18445 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18446 | } | |
18447 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18448 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18449 | } | |
18450 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18451 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18452 | } | |
18453 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18454 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18455 | } | |
18456 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18457 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18458 | } | |
18459 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18460 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18461 | } | |
18462 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18463 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18464 | } | |
18465 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18466 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18467 | } | |
18468 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18469 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18470 | } | |
18471 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18472 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18473 | } | |
18474 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18475 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18476 | } | |
18477 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18478 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18479 | } | |
18480 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18481 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18482 | } | |
18483 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18484 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18485 | } | |
18486 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18487 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18488 | } | |
18489 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18490 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18491 | } | |
18492 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18493 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18494 | } | |
18495 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18496 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18497 | } | |
18498 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18499 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18500 | } | |
1e0c8722 RD |
18501 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18502 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18503 | } | |
d14a1e28 RD |
18504 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18505 | return (void *)((wxObject *) ((wxImage *) x)); | |
18506 | } | |
18507 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18508 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18509 | } | |
d14a1e28 RD |
18510 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18511 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18512 | } | |
18513 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18514 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18515 | } | |
18516 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18517 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18518 | } | |
18519 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18520 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18521 | } | |
18522 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18523 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18524 | } | |
18525 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18526 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18527 | } | |
18528 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18529 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18530 | } | |
18531 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18532 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18533 | } | |
18534 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18535 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18536 | } | |
18537 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18538 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18539 | } | |
18540 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18541 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18542 | } | |
18543 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18544 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18545 | } | |
18546 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18547 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18548 | } | |
18549 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18550 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18551 | } | |
18552 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
18553 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
18554 | } | |
18555 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
18556 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18557 | } | |
18558 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18559 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18560 | } | |
18561 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18562 | return (void *)((wxObject *) ((wxMask *) x)); | |
18563 | } | |
18564 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18565 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18566 | } | |
18567 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18568 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18569 | } | |
18570 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18571 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18572 | } | |
18573 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18574 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18575 | } | |
18576 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18577 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18578 | } | |
18579 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18580 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18581 | } | |
18582 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18583 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18584 | } | |
18585 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18586 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18587 | } | |
18588 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18589 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18590 | } | |
18591 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18592 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18593 | } | |
18594 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18595 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18596 | } | |
18597 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18598 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18599 | } | |
18600 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18601 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18602 | } | |
18603 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18604 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18605 | } | |
18606 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18607 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18608 | } | |
18609 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18610 | return (void *)((wxObject *) ((wxColour *) x)); | |
18611 | } | |
18612 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18613 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18614 | } | |
18615 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18616 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18617 | } | |
18618 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18619 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18620 | } | |
e811c8ce RD |
18621 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18622 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18623 | } |
e811c8ce RD |
18624 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18625 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18626 | } |
e811c8ce RD |
18627 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18628 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18629 | } | |
18630 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18631 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18632 | } | |
18633 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18634 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18635 | } | |
18636 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18637 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18638 | } | |
18639 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18640 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18641 | } | |
18642 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
18643 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18644 | } | |
18645 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
18646 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
18647 | } | |
18648 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
18649 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
18650 | } | |
18651 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
18652 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
18653 | } | |
18654 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
18655 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
18656 | } | |
18657 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
18658 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
18659 | } | |
18660 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
18661 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
18662 | } | |
18663 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
18664 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
18665 | } | |
18666 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
18667 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
18668 | } | |
18669 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
18670 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
18671 | } | |
18672 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
18673 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
18674 | } | |
18675 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
18676 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
18677 | } | |
18678 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
18679 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
18680 | } | |
18681 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
18682 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
18683 | } | |
18684 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
18685 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
18686 | } |
18687 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
18688 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
18689 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
18690 | 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}}; |
18691 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
18692 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18693 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
994141e6 | 18694 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
18695 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; |
18696 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
18697 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
18698 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
18699 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
18700 | 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}}; | |
18701 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
18702 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
18703 | 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}}; | |
18704 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
18705 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
18706 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
18707 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
18708 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
1e0c8722 | 18709 | 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 |
18710 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
18711 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
18712 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
18713 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
18714 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
18715 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
18716 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
18717 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
18718 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
18719 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
18720 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
18721 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
18722 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18723 | 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 | 18724 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; |
994141e6 | 18725 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; |
d14a1e28 RD |
18726 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; |
18727 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
18728 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
18729 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
18730 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
18731 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
18732 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
18733 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
18734 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
18735 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
18736 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 18737 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
e811c8ce | 18738 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
18739 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
18740 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
18741 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
18742 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
18743 | ||
18744 | static swig_type_info *swig_types_initial[] = { | |
18745 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
18746 | _swigt__p_wxBrush, |
18747 | _swigt__p_wxColour, | |
d14a1e28 RD |
18748 | _swigt__p_wxDC, |
18749 | _swigt__p_wxMirrorDC, | |
18750 | _swigt__p_byte, | |
18751 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 18752 | _swigt__p_char, |
d14a1e28 RD |
18753 | _swigt__p_wxIconLocation, |
18754 | _swigt__p_wxImage, | |
18755 | _swigt__p_wxMetaFileDC, | |
18756 | _swigt__p_wxMask, | |
18757 | _swigt__p_wxFont, | |
18758 | _swigt__p_wxWindow, | |
18759 | _swigt__p_wxSize, | |
18760 | _swigt__p_double, | |
18761 | _swigt__p_wxMemoryDC, | |
18762 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
18763 | _swigt__p_wxEffects, |
18764 | _swigt__p_wxNativeEncodingInfo, | |
18765 | _swigt__p_wxPalette, | |
18766 | _swigt__p_wxBitmap, | |
18767 | _swigt__p_wxObject, | |
18768 | _swigt__p_wxRegionIterator, | |
18769 | _swigt__p_wxRect, | |
18770 | _swigt__p_wxString, | |
18771 | _swigt__p_wxPrinterDC, | |
18772 | _swigt__p_wxIconBundle, | |
18773 | _swigt__p_wxPoint, | |
18774 | _swigt__p_wxDash, | |
18775 | _swigt__p_wxScreenDC, | |
18776 | _swigt__p_wxCursor, | |
18777 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
18778 | _swigt__p_wxBufferedDC, |
18779 | _swigt__p_wxImageList, | |
18780 | _swigt__p_unsigned_char, | |
18781 | _swigt__p_wxGDIObject, | |
d14a1e28 | 18782 | _swigt__p_wxIcon, |
994141e6 | 18783 | _swigt__p_wxLocale, |
d14a1e28 RD |
18784 | _swigt__p_wxRegion, |
18785 | _swigt__p_wxLanguageInfo, | |
18786 | _swigt__p_wxConfigBase, | |
18787 | _swigt__p_wxWindowDC, | |
18788 | _swigt__p_wxPrintData, | |
18789 | _swigt__p_wxBrushList, | |
18790 | _swigt__p_wxFontList, | |
18791 | _swigt__p_wxPen, | |
18792 | _swigt__p_wxBufferedPaintDC, | |
18793 | _swigt__p_wxPaintDC, | |
18794 | _swigt__p_wxPenList, | |
d14a1e28 RD |
18795 | _swigt__p_wxPyPen, |
18796 | _swigt__p_int, | |
18797 | _swigt__p_wxMetaFile, | |
18798 | _swigt__p_wxNativeFontInfo, | |
18799 | _swigt__p_wxEncodingConverter, | |
18800 | _swigt__p_wxColourDatabase, | |
18801 | 0 | |
18802 | }; | |
18803 | ||
18804 | ||
18805 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18806 | ||
18807 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
18808 | {0}}; |
18809 | ||
18810 | #ifdef __cplusplus | |
18811 | } | |
18812 | #endif | |
18813 | ||
18814 | #ifdef __cplusplus | |
18815 | extern "C" | |
18816 | #endif | |
18817 | SWIGEXPORT(void) SWIG_init(void) { | |
18818 | static PyObject *SWIG_globals = 0; | |
18819 | static int typeinit = 0; | |
18820 | PyObject *m, *d; | |
18821 | int i; | |
18822 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18823 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18824 | d = PyModule_GetDict(m); | |
18825 | ||
18826 | if (!typeinit) { | |
18827 | for (i = 0; swig_types_initial[i]; i++) { | |
18828 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18829 | } | |
18830 | typeinit = 1; | |
18831 | } | |
18832 | SWIG_InstallConstants(d,swig_const_table); | |
18833 | ||
994141e6 RD |
18834 | PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion)); |
18835 | PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion)); | |
18836 | PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion)); | |
18837 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
18838 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
18839 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN)); | |
18840 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
18841 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS)); | |
18842 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN)); | |
18843 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
18844 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX)); | |
18845 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
18846 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL)); | |
18847 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC)); | |
18848 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT)); | |
18849 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX)); | |
18850 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
18851 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
18852 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD)); | |
18853 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX)); | |
18854 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT)); | |
18855 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC)); | |
18856 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT)); | |
18857 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT)); | |
18858 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD)); | |
18859 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
18860 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
18861 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
18862 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
18863 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK)); | |
18864 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM)); | |
18865 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT)); | |
18866 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
18867 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
18868 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
18869 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
18870 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
18871 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
18872 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
18873 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
18874 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
18875 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
18876 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
18877 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
18878 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
18879 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
18880 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
18881 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
18882 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8)); | |
18883 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
18884 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
18885 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437)); | |
18886 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850)); | |
18887 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852)); | |
18888 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855)); | |
18889 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866)); | |
18890 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874)); | |
18891 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932)); | |
18892 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936)); | |
18893 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949)); | |
18894 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950)); | |
18895 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250)); | |
18896 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251)); | |
18897 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252)); | |
18898 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253)); | |
18899 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254)); | |
18900 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255)); | |
18901 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256)); | |
18902 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257)); | |
18903 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
18904 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7)); | |
18905 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8)); | |
18906 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP)); | |
18907 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE)); | |
18908 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE)); | |
18909 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE)); | |
18910 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE)); | |
18911 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN)); | |
18912 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
18913 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
18914 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
18915 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC)); | |
18916 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
18917 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK)); | |
18918 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
18919 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
18920 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
18921 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
18922 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA)); | |
18923 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
18924 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
18925 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
18926 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
18927 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
18928 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
18929 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
18930 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER)); | |
18931 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI)); | |
18932 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
18933 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
18934 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
18935 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
18936 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
18937 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
18938 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
18939 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
18940 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
18941 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
18942 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
18943 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
18944 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
18945 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
18946 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
18947 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
18948 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
18949 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
18950 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
18951 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN)); | |
18952 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX)); | |
18953 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX)); | |
18954 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16)); | |
18955 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32)); | |
18956 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE)); | |
18957 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312)); | |
18958 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5)); | |
18959 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
18960 | |
18961 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18962 | ||
994141e6 RD |
18963 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT)); |
18964 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
18965 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
18966 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR)); | |
18967 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
18968 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
18969 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC)); | |
18970 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC)); | |
18971 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
18972 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
18973 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
18974 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
18975 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
18976 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
18977 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
18978 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
18979 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
18980 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
18981 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
18982 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
18983 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
18984 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
18985 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
18986 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
18987 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
18988 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
18989 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
18990 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA)); | |
18991 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI)); | |
18992 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
18993 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
18994 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR)); | |
18995 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE)); | |
18996 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
18997 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI)); | |
18998 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI)); | |
18999 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI)); | |
19000 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA)); | |
19001 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON)); | |
19002 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
19003 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE)); | |
19004 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
19005 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN)); | |
19006 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE)); | |
19007 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19008 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19009 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19010 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
19011 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19012 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19013 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN)); | |
19014 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN)); | |
19015 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH)); | |
19016 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH)); | |
19017 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH)); | |
19018 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19019 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH)); | |
19020 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
19021 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
19022 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19023 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19024 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19025 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19026 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19027 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19028 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19029 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19030 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19031 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19032 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19033 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19034 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19035 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
19036 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
19037 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE)); | |
19038 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI)); | |
19039 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI)); | |
19040 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH)); | |
19041 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH)); | |
19042 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19043 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19044 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19045 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
19046 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
19047 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN)); | |
19048 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN)); | |
19049 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
19050 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN)); | |
19051 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19052 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19053 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19054 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19055 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19056 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK)); | |
19057 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19058 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI)); | |
19059 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19060 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA)); | |
19061 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW)); | |
19062 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI)); | |
19063 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19064 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19065 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19066 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19067 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19068 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19069 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19070 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH)); | |
19071 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19072 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19073 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19074 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19075 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA)); | |
19076 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19077 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19078 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19079 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19080 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19081 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19082 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19083 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI)); | |
19084 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN)); | |
19085 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH)); | |
19086 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19087 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN)); | |
19088 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19089 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA)); | |
19090 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19091 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19092 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19093 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY)); | |
19094 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19095 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19096 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19097 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE)); | |
19098 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19099 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI)); | |
19100 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI)); | |
19101 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19102 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19103 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU)); | |
19104 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI)); | |
19105 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19106 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19107 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19108 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19109 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA)); | |
19110 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO)); | |
19111 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO)); | |
19112 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH)); | |
19113 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19114 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19115 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19116 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19117 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19118 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19119 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19120 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19121 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19122 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO)); | |
19123 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19124 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19125 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19126 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19127 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19128 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19129 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19130 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19131 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA)); | |
19132 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI)); | |
19133 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19134 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI)); | |
19135 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19136 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19137 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI)); | |
19138 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH)); | |
19139 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19140 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19141 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19142 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19143 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19144 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19145 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19146 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19147 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19148 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19149 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19150 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19151 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19152 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19153 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19154 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19155 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19156 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19157 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19158 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19159 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19160 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19161 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19162 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19163 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19164 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK)); | |
19165 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL)); | |
19166 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR)); | |
19167 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU)); | |
19168 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI)); | |
19169 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19170 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19171 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA)); | |
19172 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA)); | |
19173 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH)); | |
19174 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19175 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI)); | |
19176 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19177 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19178 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU)); | |
19179 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19180 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19181 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK)); | |
19182 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19183 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19184 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19185 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19186 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH)); | |
19187 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF)); | |
19188 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA)); | |
19189 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19190 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA)); | |
19191 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19192 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU)); | |
19193 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19194 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19195 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE)); | |
19196 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19197 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX)); | |
19198 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19199 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19200 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19201 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19202 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT)); | |
19203 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19204 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT)); | |
19205 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX)); | |
19206 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS)); | |
19207 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2)); | |
19208 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC)); | |
19209 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
19210 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19211 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19212 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19213 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19214 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19215 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19216 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19217 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19218 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19219 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19220 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19221 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19222 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19223 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19224 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19225 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19226 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19227 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19228 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19229 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19230 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19231 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19232 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19233 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19234 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19235 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19236 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19237 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19238 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19239 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19240 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19241 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19242 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19243 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19244 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19245 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19246 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19247 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19248 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19249 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19250 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19251 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19252 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19253 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19254 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19255 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19256 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19257 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19258 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19259 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19260 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19261 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19262 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
19263 | |
19264 | // Work around a chicken/egg problem in drawlist.cpp | |
19265 | wxPyDrawList_SetAPIPtr(); | |
19266 | ||
d14a1e28 RD |
19267 | } |
19268 |