]>
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 RD |
344 | |
345 | SWIGSTATIC(PyObject*) | |
346 | SWIG_PyObj_FromBool(bool value) | |
347 | { | |
348 | PyObject *obj = value ? Py_True : Py_False; | |
349 | Py_INCREF(obj); | |
350 | return obj; | |
351 | } | |
352 | ||
353 | ||
354 | SWIGSTATIC(bool) | |
355 | SWIG_PyObj_AsBool(PyObject *obj) | |
356 | { | |
357 | return PyObject_IsTrue(obj) ? true : false; | |
358 | } | |
359 | ||
360 | ||
361 | SWIGSTATIC(unsigned char) | |
362 | SWIG_PyObj_AsUnsignedChar(PyObject *obj) | |
363 | { | |
364 | return numeric_cast(unsigned char, | |
365 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX)); | |
366 | } | |
367 | ||
d14a1e28 RD |
368 | PyObject *wxColour_Get(wxColour *self){ |
369 | PyObject* rv = PyTuple_New(3); | |
370 | int red = -1; | |
371 | int green = -1; | |
372 | int blue = -1; | |
373 | if (self->Ok()) { | |
374 | red = self->Red(); | |
375 | green = self->Green(); | |
376 | blue = self->Blue(); | |
377 | } | |
378 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
379 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
380 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
381 | return rv; | |
382 | } | |
383 | ||
994141e6 RD |
384 | SWIGSTATIC(int) |
385 | SWIG_PyObj_AsInt(PyObject *obj) | |
386 | { | |
387 | return numeric_cast(int, | |
388 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
389 | } | |
390 | ||
391 | ||
d14a1e28 RD |
392 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
393 | PyObject* o2; | |
394 | PyObject* o3; | |
395 | ||
396 | if (!target) { | |
397 | target = o; | |
398 | } else if (target == Py_None) { | |
399 | Py_DECREF(Py_None); | |
400 | target = o; | |
401 | } else { | |
402 | if (!PyTuple_Check(target)) { | |
403 | o2 = target; | |
404 | target = PyTuple_New(1); | |
405 | PyTuple_SetItem(target, 0, o2); | |
406 | } | |
407 | o3 = PyTuple_New(1); | |
408 | PyTuple_SetItem(o3, 0, o); | |
409 | ||
410 | o2 = target; | |
411 | target = PySequence_Concat(o2, o3); | |
412 | Py_DECREF(o2); | |
413 | Py_DECREF(o3); | |
414 | } | |
415 | return target; | |
416 | } | |
417 | ||
418 | PyObject *wxPen_GetDashes(wxPen *self){ | |
419 | wxDash* dashes; | |
420 | int count = self->GetDashes(&dashes); | |
421 | wxPyBeginBlockThreads(); | |
422 | PyObject* retval = PyList_New(0); | |
423 | for (int x=0; x<count; x++) | |
424 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
425 | wxPyEndBlockThreads(); | |
426 | return retval; | |
427 | } | |
428 | ||
429 | wxPyPen::~wxPyPen() | |
430 | { | |
431 | if (m_dash) | |
432 | delete [] m_dash; | |
433 | } | |
434 | ||
435 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
436 | { | |
437 | if (m_dash) | |
438 | delete [] m_dash; | |
439 | m_dash = new wxDash[nb_dashes]; | |
440 | for (int i=0; i<nb_dashes; i++) { | |
441 | m_dash[i] = dash[i]; | |
442 | } | |
443 | wxPen::SetDashes(nb_dashes, m_dash); | |
444 | } | |
445 | ||
446 | ||
447 | #include <wx/image.h> | |
448 | ||
449 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
450 | char** cArray = NULL; | |
451 | int count; | |
452 | ||
453 | if (!PyList_Check(listOfStrings)) { | |
454 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
455 | return NULL; | |
456 | } | |
457 | count = PyList_Size(listOfStrings); | |
458 | cArray = new char*[count]; | |
459 | ||
460 | for(int x=0; x<count; x++) { | |
461 | // TODO: Need some validation and error checking here | |
462 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
463 | } | |
464 | return cArray; | |
465 | } | |
466 | ||
467 | ||
468 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
469 | char** cArray = NULL; | |
470 | wxBitmap* bmp; | |
471 | ||
472 | cArray = ConvertListOfStrings(listOfStrings); | |
473 | if (! cArray) | |
474 | return NULL; | |
475 | bmp = new wxBitmap(cArray); | |
476 | delete [] cArray; | |
477 | return bmp; | |
478 | } | |
479 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
480 | char* buf; | |
481 | int length; | |
482 | PyString_AsStringAndSize(bits, &buf, &length); | |
483 | return new wxBitmap(buf, width, height, depth); | |
484 | } | |
485 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
486 | wxMask *mask = new wxMask(*self, colour); | |
487 | self->SetMask(mask); | |
488 | } | |
489 | ||
490 | #include <wx/iconbndl.h> | |
491 | ||
492 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
493 | wxIcon* icon = new wxIcon(); | |
494 | icon->CopyFromBitmap(bmp); | |
495 | return icon; | |
496 | } | |
497 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
498 | char** cArray = NULL; | |
499 | wxIcon* icon; | |
500 | ||
501 | cArray = ConvertListOfStrings(listOfStrings); | |
502 | if (! cArray) | |
503 | return NULL; | |
504 | icon = new wxIcon(cArray); | |
505 | delete [] cArray; | |
506 | return icon; | |
507 | } | |
508 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
509 | ||
510 | ||
511 | ||
512 | return new wxIconLocation(*filename); | |
513 | ||
514 | } | |
515 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
516 | ||
517 | ||
518 | ||
519 | // do nothing | |
520 | ||
521 | } | |
522 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
523 | ||
524 | ||
525 | ||
526 | return -1; | |
527 | ||
528 | } | |
994141e6 RD |
529 | |
530 | SWIGSTATIC(long) | |
531 | SWIG_PyObj_AsLong(PyObject * obj) | |
532 | { | |
533 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
534 | } | |
535 | ||
d14a1e28 RD |
536 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ |
537 | ||
e811c8ce | 538 | wxCHECK_MSG(False, NULL, |
d14a1e28 RD |
539 | wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead.")); |
540 | ||
541 | ||
542 | ||
543 | } | |
544 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
545 | char* bitsbuf; | |
546 | char* maskbuf = NULL; | |
547 | int length; | |
548 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
549 | if (maskBits) | |
550 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
551 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
552 | } | |
553 | ||
554 | ||
555 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
556 | (*self) ++; | |
557 | } | |
558 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
559 | return self->operator bool(); | |
560 | } | |
561 | ||
562 | #include <wx/fontutil.h> | |
563 | #include <wx/fontmap.h> | |
564 | #include <wx/fontenum.h> | |
565 | ||
566 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
567 | return self->ToString(); | |
568 | } | |
569 | ||
570 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
571 | static wxNativeEncodingInfo info; | |
572 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
573 | return &info; | |
574 | else | |
575 | return NULL; | |
576 | } | |
577 | ||
994141e6 RD |
578 | |
579 | SWIGSTATIC(PyObject* ) | |
580 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
581 | { | |
582 | return (value > (unsigned long)(LONG_MAX)) ? | |
583 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
584 | } | |
585 | ||
d14a1e28 RD |
586 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ |
587 | wxFontEncoding alt_enc; | |
588 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
589 | return PyInt_FromLong(alt_enc); | |
590 | else { | |
591 | Py_INCREF(Py_None); | |
592 | return Py_None; | |
593 | } | |
594 | } | |
595 | wxFont *new_wxFont(wxString const &info){ | |
596 | wxNativeFontInfo nfi; | |
597 | nfi.FromString(info); | |
598 | return new wxFont(nfi); | |
599 | } | |
600 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
601 | return wxFont::New(pointSize, family, flags, face, encoding); | |
602 | } | |
603 | ||
604 | class wxPyFontEnumerator : public wxFontEnumerator { | |
605 | public: | |
606 | wxPyFontEnumerator() {} | |
607 | ~wxPyFontEnumerator() {} | |
608 | ||
609 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
610 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
611 | ||
612 | PYPRIVATE; | |
613 | }; | |
614 | ||
615 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
616 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
617 | ||
618 | ||
619 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
620 | wxArrayString* arr = self->GetEncodings(); | |
621 | return wxArrayString2PyList_helper(*arr); | |
622 | } | |
623 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
624 | wxArrayString* arr = self->GetFacenames(); | |
625 | return wxArrayString2PyList_helper(*arr); | |
626 | } | |
627 | ||
628 | ||
629 | ||
630 | #include "wx/wxPython/pydrawxxx.h" | |
631 | ||
e811c8ce | 632 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
633 | wxColour col; |
634 | self->GetPixel(x, y, &col); | |
635 | return col; | |
636 | } | |
637 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
638 | wxColour col; | |
639 | self->GetPixel(pt, &col); | |
640 | return col; | |
641 | } | |
994141e6 RD |
642 | |
643 | SWIGSTATIC(double) | |
644 | SWIG_PyObj_AsDouble(PyObject *obj) | |
645 | { | |
646 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
647 | #if HAVE_LONG_LONG | |
648 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
649 | #else | |
650 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
651 | #endif | |
652 | if (PyErr_Occurred()) { | |
653 | PyErr_Clear(); | |
654 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
655 | } | |
656 | } | |
657 | ||
d14a1e28 RD |
658 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
659 | wxRect rv; | |
660 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
661 | return rv; | |
662 | } | |
663 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
664 | wxRect rect; | |
665 | self->GetClippingBox(rect); | |
666 | return rect; | |
667 | } | |
668 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
669 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
670 | } | |
671 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
672 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
673 | } | |
674 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
675 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
676 | } | |
677 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
678 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
679 | } | |
680 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
681 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
682 | } | |
683 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
684 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
685 | } | |
686 | ||
687 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
688 | *x1 = dc->MinX(); | |
689 | *y1 = dc->MinY(); | |
690 | *x2 = dc->MaxX(); | |
691 | *y2 = dc->MaxY(); | |
692 | } | |
693 | ||
694 | ||
695 | #include <wx/dcps.h> | |
696 | ||
697 | ||
698 | class wxMetaFile : public wxObject { | |
699 | public: | |
700 | wxMetaFile(const wxString&) | |
39f61e25 | 701 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
702 | }; |
703 | ||
704 | class wxMetaFileDC : public wxClientDC { | |
705 | public: | |
706 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 707 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
708 | }; |
709 | ||
710 | ||
711 | ||
712 | class wxPrinterDC : public wxClientDC { | |
713 | public: | |
714 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 715 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 716 | |
d14a1e28 | 717 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 718 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
719 | }; |
720 | ||
721 | ||
722 | ||
723 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
724 | self->AddColour(name, wxColour(red, green, blue)); | |
725 | } | |
726 | ||
d14a1e28 RD |
727 | #include <wx/effects.h> |
728 | ||
729 | #ifdef __cplusplus | |
730 | extern "C" { | |
731 | #endif | |
732 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
733 | PyObject *resultobj; | |
734 | wxGDIObject *result; | |
735 | char *kwnames[] = { | |
736 | NULL | |
737 | }; | |
738 | ||
739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
740 | { | |
741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
742 | result = (wxGDIObject *)new wxGDIObject(); | |
743 | ||
744 | wxPyEndAllowThreads(__tstate); | |
745 | if (PyErr_Occurred()) SWIG_fail; | |
746 | } | |
747 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
748 | return resultobj; | |
749 | fail: | |
750 | return NULL; | |
751 | } | |
752 | ||
753 | ||
754 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
755 | PyObject *resultobj; | |
756 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
757 | PyObject * obj0 = 0 ; | |
758 | char *kwnames[] = { | |
759 | (char *) "self", NULL | |
760 | }; | |
761 | ||
762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
764 | { | |
765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
766 | delete arg1; | |
767 | ||
768 | wxPyEndAllowThreads(__tstate); | |
769 | if (PyErr_Occurred()) SWIG_fail; | |
770 | } | |
771 | Py_INCREF(Py_None); resultobj = Py_None; | |
772 | return resultobj; | |
773 | fail: | |
774 | return NULL; | |
775 | } | |
776 | ||
777 | ||
778 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject *resultobj; | |
780 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
781 | bool result; | |
782 | PyObject * obj0 = 0 ; | |
783 | char *kwnames[] = { | |
784 | (char *) "self", NULL | |
785 | }; | |
786 | ||
787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
789 | { | |
790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
791 | result = (bool)(arg1)->GetVisible(); | |
792 | ||
793 | wxPyEndAllowThreads(__tstate); | |
794 | if (PyErr_Occurred()) SWIG_fail; | |
795 | } | |
994141e6 | 796 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
797 | return resultobj; |
798 | fail: | |
799 | return NULL; | |
800 | } | |
801 | ||
802 | ||
803 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
804 | PyObject *resultobj; | |
805 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
806 | bool arg2 ; | |
807 | PyObject * obj0 = 0 ; | |
808 | PyObject * obj1 = 0 ; | |
809 | char *kwnames[] = { | |
810 | (char *) "self",(char *) "visible", NULL | |
811 | }; | |
812 | ||
813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 815 | { |
994141e6 | 816 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
817 | if (PyErr_Occurred()) SWIG_fail; |
818 | } | |
d14a1e28 RD |
819 | { |
820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
821 | (arg1)->SetVisible(arg2); | |
822 | ||
823 | wxPyEndAllowThreads(__tstate); | |
824 | if (PyErr_Occurred()) SWIG_fail; | |
825 | } | |
826 | Py_INCREF(Py_None); resultobj = Py_None; | |
827 | return resultobj; | |
828 | fail: | |
829 | return NULL; | |
830 | } | |
831 | ||
832 | ||
833 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
834 | PyObject *resultobj; | |
835 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
836 | bool result; | |
837 | PyObject * obj0 = 0 ; | |
838 | char *kwnames[] = { | |
839 | (char *) "self", NULL | |
840 | }; | |
841 | ||
842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
844 | { | |
845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
846 | result = (bool)(arg1)->IsNull(); | |
847 | ||
848 | wxPyEndAllowThreads(__tstate); | |
849 | if (PyErr_Occurred()) SWIG_fail; | |
850 | } | |
994141e6 | 851 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
852 | return resultobj; |
853 | fail: | |
854 | return NULL; | |
855 | } | |
856 | ||
857 | ||
858 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
859 | PyObject *obj; | |
860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
861 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
862 | Py_INCREF(obj); | |
863 | return Py_BuildValue((char *)""); | |
864 | } | |
865 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
866 | PyObject *resultobj; | |
867 | unsigned char arg1 = (unsigned char) 0 ; | |
868 | unsigned char arg2 = (unsigned char) 0 ; | |
869 | unsigned char arg3 = (unsigned char) 0 ; | |
870 | wxColour *result; | |
871 | PyObject * obj0 = 0 ; | |
872 | PyObject * obj1 = 0 ; | |
873 | PyObject * obj2 = 0 ; | |
874 | char *kwnames[] = { | |
875 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
876 | }; | |
877 | ||
878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
879 | if (obj0) { | |
a41e16b6 | 880 | { |
994141e6 | 881 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
a41e16b6 RD |
882 | if (PyErr_Occurred()) SWIG_fail; |
883 | } | |
d14a1e28 RD |
884 | } |
885 | if (obj1) { | |
a41e16b6 | 886 | { |
994141e6 | 887 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
888 | if (PyErr_Occurred()) SWIG_fail; |
889 | } | |
d14a1e28 RD |
890 | } |
891 | if (obj2) { | |
a41e16b6 | 892 | { |
994141e6 | 893 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
894 | if (PyErr_Occurred()) SWIG_fail; |
895 | } | |
d14a1e28 RD |
896 | } |
897 | { | |
898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
899 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
900 | ||
901 | wxPyEndAllowThreads(__tstate); | |
902 | if (PyErr_Occurred()) SWIG_fail; | |
903 | } | |
904 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
905 | return resultobj; | |
906 | fail: | |
907 | return NULL; | |
908 | } | |
909 | ||
910 | ||
911 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
912 | PyObject *resultobj; | |
913 | wxColour *arg1 = (wxColour *) 0 ; | |
914 | PyObject * obj0 = 0 ; | |
915 | char *kwnames[] = { | |
916 | (char *) "self", NULL | |
917 | }; | |
918 | ||
919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
921 | { | |
922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
923 | delete arg1; | |
924 | ||
925 | wxPyEndAllowThreads(__tstate); | |
926 | if (PyErr_Occurred()) SWIG_fail; | |
927 | } | |
928 | Py_INCREF(Py_None); resultobj = Py_None; | |
929 | return resultobj; | |
930 | fail: | |
931 | return NULL; | |
932 | } | |
933 | ||
934 | ||
935 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
936 | PyObject *resultobj; | |
937 | wxString *arg1 = 0 ; | |
938 | wxColour *result; | |
e811c8ce | 939 | bool temp1 = False ; |
d14a1e28 RD |
940 | PyObject * obj0 = 0 ; |
941 | char *kwnames[] = { | |
942 | (char *) "colorName", NULL | |
943 | }; | |
944 | ||
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
946 | { | |
947 | arg1 = wxString_in_helper(obj0); | |
948 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 949 | temp1 = True; |
d14a1e28 RD |
950 | } |
951 | { | |
952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
953 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
954 | ||
955 | wxPyEndAllowThreads(__tstate); | |
956 | if (PyErr_Occurred()) SWIG_fail; | |
957 | } | |
958 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
959 | { | |
960 | if (temp1) | |
961 | delete arg1; | |
962 | } | |
963 | return resultobj; | |
964 | fail: | |
965 | { | |
966 | if (temp1) | |
967 | delete arg1; | |
968 | } | |
969 | return NULL; | |
970 | } | |
971 | ||
972 | ||
973 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
974 | PyObject *resultobj; | |
975 | unsigned long arg1 ; | |
976 | wxColour *result; | |
977 | PyObject * obj0 = 0 ; | |
978 | char *kwnames[] = { | |
979 | (char *) "colRGB", NULL | |
980 | }; | |
981 | ||
982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
a41e16b6 | 983 | { |
994141e6 | 984 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
985 | if (PyErr_Occurred()) SWIG_fail; |
986 | } | |
d14a1e28 RD |
987 | { |
988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
989 | result = (wxColour *)new wxColour(arg1); | |
990 | ||
991 | wxPyEndAllowThreads(__tstate); | |
992 | if (PyErr_Occurred()) SWIG_fail; | |
993 | } | |
994 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
995 | return resultobj; | |
996 | fail: | |
997 | return NULL; | |
998 | } | |
999 | ||
1000 | ||
1001 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1002 | PyObject *resultobj; | |
1003 | wxColour *arg1 = (wxColour *) 0 ; | |
1004 | unsigned char result; | |
1005 | PyObject * obj0 = 0 ; | |
1006 | char *kwnames[] = { | |
1007 | (char *) "self", NULL | |
1008 | }; | |
1009 | ||
1010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1012 | { | |
1013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1014 | result = (unsigned char)(arg1)->Red(); | |
1015 | ||
1016 | wxPyEndAllowThreads(__tstate); | |
1017 | if (PyErr_Occurred()) SWIG_fail; | |
1018 | } | |
994141e6 | 1019 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1020 | return resultobj; |
1021 | fail: | |
1022 | return NULL; | |
1023 | } | |
1024 | ||
1025 | ||
1026 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1027 | PyObject *resultobj; | |
1028 | wxColour *arg1 = (wxColour *) 0 ; | |
1029 | unsigned char result; | |
1030 | PyObject * obj0 = 0 ; | |
1031 | char *kwnames[] = { | |
1032 | (char *) "self", NULL | |
1033 | }; | |
1034 | ||
1035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1037 | { | |
1038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1039 | result = (unsigned char)(arg1)->Green(); | |
1040 | ||
1041 | wxPyEndAllowThreads(__tstate); | |
1042 | if (PyErr_Occurred()) SWIG_fail; | |
1043 | } | |
994141e6 | 1044 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1045 | return resultobj; |
1046 | fail: | |
1047 | return NULL; | |
1048 | } | |
1049 | ||
1050 | ||
1051 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1052 | PyObject *resultobj; | |
1053 | wxColour *arg1 = (wxColour *) 0 ; | |
1054 | unsigned char result; | |
1055 | PyObject * obj0 = 0 ; | |
1056 | char *kwnames[] = { | |
1057 | (char *) "self", NULL | |
1058 | }; | |
1059 | ||
1060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1062 | { | |
1063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1064 | result = (unsigned char)(arg1)->Blue(); | |
1065 | ||
1066 | wxPyEndAllowThreads(__tstate); | |
1067 | if (PyErr_Occurred()) SWIG_fail; | |
1068 | } | |
994141e6 | 1069 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1070 | return resultobj; |
1071 | fail: | |
1072 | return NULL; | |
1073 | } | |
1074 | ||
1075 | ||
1076 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1077 | PyObject *resultobj; | |
1078 | wxColour *arg1 = (wxColour *) 0 ; | |
1079 | bool result; | |
1080 | PyObject * obj0 = 0 ; | |
1081 | char *kwnames[] = { | |
1082 | (char *) "self", NULL | |
1083 | }; | |
1084 | ||
1085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1087 | { | |
1088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1089 | result = (bool)(arg1)->Ok(); | |
1090 | ||
1091 | wxPyEndAllowThreads(__tstate); | |
1092 | if (PyErr_Occurred()) SWIG_fail; | |
1093 | } | |
994141e6 | 1094 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1095 | return resultobj; |
1096 | fail: | |
1097 | return NULL; | |
1098 | } | |
1099 | ||
1100 | ||
1101 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1102 | PyObject *resultobj; | |
1103 | wxColour *arg1 = (wxColour *) 0 ; | |
1104 | unsigned char arg2 ; | |
1105 | unsigned char arg3 ; | |
1106 | unsigned char arg4 ; | |
1107 | PyObject * obj0 = 0 ; | |
1108 | PyObject * obj1 = 0 ; | |
1109 | PyObject * obj2 = 0 ; | |
1110 | PyObject * obj3 = 0 ; | |
1111 | char *kwnames[] = { | |
1112 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1113 | }; | |
1114 | ||
1115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1117 | { |
994141e6 | 1118 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1119 | if (PyErr_Occurred()) SWIG_fail; |
1120 | } | |
1121 | { | |
994141e6 | 1122 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1123 | if (PyErr_Occurred()) SWIG_fail; |
1124 | } | |
1125 | { | |
994141e6 | 1126 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1127 | if (PyErr_Occurred()) SWIG_fail; |
1128 | } | |
d14a1e28 RD |
1129 | { |
1130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1131 | (arg1)->Set(arg2,arg3,arg4); | |
1132 | ||
1133 | wxPyEndAllowThreads(__tstate); | |
1134 | if (PyErr_Occurred()) SWIG_fail; | |
1135 | } | |
1136 | Py_INCREF(Py_None); resultobj = Py_None; | |
1137 | return resultobj; | |
1138 | fail: | |
1139 | return NULL; | |
1140 | } | |
1141 | ||
1142 | ||
c9c7117a | 1143 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1144 | PyObject *resultobj; |
1145 | wxColour *arg1 = (wxColour *) 0 ; | |
1146 | unsigned long arg2 ; | |
1147 | PyObject * obj0 = 0 ; | |
1148 | PyObject * obj1 = 0 ; | |
1149 | char *kwnames[] = { | |
1150 | (char *) "self",(char *) "colRGB", NULL | |
1151 | }; | |
1152 | ||
c9c7117a | 1153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 1155 | { |
994141e6 | 1156 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
1157 | if (PyErr_Occurred()) SWIG_fail; |
1158 | } | |
d14a1e28 RD |
1159 | { |
1160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1161 | (arg1)->Set(arg2); | |
1162 | ||
1163 | wxPyEndAllowThreads(__tstate); | |
1164 | if (PyErr_Occurred()) SWIG_fail; | |
1165 | } | |
1166 | Py_INCREF(Py_None); resultobj = Py_None; | |
1167 | return resultobj; | |
1168 | fail: | |
1169 | return NULL; | |
1170 | } | |
1171 | ||
1172 | ||
1173 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1174 | PyObject *resultobj; | |
1175 | wxColour *arg1 = (wxColour *) 0 ; | |
1176 | wxColour *arg2 = 0 ; | |
1177 | bool result; | |
1178 | wxColour temp2 ; | |
1179 | PyObject * obj0 = 0 ; | |
1180 | PyObject * obj1 = 0 ; | |
1181 | char *kwnames[] = { | |
1182 | (char *) "self",(char *) "colour", NULL | |
1183 | }; | |
1184 | ||
1185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1187 | { | |
1188 | arg2 = &temp2; | |
1189 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1190 | } | |
1191 | { | |
1192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1193 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1194 | ||
1195 | wxPyEndAllowThreads(__tstate); | |
1196 | if (PyErr_Occurred()) SWIG_fail; | |
1197 | } | |
994141e6 | 1198 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1199 | return resultobj; |
1200 | fail: | |
1201 | return NULL; | |
1202 | } | |
1203 | ||
1204 | ||
1205 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1206 | PyObject *resultobj; | |
1207 | wxColour *arg1 = (wxColour *) 0 ; | |
1208 | wxColour *arg2 = 0 ; | |
1209 | bool result; | |
1210 | wxColour temp2 ; | |
1211 | PyObject * obj0 = 0 ; | |
1212 | PyObject * obj1 = 0 ; | |
1213 | char *kwnames[] = { | |
1214 | (char *) "self",(char *) "colour", NULL | |
1215 | }; | |
1216 | ||
1217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1219 | { | |
1220 | arg2 = &temp2; | |
1221 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1222 | } | |
1223 | { | |
1224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1225 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1226 | ||
1227 | wxPyEndAllowThreads(__tstate); | |
1228 | if (PyErr_Occurred()) SWIG_fail; | |
1229 | } | |
994141e6 | 1230 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1231 | return resultobj; |
1232 | fail: | |
1233 | return NULL; | |
1234 | } | |
1235 | ||
1236 | ||
c9c7117a RD |
1237 | static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1238 | PyObject *resultobj; | |
1239 | wxColour *arg1 = (wxColour *) 0 ; | |
1240 | wxString *arg2 = 0 ; | |
1241 | bool temp2 = False ; | |
1242 | PyObject * obj0 = 0 ; | |
1243 | PyObject * obj1 = 0 ; | |
1244 | char *kwnames[] = { | |
1245 | (char *) "self",(char *) "colourName", NULL | |
1246 | }; | |
1247 | ||
1248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail; | |
1249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1250 | { | |
1251 | arg2 = wxString_in_helper(obj1); | |
1252 | if (arg2 == NULL) SWIG_fail; | |
1253 | temp2 = True; | |
1254 | } | |
1255 | { | |
1256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1257 | (arg1)->InitFromName((wxString const &)*arg2); | |
1258 | ||
1259 | wxPyEndAllowThreads(__tstate); | |
1260 | if (PyErr_Occurred()) SWIG_fail; | |
1261 | } | |
1262 | Py_INCREF(Py_None); resultobj = Py_None; | |
1263 | { | |
1264 | if (temp2) | |
1265 | delete arg2; | |
1266 | } | |
1267 | return resultobj; | |
1268 | fail: | |
1269 | { | |
1270 | if (temp2) | |
1271 | delete arg2; | |
1272 | } | |
1273 | return NULL; | |
1274 | } | |
1275 | ||
1276 | ||
d14a1e28 RD |
1277 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
1278 | PyObject *resultobj; | |
1279 | wxColour *arg1 = (wxColour *) 0 ; | |
1280 | PyObject *result; | |
1281 | PyObject * obj0 = 0 ; | |
1282 | char *kwnames[] = { | |
1283 | (char *) "self", NULL | |
1284 | }; | |
1285 | ||
1286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1288 | { | |
1289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1290 | result = (PyObject *)wxColour_Get(arg1); | |
1291 | ||
1292 | wxPyEndAllowThreads(__tstate); | |
1293 | if (PyErr_Occurred()) SWIG_fail; | |
1294 | } | |
1295 | resultobj = result; | |
1296 | return resultobj; | |
1297 | fail: | |
1298 | return NULL; | |
1299 | } | |
1300 | ||
1301 | ||
1302 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1303 | PyObject *obj; | |
1304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1305 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1306 | Py_INCREF(obj); | |
1307 | return Py_BuildValue((char *)""); | |
1308 | } | |
1309 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1310 | PyObject *resultobj; | |
1311 | int arg1 ; | |
1312 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1313 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1314 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1315 | wxPalette *result; | |
994141e6 | 1316 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1317 | PyObject * obj1 = 0 ; |
1318 | PyObject * obj2 = 0 ; | |
1319 | PyObject * obj3 = 0 ; | |
1320 | char *kwnames[] = { | |
1321 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1322 | }; | |
1323 | ||
994141e6 RD |
1324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
1325 | { | |
1326 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
d14a1e28 RD |
1329 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1330 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1331 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1332 | { | |
1333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1334 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1335 | ||
1336 | wxPyEndAllowThreads(__tstate); | |
1337 | if (PyErr_Occurred()) SWIG_fail; | |
1338 | } | |
1339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1340 | return resultobj; | |
1341 | fail: | |
1342 | return NULL; | |
1343 | } | |
1344 | ||
1345 | ||
1346 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1347 | PyObject *resultobj; | |
1348 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1349 | PyObject * obj0 = 0 ; | |
1350 | char *kwnames[] = { | |
1351 | (char *) "self", NULL | |
1352 | }; | |
1353 | ||
1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1356 | { | |
1357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1358 | delete arg1; | |
1359 | ||
1360 | wxPyEndAllowThreads(__tstate); | |
1361 | if (PyErr_Occurred()) SWIG_fail; | |
1362 | } | |
1363 | Py_INCREF(Py_None); resultobj = Py_None; | |
1364 | return resultobj; | |
1365 | fail: | |
1366 | return NULL; | |
1367 | } | |
1368 | ||
1369 | ||
1370 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1371 | PyObject *resultobj; | |
1372 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1373 | byte arg2 ; | |
1374 | byte arg3 ; | |
1375 | byte arg4 ; | |
1376 | int result; | |
1377 | PyObject * obj0 = 0 ; | |
1378 | PyObject * obj1 = 0 ; | |
1379 | PyObject * obj2 = 0 ; | |
1380 | PyObject * obj3 = 0 ; | |
1381 | char *kwnames[] = { | |
1382 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1383 | }; | |
1384 | ||
1385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1387 | { |
994141e6 | 1388 | arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1389 | if (PyErr_Occurred()) SWIG_fail; |
1390 | } | |
1391 | { | |
994141e6 | 1392 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1393 | if (PyErr_Occurred()) SWIG_fail; |
1394 | } | |
1395 | { | |
994141e6 | 1396 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1397 | if (PyErr_Occurred()) SWIG_fail; |
1398 | } | |
d14a1e28 RD |
1399 | { |
1400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1401 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1402 | ||
1403 | wxPyEndAllowThreads(__tstate); | |
1404 | if (PyErr_Occurred()) SWIG_fail; | |
1405 | } | |
994141e6 | 1406 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1407 | return resultobj; |
1408 | fail: | |
1409 | return NULL; | |
1410 | } | |
1411 | ||
1412 | ||
1413 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1414 | PyObject *resultobj; | |
1415 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1416 | int arg2 ; | |
1417 | byte *arg3 = (byte *) 0 ; | |
1418 | byte *arg4 = (byte *) 0 ; | |
1419 | byte *arg5 = (byte *) 0 ; | |
1420 | bool result; | |
1421 | byte temp3 ; | |
1422 | byte temp4 ; | |
1423 | byte temp5 ; | |
1424 | PyObject * obj0 = 0 ; | |
994141e6 | 1425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1426 | char *kwnames[] = { |
1427 | (char *) "self",(char *) "pixel", NULL | |
1428 | }; | |
1429 | ||
1430 | arg3 = &temp3; | |
1431 | arg4 = &temp4; | |
1432 | arg5 = &temp5; | |
994141e6 | 1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1435 | { |
1436 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1437 | if (PyErr_Occurred()) SWIG_fail; | |
1438 | } | |
d14a1e28 RD |
1439 | { |
1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1441 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1442 | ||
1443 | wxPyEndAllowThreads(__tstate); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
994141e6 | 1446 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1447 | { |
1448 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1449 | resultobj = t_output_helper(resultobj,o); | |
1450 | } | |
1451 | { | |
1452 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1453 | resultobj = t_output_helper(resultobj,o); | |
1454 | } | |
1455 | { | |
1456 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1457 | resultobj = t_output_helper(resultobj,o); | |
1458 | } | |
1459 | return resultobj; | |
1460 | fail: | |
1461 | return NULL; | |
1462 | } | |
1463 | ||
1464 | ||
1465 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1466 | PyObject *resultobj; | |
1467 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1468 | bool result; | |
1469 | PyObject * obj0 = 0 ; | |
1470 | char *kwnames[] = { | |
1471 | (char *) "self", NULL | |
1472 | }; | |
1473 | ||
1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1476 | { | |
1477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1478 | result = (bool)(arg1)->Ok(); | |
1479 | ||
1480 | wxPyEndAllowThreads(__tstate); | |
1481 | if (PyErr_Occurred()) SWIG_fail; | |
1482 | } | |
994141e6 | 1483 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1484 | return resultobj; |
1485 | fail: | |
1486 | return NULL; | |
1487 | } | |
1488 | ||
1489 | ||
1490 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1491 | PyObject *obj; | |
1492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1493 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1494 | Py_INCREF(obj); | |
1495 | return Py_BuildValue((char *)""); | |
1496 | } | |
1497 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1498 | PyObject *resultobj; | |
1499 | wxColour *arg1 = 0 ; | |
1500 | int arg2 = (int) 1 ; | |
1501 | int arg3 = (int) wxSOLID ; | |
1502 | wxPen *result; | |
1503 | wxColour temp1 ; | |
1504 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1505 | PyObject * obj1 = 0 ; |
1506 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1507 | char *kwnames[] = { |
1508 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1509 | }; | |
1510 | ||
994141e6 | 1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1512 | { |
1513 | arg1 = &temp1; | |
1514 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1515 | } | |
994141e6 RD |
1516 | if (obj1) { |
1517 | { | |
1518 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1519 | if (PyErr_Occurred()) SWIG_fail; | |
1520 | } | |
1521 | } | |
1522 | if (obj2) { | |
1523 | { | |
1524 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | } | |
d14a1e28 RD |
1528 | { |
1529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1530 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1531 | ||
1532 | wxPyEndAllowThreads(__tstate); | |
1533 | if (PyErr_Occurred()) SWIG_fail; | |
1534 | } | |
1535 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1536 | return resultobj; | |
1537 | fail: | |
1538 | return NULL; | |
1539 | } | |
1540 | ||
1541 | ||
1542 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1543 | PyObject *resultobj; | |
1544 | wxPen *arg1 = (wxPen *) 0 ; | |
1545 | PyObject * obj0 = 0 ; | |
1546 | char *kwnames[] = { | |
1547 | (char *) "self", NULL | |
1548 | }; | |
1549 | ||
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1552 | { | |
1553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1554 | delete arg1; | |
1555 | ||
1556 | wxPyEndAllowThreads(__tstate); | |
1557 | if (PyErr_Occurred()) SWIG_fail; | |
1558 | } | |
1559 | Py_INCREF(Py_None); resultobj = Py_None; | |
1560 | return resultobj; | |
1561 | fail: | |
1562 | return NULL; | |
1563 | } | |
1564 | ||
1565 | ||
1566 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1567 | PyObject *resultobj; | |
1568 | wxPen *arg1 = (wxPen *) 0 ; | |
1569 | int result; | |
1570 | PyObject * obj0 = 0 ; | |
1571 | char *kwnames[] = { | |
1572 | (char *) "self", NULL | |
1573 | }; | |
1574 | ||
1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1577 | { | |
1578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1579 | result = (int)(arg1)->GetCap(); | |
1580 | ||
1581 | wxPyEndAllowThreads(__tstate); | |
1582 | if (PyErr_Occurred()) SWIG_fail; | |
1583 | } | |
994141e6 | 1584 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1585 | return resultobj; |
1586 | fail: | |
1587 | return NULL; | |
1588 | } | |
1589 | ||
1590 | ||
1591 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1592 | PyObject *resultobj; | |
1593 | wxPen *arg1 = (wxPen *) 0 ; | |
1594 | wxColour result; | |
1595 | PyObject * obj0 = 0 ; | |
1596 | char *kwnames[] = { | |
1597 | (char *) "self", NULL | |
1598 | }; | |
1599 | ||
1600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1602 | { | |
1603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1604 | result = (arg1)->GetColour(); | |
1605 | ||
1606 | wxPyEndAllowThreads(__tstate); | |
1607 | if (PyErr_Occurred()) SWIG_fail; | |
1608 | } | |
1609 | { | |
1610 | wxColour * resultptr; | |
1611 | resultptr = new wxColour((wxColour &) result); | |
1612 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1613 | } | |
1614 | return resultobj; | |
1615 | fail: | |
1616 | return NULL; | |
1617 | } | |
1618 | ||
1619 | ||
1620 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject *resultobj; | |
1622 | wxPen *arg1 = (wxPen *) 0 ; | |
1623 | int result; | |
1624 | PyObject * obj0 = 0 ; | |
1625 | char *kwnames[] = { | |
1626 | (char *) "self", NULL | |
1627 | }; | |
1628 | ||
1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1631 | { | |
1632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1633 | result = (int)(arg1)->GetJoin(); | |
1634 | ||
1635 | wxPyEndAllowThreads(__tstate); | |
1636 | if (PyErr_Occurred()) SWIG_fail; | |
1637 | } | |
994141e6 | 1638 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1639 | return resultobj; |
1640 | fail: | |
1641 | return NULL; | |
1642 | } | |
1643 | ||
1644 | ||
1645 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1646 | PyObject *resultobj; | |
1647 | wxPen *arg1 = (wxPen *) 0 ; | |
1648 | int result; | |
1649 | PyObject * obj0 = 0 ; | |
1650 | char *kwnames[] = { | |
1651 | (char *) "self", NULL | |
1652 | }; | |
1653 | ||
1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1656 | { | |
1657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1658 | result = (int)(arg1)->GetStyle(); | |
1659 | ||
1660 | wxPyEndAllowThreads(__tstate); | |
1661 | if (PyErr_Occurred()) SWIG_fail; | |
1662 | } | |
994141e6 | 1663 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1664 | return resultobj; |
1665 | fail: | |
1666 | return NULL; | |
1667 | } | |
1668 | ||
1669 | ||
1670 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1671 | PyObject *resultobj; | |
1672 | wxPen *arg1 = (wxPen *) 0 ; | |
1673 | int result; | |
1674 | PyObject * obj0 = 0 ; | |
1675 | char *kwnames[] = { | |
1676 | (char *) "self", NULL | |
1677 | }; | |
1678 | ||
1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1681 | { | |
1682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1683 | result = (int)(arg1)->GetWidth(); | |
1684 | ||
1685 | wxPyEndAllowThreads(__tstate); | |
1686 | if (PyErr_Occurred()) SWIG_fail; | |
1687 | } | |
994141e6 | 1688 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1689 | return resultobj; |
1690 | fail: | |
1691 | return NULL; | |
1692 | } | |
1693 | ||
1694 | ||
1695 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject *resultobj; | |
1697 | wxPen *arg1 = (wxPen *) 0 ; | |
1698 | bool result; | |
1699 | PyObject * obj0 = 0 ; | |
1700 | char *kwnames[] = { | |
1701 | (char *) "self", NULL | |
1702 | }; | |
1703 | ||
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1706 | { | |
1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1708 | result = (bool)(arg1)->Ok(); | |
1709 | ||
1710 | wxPyEndAllowThreads(__tstate); | |
1711 | if (PyErr_Occurred()) SWIG_fail; | |
1712 | } | |
994141e6 | 1713 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1714 | return resultobj; |
1715 | fail: | |
1716 | return NULL; | |
1717 | } | |
1718 | ||
1719 | ||
1720 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1721 | PyObject *resultobj; | |
1722 | wxPen *arg1 = (wxPen *) 0 ; | |
1723 | int arg2 ; | |
1724 | PyObject * obj0 = 0 ; | |
994141e6 | 1725 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1726 | char *kwnames[] = { |
1727 | (char *) "self",(char *) "cap_style", NULL | |
1728 | }; | |
1729 | ||
994141e6 | 1730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1732 | { |
1733 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1734 | if (PyErr_Occurred()) SWIG_fail; | |
1735 | } | |
d14a1e28 RD |
1736 | { |
1737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1738 | (arg1)->SetCap(arg2); | |
1739 | ||
1740 | wxPyEndAllowThreads(__tstate); | |
1741 | if (PyErr_Occurred()) SWIG_fail; | |
1742 | } | |
1743 | Py_INCREF(Py_None); resultobj = Py_None; | |
1744 | return resultobj; | |
1745 | fail: | |
1746 | return NULL; | |
1747 | } | |
1748 | ||
1749 | ||
1750 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1751 | PyObject *resultobj; | |
1752 | wxPen *arg1 = (wxPen *) 0 ; | |
1753 | wxColour *arg2 = 0 ; | |
1754 | wxColour temp2 ; | |
1755 | PyObject * obj0 = 0 ; | |
1756 | PyObject * obj1 = 0 ; | |
1757 | char *kwnames[] = { | |
1758 | (char *) "self",(char *) "colour", NULL | |
1759 | }; | |
1760 | ||
1761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1763 | { | |
1764 | arg2 = &temp2; | |
1765 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1766 | } | |
1767 | { | |
1768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1769 | (arg1)->SetColour(*arg2); | |
1770 | ||
1771 | wxPyEndAllowThreads(__tstate); | |
1772 | if (PyErr_Occurred()) SWIG_fail; | |
1773 | } | |
1774 | Py_INCREF(Py_None); resultobj = Py_None; | |
1775 | return resultobj; | |
1776 | fail: | |
1777 | return NULL; | |
1778 | } | |
1779 | ||
1780 | ||
1781 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1782 | PyObject *resultobj; | |
1783 | wxPen *arg1 = (wxPen *) 0 ; | |
1784 | int arg2 ; | |
1785 | PyObject * obj0 = 0 ; | |
994141e6 | 1786 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1787 | char *kwnames[] = { |
1788 | (char *) "self",(char *) "join_style", NULL | |
1789 | }; | |
1790 | ||
994141e6 | 1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1793 | { |
1794 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1795 | if (PyErr_Occurred()) SWIG_fail; | |
1796 | } | |
d14a1e28 RD |
1797 | { |
1798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1799 | (arg1)->SetJoin(arg2); | |
1800 | ||
1801 | wxPyEndAllowThreads(__tstate); | |
1802 | if (PyErr_Occurred()) SWIG_fail; | |
1803 | } | |
1804 | Py_INCREF(Py_None); resultobj = Py_None; | |
1805 | return resultobj; | |
1806 | fail: | |
1807 | return NULL; | |
1808 | } | |
1809 | ||
1810 | ||
1811 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject *resultobj; | |
1813 | wxPen *arg1 = (wxPen *) 0 ; | |
1814 | int arg2 ; | |
1815 | PyObject * obj0 = 0 ; | |
994141e6 | 1816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1817 | char *kwnames[] = { |
1818 | (char *) "self",(char *) "style", NULL | |
1819 | }; | |
1820 | ||
994141e6 | 1821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1823 | { |
1824 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1825 | if (PyErr_Occurred()) SWIG_fail; | |
1826 | } | |
d14a1e28 RD |
1827 | { |
1828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1829 | (arg1)->SetStyle(arg2); | |
1830 | ||
1831 | wxPyEndAllowThreads(__tstate); | |
1832 | if (PyErr_Occurred()) SWIG_fail; | |
1833 | } | |
1834 | Py_INCREF(Py_None); resultobj = Py_None; | |
1835 | return resultobj; | |
1836 | fail: | |
1837 | return NULL; | |
1838 | } | |
1839 | ||
1840 | ||
1841 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1842 | PyObject *resultobj; | |
1843 | wxPen *arg1 = (wxPen *) 0 ; | |
1844 | int arg2 ; | |
1845 | PyObject * obj0 = 0 ; | |
994141e6 | 1846 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1847 | char *kwnames[] = { |
1848 | (char *) "self",(char *) "width", NULL | |
1849 | }; | |
1850 | ||
994141e6 | 1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1853 | { |
1854 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
d14a1e28 RD |
1857 | { |
1858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1859 | (arg1)->SetWidth(arg2); | |
1860 | ||
1861 | wxPyEndAllowThreads(__tstate); | |
1862 | if (PyErr_Occurred()) SWIG_fail; | |
1863 | } | |
1864 | Py_INCREF(Py_None); resultobj = Py_None; | |
1865 | return resultobj; | |
1866 | fail: | |
1867 | return NULL; | |
1868 | } | |
1869 | ||
1870 | ||
1871 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1872 | PyObject *resultobj; | |
1873 | wxPen *arg1 = (wxPen *) 0 ; | |
1874 | int arg2 ; | |
1875 | wxDash *arg3 = (wxDash *) 0 ; | |
1876 | PyObject * obj0 = 0 ; | |
1877 | PyObject * obj1 = 0 ; | |
1878 | char *kwnames[] = { | |
1879 | (char *) "self",(char *) "dashes", NULL | |
1880 | }; | |
1881 | ||
1882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1884 | { | |
1885 | arg2 = PyList_Size(obj1); | |
1886 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1887 | if (arg3 == NULL) SWIG_fail; | |
1888 | } | |
1889 | { | |
1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1891 | (arg1)->SetDashes(arg2,arg3); | |
1892 | ||
1893 | wxPyEndAllowThreads(__tstate); | |
1894 | if (PyErr_Occurred()) SWIG_fail; | |
1895 | } | |
1896 | Py_INCREF(Py_None); resultobj = Py_None; | |
1897 | { | |
1898 | if (arg3) delete [] arg3; | |
1899 | } | |
1900 | return resultobj; | |
1901 | fail: | |
1902 | { | |
1903 | if (arg3) delete [] arg3; | |
1904 | } | |
1905 | return NULL; | |
1906 | } | |
1907 | ||
1908 | ||
1909 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1910 | PyObject *resultobj; | |
1911 | wxPen *arg1 = (wxPen *) 0 ; | |
1912 | PyObject *result; | |
1913 | PyObject * obj0 = 0 ; | |
1914 | char *kwnames[] = { | |
1915 | (char *) "self", NULL | |
1916 | }; | |
1917 | ||
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1920 | { | |
1921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1922 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1923 | ||
1924 | wxPyEndAllowThreads(__tstate); | |
1925 | if (PyErr_Occurred()) SWIG_fail; | |
1926 | } | |
1927 | resultobj = result; | |
1928 | return resultobj; | |
1929 | fail: | |
1930 | return NULL; | |
1931 | } | |
1932 | ||
1933 | ||
c9c7117a RD |
1934 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
1935 | PyObject *resultobj; | |
1936 | wxPen *arg1 = (wxPen *) 0 ; | |
1937 | int result; | |
1938 | PyObject * obj0 = 0 ; | |
1939 | char *kwnames[] = { | |
1940 | (char *) "self", NULL | |
1941 | }; | |
1942 | ||
1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
1944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1945 | { | |
1946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1947 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
1948 | ||
1949 | wxPyEndAllowThreads(__tstate); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | } | |
994141e6 | 1952 | resultobj = SWIG_PyObj_FromInt((int)result); |
c9c7117a RD |
1953 | return resultobj; |
1954 | fail: | |
1955 | return NULL; | |
1956 | } | |
1957 | ||
1958 | ||
d14a1e28 RD |
1959 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
1960 | PyObject *obj; | |
1961 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1962 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
1963 | Py_INCREF(obj); | |
1964 | return Py_BuildValue((char *)""); | |
1965 | } | |
1966 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1967 | PyObject *resultobj; | |
1968 | wxColour *arg1 = 0 ; | |
1969 | int arg2 = (int) 1 ; | |
1970 | int arg3 = (int) wxSOLID ; | |
1971 | wxPyPen *result; | |
1972 | wxColour temp1 ; | |
1973 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1974 | PyObject * obj1 = 0 ; |
1975 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1976 | char *kwnames[] = { |
1977 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1978 | }; | |
1979 | ||
994141e6 | 1980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1981 | { |
1982 | arg1 = &temp1; | |
1983 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1984 | } | |
994141e6 RD |
1985 | if (obj1) { |
1986 | { | |
1987 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1988 | if (PyErr_Occurred()) SWIG_fail; | |
1989 | } | |
1990 | } | |
1991 | if (obj2) { | |
1992 | { | |
1993 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1994 | if (PyErr_Occurred()) SWIG_fail; | |
1995 | } | |
1996 | } | |
d14a1e28 RD |
1997 | { |
1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1999 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2000 | ||
2001 | wxPyEndAllowThreads(__tstate); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | } | |
2004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
2005 | return resultobj; | |
2006 | fail: | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2012 | PyObject *resultobj; | |
2013 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2014 | PyObject * obj0 = 0 ; | |
2015 | char *kwnames[] = { | |
2016 | (char *) "self", NULL | |
2017 | }; | |
2018 | ||
2019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2021 | { | |
2022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2023 | delete arg1; | |
2024 | ||
2025 | wxPyEndAllowThreads(__tstate); | |
2026 | if (PyErr_Occurred()) SWIG_fail; | |
2027 | } | |
2028 | Py_INCREF(Py_None); resultobj = Py_None; | |
2029 | return resultobj; | |
2030 | fail: | |
2031 | return NULL; | |
2032 | } | |
2033 | ||
2034 | ||
2035 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2036 | PyObject *resultobj; | |
2037 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2038 | int arg2 ; | |
2039 | wxDash *arg3 = (wxDash *) 0 ; | |
2040 | PyObject * obj0 = 0 ; | |
2041 | PyObject * obj1 = 0 ; | |
2042 | char *kwnames[] = { | |
2043 | (char *) "self",(char *) "dashes", NULL | |
2044 | }; | |
2045 | ||
2046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2048 | { | |
2049 | arg2 = PyList_Size(obj1); | |
2050 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2051 | if (arg3 == NULL) SWIG_fail; | |
2052 | } | |
2053 | { | |
2054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2055 | (arg1)->SetDashes(arg2,arg3); | |
2056 | ||
2057 | wxPyEndAllowThreads(__tstate); | |
2058 | if (PyErr_Occurred()) SWIG_fail; | |
2059 | } | |
2060 | Py_INCREF(Py_None); resultobj = Py_None; | |
2061 | { | |
2062 | if (arg3) delete [] arg3; | |
2063 | } | |
2064 | return resultobj; | |
2065 | fail: | |
2066 | { | |
2067 | if (arg3) delete [] arg3; | |
2068 | } | |
2069 | return NULL; | |
2070 | } | |
2071 | ||
2072 | ||
2073 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2074 | PyObject *obj; | |
2075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2076 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2077 | Py_INCREF(obj); | |
2078 | return Py_BuildValue((char *)""); | |
2079 | } | |
2080 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject *resultobj; | |
2082 | wxColour *arg1 = 0 ; | |
2083 | int arg2 = (int) wxSOLID ; | |
2084 | wxBrush *result; | |
2085 | wxColour temp1 ; | |
2086 | PyObject * obj0 = 0 ; | |
994141e6 | 2087 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2088 | char *kwnames[] = { |
2089 | (char *) "colour",(char *) "style", NULL | |
2090 | }; | |
2091 | ||
994141e6 | 2092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2093 | { |
2094 | arg1 = &temp1; | |
2095 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2096 | } | |
994141e6 RD |
2097 | if (obj1) { |
2098 | { | |
2099 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2100 | if (PyErr_Occurred()) SWIG_fail; | |
2101 | } | |
2102 | } | |
d14a1e28 RD |
2103 | { |
2104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2105 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2106 | ||
2107 | wxPyEndAllowThreads(__tstate); | |
2108 | if (PyErr_Occurred()) SWIG_fail; | |
2109 | } | |
2110 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
2111 | return resultobj; | |
2112 | fail: | |
2113 | return NULL; | |
2114 | } | |
2115 | ||
2116 | ||
2117 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2118 | PyObject *resultobj; | |
2119 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2120 | PyObject * obj0 = 0 ; | |
2121 | char *kwnames[] = { | |
2122 | (char *) "self", NULL | |
2123 | }; | |
2124 | ||
2125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | delete arg1; | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) SWIG_fail; | |
2133 | } | |
2134 | Py_INCREF(Py_None); resultobj = Py_None; | |
2135 | return resultobj; | |
2136 | fail: | |
2137 | return NULL; | |
2138 | } | |
2139 | ||
2140 | ||
2141 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject *resultobj; | |
2143 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2144 | wxColour *arg2 = 0 ; | |
2145 | wxColour temp2 ; | |
2146 | PyObject * obj0 = 0 ; | |
2147 | PyObject * obj1 = 0 ; | |
2148 | char *kwnames[] = { | |
2149 | (char *) "self",(char *) "col", NULL | |
2150 | }; | |
2151 | ||
2152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2154 | { | |
2155 | arg2 = &temp2; | |
2156 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2157 | } | |
2158 | { | |
2159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2160 | (arg1)->SetColour((wxColour const &)*arg2); | |
2161 | ||
2162 | wxPyEndAllowThreads(__tstate); | |
2163 | if (PyErr_Occurred()) SWIG_fail; | |
2164 | } | |
2165 | Py_INCREF(Py_None); resultobj = Py_None; | |
2166 | return resultobj; | |
2167 | fail: | |
2168 | return NULL; | |
2169 | } | |
2170 | ||
2171 | ||
2172 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2173 | PyObject *resultobj; | |
2174 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2175 | int arg2 ; | |
2176 | PyObject * obj0 = 0 ; | |
994141e6 | 2177 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2178 | char *kwnames[] = { |
2179 | (char *) "self",(char *) "style", NULL | |
2180 | }; | |
2181 | ||
994141e6 | 2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2184 | { |
2185 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2186 | if (PyErr_Occurred()) SWIG_fail; | |
2187 | } | |
d14a1e28 RD |
2188 | { |
2189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2190 | (arg1)->SetStyle(arg2); | |
2191 | ||
2192 | wxPyEndAllowThreads(__tstate); | |
2193 | if (PyErr_Occurred()) SWIG_fail; | |
2194 | } | |
2195 | Py_INCREF(Py_None); resultobj = Py_None; | |
2196 | return resultobj; | |
2197 | fail: | |
2198 | return NULL; | |
2199 | } | |
2200 | ||
2201 | ||
2202 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2203 | PyObject *resultobj; | |
2204 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2205 | wxBitmap *arg2 = 0 ; | |
2206 | PyObject * obj0 = 0 ; | |
2207 | PyObject * obj1 = 0 ; | |
2208 | char *kwnames[] = { | |
2209 | (char *) "self",(char *) "stipple", NULL | |
2210 | }; | |
2211 | ||
2212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2215 | if (arg2 == NULL) { | |
2216 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2217 | } | |
2218 | { | |
2219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2220 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2221 | ||
2222 | wxPyEndAllowThreads(__tstate); | |
2223 | if (PyErr_Occurred()) SWIG_fail; | |
2224 | } | |
2225 | Py_INCREF(Py_None); resultobj = Py_None; | |
2226 | return resultobj; | |
2227 | fail: | |
2228 | return NULL; | |
2229 | } | |
2230 | ||
2231 | ||
2232 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2233 | PyObject *resultobj; | |
2234 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2235 | wxColour result; | |
2236 | PyObject * obj0 = 0 ; | |
2237 | char *kwnames[] = { | |
2238 | (char *) "self", NULL | |
2239 | }; | |
2240 | ||
2241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2243 | { | |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | result = ((wxBrush const *)arg1)->GetColour(); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
2250 | { | |
2251 | wxColour * resultptr; | |
2252 | resultptr = new wxColour((wxColour &) result); | |
2253 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2254 | } | |
2255 | return resultobj; | |
2256 | fail: | |
2257 | return NULL; | |
2258 | } | |
2259 | ||
2260 | ||
2261 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2262 | PyObject *resultobj; | |
2263 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2264 | int result; | |
2265 | PyObject * obj0 = 0 ; | |
2266 | char *kwnames[] = { | |
2267 | (char *) "self", NULL | |
2268 | }; | |
2269 | ||
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2272 | { | |
2273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2274 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2275 | ||
2276 | wxPyEndAllowThreads(__tstate); | |
2277 | if (PyErr_Occurred()) SWIG_fail; | |
2278 | } | |
994141e6 | 2279 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2280 | return resultobj; |
2281 | fail: | |
2282 | return NULL; | |
2283 | } | |
2284 | ||
2285 | ||
2286 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject *resultobj; | |
2288 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2289 | wxBitmap *result; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | char *kwnames[] = { | |
2292 | (char *) "self", NULL | |
2293 | }; | |
2294 | ||
2295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2297 | { | |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2314 | bool result; | |
2315 | PyObject * obj0 = 0 ; | |
2316 | char *kwnames[] = { | |
2317 | (char *) "self", NULL | |
2318 | }; | |
2319 | ||
2320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2322 | { | |
2323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2324 | result = (bool)(arg1)->Ok(); | |
2325 | ||
2326 | wxPyEndAllowThreads(__tstate); | |
2327 | if (PyErr_Occurred()) SWIG_fail; | |
2328 | } | |
994141e6 | 2329 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2330 | return resultobj; |
2331 | fail: | |
2332 | return NULL; | |
2333 | } | |
2334 | ||
2335 | ||
2336 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2337 | PyObject *obj; | |
2338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2339 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2340 | Py_INCREF(obj); | |
2341 | return Py_BuildValue((char *)""); | |
2342 | } | |
2343 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2344 | PyObject *resultobj; | |
2345 | wxString *arg1 = 0 ; | |
2346 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2347 | wxBitmap *result; | |
e811c8ce | 2348 | bool temp1 = False ; |
d14a1e28 | 2349 | PyObject * obj0 = 0 ; |
994141e6 | 2350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2351 | char *kwnames[] = { |
2352 | (char *) "name",(char *) "type", NULL | |
2353 | }; | |
2354 | ||
994141e6 | 2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2356 | { |
2357 | arg1 = wxString_in_helper(obj0); | |
2358 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2359 | temp1 = True; |
d14a1e28 | 2360 | } |
994141e6 RD |
2361 | if (obj1) { |
2362 | { | |
2363 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); | |
2364 | if (PyErr_Occurred()) SWIG_fail; | |
2365 | } | |
2366 | } | |
d14a1e28 RD |
2367 | { |
2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2369 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2370 | ||
2371 | wxPyEndAllowThreads(__tstate); | |
2372 | if (PyErr_Occurred()) SWIG_fail; | |
2373 | } | |
2374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2375 | { | |
2376 | if (temp1) | |
2377 | delete arg1; | |
2378 | } | |
2379 | return resultobj; | |
2380 | fail: | |
2381 | { | |
2382 | if (temp1) | |
2383 | delete arg1; | |
2384 | } | |
2385 | return NULL; | |
2386 | } | |
2387 | ||
2388 | ||
2389 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2390 | PyObject *resultobj; | |
2391 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2392 | PyObject * obj0 = 0 ; | |
2393 | char *kwnames[] = { | |
2394 | (char *) "self", NULL | |
2395 | }; | |
2396 | ||
2397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2399 | { | |
2400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2401 | delete arg1; | |
2402 | ||
2403 | wxPyEndAllowThreads(__tstate); | |
2404 | if (PyErr_Occurred()) SWIG_fail; | |
2405 | } | |
2406 | Py_INCREF(Py_None); resultobj = Py_None; | |
2407 | return resultobj; | |
2408 | fail: | |
2409 | return NULL; | |
2410 | } | |
2411 | ||
2412 | ||
2413 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2414 | PyObject *resultobj; | |
2415 | int arg1 ; | |
2416 | int arg2 ; | |
2417 | int arg3 = (int) -1 ; | |
2418 | wxBitmap *result; | |
994141e6 RD |
2419 | PyObject * obj0 = 0 ; |
2420 | PyObject * obj1 = 0 ; | |
2421 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2422 | char *kwnames[] = { |
2423 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2424 | }; | |
2425 | ||
994141e6 RD |
2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2427 | { | |
2428 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2429 | if (PyErr_Occurred()) SWIG_fail; | |
2430 | } | |
2431 | { | |
2432 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2433 | if (PyErr_Occurred()) SWIG_fail; | |
2434 | } | |
2435 | if (obj2) { | |
2436 | { | |
2437 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2438 | if (PyErr_Occurred()) SWIG_fail; | |
2439 | } | |
2440 | } | |
d14a1e28 RD |
2441 | { |
2442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2443 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2444 | ||
2445 | wxPyEndAllowThreads(__tstate); | |
2446 | if (PyErr_Occurred()) SWIG_fail; | |
2447 | } | |
2448 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2449 | return resultobj; | |
2450 | fail: | |
2451 | return NULL; | |
2452 | } | |
2453 | ||
2454 | ||
2455 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2456 | PyObject *resultobj; | |
2457 | wxIcon *arg1 = 0 ; | |
2458 | wxBitmap *result; | |
2459 | PyObject * obj0 = 0 ; | |
2460 | char *kwnames[] = { | |
2461 | (char *) "icon", NULL | |
2462 | }; | |
2463 | ||
2464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2466 | if (arg1 == NULL) { | |
2467 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2468 | } | |
2469 | { | |
2470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2471 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2472 | ||
2473 | wxPyEndAllowThreads(__tstate); | |
2474 | if (PyErr_Occurred()) SWIG_fail; | |
2475 | } | |
2476 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2477 | return resultobj; | |
2478 | fail: | |
2479 | return NULL; | |
2480 | } | |
2481 | ||
2482 | ||
2483 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2484 | PyObject *resultobj; | |
2485 | wxImage *arg1 = 0 ; | |
2486 | int arg2 = (int) -1 ; | |
2487 | wxBitmap *result; | |
2488 | PyObject * obj0 = 0 ; | |
994141e6 | 2489 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2490 | char *kwnames[] = { |
2491 | (char *) "image",(char *) "depth", NULL | |
2492 | }; | |
2493 | ||
994141e6 | 2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2496 | if (arg1 == NULL) { | |
2497 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2498 | } | |
994141e6 RD |
2499 | if (obj1) { |
2500 | { | |
2501 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2502 | if (PyErr_Occurred()) SWIG_fail; | |
2503 | } | |
2504 | } | |
d14a1e28 RD |
2505 | { |
2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2507 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2508 | ||
2509 | wxPyEndAllowThreads(__tstate); | |
2510 | if (PyErr_Occurred()) SWIG_fail; | |
2511 | } | |
2512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2513 | return resultobj; | |
2514 | fail: | |
2515 | return NULL; | |
2516 | } | |
2517 | ||
2518 | ||
2519 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2520 | PyObject *resultobj; | |
2521 | PyObject *arg1 = (PyObject *) 0 ; | |
2522 | wxBitmap *result; | |
2523 | PyObject * obj0 = 0 ; | |
2524 | char *kwnames[] = { | |
2525 | (char *) "listOfStrings", NULL | |
2526 | }; | |
2527 | ||
2528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2529 | arg1 = obj0; | |
2530 | { | |
2531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2532 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2533 | ||
2534 | wxPyEndAllowThreads(__tstate); | |
2535 | if (PyErr_Occurred()) SWIG_fail; | |
2536 | } | |
2537 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2538 | return resultobj; | |
2539 | fail: | |
2540 | return NULL; | |
2541 | } | |
2542 | ||
2543 | ||
2544 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2545 | PyObject *resultobj; | |
2546 | PyObject *arg1 = (PyObject *) 0 ; | |
2547 | int arg2 ; | |
2548 | int arg3 ; | |
2549 | int arg4 = (int) 1 ; | |
2550 | wxBitmap *result; | |
2551 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2552 | PyObject * obj1 = 0 ; |
2553 | PyObject * obj2 = 0 ; | |
2554 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2555 | char *kwnames[] = { |
2556 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2557 | }; | |
2558 | ||
994141e6 | 2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2560 | arg1 = obj0; |
994141e6 RD |
2561 | { |
2562 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2563 | if (PyErr_Occurred()) SWIG_fail; | |
2564 | } | |
2565 | { | |
2566 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2567 | if (PyErr_Occurred()) SWIG_fail; | |
2568 | } | |
2569 | if (obj3) { | |
2570 | { | |
2571 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2572 | if (PyErr_Occurred()) SWIG_fail; | |
2573 | } | |
2574 | } | |
d14a1e28 RD |
2575 | { |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2577 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2578 | ||
2579 | wxPyEndAllowThreads(__tstate); | |
2580 | if (PyErr_Occurred()) SWIG_fail; | |
2581 | } | |
2582 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2583 | return resultobj; | |
2584 | fail: | |
2585 | return NULL; | |
2586 | } | |
2587 | ||
2588 | ||
2589 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2590 | PyObject *resultobj; | |
2591 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2592 | bool result; | |
2593 | PyObject * obj0 = 0 ; | |
2594 | char *kwnames[] = { | |
2595 | (char *) "self", NULL | |
2596 | }; | |
2597 | ||
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2600 | { | |
2601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2602 | result = (bool)(arg1)->Ok(); | |
2603 | ||
2604 | wxPyEndAllowThreads(__tstate); | |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
2606 | } | |
994141e6 | 2607 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2608 | return resultobj; |
2609 | fail: | |
2610 | return NULL; | |
2611 | } | |
2612 | ||
2613 | ||
2614 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2615 | PyObject *resultobj; | |
2616 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2617 | int result; | |
2618 | PyObject * obj0 = 0 ; | |
2619 | char *kwnames[] = { | |
2620 | (char *) "self", NULL | |
2621 | }; | |
2622 | ||
2623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2625 | { | |
2626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2627 | result = (int)(arg1)->GetWidth(); | |
2628 | ||
2629 | wxPyEndAllowThreads(__tstate); | |
2630 | if (PyErr_Occurred()) SWIG_fail; | |
2631 | } | |
994141e6 | 2632 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2633 | return resultobj; |
2634 | fail: | |
2635 | return NULL; | |
2636 | } | |
2637 | ||
2638 | ||
2639 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2640 | PyObject *resultobj; | |
2641 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2642 | int result; | |
2643 | PyObject * obj0 = 0 ; | |
2644 | char *kwnames[] = { | |
2645 | (char *) "self", NULL | |
2646 | }; | |
2647 | ||
2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2650 | { | |
2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2652 | result = (int)(arg1)->GetHeight(); | |
2653 | ||
2654 | wxPyEndAllowThreads(__tstate); | |
2655 | if (PyErr_Occurred()) SWIG_fail; | |
2656 | } | |
994141e6 | 2657 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2658 | return resultobj; |
2659 | fail: | |
2660 | return NULL; | |
2661 | } | |
2662 | ||
2663 | ||
2664 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject *resultobj; | |
2666 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2667 | int result; | |
2668 | PyObject * obj0 = 0 ; | |
2669 | char *kwnames[] = { | |
2670 | (char *) "self", NULL | |
2671 | }; | |
2672 | ||
2673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2675 | { | |
2676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2677 | result = (int)(arg1)->GetDepth(); | |
2678 | ||
2679 | wxPyEndAllowThreads(__tstate); | |
2680 | if (PyErr_Occurred()) SWIG_fail; | |
2681 | } | |
994141e6 | 2682 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2683 | return resultobj; |
2684 | fail: | |
2685 | return NULL; | |
2686 | } | |
2687 | ||
2688 | ||
2689 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2690 | PyObject *resultobj; | |
2691 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2692 | SwigValueWrapper< wxImage > result; | |
2693 | PyObject * obj0 = 0 ; | |
2694 | char *kwnames[] = { | |
2695 | (char *) "self", NULL | |
2696 | }; | |
2697 | ||
2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2700 | { | |
2701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2702 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2703 | ||
2704 | wxPyEndAllowThreads(__tstate); | |
2705 | if (PyErr_Occurred()) SWIG_fail; | |
2706 | } | |
2707 | { | |
2708 | wxImage * resultptr; | |
2709 | resultptr = new wxImage((wxImage &) result); | |
2710 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2711 | } | |
2712 | return resultobj; | |
2713 | fail: | |
2714 | return NULL; | |
2715 | } | |
2716 | ||
2717 | ||
2718 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2719 | PyObject *resultobj; | |
2720 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2721 | wxMask *result; | |
2722 | PyObject * obj0 = 0 ; | |
2723 | char *kwnames[] = { | |
2724 | (char *) "self", NULL | |
2725 | }; | |
2726 | ||
2727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2729 | { | |
2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2731 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2732 | ||
2733 | wxPyEndAllowThreads(__tstate); | |
2734 | if (PyErr_Occurred()) SWIG_fail; | |
2735 | } | |
2736 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2737 | return resultobj; | |
2738 | fail: | |
2739 | return NULL; | |
2740 | } | |
2741 | ||
2742 | ||
2743 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2744 | PyObject *resultobj; | |
2745 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2746 | wxMask *arg2 = (wxMask *) 0 ; | |
2747 | PyObject * obj0 = 0 ; | |
2748 | PyObject * obj1 = 0 ; | |
2749 | char *kwnames[] = { | |
2750 | (char *) "self",(char *) "mask", NULL | |
2751 | }; | |
2752 | ||
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2755 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2756 | { | |
2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2758 | (arg1)->SetMask(arg2); | |
2759 | ||
2760 | wxPyEndAllowThreads(__tstate); | |
2761 | if (PyErr_Occurred()) SWIG_fail; | |
2762 | } | |
2763 | Py_INCREF(Py_None); resultobj = Py_None; | |
2764 | return resultobj; | |
2765 | fail: | |
2766 | return NULL; | |
2767 | } | |
2768 | ||
2769 | ||
2770 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2771 | PyObject *resultobj; | |
2772 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2773 | wxColour *arg2 = 0 ; | |
2774 | wxColour temp2 ; | |
2775 | PyObject * obj0 = 0 ; | |
2776 | PyObject * obj1 = 0 ; | |
2777 | char *kwnames[] = { | |
2778 | (char *) "self",(char *) "colour", NULL | |
2779 | }; | |
2780 | ||
2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2783 | { | |
2784 | arg2 = &temp2; | |
2785 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2786 | } | |
2787 | { | |
2788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2789 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2790 | ||
2791 | wxPyEndAllowThreads(__tstate); | |
2792 | if (PyErr_Occurred()) SWIG_fail; | |
2793 | } | |
2794 | Py_INCREF(Py_None); resultobj = Py_None; | |
2795 | return resultobj; | |
2796 | fail: | |
2797 | return NULL; | |
2798 | } | |
2799 | ||
2800 | ||
2801 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2802 | PyObject *resultobj; | |
2803 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2804 | wxRect *arg2 = 0 ; | |
2805 | SwigValueWrapper< wxBitmap > result; | |
2806 | wxRect temp2 ; | |
2807 | PyObject * obj0 = 0 ; | |
2808 | PyObject * obj1 = 0 ; | |
2809 | char *kwnames[] = { | |
2810 | (char *) "self",(char *) "rect", NULL | |
2811 | }; | |
2812 | ||
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2815 | { | |
2816 | arg2 = &temp2; | |
2817 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2818 | } | |
2819 | { | |
2820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2821 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2822 | ||
2823 | wxPyEndAllowThreads(__tstate); | |
2824 | if (PyErr_Occurred()) SWIG_fail; | |
2825 | } | |
2826 | { | |
2827 | wxBitmap * resultptr; | |
2828 | resultptr = new wxBitmap((wxBitmap &) result); | |
2829 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2830 | } | |
2831 | return resultobj; | |
2832 | fail: | |
2833 | return NULL; | |
2834 | } | |
2835 | ||
2836 | ||
2837 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2838 | PyObject *resultobj; | |
2839 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2840 | wxString *arg2 = 0 ; | |
2841 | int arg3 ; | |
2842 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2843 | bool result; | |
e811c8ce | 2844 | bool temp2 = False ; |
d14a1e28 RD |
2845 | PyObject * obj0 = 0 ; |
2846 | PyObject * obj1 = 0 ; | |
994141e6 | 2847 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2848 | PyObject * obj3 = 0 ; |
2849 | char *kwnames[] = { | |
2850 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2851 | }; | |
2852 | ||
994141e6 | 2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
2854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2855 | { | |
2856 | arg2 = wxString_in_helper(obj1); | |
2857 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2858 | temp2 = True; |
d14a1e28 | 2859 | } |
994141e6 RD |
2860 | { |
2861 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
2862 | if (PyErr_Occurred()) SWIG_fail; | |
2863 | } | |
d14a1e28 RD |
2864 | if (obj3) { |
2865 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2866 | } | |
2867 | { | |
2868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2869 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2870 | ||
2871 | wxPyEndAllowThreads(__tstate); | |
2872 | if (PyErr_Occurred()) SWIG_fail; | |
2873 | } | |
994141e6 | 2874 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2875 | { |
2876 | if (temp2) | |
2877 | delete arg2; | |
2878 | } | |
2879 | return resultobj; | |
2880 | fail: | |
2881 | { | |
2882 | if (temp2) | |
2883 | delete arg2; | |
2884 | } | |
2885 | return NULL; | |
2886 | } | |
2887 | ||
2888 | ||
2889 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2890 | PyObject *resultobj; | |
2891 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2892 | wxString *arg2 = 0 ; | |
2893 | int arg3 ; | |
2894 | bool result; | |
e811c8ce | 2895 | bool temp2 = False ; |
d14a1e28 RD |
2896 | PyObject * obj0 = 0 ; |
2897 | PyObject * obj1 = 0 ; | |
994141e6 | 2898 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2899 | char *kwnames[] = { |
2900 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2901 | }; | |
2902 | ||
994141e6 | 2903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2905 | { | |
2906 | arg2 = wxString_in_helper(obj1); | |
2907 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2908 | temp2 = True; |
d14a1e28 | 2909 | } |
994141e6 RD |
2910 | { |
2911 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
2912 | if (PyErr_Occurred()) SWIG_fail; | |
2913 | } | |
d14a1e28 RD |
2914 | { |
2915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2916 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2917 | ||
2918 | wxPyEndAllowThreads(__tstate); | |
2919 | if (PyErr_Occurred()) SWIG_fail; | |
2920 | } | |
994141e6 | 2921 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2922 | { |
2923 | if (temp2) | |
2924 | delete arg2; | |
2925 | } | |
2926 | return resultobj; | |
2927 | fail: | |
2928 | { | |
2929 | if (temp2) | |
2930 | delete arg2; | |
2931 | } | |
2932 | return NULL; | |
2933 | } | |
2934 | ||
2935 | ||
2936 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2937 | PyObject *resultobj; | |
2938 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2939 | wxIcon *arg2 = 0 ; | |
2940 | bool result; | |
2941 | PyObject * obj0 = 0 ; | |
2942 | PyObject * obj1 = 0 ; | |
2943 | char *kwnames[] = { | |
2944 | (char *) "self",(char *) "icon", NULL | |
2945 | }; | |
2946 | ||
2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2949 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2950 | if (arg2 == NULL) { | |
2951 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2952 | } | |
2953 | { | |
2954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2955 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2956 | ||
2957 | wxPyEndAllowThreads(__tstate); | |
2958 | if (PyErr_Occurred()) SWIG_fail; | |
2959 | } | |
994141e6 | 2960 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2961 | return resultobj; |
2962 | fail: | |
2963 | return NULL; | |
2964 | } | |
2965 | ||
2966 | ||
2967 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject *resultobj; | |
2969 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2970 | int arg2 ; | |
2971 | PyObject * obj0 = 0 ; | |
994141e6 | 2972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2973 | char *kwnames[] = { |
2974 | (char *) "self",(char *) "height", NULL | |
2975 | }; | |
2976 | ||
994141e6 | 2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2979 | { |
2980 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2981 | if (PyErr_Occurred()) SWIG_fail; | |
2982 | } | |
d14a1e28 RD |
2983 | { |
2984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2985 | (arg1)->SetHeight(arg2); | |
2986 | ||
2987 | wxPyEndAllowThreads(__tstate); | |
2988 | if (PyErr_Occurred()) SWIG_fail; | |
2989 | } | |
2990 | Py_INCREF(Py_None); resultobj = Py_None; | |
2991 | return resultobj; | |
2992 | fail: | |
2993 | return NULL; | |
2994 | } | |
2995 | ||
2996 | ||
2997 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2998 | PyObject *resultobj; | |
2999 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3000 | int arg2 ; | |
3001 | PyObject * obj0 = 0 ; | |
994141e6 | 3002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3003 | char *kwnames[] = { |
3004 | (char *) "self",(char *) "width", NULL | |
3005 | }; | |
3006 | ||
994141e6 | 3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3009 | { |
3010 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
d14a1e28 RD |
3013 | { |
3014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3015 | (arg1)->SetWidth(arg2); | |
3016 | ||
3017 | wxPyEndAllowThreads(__tstate); | |
3018 | if (PyErr_Occurred()) SWIG_fail; | |
3019 | } | |
3020 | Py_INCREF(Py_None); resultobj = Py_None; | |
3021 | return resultobj; | |
3022 | fail: | |
3023 | return NULL; | |
3024 | } | |
3025 | ||
3026 | ||
3027 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3028 | PyObject *resultobj; | |
3029 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3030 | int arg2 ; | |
3031 | PyObject * obj0 = 0 ; | |
994141e6 | 3032 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3033 | char *kwnames[] = { |
3034 | (char *) "self",(char *) "depth", NULL | |
3035 | }; | |
3036 | ||
994141e6 | 3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3039 | { |
3040 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3041 | if (PyErr_Occurred()) SWIG_fail; | |
3042 | } | |
d14a1e28 RD |
3043 | { |
3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3045 | (arg1)->SetDepth(arg2); | |
3046 | ||
3047 | wxPyEndAllowThreads(__tstate); | |
3048 | if (PyErr_Occurred()) SWIG_fail; | |
3049 | } | |
3050 | Py_INCREF(Py_None); resultobj = Py_None; | |
3051 | return resultobj; | |
3052 | fail: | |
3053 | return NULL; | |
3054 | } | |
3055 | ||
3056 | ||
3057 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3058 | PyObject *obj; | |
3059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3060 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3061 | Py_INCREF(obj); | |
3062 | return Py_BuildValue((char *)""); | |
3063 | } | |
3064 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3065 | PyObject *resultobj; | |
3066 | wxBitmap *arg1 = 0 ; | |
3067 | wxMask *result; | |
3068 | PyObject * obj0 = 0 ; | |
3069 | char *kwnames[] = { | |
3070 | (char *) "bitmap", NULL | |
3071 | }; | |
3072 | ||
3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
3074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3075 | if (arg1 == NULL) { | |
3076 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3077 | } | |
3078 | { | |
3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3080 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
3081 | ||
3082 | wxPyEndAllowThreads(__tstate); | |
3083 | if (PyErr_Occurred()) SWIG_fail; | |
3084 | } | |
3085 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3086 | return resultobj; | |
3087 | fail: | |
3088 | return NULL; | |
3089 | } | |
3090 | ||
3091 | ||
3092 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3093 | PyObject *resultobj; | |
3094 | wxBitmap *arg1 = 0 ; | |
3095 | wxColour *arg2 = 0 ; | |
3096 | wxMask *result; | |
3097 | wxColour temp2 ; | |
3098 | PyObject * obj0 = 0 ; | |
3099 | PyObject * obj1 = 0 ; | |
3100 | char *kwnames[] = { | |
3101 | (char *) "bitmap",(char *) "colour", NULL | |
3102 | }; | |
3103 | ||
3104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3106 | if (arg1 == NULL) { | |
3107 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3108 | } | |
3109 | { | |
3110 | arg2 = &temp2; | |
3111 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3112 | } | |
3113 | { | |
3114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3115 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3116 | ||
3117 | wxPyEndAllowThreads(__tstate); | |
3118 | if (PyErr_Occurred()) SWIG_fail; | |
3119 | } | |
3120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3121 | return resultobj; | |
3122 | fail: | |
3123 | return NULL; | |
3124 | } | |
3125 | ||
3126 | ||
3127 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3128 | PyObject *obj; | |
3129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3130 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3131 | Py_INCREF(obj); | |
3132 | return Py_BuildValue((char *)""); | |
3133 | } | |
3134 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3135 | PyObject *resultobj; | |
3136 | wxString *arg1 = 0 ; | |
f87da722 | 3137 | int arg2 ; |
d14a1e28 RD |
3138 | int arg3 = (int) -1 ; |
3139 | int arg4 = (int) -1 ; | |
3140 | wxIcon *result; | |
e811c8ce | 3141 | bool temp1 = False ; |
d14a1e28 | 3142 | PyObject * obj0 = 0 ; |
994141e6 RD |
3143 | PyObject * obj1 = 0 ; |
3144 | PyObject * obj2 = 0 ; | |
3145 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3146 | char *kwnames[] = { |
f87da722 | 3147 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3148 | }; |
3149 | ||
994141e6 | 3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3151 | { |
3152 | arg1 = wxString_in_helper(obj0); | |
3153 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3154 | temp1 = True; |
d14a1e28 RD |
3155 | } |
3156 | { | |
994141e6 RD |
3157 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); |
3158 | if (PyErr_Occurred()) SWIG_fail; | |
3159 | } | |
3160 | if (obj2) { | |
3161 | { | |
3162 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | } | |
3166 | if (obj3) { | |
3167 | { | |
3168 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3169 | if (PyErr_Occurred()) SWIG_fail; | |
3170 | } | |
3171 | } | |
3172 | { | |
3173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3174 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3175 | ||
3176 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
3177 | if (PyErr_Occurred()) SWIG_fail; |
3178 | } | |
3179 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3180 | { | |
3181 | if (temp1) | |
3182 | delete arg1; | |
3183 | } | |
3184 | return resultobj; | |
3185 | fail: | |
3186 | { | |
3187 | if (temp1) | |
3188 | delete arg1; | |
3189 | } | |
3190 | return NULL; | |
3191 | } | |
3192 | ||
3193 | ||
3194 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3195 | PyObject *resultobj; | |
3196 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3197 | PyObject * obj0 = 0 ; | |
3198 | char *kwnames[] = { | |
3199 | (char *) "self", NULL | |
3200 | }; | |
3201 | ||
3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3204 | { | |
3205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3206 | delete arg1; | |
3207 | ||
3208 | wxPyEndAllowThreads(__tstate); | |
3209 | if (PyErr_Occurred()) SWIG_fail; | |
3210 | } | |
3211 | Py_INCREF(Py_None); resultobj = Py_None; | |
3212 | return resultobj; | |
3213 | fail: | |
3214 | return NULL; | |
3215 | } | |
3216 | ||
3217 | ||
3218 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3219 | PyObject *resultobj; | |
3220 | wxIcon *result; | |
3221 | char *kwnames[] = { | |
3222 | NULL | |
3223 | }; | |
3224 | ||
3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3226 | { | |
3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3228 | result = (wxIcon *)new wxIcon(); | |
3229 | ||
3230 | wxPyEndAllowThreads(__tstate); | |
3231 | if (PyErr_Occurred()) SWIG_fail; | |
3232 | } | |
3233 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3234 | return resultobj; | |
3235 | fail: | |
3236 | return NULL; | |
3237 | } | |
3238 | ||
3239 | ||
3240 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject *resultobj; | |
3242 | wxIconLocation *arg1 = 0 ; | |
3243 | wxIcon *result; | |
3244 | PyObject * obj0 = 0 ; | |
3245 | char *kwnames[] = { | |
3246 | (char *) "loc", NULL | |
3247 | }; | |
3248 | ||
3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3251 | if (arg1 == NULL) { | |
3252 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3253 | } | |
3254 | { | |
3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3256 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3257 | ||
3258 | wxPyEndAllowThreads(__tstate); | |
3259 | if (PyErr_Occurred()) SWIG_fail; | |
3260 | } | |
3261 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3262 | return resultobj; | |
3263 | fail: | |
3264 | return NULL; | |
3265 | } | |
3266 | ||
3267 | ||
3268 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3269 | PyObject *resultobj; | |
3270 | wxBitmap *arg1 = 0 ; | |
3271 | wxIcon *result; | |
3272 | PyObject * obj0 = 0 ; | |
3273 | char *kwnames[] = { | |
3274 | (char *) "bmp", NULL | |
3275 | }; | |
3276 | ||
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3279 | if (arg1 == NULL) { | |
3280 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3281 | } | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | PyObject *arg1 = (PyObject *) 0 ; | |
3299 | wxIcon *result; | |
3300 | PyObject * obj0 = 0 ; | |
3301 | char *kwnames[] = { | |
3302 | (char *) "listOfStrings", NULL | |
3303 | }; | |
3304 | ||
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3306 | arg1 = obj0; | |
3307 | { | |
3308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3309 | result = (wxIcon *)new_wxIcon(arg1); | |
3310 | ||
3311 | wxPyEndAllowThreads(__tstate); | |
3312 | if (PyErr_Occurred()) SWIG_fail; | |
3313 | } | |
3314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3315 | return resultobj; | |
3316 | fail: | |
3317 | return NULL; | |
3318 | } | |
3319 | ||
3320 | ||
3321 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject *resultobj; | |
3323 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3324 | wxString *arg2 = 0 ; | |
f87da722 | 3325 | int arg3 ; |
d14a1e28 | 3326 | bool result; |
e811c8ce | 3327 | bool temp2 = False ; |
d14a1e28 RD |
3328 | PyObject * obj0 = 0 ; |
3329 | PyObject * obj1 = 0 ; | |
994141e6 | 3330 | PyObject * obj2 = 0 ; |
d14a1e28 | 3331 | char *kwnames[] = { |
f87da722 | 3332 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3333 | }; |
3334 | ||
994141e6 | 3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3337 | { | |
3338 | arg2 = wxString_in_helper(obj1); | |
3339 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3340 | temp2 = True; |
d14a1e28 | 3341 | } |
994141e6 RD |
3342 | { |
3343 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
d14a1e28 RD |
3346 | { |
3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3348 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3349 | |
3350 | wxPyEndAllowThreads(__tstate); | |
3351 | if (PyErr_Occurred()) SWIG_fail; | |
3352 | } | |
994141e6 | 3353 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
3354 | { |
3355 | if (temp2) | |
3356 | delete arg2; | |
3357 | } | |
3358 | return resultobj; | |
3359 | fail: | |
3360 | { | |
3361 | if (temp2) | |
3362 | delete arg2; | |
3363 | } | |
3364 | return NULL; | |
3365 | } | |
3366 | ||
3367 | ||
3368 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject *resultobj; | |
3370 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3371 | bool result; | |
3372 | PyObject * obj0 = 0 ; | |
3373 | char *kwnames[] = { | |
3374 | (char *) "self", NULL | |
3375 | }; | |
3376 | ||
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3379 | { | |
3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3381 | result = (bool)(arg1)->Ok(); | |
3382 | ||
3383 | wxPyEndAllowThreads(__tstate); | |
3384 | if (PyErr_Occurred()) SWIG_fail; | |
3385 | } | |
994141e6 | 3386 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
3387 | return resultobj; |
3388 | fail: | |
3389 | return NULL; | |
3390 | } | |
3391 | ||
3392 | ||
3393 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3394 | PyObject *resultobj; | |
3395 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3396 | int result; | |
3397 | PyObject * obj0 = 0 ; | |
3398 | char *kwnames[] = { | |
3399 | (char *) "self", NULL | |
3400 | }; | |
3401 | ||
3402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3404 | { | |
3405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3406 | result = (int)(arg1)->GetWidth(); | |
3407 | ||
3408 | wxPyEndAllowThreads(__tstate); | |
3409 | if (PyErr_Occurred()) SWIG_fail; | |
3410 | } | |
994141e6 | 3411 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3412 | return resultobj; |
3413 | fail: | |
3414 | return NULL; | |
3415 | } | |
3416 | ||
3417 | ||
3418 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3419 | PyObject *resultobj; | |
3420 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3421 | int result; | |
3422 | PyObject * obj0 = 0 ; | |
3423 | char *kwnames[] = { | |
3424 | (char *) "self", NULL | |
3425 | }; | |
3426 | ||
3427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3429 | { | |
3430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3431 | result = (int)(arg1)->GetHeight(); | |
3432 | ||
3433 | wxPyEndAllowThreads(__tstate); | |
3434 | if (PyErr_Occurred()) SWIG_fail; | |
3435 | } | |
994141e6 | 3436 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3437 | return resultobj; |
3438 | fail: | |
3439 | return NULL; | |
3440 | } | |
3441 | ||
3442 | ||
3443 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject *resultobj; | |
3445 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3446 | int result; | |
3447 | PyObject * obj0 = 0 ; | |
3448 | char *kwnames[] = { | |
3449 | (char *) "self", NULL | |
3450 | }; | |
3451 | ||
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3454 | { | |
3455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3456 | result = (int)(arg1)->GetDepth(); | |
3457 | ||
3458 | wxPyEndAllowThreads(__tstate); | |
3459 | if (PyErr_Occurred()) SWIG_fail; | |
3460 | } | |
994141e6 | 3461 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3462 | return resultobj; |
3463 | fail: | |
3464 | return NULL; | |
3465 | } | |
3466 | ||
3467 | ||
3468 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3469 | PyObject *resultobj; | |
3470 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3471 | int arg2 ; | |
3472 | PyObject * obj0 = 0 ; | |
994141e6 | 3473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3474 | char *kwnames[] = { |
3475 | (char *) "self",(char *) "w", NULL | |
3476 | }; | |
3477 | ||
994141e6 | 3478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3480 | { |
3481 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3482 | if (PyErr_Occurred()) SWIG_fail; | |
3483 | } | |
d14a1e28 RD |
3484 | { |
3485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3486 | (arg1)->SetWidth(arg2); | |
3487 | ||
3488 | wxPyEndAllowThreads(__tstate); | |
3489 | if (PyErr_Occurred()) SWIG_fail; | |
3490 | } | |
3491 | Py_INCREF(Py_None); resultobj = Py_None; | |
3492 | return resultobj; | |
3493 | fail: | |
3494 | return NULL; | |
3495 | } | |
3496 | ||
3497 | ||
3498 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3499 | PyObject *resultobj; | |
3500 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3501 | int arg2 ; | |
3502 | PyObject * obj0 = 0 ; | |
994141e6 | 3503 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3504 | char *kwnames[] = { |
3505 | (char *) "self",(char *) "h", NULL | |
3506 | }; | |
3507 | ||
994141e6 | 3508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3510 | { |
3511 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3512 | if (PyErr_Occurred()) SWIG_fail; | |
3513 | } | |
d14a1e28 RD |
3514 | { |
3515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3516 | (arg1)->SetHeight(arg2); | |
3517 | ||
3518 | wxPyEndAllowThreads(__tstate); | |
3519 | if (PyErr_Occurred()) SWIG_fail; | |
3520 | } | |
3521 | Py_INCREF(Py_None); resultobj = Py_None; | |
3522 | return resultobj; | |
3523 | fail: | |
3524 | return NULL; | |
3525 | } | |
3526 | ||
3527 | ||
3528 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3529 | PyObject *resultobj; | |
3530 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3531 | int arg2 ; | |
3532 | PyObject * obj0 = 0 ; | |
994141e6 | 3533 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3534 | char *kwnames[] = { |
3535 | (char *) "self",(char *) "d", NULL | |
3536 | }; | |
3537 | ||
994141e6 | 3538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3540 | { |
3541 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
3543 | } | |
d14a1e28 RD |
3544 | { |
3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3546 | (arg1)->SetDepth(arg2); | |
3547 | ||
3548 | wxPyEndAllowThreads(__tstate); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
3551 | Py_INCREF(Py_None); resultobj = Py_None; | |
3552 | return resultobj; | |
3553 | fail: | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
3558 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3559 | PyObject *resultobj; | |
3560 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3561 | wxBitmap *arg2 = 0 ; | |
3562 | PyObject * obj0 = 0 ; | |
3563 | PyObject * obj1 = 0 ; | |
3564 | char *kwnames[] = { | |
3565 | (char *) "self",(char *) "bmp", NULL | |
3566 | }; | |
3567 | ||
3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3570 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3571 | if (arg2 == NULL) { | |
3572 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3573 | } | |
3574 | { | |
3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3576 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3577 | ||
3578 | wxPyEndAllowThreads(__tstate); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
3581 | Py_INCREF(Py_None); resultobj = Py_None; | |
3582 | return resultobj; | |
3583 | fail: | |
3584 | return NULL; | |
3585 | } | |
3586 | ||
3587 | ||
3588 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3589 | PyObject *obj; | |
3590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3591 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3592 | Py_INCREF(obj); | |
3593 | return Py_BuildValue((char *)""); | |
3594 | } | |
3595 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3596 | PyObject *resultobj; | |
3597 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3598 | int arg2 = (int) 0 ; | |
3599 | wxIconLocation *result; | |
7eae615b | 3600 | bool temp1 = False ; |
d14a1e28 | 3601 | PyObject * obj0 = 0 ; |
994141e6 | 3602 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3603 | char *kwnames[] = { |
3604 | (char *) "filename",(char *) "num", NULL | |
3605 | }; | |
3606 | ||
994141e6 | 3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3608 | if (obj0) { |
7eae615b RD |
3609 | { |
3610 | arg1 = wxString_in_helper(obj0); | |
3611 | if (arg1 == NULL) SWIG_fail; | |
3612 | temp1 = True; | |
3613 | } | |
d14a1e28 | 3614 | } |
994141e6 RD |
3615 | if (obj1) { |
3616 | { | |
3617 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3618 | if (PyErr_Occurred()) SWIG_fail; | |
3619 | } | |
3620 | } | |
d14a1e28 RD |
3621 | { |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3624 | ||
3625 | wxPyEndAllowThreads(__tstate); | |
3626 | if (PyErr_Occurred()) SWIG_fail; | |
3627 | } | |
3628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
7eae615b RD |
3629 | { |
3630 | if (temp1) | |
3631 | delete arg1; | |
3632 | } | |
d14a1e28 RD |
3633 | return resultobj; |
3634 | fail: | |
7eae615b RD |
3635 | { |
3636 | if (temp1) | |
3637 | delete arg1; | |
3638 | } | |
d14a1e28 RD |
3639 | return NULL; |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject *resultobj; | |
3645 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3646 | PyObject * obj0 = 0 ; | |
3647 | char *kwnames[] = { | |
3648 | (char *) "self", NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | delete arg1; | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | Py_INCREF(Py_None); resultobj = Py_None; | |
3661 | return resultobj; | |
3662 | fail: | |
3663 | return NULL; | |
3664 | } | |
3665 | ||
3666 | ||
3667 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3668 | PyObject *resultobj; | |
3669 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3670 | bool result; | |
3671 | PyObject * obj0 = 0 ; | |
3672 | char *kwnames[] = { | |
3673 | (char *) "self", NULL | |
3674 | }; | |
3675 | ||
3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3678 | { | |
3679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3680 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3681 | ||
3682 | wxPyEndAllowThreads(__tstate); | |
3683 | if (PyErr_Occurred()) SWIG_fail; | |
3684 | } | |
994141e6 | 3685 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
3686 | return resultobj; |
3687 | fail: | |
3688 | return NULL; | |
3689 | } | |
3690 | ||
3691 | ||
3692 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3693 | PyObject *resultobj; | |
3694 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3695 | wxString *arg2 = 0 ; | |
e811c8ce | 3696 | bool temp2 = False ; |
d14a1e28 RD |
3697 | PyObject * obj0 = 0 ; |
3698 | PyObject * obj1 = 0 ; | |
3699 | char *kwnames[] = { | |
3700 | (char *) "self",(char *) "filename", NULL | |
3701 | }; | |
3702 | ||
3703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3705 | { | |
3706 | arg2 = wxString_in_helper(obj1); | |
3707 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3708 | temp2 = True; |
d14a1e28 RD |
3709 | } |
3710 | { | |
3711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3712 | (arg1)->SetFileName((wxString const &)*arg2); | |
3713 | ||
3714 | wxPyEndAllowThreads(__tstate); | |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
3716 | } | |
3717 | Py_INCREF(Py_None); resultobj = Py_None; | |
3718 | { | |
3719 | if (temp2) | |
3720 | delete arg2; | |
3721 | } | |
3722 | return resultobj; | |
3723 | fail: | |
3724 | { | |
3725 | if (temp2) | |
3726 | delete arg2; | |
3727 | } | |
3728 | return NULL; | |
3729 | } | |
3730 | ||
3731 | ||
3732 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3733 | PyObject *resultobj; | |
3734 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3735 | wxString *result; | |
3736 | PyObject * obj0 = 0 ; | |
3737 | char *kwnames[] = { | |
3738 | (char *) "self", NULL | |
3739 | }; | |
3740 | ||
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3743 | { | |
3744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3745 | { | |
3746 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3747 | result = (wxString *) &_result_ref; | |
3748 | } | |
3749 | ||
3750 | wxPyEndAllowThreads(__tstate); | |
3751 | if (PyErr_Occurred()) SWIG_fail; | |
3752 | } | |
cc6dd355 RD |
3753 | { |
3754 | #if wxUSE_UNICODE | |
3755 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3756 | #else | |
3757 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3758 | #endif | |
3759 | } | |
d14a1e28 RD |
3760 | return resultobj; |
3761 | fail: | |
3762 | return NULL; | |
3763 | } | |
3764 | ||
3765 | ||
3766 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3767 | PyObject *resultobj; | |
3768 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3769 | int arg2 ; | |
3770 | PyObject * obj0 = 0 ; | |
994141e6 | 3771 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3772 | char *kwnames[] = { |
3773 | (char *) "self",(char *) "num", NULL | |
3774 | }; | |
3775 | ||
994141e6 | 3776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3778 | { |
3779 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3780 | if (PyErr_Occurred()) SWIG_fail; | |
3781 | } | |
d14a1e28 RD |
3782 | { |
3783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3784 | wxIconLocation_SetIndex(arg1,arg2); | |
3785 | ||
3786 | wxPyEndAllowThreads(__tstate); | |
3787 | if (PyErr_Occurred()) SWIG_fail; | |
3788 | } | |
3789 | Py_INCREF(Py_None); resultobj = Py_None; | |
3790 | return resultobj; | |
3791 | fail: | |
3792 | return NULL; | |
3793 | } | |
3794 | ||
3795 | ||
3796 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3797 | PyObject *resultobj; | |
3798 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3799 | int result; | |
3800 | PyObject * obj0 = 0 ; | |
3801 | char *kwnames[] = { | |
3802 | (char *) "self", NULL | |
3803 | }; | |
3804 | ||
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3807 | { | |
3808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3809 | result = (int)wxIconLocation_GetIndex(arg1); | |
3810 | ||
3811 | wxPyEndAllowThreads(__tstate); | |
3812 | if (PyErr_Occurred()) SWIG_fail; | |
3813 | } | |
994141e6 | 3814 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3815 | return resultobj; |
3816 | fail: | |
3817 | return NULL; | |
3818 | } | |
3819 | ||
3820 | ||
3821 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3822 | PyObject *obj; | |
3823 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3824 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3825 | Py_INCREF(obj); | |
3826 | return Py_BuildValue((char *)""); | |
3827 | } | |
3828 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3829 | PyObject *resultobj; | |
3830 | wxIconBundle *result; | |
3831 | char *kwnames[] = { | |
3832 | NULL | |
3833 | }; | |
3834 | ||
3835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3836 | { | |
3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3838 | result = (wxIconBundle *)new wxIconBundle(); | |
3839 | ||
3840 | wxPyEndAllowThreads(__tstate); | |
3841 | if (PyErr_Occurred()) SWIG_fail; | |
3842 | } | |
3843 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3844 | return resultobj; | |
3845 | fail: | |
3846 | return NULL; | |
3847 | } | |
3848 | ||
3849 | ||
3850 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject *resultobj; | |
3852 | wxString *arg1 = 0 ; | |
3853 | long arg2 ; | |
3854 | wxIconBundle *result; | |
e811c8ce | 3855 | bool temp1 = False ; |
d14a1e28 | 3856 | PyObject * obj0 = 0 ; |
994141e6 | 3857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3858 | char *kwnames[] = { |
3859 | (char *) "file",(char *) "type", NULL | |
3860 | }; | |
3861 | ||
994141e6 | 3862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3863 | { |
3864 | arg1 = wxString_in_helper(obj0); | |
3865 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3866 | temp1 = True; |
d14a1e28 | 3867 | } |
994141e6 RD |
3868 | { |
3869 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3870 | if (PyErr_Occurred()) SWIG_fail; | |
3871 | } | |
d14a1e28 RD |
3872 | { |
3873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3874 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3875 | ||
3876 | wxPyEndAllowThreads(__tstate); | |
3877 | if (PyErr_Occurred()) SWIG_fail; | |
3878 | } | |
3879 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3880 | { | |
3881 | if (temp1) | |
3882 | delete arg1; | |
3883 | } | |
3884 | return resultobj; | |
3885 | fail: | |
3886 | { | |
3887 | if (temp1) | |
3888 | delete arg1; | |
3889 | } | |
3890 | return NULL; | |
3891 | } | |
3892 | ||
3893 | ||
3894 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject *resultobj; | |
3896 | wxIcon *arg1 = 0 ; | |
3897 | wxIconBundle *result; | |
3898 | PyObject * obj0 = 0 ; | |
3899 | char *kwnames[] = { | |
3900 | (char *) "icon", NULL | |
3901 | }; | |
3902 | ||
3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3905 | if (arg1 == NULL) { | |
3906 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3907 | } | |
3908 | { | |
3909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3910 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3911 | ||
3912 | wxPyEndAllowThreads(__tstate); | |
3913 | if (PyErr_Occurred()) SWIG_fail; | |
3914 | } | |
3915 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3916 | return resultobj; | |
3917 | fail: | |
3918 | return NULL; | |
3919 | } | |
3920 | ||
3921 | ||
3922 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3923 | PyObject *resultobj; | |
3924 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3925 | PyObject * obj0 = 0 ; | |
3926 | char *kwnames[] = { | |
3927 | (char *) "self", NULL | |
3928 | }; | |
3929 | ||
3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3932 | { | |
3933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3934 | delete arg1; | |
3935 | ||
3936 | wxPyEndAllowThreads(__tstate); | |
3937 | if (PyErr_Occurred()) SWIG_fail; | |
3938 | } | |
3939 | Py_INCREF(Py_None); resultobj = Py_None; | |
3940 | return resultobj; | |
3941 | fail: | |
3942 | return NULL; | |
3943 | } | |
3944 | ||
3945 | ||
3946 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject *resultobj; | |
3948 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3949 | wxIcon *arg2 = 0 ; | |
3950 | PyObject * obj0 = 0 ; | |
3951 | PyObject * obj1 = 0 ; | |
3952 | char *kwnames[] = { | |
3953 | (char *) "self",(char *) "icon", NULL | |
3954 | }; | |
3955 | ||
3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3958 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3959 | if (arg2 == NULL) { | |
3960 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3961 | } | |
3962 | { | |
3963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3964 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
3965 | ||
3966 | wxPyEndAllowThreads(__tstate); | |
3967 | if (PyErr_Occurred()) SWIG_fail; | |
3968 | } | |
3969 | Py_INCREF(Py_None); resultobj = Py_None; | |
3970 | return resultobj; | |
3971 | fail: | |
3972 | return NULL; | |
3973 | } | |
3974 | ||
3975 | ||
3976 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3977 | PyObject *resultobj; | |
3978 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3979 | wxString *arg2 = 0 ; | |
3980 | long arg3 ; | |
e811c8ce | 3981 | bool temp2 = False ; |
d14a1e28 RD |
3982 | PyObject * obj0 = 0 ; |
3983 | PyObject * obj1 = 0 ; | |
994141e6 | 3984 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3985 | char *kwnames[] = { |
3986 | (char *) "self",(char *) "file",(char *) "type", NULL | |
3987 | }; | |
3988 | ||
994141e6 | 3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3991 | { | |
3992 | arg2 = wxString_in_helper(obj1); | |
3993 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3994 | temp2 = True; |
d14a1e28 | 3995 | } |
994141e6 RD |
3996 | { |
3997 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3998 | if (PyErr_Occurred()) SWIG_fail; | |
3999 | } | |
d14a1e28 RD |
4000 | { |
4001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4002 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4003 | ||
4004 | wxPyEndAllowThreads(__tstate); | |
4005 | if (PyErr_Occurred()) SWIG_fail; | |
4006 | } | |
4007 | Py_INCREF(Py_None); resultobj = Py_None; | |
4008 | { | |
4009 | if (temp2) | |
4010 | delete arg2; | |
4011 | } | |
4012 | return resultobj; | |
4013 | fail: | |
4014 | { | |
4015 | if (temp2) | |
4016 | delete arg2; | |
4017 | } | |
4018 | return NULL; | |
4019 | } | |
4020 | ||
4021 | ||
4022 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4023 | PyObject *resultobj; | |
4024 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4025 | wxSize *arg2 = 0 ; | |
4026 | wxIcon *result; | |
4027 | wxSize temp2 ; | |
4028 | PyObject * obj0 = 0 ; | |
4029 | PyObject * obj1 = 0 ; | |
4030 | char *kwnames[] = { | |
4031 | (char *) "self",(char *) "size", NULL | |
4032 | }; | |
4033 | ||
4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4036 | { | |
4037 | arg2 = &temp2; | |
4038 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4039 | } | |
4040 | { | |
4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4042 | { | |
4043 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4044 | result = (wxIcon *) &_result_ref; | |
4045 | } | |
4046 | ||
4047 | wxPyEndAllowThreads(__tstate); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
4049 | } | |
4050 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
4051 | return resultobj; | |
4052 | fail: | |
4053 | return NULL; | |
4054 | } | |
4055 | ||
4056 | ||
4057 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4058 | PyObject *obj; | |
4059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4060 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4061 | Py_INCREF(obj); | |
4062 | return Py_BuildValue((char *)""); | |
4063 | } | |
4064 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4065 | PyObject *resultobj; | |
4066 | wxString *arg1 = (wxString *) 0 ; | |
4067 | long arg2 ; | |
4068 | int arg3 = (int) 0 ; | |
4069 | int arg4 = (int) 0 ; | |
4070 | wxCursor *result; | |
7eae615b | 4071 | bool temp1 = False ; |
d14a1e28 | 4072 | PyObject * obj0 = 0 ; |
994141e6 RD |
4073 | PyObject * obj1 = 0 ; |
4074 | PyObject * obj2 = 0 ; | |
4075 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4076 | char *kwnames[] = { |
4077 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4078 | }; | |
4079 | ||
994141e6 | 4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4081 | { |
4082 | arg1 = wxString_in_helper(obj0); | |
4083 | if (arg1 == NULL) SWIG_fail; | |
4084 | temp1 = True; | |
4085 | } | |
994141e6 RD |
4086 | { |
4087 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | if (obj2) { | |
4091 | { | |
4092 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
4095 | } | |
4096 | if (obj3) { | |
4097 | { | |
4098 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4099 | if (PyErr_Occurred()) SWIG_fail; | |
4100 | } | |
4101 | } | |
d14a1e28 RD |
4102 | { |
4103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4104 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4105 | ||
4106 | wxPyEndAllowThreads(__tstate); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | } | |
4109 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
7eae615b RD |
4110 | { |
4111 | if (temp1) | |
4112 | delete arg1; | |
4113 | } | |
d14a1e28 RD |
4114 | return resultobj; |
4115 | fail: | |
7eae615b RD |
4116 | { |
4117 | if (temp1) | |
4118 | delete arg1; | |
4119 | } | |
d14a1e28 RD |
4120 | return NULL; |
4121 | } | |
4122 | ||
4123 | ||
4124 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject *resultobj; | |
4126 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4127 | PyObject * obj0 = 0 ; | |
4128 | char *kwnames[] = { | |
4129 | (char *) "self", NULL | |
4130 | }; | |
4131 | ||
4132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4134 | { | |
4135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4136 | delete arg1; | |
4137 | ||
4138 | wxPyEndAllowThreads(__tstate); | |
4139 | if (PyErr_Occurred()) SWIG_fail; | |
4140 | } | |
4141 | Py_INCREF(Py_None); resultobj = Py_None; | |
4142 | return resultobj; | |
4143 | fail: | |
4144 | return NULL; | |
4145 | } | |
4146 | ||
4147 | ||
4148 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4149 | PyObject *resultobj; | |
4150 | int arg1 ; | |
4151 | wxCursor *result; | |
994141e6 | 4152 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4153 | char *kwnames[] = { |
4154 | (char *) "id", NULL | |
4155 | }; | |
4156 | ||
994141e6 RD |
4157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
4158 | { | |
4159 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4160 | if (PyErr_Occurred()) SWIG_fail; | |
4161 | } | |
d14a1e28 RD |
4162 | { |
4163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4164 | result = (wxCursor *)new wxCursor(arg1); | |
4165 | ||
4166 | wxPyEndAllowThreads(__tstate); | |
4167 | if (PyErr_Occurred()) SWIG_fail; | |
4168 | } | |
4169 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4170 | return resultobj; | |
4171 | fail: | |
4172 | return NULL; | |
4173 | } | |
4174 | ||
4175 | ||
4176 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4177 | PyObject *resultobj; | |
4178 | wxImage *arg1 = 0 ; | |
4179 | wxCursor *result; | |
4180 | PyObject * obj0 = 0 ; | |
4181 | char *kwnames[] = { | |
4182 | (char *) "image", NULL | |
4183 | }; | |
4184 | ||
4185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4187 | if (arg1 == NULL) { | |
4188 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4189 | } | |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4192 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4193 | ||
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4197 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
4204 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4205 | PyObject *resultobj; | |
4206 | PyObject *arg1 = (PyObject *) 0 ; | |
4207 | int arg2 ; | |
4208 | int arg3 ; | |
4209 | int arg4 = (int) -1 ; | |
4210 | int arg5 = (int) -1 ; | |
4211 | PyObject *arg6 = (PyObject *) 0 ; | |
4212 | wxCursor *result; | |
4213 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4214 | PyObject * obj1 = 0 ; |
4215 | PyObject * obj2 = 0 ; | |
4216 | PyObject * obj3 = 0 ; | |
4217 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4218 | PyObject * obj5 = 0 ; |
4219 | char *kwnames[] = { | |
4220 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4221 | }; | |
4222 | ||
994141e6 | 4223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4224 | arg1 = obj0; |
994141e6 RD |
4225 | { |
4226 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
4228 | } | |
4229 | { | |
4230 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4231 | if (PyErr_Occurred()) SWIG_fail; | |
4232 | } | |
4233 | if (obj3) { | |
4234 | { | |
4235 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4236 | if (PyErr_Occurred()) SWIG_fail; | |
4237 | } | |
4238 | } | |
4239 | if (obj4) { | |
4240 | { | |
4241 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4242 | if (PyErr_Occurred()) SWIG_fail; | |
4243 | } | |
4244 | } | |
d14a1e28 RD |
4245 | if (obj5) { |
4246 | arg6 = obj5; | |
4247 | } | |
4248 | { | |
4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4250 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4251 | ||
4252 | wxPyEndAllowThreads(__tstate); | |
4253 | if (PyErr_Occurred()) SWIG_fail; | |
4254 | } | |
4255 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4256 | return resultobj; | |
4257 | fail: | |
4258 | return NULL; | |
4259 | } | |
4260 | ||
4261 | ||
4262 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4263 | PyObject *resultobj; | |
4264 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4265 | bool result; | |
4266 | PyObject * obj0 = 0 ; | |
4267 | char *kwnames[] = { | |
4268 | (char *) "self", NULL | |
4269 | }; | |
4270 | ||
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4273 | { | |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4275 | result = (bool)(arg1)->Ok(); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
994141e6 | 4280 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4281 | return resultobj; |
4282 | fail: | |
4283 | return NULL; | |
4284 | } | |
4285 | ||
4286 | ||
4287 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4288 | PyObject *obj; | |
4289 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4290 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4291 | Py_INCREF(obj); | |
4292 | return Py_BuildValue((char *)""); | |
4293 | } | |
4294 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj; | |
e811c8ce RD |
4296 | int arg1 = (int) 0 ; |
4297 | int arg2 = (int) 0 ; | |
4298 | int arg3 = (int) 0 ; | |
4299 | int arg4 = (int) 0 ; | |
d14a1e28 | 4300 | wxRegion *result; |
994141e6 RD |
4301 | PyObject * obj0 = 0 ; |
4302 | PyObject * obj1 = 0 ; | |
4303 | PyObject * obj2 = 0 ; | |
4304 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4305 | char *kwnames[] = { |
4306 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4307 | }; | |
4308 | ||
994141e6 RD |
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4310 | if (obj0) { | |
4311 | { | |
4312 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4313 | if (PyErr_Occurred()) SWIG_fail; | |
4314 | } | |
4315 | } | |
4316 | if (obj1) { | |
4317 | { | |
4318 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4319 | if (PyErr_Occurred()) SWIG_fail; | |
4320 | } | |
4321 | } | |
4322 | if (obj2) { | |
4323 | { | |
4324 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4325 | if (PyErr_Occurred()) SWIG_fail; | |
4326 | } | |
4327 | } | |
4328 | if (obj3) { | |
4329 | { | |
4330 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4333 | } | |
d14a1e28 RD |
4334 | { |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4336 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4337 | ||
4338 | wxPyEndAllowThreads(__tstate); | |
4339 | if (PyErr_Occurred()) SWIG_fail; | |
4340 | } | |
4341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4342 | return resultobj; | |
4343 | fail: | |
4344 | return NULL; | |
4345 | } | |
4346 | ||
4347 | ||
4348 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4349 | PyObject *resultobj; | |
4350 | wxBitmap *arg1 = 0 ; | |
4351 | wxColour const &arg2_defvalue = wxNullColour ; | |
4352 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4353 | int arg3 = (int) 0 ; | |
4354 | wxRegion *result; | |
4355 | wxColour temp2 ; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | PyObject * obj1 = 0 ; | |
994141e6 | 4358 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4359 | char *kwnames[] = { |
4360 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4361 | }; | |
4362 | ||
994141e6 | 4363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4365 | if (arg1 == NULL) { | |
4366 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4367 | } | |
4368 | if (obj1) { | |
4369 | { | |
4370 | arg2 = &temp2; | |
4371 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4372 | } | |
4373 | } | |
994141e6 RD |
4374 | if (obj2) { |
4375 | { | |
4376 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4377 | if (PyErr_Occurred()) SWIG_fail; | |
4378 | } | |
4379 | } | |
d14a1e28 RD |
4380 | { |
4381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4382 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4383 | ||
4384 | wxPyEndAllowThreads(__tstate); | |
4385 | if (PyErr_Occurred()) SWIG_fail; | |
4386 | } | |
4387 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4388 | return resultobj; | |
4389 | fail: | |
4390 | return NULL; | |
4391 | } | |
4392 | ||
4393 | ||
4394 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4395 | PyObject *resultobj; | |
4396 | int arg1 ; | |
4397 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4398 | int arg3 = (int) wxWINDING_RULE ; | |
4399 | wxRegion *result; | |
4400 | PyObject * obj0 = 0 ; | |
994141e6 | 4401 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4402 | char *kwnames[] = { |
4403 | (char *) "points",(char *) "fillStyle", NULL | |
4404 | }; | |
4405 | ||
994141e6 | 4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4407 | { |
4408 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4409 | if (arg2 == NULL) SWIG_fail; | |
4410 | } | |
994141e6 RD |
4411 | if (obj1) { |
4412 | { | |
4413 | arg3 = (int) SWIG_PyObj_AsInt(obj1); | |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
4415 | } | |
4416 | } | |
d14a1e28 RD |
4417 | { |
4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4419 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4420 | ||
4421 | wxPyEndAllowThreads(__tstate); | |
4422 | if (PyErr_Occurred()) SWIG_fail; | |
4423 | } | |
4424 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4425 | { | |
4426 | if (arg2) delete [] arg2; | |
4427 | } | |
4428 | return resultobj; | |
4429 | fail: | |
4430 | { | |
4431 | if (arg2) delete [] arg2; | |
4432 | } | |
4433 | return NULL; | |
4434 | } | |
4435 | ||
4436 | ||
4437 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject *resultobj; | |
4439 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4440 | PyObject * obj0 = 0 ; | |
4441 | char *kwnames[] = { | |
4442 | (char *) "self", NULL | |
4443 | }; | |
4444 | ||
4445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4447 | { | |
4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4449 | delete arg1; | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4454 | Py_INCREF(Py_None); resultobj = Py_None; | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
4461 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4462 | PyObject *resultobj; | |
4463 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4464 | PyObject * obj0 = 0 ; | |
4465 | char *kwnames[] = { | |
4466 | (char *) "self", NULL | |
4467 | }; | |
4468 | ||
4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4471 | { | |
4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4473 | (arg1)->Clear(); | |
4474 | ||
4475 | wxPyEndAllowThreads(__tstate); | |
4476 | if (PyErr_Occurred()) SWIG_fail; | |
4477 | } | |
4478 | Py_INCREF(Py_None); resultobj = Py_None; | |
4479 | return resultobj; | |
4480 | fail: | |
4481 | return NULL; | |
4482 | } | |
4483 | ||
4484 | ||
4485 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4486 | PyObject *resultobj; | |
4487 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4488 | int arg2 ; |
4489 | int arg3 ; | |
d14a1e28 RD |
4490 | bool result; |
4491 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4492 | PyObject * obj1 = 0 ; |
4493 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4494 | char *kwnames[] = { |
4495 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4496 | }; | |
4497 | ||
994141e6 | 4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4500 | { |
4501 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4502 | if (PyErr_Occurred()) SWIG_fail; | |
4503 | } | |
4504 | { | |
4505 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4506 | if (PyErr_Occurred()) SWIG_fail; | |
4507 | } | |
d14a1e28 RD |
4508 | { |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4511 | ||
4512 | wxPyEndAllowThreads(__tstate); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
994141e6 | 4515 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4516 | return resultobj; |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
4522 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject *resultobj; | |
4524 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4525 | int arg2 ; |
4526 | int arg3 ; | |
d14a1e28 RD |
4527 | int result; |
4528 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4529 | PyObject * obj1 = 0 ; |
4530 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4531 | char *kwnames[] = { |
4532 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4533 | }; | |
4534 | ||
994141e6 | 4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4537 | { |
4538 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
4540 | } | |
4541 | { | |
4542 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
d14a1e28 RD |
4545 | { |
4546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4547 | result = (int)(arg1)->Contains(arg2,arg3); | |
4548 | ||
4549 | wxPyEndAllowThreads(__tstate); | |
4550 | if (PyErr_Occurred()) SWIG_fail; | |
4551 | } | |
994141e6 | 4552 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4553 | return resultobj; |
4554 | fail: | |
4555 | return NULL; | |
4556 | } | |
4557 | ||
4558 | ||
4559 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4560 | PyObject *resultobj; | |
4561 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4562 | wxPoint *arg2 = 0 ; | |
4563 | int result; | |
4564 | wxPoint temp2 ; | |
4565 | PyObject * obj0 = 0 ; | |
4566 | PyObject * obj1 = 0 ; | |
4567 | char *kwnames[] = { | |
4568 | (char *) "self",(char *) "pt", NULL | |
4569 | }; | |
4570 | ||
4571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4573 | { | |
4574 | arg2 = &temp2; | |
4575 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4576 | } | |
4577 | { | |
4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4579 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4580 | ||
4581 | wxPyEndAllowThreads(__tstate); | |
4582 | if (PyErr_Occurred()) SWIG_fail; | |
4583 | } | |
994141e6 | 4584 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4585 | return resultobj; |
4586 | fail: | |
4587 | return NULL; | |
4588 | } | |
4589 | ||
4590 | ||
4591 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4592 | PyObject *resultobj; | |
4593 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4594 | wxRect *arg2 = 0 ; | |
4595 | int result; | |
4596 | wxRect temp2 ; | |
4597 | PyObject * obj0 = 0 ; | |
4598 | PyObject * obj1 = 0 ; | |
4599 | char *kwnames[] = { | |
4600 | (char *) "self",(char *) "rect", NULL | |
4601 | }; | |
4602 | ||
4603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4605 | { | |
4606 | arg2 = &temp2; | |
4607 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4608 | } | |
4609 | { | |
4610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4611 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4612 | ||
4613 | wxPyEndAllowThreads(__tstate); | |
4614 | if (PyErr_Occurred()) SWIG_fail; | |
4615 | } | |
994141e6 | 4616 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4617 | return resultobj; |
4618 | fail: | |
4619 | return NULL; | |
4620 | } | |
4621 | ||
4622 | ||
4623 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4624 | PyObject *resultobj; | |
4625 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4626 | int arg2 ; |
4627 | int arg3 ; | |
4628 | int arg4 ; | |
4629 | int arg5 ; | |
d14a1e28 RD |
4630 | int result; |
4631 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4632 | PyObject * obj1 = 0 ; |
4633 | PyObject * obj2 = 0 ; | |
4634 | PyObject * obj3 = 0 ; | |
4635 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4636 | char *kwnames[] = { |
4637 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4638 | }; | |
4639 | ||
994141e6 | 4640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4642 | { |
4643 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4644 | if (PyErr_Occurred()) SWIG_fail; | |
4645 | } | |
4646 | { | |
4647 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | } | |
4650 | { | |
4651 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4652 | if (PyErr_Occurred()) SWIG_fail; | |
4653 | } | |
4654 | { | |
4655 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
d14a1e28 RD |
4658 | { |
4659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4660 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
994141e6 | 4665 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4666 | return resultobj; |
4667 | fail: | |
4668 | return NULL; | |
4669 | } | |
4670 | ||
4671 | ||
4672 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4673 | PyObject *resultobj; | |
4674 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4675 | wxRect result; | |
4676 | PyObject * obj0 = 0 ; | |
4677 | char *kwnames[] = { | |
4678 | (char *) "self", NULL | |
4679 | }; | |
4680 | ||
4681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4683 | { | |
4684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4685 | result = (arg1)->GetBox(); | |
4686 | ||
4687 | wxPyEndAllowThreads(__tstate); | |
4688 | if (PyErr_Occurred()) SWIG_fail; | |
4689 | } | |
4690 | { | |
4691 | wxRect * resultptr; | |
4692 | resultptr = new wxRect((wxRect &) result); | |
4693 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4694 | } | |
4695 | return resultobj; | |
4696 | fail: | |
4697 | return NULL; | |
4698 | } | |
4699 | ||
4700 | ||
4701 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4702 | PyObject *resultobj; | |
4703 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4704 | int arg2 ; |
4705 | int arg3 ; | |
4706 | int arg4 ; | |
4707 | int arg5 ; | |
d14a1e28 RD |
4708 | bool result; |
4709 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4710 | PyObject * obj1 = 0 ; |
4711 | PyObject * obj2 = 0 ; | |
4712 | PyObject * obj3 = 0 ; | |
4713 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4714 | char *kwnames[] = { |
4715 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4716 | }; | |
4717 | ||
994141e6 | 4718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4720 | { |
4721 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4722 | if (PyErr_Occurred()) SWIG_fail; | |
4723 | } | |
4724 | { | |
4725 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4726 | if (PyErr_Occurred()) SWIG_fail; | |
4727 | } | |
4728 | { | |
4729 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4730 | if (PyErr_Occurred()) SWIG_fail; | |
4731 | } | |
4732 | { | |
4733 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4734 | if (PyErr_Occurred()) SWIG_fail; | |
4735 | } | |
d14a1e28 RD |
4736 | { |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
994141e6 | 4743 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4744 | return resultobj; |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4753 | wxRect *arg2 = 0 ; | |
4754 | bool result; | |
4755 | wxRect temp2 ; | |
4756 | PyObject * obj0 = 0 ; | |
4757 | PyObject * obj1 = 0 ; | |
4758 | char *kwnames[] = { | |
4759 | (char *) "self",(char *) "rect", NULL | |
4760 | }; | |
4761 | ||
4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4764 | { | |
4765 | arg2 = &temp2; | |
4766 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4767 | } | |
4768 | { | |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4770 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
994141e6 | 4775 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4776 | return resultobj; |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4783 | PyObject *resultobj; | |
4784 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4785 | wxRegion *arg2 = 0 ; | |
4786 | bool result; | |
4787 | PyObject * obj0 = 0 ; | |
4788 | PyObject * obj1 = 0 ; | |
4789 | char *kwnames[] = { | |
4790 | (char *) "self",(char *) "region", NULL | |
4791 | }; | |
4792 | ||
4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4795 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4796 | if (arg2 == NULL) { | |
4797 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4798 | } | |
4799 | { | |
4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4801 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4802 | ||
4803 | wxPyEndAllowThreads(__tstate); | |
4804 | if (PyErr_Occurred()) SWIG_fail; | |
4805 | } | |
994141e6 | 4806 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4807 | return resultobj; |
4808 | fail: | |
4809 | return NULL; | |
4810 | } | |
4811 | ||
4812 | ||
4813 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4814 | PyObject *resultobj; | |
4815 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4816 | bool result; | |
4817 | PyObject * obj0 = 0 ; | |
4818 | char *kwnames[] = { | |
4819 | (char *) "self", NULL | |
4820 | }; | |
4821 | ||
4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4824 | { | |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | result = (bool)(arg1)->IsEmpty(); | |
4827 | ||
4828 | wxPyEndAllowThreads(__tstate); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
994141e6 | 4831 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4832 | return resultobj; |
4833 | fail: | |
4834 | return NULL; | |
4835 | } | |
4836 | ||
4837 | ||
4838 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4839 | PyObject *resultobj; | |
4840 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4841 | int arg2 ; |
4842 | int arg3 ; | |
4843 | int arg4 ; | |
4844 | int arg5 ; | |
d14a1e28 RD |
4845 | bool result; |
4846 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4847 | PyObject * obj1 = 0 ; |
4848 | PyObject * obj2 = 0 ; | |
4849 | PyObject * obj3 = 0 ; | |
4850 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4851 | char *kwnames[] = { |
4852 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4853 | }; | |
4854 | ||
994141e6 | 4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4857 | { |
4858 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | { | |
4862 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4863 | if (PyErr_Occurred()) SWIG_fail; | |
4864 | } | |
4865 | { | |
4866 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4867 | if (PyErr_Occurred()) SWIG_fail; | |
4868 | } | |
4869 | { | |
4870 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4871 | if (PyErr_Occurred()) SWIG_fail; | |
4872 | } | |
d14a1e28 RD |
4873 | { |
4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4875 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4876 | ||
4877 | wxPyEndAllowThreads(__tstate); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | } | |
994141e6 | 4880 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4881 | return resultobj; |
4882 | fail: | |
4883 | return NULL; | |
4884 | } | |
4885 | ||
4886 | ||
4887 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4888 | PyObject *resultobj; | |
4889 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4890 | wxRect *arg2 = 0 ; | |
4891 | bool result; | |
4892 | wxRect temp2 ; | |
4893 | PyObject * obj0 = 0 ; | |
4894 | PyObject * obj1 = 0 ; | |
4895 | char *kwnames[] = { | |
4896 | (char *) "self",(char *) "rect", NULL | |
4897 | }; | |
4898 | ||
4899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4901 | { | |
4902 | arg2 = &temp2; | |
4903 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4904 | } | |
4905 | { | |
4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4907 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4908 | ||
4909 | wxPyEndAllowThreads(__tstate); | |
4910 | if (PyErr_Occurred()) SWIG_fail; | |
4911 | } | |
994141e6 | 4912 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4913 | return resultobj; |
4914 | fail: | |
4915 | return NULL; | |
4916 | } | |
4917 | ||
4918 | ||
4919 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4920 | PyObject *resultobj; | |
4921 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4922 | wxRegion *arg2 = 0 ; | |
4923 | bool result; | |
4924 | PyObject * obj0 = 0 ; | |
4925 | PyObject * obj1 = 0 ; | |
4926 | char *kwnames[] = { | |
4927 | (char *) "self",(char *) "region", NULL | |
4928 | }; | |
4929 | ||
4930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4933 | if (arg2 == NULL) { | |
4934 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4935 | } | |
4936 | { | |
4937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4938 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4939 | ||
4940 | wxPyEndAllowThreads(__tstate); | |
4941 | if (PyErr_Occurred()) SWIG_fail; | |
4942 | } | |
994141e6 | 4943 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4944 | return resultobj; |
4945 | fail: | |
4946 | return NULL; | |
4947 | } | |
4948 | ||
4949 | ||
4950 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4951 | PyObject *resultobj; | |
4952 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4953 | int arg2 ; |
4954 | int arg3 ; | |
4955 | int arg4 ; | |
4956 | int arg5 ; | |
d14a1e28 RD |
4957 | bool result; |
4958 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4959 | PyObject * obj1 = 0 ; |
4960 | PyObject * obj2 = 0 ; | |
4961 | PyObject * obj3 = 0 ; | |
4962 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4963 | char *kwnames[] = { |
4964 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4965 | }; | |
4966 | ||
994141e6 | 4967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4969 | { |
4970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | { | |
4974 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4975 | if (PyErr_Occurred()) SWIG_fail; | |
4976 | } | |
4977 | { | |
4978 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4979 | if (PyErr_Occurred()) SWIG_fail; | |
4980 | } | |
4981 | { | |
4982 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4983 | if (PyErr_Occurred()) SWIG_fail; | |
4984 | } | |
d14a1e28 RD |
4985 | { |
4986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4987 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
4988 | ||
4989 | wxPyEndAllowThreads(__tstate); | |
4990 | if (PyErr_Occurred()) SWIG_fail; | |
4991 | } | |
994141e6 | 4992 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4993 | return resultobj; |
4994 | fail: | |
4995 | return NULL; | |
4996 | } | |
4997 | ||
4998 | ||
4999 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5000 | PyObject *resultobj; | |
5001 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5002 | wxRect *arg2 = 0 ; | |
5003 | bool result; | |
5004 | wxRect temp2 ; | |
5005 | PyObject * obj0 = 0 ; | |
5006 | PyObject * obj1 = 0 ; | |
5007 | char *kwnames[] = { | |
5008 | (char *) "self",(char *) "rect", NULL | |
5009 | }; | |
5010 | ||
5011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5013 | { | |
5014 | arg2 = &temp2; | |
5015 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5016 | } | |
5017 | { | |
5018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5019 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5020 | ||
5021 | wxPyEndAllowThreads(__tstate); | |
5022 | if (PyErr_Occurred()) SWIG_fail; | |
5023 | } | |
994141e6 | 5024 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5025 | return resultobj; |
5026 | fail: | |
5027 | return NULL; | |
5028 | } | |
5029 | ||
5030 | ||
5031 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5032 | PyObject *resultobj; | |
5033 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5034 | wxRegion *arg2 = 0 ; | |
5035 | bool result; | |
5036 | PyObject * obj0 = 0 ; | |
5037 | PyObject * obj1 = 0 ; | |
5038 | char *kwnames[] = { | |
5039 | (char *) "self",(char *) "region", NULL | |
5040 | }; | |
5041 | ||
5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5044 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5045 | if (arg2 == NULL) { | |
5046 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5047 | } | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
994141e6 | 5055 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5056 | return resultobj; |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
5062 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj; | |
5064 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5065 | int arg2 ; |
5066 | int arg3 ; | |
5067 | int arg4 ; | |
5068 | int arg5 ; | |
d14a1e28 RD |
5069 | bool result; |
5070 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5071 | PyObject * obj1 = 0 ; |
5072 | PyObject * obj2 = 0 ; | |
5073 | PyObject * obj3 = 0 ; | |
5074 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5075 | char *kwnames[] = { |
5076 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5077 | }; | |
5078 | ||
994141e6 | 5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5081 | { |
5082 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
5085 | { | |
5086 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5087 | if (PyErr_Occurred()) SWIG_fail; | |
5088 | } | |
5089 | { | |
5090 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | } | |
5093 | { | |
5094 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5095 | if (PyErr_Occurred()) SWIG_fail; | |
5096 | } | |
d14a1e28 RD |
5097 | { |
5098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5099 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5100 | ||
5101 | wxPyEndAllowThreads(__tstate); | |
5102 | if (PyErr_Occurred()) SWIG_fail; | |
5103 | } | |
994141e6 | 5104 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5105 | return resultobj; |
5106 | fail: | |
5107 | return NULL; | |
5108 | } | |
5109 | ||
5110 | ||
5111 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5112 | PyObject *resultobj; | |
5113 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5114 | wxRect *arg2 = 0 ; | |
5115 | bool result; | |
5116 | wxRect temp2 ; | |
5117 | PyObject * obj0 = 0 ; | |
5118 | PyObject * obj1 = 0 ; | |
5119 | char *kwnames[] = { | |
5120 | (char *) "self",(char *) "rect", NULL | |
5121 | }; | |
5122 | ||
5123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5125 | { | |
5126 | arg2 = &temp2; | |
5127 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5128 | } | |
5129 | { | |
5130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5131 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5132 | ||
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) SWIG_fail; | |
5135 | } | |
994141e6 | 5136 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5137 | return resultobj; |
5138 | fail: | |
5139 | return NULL; | |
5140 | } | |
5141 | ||
5142 | ||
5143 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5144 | PyObject *resultobj; | |
5145 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5146 | wxRegion *arg2 = 0 ; | |
5147 | bool result; | |
5148 | PyObject * obj0 = 0 ; | |
5149 | PyObject * obj1 = 0 ; | |
5150 | char *kwnames[] = { | |
5151 | (char *) "self",(char *) "region", NULL | |
5152 | }; | |
5153 | ||
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5156 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5157 | if (arg2 == NULL) { | |
5158 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5159 | } | |
5160 | { | |
5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5162 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5163 | ||
5164 | wxPyEndAllowThreads(__tstate); | |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
5166 | } | |
994141e6 | 5167 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5168 | return resultobj; |
5169 | fail: | |
5170 | return NULL; | |
5171 | } | |
5172 | ||
5173 | ||
5174 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5175 | PyObject *resultobj; | |
5176 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5177 | SwigValueWrapper< wxBitmap > result; | |
5178 | PyObject * obj0 = 0 ; | |
5179 | char *kwnames[] = { | |
5180 | (char *) "self", NULL | |
5181 | }; | |
5182 | ||
5183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5185 | { | |
5186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5187 | result = (arg1)->ConvertToBitmap(); | |
5188 | ||
5189 | wxPyEndAllowThreads(__tstate); | |
5190 | if (PyErr_Occurred()) SWIG_fail; | |
5191 | } | |
5192 | { | |
5193 | wxBitmap * resultptr; | |
5194 | resultptr = new wxBitmap((wxBitmap &) result); | |
5195 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5196 | } | |
5197 | return resultobj; | |
5198 | fail: | |
5199 | return NULL; | |
5200 | } | |
5201 | ||
5202 | ||
5203 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5204 | PyObject *resultobj; | |
5205 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5206 | wxBitmap *arg2 = 0 ; | |
5207 | wxColour const &arg3_defvalue = wxNullColour ; | |
5208 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5209 | int arg4 = (int) 0 ; | |
5210 | bool result; | |
5211 | wxColour temp3 ; | |
5212 | PyObject * obj0 = 0 ; | |
5213 | PyObject * obj1 = 0 ; | |
5214 | PyObject * obj2 = 0 ; | |
994141e6 | 5215 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5216 | char *kwnames[] = { |
5217 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5218 | }; | |
5219 | ||
994141e6 | 5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5222 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5223 | if (arg2 == NULL) { | |
5224 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5225 | } | |
5226 | if (obj2) { | |
5227 | { | |
5228 | arg3 = &temp3; | |
5229 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5230 | } | |
5231 | } | |
994141e6 RD |
5232 | if (obj3) { |
5233 | { | |
5234 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
5237 | } | |
d14a1e28 RD |
5238 | { |
5239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5240 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5241 | ||
5242 | wxPyEndAllowThreads(__tstate); | |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
5244 | } | |
994141e6 | 5245 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5246 | return resultobj; |
5247 | fail: | |
5248 | return NULL; | |
5249 | } | |
5250 | ||
5251 | ||
5252 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5253 | PyObject *obj; | |
5254 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5255 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5256 | Py_INCREF(obj); | |
5257 | return Py_BuildValue((char *)""); | |
5258 | } | |
5259 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5260 | PyObject *resultobj; | |
5261 | wxRegion *arg1 = 0 ; | |
5262 | wxRegionIterator *result; | |
5263 | PyObject * obj0 = 0 ; | |
5264 | char *kwnames[] = { | |
5265 | (char *) "region", NULL | |
5266 | }; | |
5267 | ||
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5270 | if (arg1 == NULL) { | |
5271 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5272 | } | |
5273 | { | |
5274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5275 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5276 | ||
5277 | wxPyEndAllowThreads(__tstate); | |
5278 | if (PyErr_Occurred()) SWIG_fail; | |
5279 | } | |
5280 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5281 | return resultobj; | |
5282 | fail: | |
5283 | return NULL; | |
5284 | } | |
5285 | ||
5286 | ||
5287 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5288 | PyObject *resultobj; | |
5289 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5290 | PyObject * obj0 = 0 ; | |
5291 | char *kwnames[] = { | |
5292 | (char *) "self", NULL | |
5293 | }; | |
5294 | ||
5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5297 | { | |
5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5299 | delete arg1; | |
5300 | ||
5301 | wxPyEndAllowThreads(__tstate); | |
5302 | if (PyErr_Occurred()) SWIG_fail; | |
5303 | } | |
5304 | Py_INCREF(Py_None); resultobj = Py_None; | |
5305 | return resultobj; | |
5306 | fail: | |
5307 | return NULL; | |
5308 | } | |
5309 | ||
5310 | ||
5311 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5312 | PyObject *resultobj; | |
5313 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5314 | int result; |
d14a1e28 RD |
5315 | PyObject * obj0 = 0 ; |
5316 | char *kwnames[] = { | |
5317 | (char *) "self", NULL | |
5318 | }; | |
5319 | ||
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5324 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5325 | |
5326 | wxPyEndAllowThreads(__tstate); | |
5327 | if (PyErr_Occurred()) SWIG_fail; | |
5328 | } | |
994141e6 | 5329 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5330 | return resultobj; |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
5336 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject *resultobj; | |
5338 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5339 | int result; |
d14a1e28 RD |
5340 | PyObject * obj0 = 0 ; |
5341 | char *kwnames[] = { | |
5342 | (char *) "self", NULL | |
5343 | }; | |
5344 | ||
5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5347 | { | |
5348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5349 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5350 | |
5351 | wxPyEndAllowThreads(__tstate); | |
5352 | if (PyErr_Occurred()) SWIG_fail; | |
5353 | } | |
994141e6 | 5354 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5355 | return resultobj; |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5362 | PyObject *resultobj; | |
5363 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5364 | int result; |
d14a1e28 RD |
5365 | PyObject * obj0 = 0 ; |
5366 | char *kwnames[] = { | |
5367 | (char *) "self", NULL | |
5368 | }; | |
5369 | ||
5370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5372 | { | |
5373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5374 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5375 | |
5376 | wxPyEndAllowThreads(__tstate); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
5378 | } | |
994141e6 | 5379 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5380 | return resultobj; |
5381 | fail: | |
5382 | return NULL; | |
5383 | } | |
5384 | ||
5385 | ||
5386 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5387 | PyObject *resultobj; | |
5388 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5389 | int result; |
d14a1e28 RD |
5390 | PyObject * obj0 = 0 ; |
5391 | char *kwnames[] = { | |
5392 | (char *) "self", NULL | |
5393 | }; | |
5394 | ||
5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5397 | { | |
5398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5399 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5400 | |
5401 | wxPyEndAllowThreads(__tstate); | |
5402 | if (PyErr_Occurred()) SWIG_fail; | |
5403 | } | |
994141e6 | 5404 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5405 | return resultobj; |
5406 | fail: | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
5411 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5412 | PyObject *resultobj; | |
5413 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5414 | int result; |
d14a1e28 RD |
5415 | PyObject * obj0 = 0 ; |
5416 | char *kwnames[] = { | |
5417 | (char *) "self", NULL | |
5418 | }; | |
5419 | ||
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5422 | { | |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5424 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5425 | |
5426 | wxPyEndAllowThreads(__tstate); | |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
5428 | } | |
994141e6 | 5429 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5430 | return resultobj; |
5431 | fail: | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
5436 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5439 | int result; |
d14a1e28 RD |
5440 | PyObject * obj0 = 0 ; |
5441 | char *kwnames[] = { | |
5442 | (char *) "self", NULL | |
5443 | }; | |
5444 | ||
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5447 | { | |
5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5449 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5450 | |
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
994141e6 | 5454 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5455 | return resultobj; |
5456 | fail: | |
5457 | return NULL; | |
5458 | } | |
5459 | ||
5460 | ||
5461 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject *resultobj; | |
5463 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5464 | wxRect result; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | char *kwnames[] = { | |
5467 | (char *) "self", NULL | |
5468 | }; | |
5469 | ||
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5472 | { | |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5474 | result = (arg1)->GetRect(); | |
5475 | ||
5476 | wxPyEndAllowThreads(__tstate); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
5479 | { | |
5480 | wxRect * resultptr; | |
5481 | resultptr = new wxRect((wxRect &) result); | |
5482 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5483 | } | |
5484 | return resultobj; | |
5485 | fail: | |
5486 | return NULL; | |
5487 | } | |
5488 | ||
5489 | ||
5490 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject *resultobj; | |
5492 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5493 | bool result; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | char *kwnames[] = { | |
5496 | (char *) "self", NULL | |
5497 | }; | |
5498 | ||
5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5501 | { | |
5502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5503 | result = (bool)(arg1)->HaveRects(); | |
5504 | ||
5505 | wxPyEndAllowThreads(__tstate); | |
5506 | if (PyErr_Occurred()) SWIG_fail; | |
5507 | } | |
994141e6 | 5508 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5509 | return resultobj; |
5510 | fail: | |
5511 | return NULL; | |
5512 | } | |
5513 | ||
5514 | ||
5515 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5516 | PyObject *resultobj; | |
5517 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5518 | PyObject * obj0 = 0 ; | |
5519 | char *kwnames[] = { | |
5520 | (char *) "self", NULL | |
5521 | }; | |
5522 | ||
5523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5525 | { | |
5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5527 | (arg1)->Reset(); | |
5528 | ||
5529 | wxPyEndAllowThreads(__tstate); | |
5530 | if (PyErr_Occurred()) SWIG_fail; | |
5531 | } | |
5532 | Py_INCREF(Py_None); resultobj = Py_None; | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | return NULL; | |
5536 | } | |
5537 | ||
5538 | ||
5539 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5540 | PyObject *resultobj; | |
5541 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5542 | PyObject * obj0 = 0 ; | |
5543 | char *kwnames[] = { | |
5544 | (char *) "self", NULL | |
5545 | }; | |
5546 | ||
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",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(); | |
5551 | wxRegionIterator_Next(arg1); | |
5552 | ||
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
5556 | Py_INCREF(Py_None); resultobj = Py_None; | |
5557 | return resultobj; | |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5566 | bool result; | |
5567 | PyObject * obj0 = 0 ; | |
5568 | char *kwnames[] = { | |
5569 | (char *) "self", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",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(); | |
5576 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5577 | ||
5578 | wxPyEndAllowThreads(__tstate); | |
5579 | if (PyErr_Occurred()) SWIG_fail; | |
5580 | } | |
994141e6 | 5581 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5582 | return resultobj; |
5583 | fail: | |
5584 | return NULL; | |
5585 | } | |
5586 | ||
5587 | ||
5588 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5589 | PyObject *obj; | |
5590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5591 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5592 | Py_INCREF(obj); | |
5593 | return Py_BuildValue((char *)""); | |
5594 | } | |
5595 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5596 | PyObject *resultobj; | |
5597 | wxNativeFontInfo *result; | |
5598 | char *kwnames[] = { | |
5599 | NULL | |
5600 | }; | |
5601 | ||
5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5603 | { | |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) SWIG_fail; | |
5609 | } | |
5610 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5611 | return resultobj; | |
5612 | fail: | |
5613 | return NULL; | |
5614 | } | |
5615 | ||
5616 | ||
5617 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5618 | PyObject *resultobj; | |
5619 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5620 | PyObject * obj0 = 0 ; | |
5621 | char *kwnames[] = { | |
5622 | (char *) "self", NULL | |
5623 | }; | |
5624 | ||
5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5627 | { | |
5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5629 | delete arg1; | |
5630 | ||
5631 | wxPyEndAllowThreads(__tstate); | |
5632 | if (PyErr_Occurred()) SWIG_fail; | |
5633 | } | |
5634 | Py_INCREF(Py_None); resultobj = Py_None; | |
5635 | return resultobj; | |
5636 | fail: | |
5637 | return NULL; | |
5638 | } | |
5639 | ||
5640 | ||
5641 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5642 | PyObject *resultobj; | |
5643 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5644 | PyObject * obj0 = 0 ; | |
5645 | char *kwnames[] = { | |
5646 | (char *) "self", NULL | |
5647 | }; | |
5648 | ||
5649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5651 | { | |
5652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5653 | (arg1)->Init(); | |
5654 | ||
5655 | wxPyEndAllowThreads(__tstate); | |
5656 | if (PyErr_Occurred()) SWIG_fail; | |
5657 | } | |
5658 | Py_INCREF(Py_None); resultobj = Py_None; | |
5659 | return resultobj; | |
5660 | fail: | |
5661 | return NULL; | |
5662 | } | |
5663 | ||
5664 | ||
5665 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5666 | PyObject *resultobj; | |
5667 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5668 | wxFont *arg2 = 0 ; | |
5669 | PyObject * obj0 = 0 ; | |
5670 | PyObject * obj1 = 0 ; | |
5671 | char *kwnames[] = { | |
5672 | (char *) "self",(char *) "font", NULL | |
5673 | }; | |
5674 | ||
5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5677 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5678 | if (arg2 == NULL) { | |
5679 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5680 | } | |
5681 | { | |
5682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5683 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5684 | ||
5685 | wxPyEndAllowThreads(__tstate); | |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
5687 | } | |
5688 | Py_INCREF(Py_None); resultobj = Py_None; | |
5689 | return resultobj; | |
5690 | fail: | |
5691 | return NULL; | |
5692 | } | |
5693 | ||
5694 | ||
5695 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5696 | PyObject *resultobj; | |
5697 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5698 | int result; | |
5699 | PyObject * obj0 = 0 ; | |
5700 | char *kwnames[] = { | |
5701 | (char *) "self", NULL | |
5702 | }; | |
5703 | ||
5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5706 | { | |
5707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5708 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5709 | ||
5710 | wxPyEndAllowThreads(__tstate); | |
5711 | if (PyErr_Occurred()) SWIG_fail; | |
5712 | } | |
994141e6 | 5713 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5714 | return resultobj; |
5715 | fail: | |
5716 | return NULL; | |
5717 | } | |
5718 | ||
5719 | ||
5720 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5721 | PyObject *resultobj; | |
5722 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5723 | int result; | |
5724 | PyObject * obj0 = 0 ; | |
5725 | char *kwnames[] = { | |
5726 | (char *) "self", NULL | |
5727 | }; | |
5728 | ||
5729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5731 | { | |
5732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5733 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5734 | ||
5735 | wxPyEndAllowThreads(__tstate); | |
5736 | if (PyErr_Occurred()) SWIG_fail; | |
5737 | } | |
994141e6 | 5738 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5739 | return resultobj; |
5740 | fail: | |
5741 | return NULL; | |
5742 | } | |
5743 | ||
5744 | ||
5745 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5746 | PyObject *resultobj; | |
5747 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5748 | int result; | |
5749 | PyObject * obj0 = 0 ; | |
5750 | char *kwnames[] = { | |
5751 | (char *) "self", NULL | |
5752 | }; | |
5753 | ||
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5756 | { | |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5758 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5759 | ||
5760 | wxPyEndAllowThreads(__tstate); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
994141e6 | 5763 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5764 | return resultobj; |
5765 | fail: | |
5766 | return NULL; | |
5767 | } | |
5768 | ||
5769 | ||
5770 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5771 | PyObject *resultobj; | |
5772 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5773 | bool result; | |
5774 | PyObject * obj0 = 0 ; | |
5775 | char *kwnames[] = { | |
5776 | (char *) "self", NULL | |
5777 | }; | |
5778 | ||
5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5781 | { | |
5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5783 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5784 | ||
5785 | wxPyEndAllowThreads(__tstate); | |
5786 | if (PyErr_Occurred()) SWIG_fail; | |
5787 | } | |
994141e6 | 5788 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5789 | return resultobj; |
5790 | fail: | |
5791 | return NULL; | |
5792 | } | |
5793 | ||
5794 | ||
5795 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5796 | PyObject *resultobj; | |
5797 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5798 | wxString result; | |
5799 | PyObject * obj0 = 0 ; | |
5800 | char *kwnames[] = { | |
5801 | (char *) "self", NULL | |
5802 | }; | |
5803 | ||
5804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5806 | { | |
5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5808 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5809 | ||
5810 | wxPyEndAllowThreads(__tstate); | |
5811 | if (PyErr_Occurred()) SWIG_fail; | |
5812 | } | |
5813 | { | |
5814 | #if wxUSE_UNICODE | |
5815 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5816 | #else | |
5817 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5818 | #endif | |
5819 | } | |
5820 | return resultobj; | |
5821 | fail: | |
5822 | return NULL; | |
5823 | } | |
5824 | ||
5825 | ||
5826 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5827 | PyObject *resultobj; | |
5828 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5829 | int result; | |
5830 | PyObject * obj0 = 0 ; | |
5831 | char *kwnames[] = { | |
5832 | (char *) "self", NULL | |
5833 | }; | |
5834 | ||
5835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5837 | { | |
5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5839 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5840 | ||
5841 | wxPyEndAllowThreads(__tstate); | |
5842 | if (PyErr_Occurred()) SWIG_fail; | |
5843 | } | |
994141e6 | 5844 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5845 | return resultobj; |
5846 | fail: | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
5851 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5852 | PyObject *resultobj; | |
5853 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5854 | int result; | |
5855 | PyObject * obj0 = 0 ; | |
5856 | char *kwnames[] = { | |
5857 | (char *) "self", NULL | |
5858 | }; | |
5859 | ||
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5862 | { | |
5863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5864 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5865 | ||
5866 | wxPyEndAllowThreads(__tstate); | |
5867 | if (PyErr_Occurred()) SWIG_fail; | |
5868 | } | |
994141e6 | 5869 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5870 | return resultobj; |
5871 | fail: | |
5872 | return NULL; | |
5873 | } | |
5874 | ||
5875 | ||
5876 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5877 | PyObject *resultobj; | |
5878 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5879 | int arg2 ; | |
5880 | PyObject * obj0 = 0 ; | |
994141e6 | 5881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5882 | char *kwnames[] = { |
5883 | (char *) "self",(char *) "pointsize", NULL | |
5884 | }; | |
5885 | ||
994141e6 | 5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5888 | { |
5889 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5890 | if (PyErr_Occurred()) SWIG_fail; | |
5891 | } | |
d14a1e28 RD |
5892 | { |
5893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5894 | (arg1)->SetPointSize(arg2); | |
5895 | ||
5896 | wxPyEndAllowThreads(__tstate); | |
5897 | if (PyErr_Occurred()) SWIG_fail; | |
5898 | } | |
5899 | Py_INCREF(Py_None); resultobj = Py_None; | |
5900 | return resultobj; | |
5901 | fail: | |
5902 | return NULL; | |
5903 | } | |
5904 | ||
5905 | ||
5906 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5907 | PyObject *resultobj; | |
5908 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5909 | int arg2 ; | |
5910 | PyObject * obj0 = 0 ; | |
994141e6 | 5911 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5912 | char *kwnames[] = { |
5913 | (char *) "self",(char *) "style", NULL | |
5914 | }; | |
5915 | ||
994141e6 | 5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5918 | { |
5919 | arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1); | |
5920 | if (PyErr_Occurred()) SWIG_fail; | |
5921 | } | |
d14a1e28 RD |
5922 | { |
5923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5924 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5925 | ||
5926 | wxPyEndAllowThreads(__tstate); | |
5927 | if (PyErr_Occurred()) SWIG_fail; | |
5928 | } | |
5929 | Py_INCREF(Py_None); resultobj = Py_None; | |
5930 | return resultobj; | |
5931 | fail: | |
5932 | return NULL; | |
5933 | } | |
5934 | ||
5935 | ||
5936 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5937 | PyObject *resultobj; | |
5938 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5939 | int arg2 ; | |
5940 | PyObject * obj0 = 0 ; | |
994141e6 | 5941 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5942 | char *kwnames[] = { |
5943 | (char *) "self",(char *) "weight", NULL | |
5944 | }; | |
5945 | ||
994141e6 | 5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5948 | { |
5949 | arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1); | |
5950 | if (PyErr_Occurred()) SWIG_fail; | |
5951 | } | |
d14a1e28 RD |
5952 | { |
5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5954 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5955 | ||
5956 | wxPyEndAllowThreads(__tstate); | |
5957 | if (PyErr_Occurred()) SWIG_fail; | |
5958 | } | |
5959 | Py_INCREF(Py_None); resultobj = Py_None; | |
5960 | return resultobj; | |
5961 | fail: | |
5962 | return NULL; | |
5963 | } | |
5964 | ||
5965 | ||
5966 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject *resultobj; | |
5968 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5969 | bool arg2 ; | |
5970 | PyObject * obj0 = 0 ; | |
5971 | PyObject * obj1 = 0 ; | |
5972 | char *kwnames[] = { | |
5973 | (char *) "self",(char *) "underlined", NULL | |
5974 | }; | |
5975 | ||
5976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
5977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 5978 | { |
994141e6 | 5979 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
5980 | if (PyErr_Occurred()) SWIG_fail; |
5981 | } | |
d14a1e28 RD |
5982 | { |
5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5984 | (arg1)->SetUnderlined(arg2); | |
5985 | ||
5986 | wxPyEndAllowThreads(__tstate); | |
5987 | if (PyErr_Occurred()) SWIG_fail; | |
5988 | } | |
5989 | Py_INCREF(Py_None); resultobj = Py_None; | |
5990 | return resultobj; | |
5991 | fail: | |
5992 | return NULL; | |
5993 | } | |
5994 | ||
5995 | ||
5996 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5997 | PyObject *resultobj; | |
5998 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5999 | wxString arg2 ; | |
d14a1e28 RD |
6000 | PyObject * obj0 = 0 ; |
6001 | PyObject * obj1 = 0 ; | |
6002 | char *kwnames[] = { | |
6003 | (char *) "self",(char *) "facename", NULL | |
6004 | }; | |
6005 | ||
6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce RD |
6008 | { |
6009 | wxString* sptr = wxString_in_helper(obj1); | |
6010 | if (sptr == NULL) SWIG_fail; | |
6011 | arg2 = *sptr; | |
6012 | delete sptr; | |
6013 | } | |
d14a1e28 RD |
6014 | { |
6015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6016 | (arg1)->SetFaceName(arg2); | |
6017 | ||
6018 | wxPyEndAllowThreads(__tstate); | |
6019 | if (PyErr_Occurred()) SWIG_fail; | |
6020 | } | |
6021 | Py_INCREF(Py_None); resultobj = Py_None; | |
6022 | return resultobj; | |
6023 | fail: | |
6024 | return NULL; | |
6025 | } | |
6026 | ||
6027 | ||
6028 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6029 | PyObject *resultobj; | |
6030 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6031 | int arg2 ; | |
6032 | PyObject * obj0 = 0 ; | |
994141e6 | 6033 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6034 | char *kwnames[] = { |
6035 | (char *) "self",(char *) "family", NULL | |
6036 | }; | |
6037 | ||
994141e6 | 6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6040 | { |
6041 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
6042 | if (PyErr_Occurred()) SWIG_fail; | |
6043 | } | |
d14a1e28 RD |
6044 | { |
6045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6046 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6047 | ||
6048 | wxPyEndAllowThreads(__tstate); | |
6049 | if (PyErr_Occurred()) SWIG_fail; | |
6050 | } | |
6051 | Py_INCREF(Py_None); resultobj = Py_None; | |
6052 | return resultobj; | |
6053 | fail: | |
6054 | return NULL; | |
6055 | } | |
6056 | ||
6057 | ||
6058 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6059 | PyObject *resultobj; | |
6060 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6061 | int arg2 ; | |
6062 | PyObject * obj0 = 0 ; | |
994141e6 | 6063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6064 | char *kwnames[] = { |
6065 | (char *) "self",(char *) "encoding", NULL | |
6066 | }; | |
6067 | ||
994141e6 | 6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6070 | { |
6071 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6072 | if (PyErr_Occurred()) SWIG_fail; | |
6073 | } | |
d14a1e28 RD |
6074 | { |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | Py_INCREF(Py_None); resultobj = Py_None; | |
6082 | return resultobj; | |
6083 | fail: | |
6084 | return NULL; | |
6085 | } | |
6086 | ||
6087 | ||
6088 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject *resultobj; | |
6090 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6091 | wxString *arg2 = 0 ; | |
6092 | bool result; | |
e811c8ce | 6093 | bool temp2 = False ; |
d14a1e28 RD |
6094 | PyObject * obj0 = 0 ; |
6095 | PyObject * obj1 = 0 ; | |
6096 | char *kwnames[] = { | |
6097 | (char *) "self",(char *) "s", NULL | |
6098 | }; | |
6099 | ||
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6102 | { | |
6103 | arg2 = wxString_in_helper(obj1); | |
6104 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6105 | temp2 = True; |
d14a1e28 RD |
6106 | } |
6107 | { | |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6110 | ||
6111 | wxPyEndAllowThreads(__tstate); | |
6112 | if (PyErr_Occurred()) SWIG_fail; | |
6113 | } | |
994141e6 | 6114 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6115 | { |
6116 | if (temp2) | |
6117 | delete arg2; | |
6118 | } | |
6119 | return resultobj; | |
6120 | fail: | |
6121 | { | |
6122 | if (temp2) | |
6123 | delete arg2; | |
6124 | } | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
6129 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj; | |
6131 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6132 | wxString result; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "self", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6140 | { | |
6141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6142 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6143 | ||
6144 | wxPyEndAllowThreads(__tstate); | |
6145 | if (PyErr_Occurred()) SWIG_fail; | |
6146 | } | |
6147 | { | |
6148 | #if wxUSE_UNICODE | |
6149 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6150 | #else | |
6151 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6152 | #endif | |
6153 | } | |
6154 | return resultobj; | |
6155 | fail: | |
6156 | return NULL; | |
6157 | } | |
6158 | ||
6159 | ||
6160 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject *resultobj; | |
6162 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6163 | wxString result; | |
6164 | PyObject * obj0 = 0 ; | |
6165 | char *kwnames[] = { | |
6166 | (char *) "self", NULL | |
6167 | }; | |
6168 | ||
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6171 | { | |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6173 | result = wxNativeFontInfo___str__(arg1); | |
6174 | ||
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
6178 | { | |
6179 | #if wxUSE_UNICODE | |
6180 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6181 | #else | |
6182 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6183 | #endif | |
6184 | } | |
6185 | return resultobj; | |
6186 | fail: | |
6187 | return NULL; | |
6188 | } | |
6189 | ||
6190 | ||
6191 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6192 | PyObject *resultobj; | |
6193 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6194 | wxString *arg2 = 0 ; | |
6195 | bool result; | |
e811c8ce | 6196 | bool temp2 = False ; |
d14a1e28 RD |
6197 | PyObject * obj0 = 0 ; |
6198 | PyObject * obj1 = 0 ; | |
6199 | char *kwnames[] = { | |
6200 | (char *) "self",(char *) "s", NULL | |
6201 | }; | |
6202 | ||
6203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6205 | { | |
6206 | arg2 = wxString_in_helper(obj1); | |
6207 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6208 | temp2 = True; |
d14a1e28 RD |
6209 | } |
6210 | { | |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
994141e6 | 6217 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6218 | { |
6219 | if (temp2) | |
6220 | delete arg2; | |
6221 | } | |
6222 | return resultobj; | |
6223 | fail: | |
6224 | { | |
6225 | if (temp2) | |
6226 | delete arg2; | |
6227 | } | |
6228 | return NULL; | |
6229 | } | |
6230 | ||
6231 | ||
6232 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6233 | PyObject *resultobj; | |
6234 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6235 | wxString result; | |
6236 | PyObject * obj0 = 0 ; | |
6237 | char *kwnames[] = { | |
6238 | (char *) "self", NULL | |
6239 | }; | |
6240 | ||
6241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6243 | { | |
6244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6245 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6246 | ||
6247 | wxPyEndAllowThreads(__tstate); | |
6248 | if (PyErr_Occurred()) SWIG_fail; | |
6249 | } | |
6250 | { | |
6251 | #if wxUSE_UNICODE | |
6252 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6253 | #else | |
6254 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6255 | #endif | |
6256 | } | |
6257 | return resultobj; | |
6258 | fail: | |
6259 | return NULL; | |
6260 | } | |
6261 | ||
6262 | ||
6263 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6264 | PyObject *obj; | |
6265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6266 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6267 | Py_INCREF(obj); | |
6268 | return Py_BuildValue((char *)""); | |
6269 | } | |
6270 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6271 | PyObject *resultobj; | |
6272 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6273 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 6274 | bool temp2 = False ; |
d14a1e28 RD |
6275 | PyObject * obj0 = 0 ; |
6276 | PyObject * obj1 = 0 ; | |
6277 | char *kwnames[] = { | |
6278 | (char *) "self",(char *) "facename", NULL | |
6279 | }; | |
6280 | ||
6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
6283 | { |
6284 | arg2 = wxString_in_helper(obj1); | |
6285 | if (arg2 == NULL) SWIG_fail; | |
6286 | temp2 = True; | |
6287 | } | |
196addbf | 6288 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6289 | |
6290 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6291 | { |
6292 | if (temp2) | |
6293 | delete arg2; | |
6294 | } | |
d14a1e28 RD |
6295 | return resultobj; |
6296 | fail: | |
7eae615b RD |
6297 | { |
6298 | if (temp2) | |
6299 | delete arg2; | |
6300 | } | |
d14a1e28 RD |
6301 | return NULL; |
6302 | } | |
6303 | ||
6304 | ||
6305 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6306 | PyObject *resultobj; | |
6307 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6308 | wxString *result; |
d14a1e28 RD |
6309 | PyObject * obj0 = 0 ; |
6310 | char *kwnames[] = { | |
6311 | (char *) "self", NULL | |
6312 | }; | |
6313 | ||
6314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 6316 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6317 | |
6318 | { | |
6319 | #if wxUSE_UNICODE | |
196addbf | 6320 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6321 | #else |
196addbf | 6322 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6323 | #endif |
6324 | } | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
6331 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6332 | PyObject *resultobj; | |
6333 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6334 | int arg2 ; | |
6335 | PyObject * obj0 = 0 ; | |
994141e6 | 6336 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6337 | char *kwnames[] = { |
6338 | (char *) "self",(char *) "encoding", NULL | |
6339 | }; | |
6340 | ||
994141e6 | 6341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6343 | { |
6344 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6345 | if (PyErr_Occurred()) SWIG_fail; | |
6346 | } | |
d14a1e28 RD |
6347 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6348 | ||
6349 | Py_INCREF(Py_None); resultobj = Py_None; | |
6350 | return resultobj; | |
6351 | fail: | |
6352 | return NULL; | |
6353 | } | |
6354 | ||
6355 | ||
6356 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6357 | PyObject *resultobj; | |
6358 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6359 | int result; | |
6360 | PyObject * obj0 = 0 ; | |
6361 | char *kwnames[] = { | |
6362 | (char *) "self", NULL | |
6363 | }; | |
6364 | ||
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6367 | result = (int) ((arg1)->encoding); | |
6368 | ||
994141e6 | 6369 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6370 | return resultobj; |
6371 | fail: | |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
6376 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject *resultobj; | |
6378 | wxNativeEncodingInfo *result; | |
6379 | char *kwnames[] = { | |
6380 | NULL | |
6381 | }; | |
6382 | ||
6383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6384 | { | |
6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6386 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6387 | ||
6388 | wxPyEndAllowThreads(__tstate); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
6391 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6392 | return resultobj; | |
6393 | fail: | |
6394 | return NULL; | |
6395 | } | |
6396 | ||
6397 | ||
6398 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject *resultobj; | |
6400 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6401 | PyObject * obj0 = 0 ; | |
6402 | char *kwnames[] = { | |
6403 | (char *) "self", NULL | |
6404 | }; | |
6405 | ||
6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6408 | { | |
6409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6410 | delete arg1; | |
6411 | ||
6412 | wxPyEndAllowThreads(__tstate); | |
6413 | if (PyErr_Occurred()) SWIG_fail; | |
6414 | } | |
6415 | Py_INCREF(Py_None); resultobj = Py_None; | |
6416 | return resultobj; | |
6417 | fail: | |
6418 | return NULL; | |
6419 | } | |
6420 | ||
6421 | ||
6422 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6423 | PyObject *resultobj; | |
6424 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6425 | wxString *arg2 = 0 ; | |
6426 | bool result; | |
e811c8ce | 6427 | bool temp2 = False ; |
d14a1e28 RD |
6428 | PyObject * obj0 = 0 ; |
6429 | PyObject * obj1 = 0 ; | |
6430 | char *kwnames[] = { | |
6431 | (char *) "self",(char *) "s", NULL | |
6432 | }; | |
6433 | ||
6434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6436 | { | |
6437 | arg2 = wxString_in_helper(obj1); | |
6438 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6439 | temp2 = True; |
d14a1e28 RD |
6440 | } |
6441 | { | |
6442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6443 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6444 | ||
6445 | wxPyEndAllowThreads(__tstate); | |
6446 | if (PyErr_Occurred()) SWIG_fail; | |
6447 | } | |
994141e6 | 6448 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6449 | { |
6450 | if (temp2) | |
6451 | delete arg2; | |
6452 | } | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | { | |
6456 | if (temp2) | |
6457 | delete arg2; | |
6458 | } | |
6459 | return NULL; | |
6460 | } | |
6461 | ||
6462 | ||
6463 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6464 | PyObject *resultobj; | |
6465 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6466 | wxString result; | |
6467 | PyObject * obj0 = 0 ; | |
6468 | char *kwnames[] = { | |
6469 | (char *) "self", NULL | |
6470 | }; | |
6471 | ||
6472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6474 | { | |
6475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6476 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6477 | ||
6478 | wxPyEndAllowThreads(__tstate); | |
6479 | if (PyErr_Occurred()) SWIG_fail; | |
6480 | } | |
6481 | { | |
6482 | #if wxUSE_UNICODE | |
6483 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6484 | #else | |
6485 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6486 | #endif | |
6487 | } | |
6488 | return resultobj; | |
6489 | fail: | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
6494 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6495 | PyObject *obj; | |
6496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6497 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6498 | Py_INCREF(obj); | |
6499 | return Py_BuildValue((char *)""); | |
6500 | } | |
6501 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6502 | PyObject *resultobj; | |
6503 | int arg1 ; | |
6504 | wxNativeEncodingInfo *result; | |
994141e6 | 6505 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6506 | char *kwnames[] = { |
6507 | (char *) "encoding", NULL | |
6508 | }; | |
6509 | ||
994141e6 | 6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
d14a1e28 | 6511 | { |
994141e6 RD |
6512 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); |
6513 | if (PyErr_Occurred()) SWIG_fail; | |
6514 | } | |
6515 | { | |
6516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6517 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
6518 | |
6519 | wxPyEndAllowThreads(__tstate); | |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
6521 | } | |
6522 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6523 | return resultobj; | |
6524 | fail: | |
6525 | return NULL; | |
6526 | } | |
6527 | ||
6528 | ||
6529 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6530 | PyObject *resultobj; | |
6531 | wxNativeEncodingInfo *arg1 = 0 ; | |
6532 | bool result; | |
6533 | PyObject * obj0 = 0 ; | |
6534 | char *kwnames[] = { | |
6535 | (char *) "info", NULL | |
6536 | }; | |
6537 | ||
6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6540 | if (arg1 == NULL) { | |
6541 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6542 | } | |
6543 | { | |
6544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6545 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6546 | ||
6547 | wxPyEndAllowThreads(__tstate); | |
6548 | if (PyErr_Occurred()) SWIG_fail; | |
6549 | } | |
994141e6 | 6550 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6551 | return resultobj; |
6552 | fail: | |
6553 | return NULL; | |
6554 | } | |
6555 | ||
6556 | ||
6557 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6558 | PyObject *resultobj; | |
6559 | wxFontMapper *result; | |
6560 | char *kwnames[] = { | |
6561 | NULL | |
6562 | }; | |
6563 | ||
6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6565 | { | |
6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6567 | result = (wxFontMapper *)new wxFontMapper(); | |
6568 | ||
6569 | wxPyEndAllowThreads(__tstate); | |
6570 | if (PyErr_Occurred()) SWIG_fail; | |
6571 | } | |
6572 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6573 | return resultobj; | |
6574 | fail: | |
6575 | return NULL; | |
6576 | } | |
6577 | ||
6578 | ||
6579 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6580 | PyObject *resultobj; | |
6581 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6582 | PyObject * obj0 = 0 ; | |
6583 | char *kwnames[] = { | |
6584 | (char *) "self", NULL | |
6585 | }; | |
6586 | ||
6587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6589 | { | |
6590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6591 | delete arg1; | |
6592 | ||
6593 | wxPyEndAllowThreads(__tstate); | |
6594 | if (PyErr_Occurred()) SWIG_fail; | |
6595 | } | |
6596 | Py_INCREF(Py_None); resultobj = Py_None; | |
6597 | return resultobj; | |
6598 | fail: | |
6599 | return NULL; | |
6600 | } | |
6601 | ||
6602 | ||
6603 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6604 | PyObject *resultobj; | |
6605 | wxFontMapper *result; | |
6606 | char *kwnames[] = { | |
6607 | NULL | |
6608 | }; | |
6609 | ||
6610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6611 | { | |
6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6613 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6614 | ||
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
6617 | } | |
6618 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6619 | return resultobj; | |
6620 | fail: | |
6621 | return NULL; | |
6622 | } | |
6623 | ||
6624 | ||
6625 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6626 | PyObject *resultobj; | |
6627 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6628 | wxFontMapper *result; | |
6629 | PyObject * obj0 = 0 ; | |
6630 | char *kwnames[] = { | |
6631 | (char *) "mapper", NULL | |
6632 | }; | |
6633 | ||
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6636 | { | |
6637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6638 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6639 | ||
6640 | wxPyEndAllowThreads(__tstate); | |
6641 | if (PyErr_Occurred()) SWIG_fail; | |
6642 | } | |
6643 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6644 | return resultobj; | |
6645 | fail: | |
6646 | return NULL; | |
6647 | } | |
6648 | ||
6649 | ||
6650 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6651 | PyObject *resultobj; | |
6652 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6653 | wxString *arg2 = 0 ; | |
e811c8ce | 6654 | bool arg3 = (bool) True ; |
d14a1e28 | 6655 | int result; |
e811c8ce | 6656 | bool temp2 = False ; |
d14a1e28 RD |
6657 | PyObject * obj0 = 0 ; |
6658 | PyObject * obj1 = 0 ; | |
6659 | PyObject * obj2 = 0 ; | |
6660 | char *kwnames[] = { | |
6661 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6662 | }; | |
6663 | ||
6664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6666 | { | |
6667 | arg2 = wxString_in_helper(obj1); | |
6668 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6669 | temp2 = True; |
d14a1e28 RD |
6670 | } |
6671 | if (obj2) { | |
a41e16b6 | 6672 | { |
994141e6 | 6673 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6674 | if (PyErr_Occurred()) SWIG_fail; |
6675 | } | |
d14a1e28 RD |
6676 | } |
6677 | { | |
6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6679 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6680 | ||
6681 | wxPyEndAllowThreads(__tstate); | |
6682 | if (PyErr_Occurred()) SWIG_fail; | |
6683 | } | |
994141e6 | 6684 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6685 | { |
6686 | if (temp2) | |
6687 | delete arg2; | |
6688 | } | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | { | |
6692 | if (temp2) | |
6693 | delete arg2; | |
6694 | } | |
6695 | return NULL; | |
6696 | } | |
6697 | ||
6698 | ||
6699 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6700 | PyObject *resultobj; | |
6701 | size_t result; | |
6702 | char *kwnames[] = { | |
6703 | NULL | |
6704 | }; | |
6705 | ||
6706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6707 | { | |
6708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6709 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6710 | ||
6711 | wxPyEndAllowThreads(__tstate); | |
6712 | if (PyErr_Occurred()) SWIG_fail; | |
6713 | } | |
994141e6 | 6714 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6715 | return resultobj; |
6716 | fail: | |
6717 | return NULL; | |
6718 | } | |
6719 | ||
6720 | ||
6721 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6722 | PyObject *resultobj; | |
6723 | size_t arg1 ; | |
6724 | int result; | |
6725 | PyObject * obj0 = 0 ; | |
6726 | char *kwnames[] = { | |
6727 | (char *) "n", NULL | |
6728 | }; | |
6729 | ||
6730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
a41e16b6 | 6731 | { |
994141e6 | 6732 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
6733 | if (PyErr_Occurred()) SWIG_fail; |
6734 | } | |
d14a1e28 RD |
6735 | { |
6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6737 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6738 | ||
6739 | wxPyEndAllowThreads(__tstate); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | } | |
994141e6 | 6742 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6743 | return resultobj; |
6744 | fail: | |
6745 | return NULL; | |
6746 | } | |
6747 | ||
6748 | ||
6749 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6750 | PyObject *resultobj; | |
6751 | int arg1 ; | |
6752 | wxString result; | |
994141e6 | 6753 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6754 | char *kwnames[] = { |
6755 | (char *) "encoding", NULL | |
6756 | }; | |
6757 | ||
994141e6 RD |
6758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
6759 | { | |
6760 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6761 | if (PyErr_Occurred()) SWIG_fail; | |
6762 | } | |
d14a1e28 RD |
6763 | { |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | } | |
6770 | { | |
6771 | #if wxUSE_UNICODE | |
6772 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6773 | #else | |
6774 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6775 | #endif | |
6776 | } | |
6777 | return resultobj; | |
6778 | fail: | |
6779 | return NULL; | |
6780 | } | |
6781 | ||
6782 | ||
6783 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6784 | PyObject *resultobj; | |
6785 | int arg1 ; | |
6786 | wxString result; | |
994141e6 | 6787 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6788 | char *kwnames[] = { |
6789 | (char *) "encoding", NULL | |
6790 | }; | |
6791 | ||
994141e6 RD |
6792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
6793 | { | |
6794 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
d14a1e28 RD |
6797 | { |
6798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6799 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6800 | ||
6801 | wxPyEndAllowThreads(__tstate); | |
6802 | if (PyErr_Occurred()) SWIG_fail; | |
6803 | } | |
6804 | { | |
6805 | #if wxUSE_UNICODE | |
6806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6807 | #else | |
6808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6809 | #endif | |
6810 | } | |
6811 | return resultobj; | |
6812 | fail: | |
6813 | return NULL; | |
6814 | } | |
6815 | ||
6816 | ||
6817 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6818 | PyObject *resultobj; | |
6819 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6820 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6821 | PyObject * obj0 = 0 ; | |
6822 | PyObject * obj1 = 0 ; | |
6823 | char *kwnames[] = { | |
6824 | (char *) "self",(char *) "config", NULL | |
6825 | }; | |
6826 | ||
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6829 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6830 | { | |
6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6832 | (arg1)->SetConfig(arg2); | |
6833 | ||
6834 | wxPyEndAllowThreads(__tstate); | |
6835 | if (PyErr_Occurred()) SWIG_fail; | |
6836 | } | |
6837 | Py_INCREF(Py_None); resultobj = Py_None; | |
6838 | return resultobj; | |
6839 | fail: | |
6840 | return NULL; | |
6841 | } | |
6842 | ||
6843 | ||
6844 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6845 | PyObject *resultobj; | |
6846 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6847 | wxString *arg2 = 0 ; | |
e811c8ce | 6848 | bool temp2 = False ; |
d14a1e28 RD |
6849 | PyObject * obj0 = 0 ; |
6850 | PyObject * obj1 = 0 ; | |
6851 | char *kwnames[] = { | |
6852 | (char *) "self",(char *) "prefix", NULL | |
6853 | }; | |
6854 | ||
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6857 | { | |
6858 | arg2 = wxString_in_helper(obj1); | |
6859 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6860 | temp2 = True; |
d14a1e28 RD |
6861 | } |
6862 | { | |
6863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6864 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6865 | ||
6866 | wxPyEndAllowThreads(__tstate); | |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
6868 | } | |
6869 | Py_INCREF(Py_None); resultobj = Py_None; | |
6870 | { | |
6871 | if (temp2) | |
6872 | delete arg2; | |
6873 | } | |
6874 | return resultobj; | |
6875 | fail: | |
6876 | { | |
6877 | if (temp2) | |
6878 | delete arg2; | |
6879 | } | |
6880 | return NULL; | |
6881 | } | |
6882 | ||
6883 | ||
6884 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6885 | PyObject *resultobj; | |
6886 | wxString result; | |
6887 | char *kwnames[] = { | |
6888 | NULL | |
6889 | }; | |
6890 | ||
6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6892 | { | |
6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6894 | result = wxFontMapper::GetDefaultConfigPath(); | |
6895 | ||
6896 | wxPyEndAllowThreads(__tstate); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | } | |
6899 | { | |
6900 | #if wxUSE_UNICODE | |
6901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6902 | #else | |
6903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6904 | #endif | |
6905 | } | |
6906 | return resultobj; | |
6907 | fail: | |
6908 | return NULL; | |
6909 | } | |
6910 | ||
6911 | ||
6912 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6913 | PyObject *resultobj; | |
6914 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6915 | int arg2 ; | |
6916 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6917 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 6918 | bool arg4 = (bool) True ; |
d14a1e28 | 6919 | PyObject *result; |
e811c8ce | 6920 | bool temp3 = False ; |
d14a1e28 | 6921 | PyObject * obj0 = 0 ; |
994141e6 | 6922 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6923 | PyObject * obj2 = 0 ; |
6924 | PyObject * obj3 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6927 | }; | |
6928 | ||
994141e6 | 6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6931 | { |
6932 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
d14a1e28 RD |
6935 | if (obj2) { |
6936 | { | |
6937 | arg3 = wxString_in_helper(obj2); | |
6938 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6939 | temp3 = True; |
d14a1e28 RD |
6940 | } |
6941 | } | |
6942 | if (obj3) { | |
a41e16b6 | 6943 | { |
994141e6 | 6944 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
6945 | if (PyErr_Occurred()) SWIG_fail; |
6946 | } | |
d14a1e28 RD |
6947 | } |
6948 | { | |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6951 | ||
6952 | wxPyEndAllowThreads(__tstate); | |
6953 | if (PyErr_Occurred()) SWIG_fail; | |
6954 | } | |
6955 | resultobj = result; | |
6956 | { | |
6957 | if (temp3) | |
6958 | delete arg3; | |
6959 | } | |
6960 | return resultobj; | |
6961 | fail: | |
6962 | { | |
6963 | if (temp3) | |
6964 | delete arg3; | |
6965 | } | |
6966 | return NULL; | |
6967 | } | |
6968 | ||
6969 | ||
6970 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6971 | PyObject *resultobj; | |
6972 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6973 | int arg2 ; | |
6974 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6975 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6976 | bool result; | |
e811c8ce | 6977 | bool temp3 = False ; |
d14a1e28 | 6978 | PyObject * obj0 = 0 ; |
994141e6 | 6979 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6980 | PyObject * obj2 = 0 ; |
6981 | char *kwnames[] = { | |
6982 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
6983 | }; | |
6984 | ||
994141e6 | 6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6987 | { |
6988 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6989 | if (PyErr_Occurred()) SWIG_fail; | |
6990 | } | |
d14a1e28 RD |
6991 | if (obj2) { |
6992 | { | |
6993 | arg3 = wxString_in_helper(obj2); | |
6994 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6995 | temp3 = True; |
d14a1e28 RD |
6996 | } |
6997 | } | |
6998 | { | |
6999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7000 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7001 | ||
7002 | wxPyEndAllowThreads(__tstate); | |
7003 | if (PyErr_Occurred()) SWIG_fail; | |
7004 | } | |
994141e6 | 7005 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7006 | { |
7007 | if (temp3) | |
7008 | delete arg3; | |
7009 | } | |
7010 | return resultobj; | |
7011 | fail: | |
7012 | { | |
7013 | if (temp3) | |
7014 | delete arg3; | |
7015 | } | |
7016 | return NULL; | |
7017 | } | |
7018 | ||
7019 | ||
7020 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject *resultobj; | |
7022 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7023 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7024 | PyObject * obj0 = 0 ; | |
7025 | PyObject * obj1 = 0 ; | |
7026 | char *kwnames[] = { | |
7027 | (char *) "self",(char *) "parent", NULL | |
7028 | }; | |
7029 | ||
7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7032 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7033 | { | |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | (arg1)->SetDialogParent(arg2); | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
7040 | Py_INCREF(Py_None); resultobj = Py_None; | |
7041 | return resultobj; | |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
7047 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7048 | PyObject *resultobj; | |
7049 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7050 | wxString *arg2 = 0 ; | |
e811c8ce | 7051 | bool temp2 = False ; |
d14a1e28 RD |
7052 | PyObject * obj0 = 0 ; |
7053 | PyObject * obj1 = 0 ; | |
7054 | char *kwnames[] = { | |
7055 | (char *) "self",(char *) "title", NULL | |
7056 | }; | |
7057 | ||
7058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7060 | { | |
7061 | arg2 = wxString_in_helper(obj1); | |
7062 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7063 | temp2 = True; |
d14a1e28 RD |
7064 | } |
7065 | { | |
7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7067 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7068 | ||
7069 | wxPyEndAllowThreads(__tstate); | |
7070 | if (PyErr_Occurred()) SWIG_fail; | |
7071 | } | |
7072 | Py_INCREF(Py_None); resultobj = Py_None; | |
7073 | { | |
7074 | if (temp2) | |
7075 | delete arg2; | |
7076 | } | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | { | |
7080 | if (temp2) | |
7081 | delete arg2; | |
7082 | } | |
7083 | return NULL; | |
7084 | } | |
7085 | ||
7086 | ||
7087 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7088 | PyObject *obj; | |
7089 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7090 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7091 | Py_INCREF(obj); | |
7092 | return Py_BuildValue((char *)""); | |
7093 | } | |
7094 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7095 | PyObject *resultobj; | |
7096 | int arg1 ; | |
7097 | int arg2 ; | |
7098 | int arg3 ; | |
7099 | int arg4 ; | |
e811c8ce | 7100 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7101 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7102 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7103 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7104 | wxFont *result; | |
e811c8ce | 7105 | bool temp6 = False ; |
994141e6 RD |
7106 | PyObject * obj0 = 0 ; |
7107 | PyObject * obj1 = 0 ; | |
7108 | PyObject * obj2 = 0 ; | |
7109 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7110 | PyObject * obj4 = 0 ; |
7111 | PyObject * obj5 = 0 ; | |
994141e6 | 7112 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7113 | char *kwnames[] = { |
7114 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7115 | }; | |
7116 | ||
994141e6 RD |
7117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
7118 | { | |
7119 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7120 | if (PyErr_Occurred()) SWIG_fail; | |
7121 | } | |
7122 | { | |
7123 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7124 | if (PyErr_Occurred()) SWIG_fail; | |
7125 | } | |
7126 | { | |
7127 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | } | |
7130 | { | |
7131 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | } | |
d14a1e28 | 7134 | if (obj4) { |
a41e16b6 | 7135 | { |
994141e6 | 7136 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
7137 | if (PyErr_Occurred()) SWIG_fail; |
7138 | } | |
d14a1e28 RD |
7139 | } |
7140 | if (obj5) { | |
7141 | { | |
7142 | arg6 = wxString_in_helper(obj5); | |
7143 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 7144 | temp6 = True; |
d14a1e28 RD |
7145 | } |
7146 | } | |
994141e6 RD |
7147 | if (obj6) { |
7148 | { | |
7149 | arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
7152 | } | |
d14a1e28 RD |
7153 | { |
7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7155 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7156 | ||
7157 | wxPyEndAllowThreads(__tstate); | |
7158 | if (PyErr_Occurred()) SWIG_fail; | |
7159 | } | |
7160 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7161 | { | |
7162 | if (temp6) | |
7163 | delete arg6; | |
7164 | } | |
7165 | return resultobj; | |
7166 | fail: | |
7167 | { | |
7168 | if (temp6) | |
7169 | delete arg6; | |
7170 | } | |
7171 | return NULL; | |
7172 | } | |
7173 | ||
7174 | ||
7175 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7176 | PyObject *resultobj; | |
7177 | wxFont *arg1 = (wxFont *) 0 ; | |
7178 | PyObject * obj0 = 0 ; | |
7179 | char *kwnames[] = { | |
7180 | (char *) "self", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7185 | { | |
7186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7187 | delete arg1; | |
7188 | ||
7189 | wxPyEndAllowThreads(__tstate); | |
7190 | if (PyErr_Occurred()) SWIG_fail; | |
7191 | } | |
7192 | Py_INCREF(Py_None); resultobj = Py_None; | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj; | |
7201 | wxNativeFontInfo *arg1 = 0 ; | |
7202 | wxFont *result; | |
7203 | PyObject * obj0 = 0 ; | |
7204 | char *kwnames[] = { | |
7205 | (char *) "info", NULL | |
7206 | }; | |
7207 | ||
7208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7210 | if (arg1 == NULL) { | |
7211 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7212 | } | |
7213 | { | |
7214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7215 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7216 | ||
7217 | wxPyEndAllowThreads(__tstate); | |
7218 | if (PyErr_Occurred()) SWIG_fail; | |
7219 | } | |
7220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7221 | return resultobj; | |
7222 | fail: | |
7223 | return NULL; | |
7224 | } | |
7225 | ||
7226 | ||
7227 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7228 | PyObject *resultobj; | |
7229 | wxString *arg1 = 0 ; | |
7230 | wxFont *result; | |
e811c8ce | 7231 | bool temp1 = False ; |
d14a1e28 RD |
7232 | PyObject * obj0 = 0 ; |
7233 | char *kwnames[] = { | |
7234 | (char *) "info", NULL | |
7235 | }; | |
7236 | ||
7237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7238 | { | |
7239 | arg1 = wxString_in_helper(obj0); | |
7240 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7241 | temp1 = True; |
d14a1e28 RD |
7242 | } |
7243 | { | |
7244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7245 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7246 | ||
7247 | wxPyEndAllowThreads(__tstate); | |
7248 | if (PyErr_Occurred()) SWIG_fail; | |
7249 | } | |
7250 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7251 | { | |
7252 | if (temp1) | |
7253 | delete arg1; | |
7254 | } | |
7255 | return resultobj; | |
7256 | fail: | |
7257 | { | |
7258 | if (temp1) | |
7259 | delete arg1; | |
7260 | } | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
7265 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7266 | PyObject *resultobj; | |
7267 | int arg1 ; | |
7268 | int arg2 ; | |
7269 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7270 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7271 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7272 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7273 | wxFont *result; | |
e811c8ce | 7274 | bool temp4 = False ; |
994141e6 RD |
7275 | PyObject * obj0 = 0 ; |
7276 | PyObject * obj1 = 0 ; | |
7277 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7278 | PyObject * obj3 = 0 ; |
994141e6 | 7279 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7280 | char *kwnames[] = { |
7281 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7282 | }; | |
7283 | ||
994141e6 RD |
7284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7285 | { | |
7286 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7287 | if (PyErr_Occurred()) SWIG_fail; | |
7288 | } | |
7289 | { | |
7290 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
7291 | if (PyErr_Occurred()) SWIG_fail; | |
7292 | } | |
7293 | if (obj2) { | |
7294 | { | |
7295 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7296 | if (PyErr_Occurred()) SWIG_fail; | |
7297 | } | |
7298 | } | |
d14a1e28 RD |
7299 | if (obj3) { |
7300 | { | |
7301 | arg4 = wxString_in_helper(obj3); | |
7302 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7303 | temp4 = True; |
d14a1e28 RD |
7304 | } |
7305 | } | |
994141e6 RD |
7306 | if (obj4) { |
7307 | { | |
7308 | arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | } | |
d14a1e28 RD |
7312 | { |
7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7314 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7315 | ||
7316 | wxPyEndAllowThreads(__tstate); | |
7317 | if (PyErr_Occurred()) SWIG_fail; | |
7318 | } | |
7319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7320 | { | |
7321 | if (temp4) | |
7322 | delete arg4; | |
7323 | } | |
7324 | return resultobj; | |
7325 | fail: | |
7326 | { | |
7327 | if (temp4) | |
7328 | delete arg4; | |
7329 | } | |
7330 | return NULL; | |
7331 | } | |
7332 | ||
7333 | ||
7334 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7335 | PyObject *resultobj; | |
7336 | wxFont *arg1 = (wxFont *) 0 ; | |
7337 | bool result; | |
7338 | PyObject * obj0 = 0 ; | |
7339 | char *kwnames[] = { | |
7340 | (char *) "self", NULL | |
7341 | }; | |
7342 | ||
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7345 | { | |
7346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7347 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7348 | ||
7349 | wxPyEndAllowThreads(__tstate); | |
7350 | if (PyErr_Occurred()) SWIG_fail; | |
7351 | } | |
994141e6 | 7352 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7353 | return resultobj; |
7354 | fail: | |
7355 | return NULL; | |
7356 | } | |
7357 | ||
7358 | ||
7359 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject *resultobj; | |
7361 | wxFont *arg1 = (wxFont *) 0 ; | |
7362 | wxFont *arg2 = 0 ; | |
7363 | bool result; | |
7364 | PyObject * obj0 = 0 ; | |
7365 | PyObject * obj1 = 0 ; | |
7366 | char *kwnames[] = { | |
7367 | (char *) "self",(char *) "font", NULL | |
7368 | }; | |
7369 | ||
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7372 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7373 | if (arg2 == NULL) { | |
7374 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7375 | } | |
7376 | { | |
7377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7378 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
7379 | ||
7380 | wxPyEndAllowThreads(__tstate); | |
7381 | if (PyErr_Occurred()) SWIG_fail; | |
7382 | } | |
994141e6 | 7383 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7384 | return resultobj; |
7385 | fail: | |
7386 | return NULL; | |
7387 | } | |
7388 | ||
7389 | ||
7390 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7391 | PyObject *resultobj; | |
7392 | wxFont *arg1 = (wxFont *) 0 ; | |
7393 | wxFont *arg2 = 0 ; | |
7394 | bool result; | |
7395 | PyObject * obj0 = 0 ; | |
7396 | PyObject * obj1 = 0 ; | |
7397 | char *kwnames[] = { | |
7398 | (char *) "self",(char *) "font", NULL | |
7399 | }; | |
7400 | ||
7401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7403 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7404 | if (arg2 == NULL) { | |
7405 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7406 | } | |
7407 | { | |
7408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7409 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
7410 | ||
7411 | wxPyEndAllowThreads(__tstate); | |
7412 | if (PyErr_Occurred()) SWIG_fail; | |
7413 | } | |
994141e6 | 7414 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7415 | return resultobj; |
7416 | fail: | |
7417 | return NULL; | |
7418 | } | |
7419 | ||
7420 | ||
7421 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7422 | PyObject *resultobj; | |
7423 | wxFont *arg1 = (wxFont *) 0 ; | |
7424 | int result; | |
7425 | PyObject * obj0 = 0 ; | |
7426 | char *kwnames[] = { | |
7427 | (char *) "self", NULL | |
7428 | }; | |
7429 | ||
7430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7432 | { | |
7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7434 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7435 | ||
7436 | wxPyEndAllowThreads(__tstate); | |
7437 | if (PyErr_Occurred()) SWIG_fail; | |
7438 | } | |
994141e6 | 7439 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7440 | return resultobj; |
7441 | fail: | |
7442 | return NULL; | |
7443 | } | |
7444 | ||
7445 | ||
7446 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7447 | PyObject *resultobj; | |
7448 | wxFont *arg1 = (wxFont *) 0 ; | |
7449 | int result; | |
7450 | PyObject * obj0 = 0 ; | |
7451 | char *kwnames[] = { | |
7452 | (char *) "self", NULL | |
7453 | }; | |
7454 | ||
7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7457 | { | |
7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7459 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7460 | ||
7461 | wxPyEndAllowThreads(__tstate); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
994141e6 | 7464 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7465 | return resultobj; |
7466 | fail: | |
7467 | return NULL; | |
7468 | } | |
7469 | ||
7470 | ||
7471 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7472 | PyObject *resultobj; | |
7473 | wxFont *arg1 = (wxFont *) 0 ; | |
7474 | int result; | |
7475 | PyObject * obj0 = 0 ; | |
7476 | char *kwnames[] = { | |
7477 | (char *) "self", NULL | |
7478 | }; | |
7479 | ||
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7482 | { | |
7483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7484 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7485 | ||
7486 | wxPyEndAllowThreads(__tstate); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
994141e6 | 7489 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7490 | return resultobj; |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject *resultobj; | |
7498 | wxFont *arg1 = (wxFont *) 0 ; | |
7499 | int result; | |
7500 | PyObject * obj0 = 0 ; | |
7501 | char *kwnames[] = { | |
7502 | (char *) "self", NULL | |
7503 | }; | |
7504 | ||
7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7507 | { | |
7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7509 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7510 | ||
7511 | wxPyEndAllowThreads(__tstate); | |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
7513 | } | |
994141e6 | 7514 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7515 | return resultobj; |
7516 | fail: | |
7517 | return NULL; | |
7518 | } | |
7519 | ||
7520 | ||
7521 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7522 | PyObject *resultobj; | |
7523 | wxFont *arg1 = (wxFont *) 0 ; | |
7524 | bool result; | |
7525 | PyObject * obj0 = 0 ; | |
7526 | char *kwnames[] = { | |
7527 | (char *) "self", NULL | |
7528 | }; | |
7529 | ||
7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7532 | { | |
7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7534 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7535 | ||
7536 | wxPyEndAllowThreads(__tstate); | |
7537 | if (PyErr_Occurred()) SWIG_fail; | |
7538 | } | |
994141e6 | 7539 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7540 | return resultobj; |
7541 | fail: | |
7542 | return NULL; | |
7543 | } | |
7544 | ||
7545 | ||
7546 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7547 | PyObject *resultobj; | |
7548 | wxFont *arg1 = (wxFont *) 0 ; | |
7549 | wxString result; | |
7550 | PyObject * obj0 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "self", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7557 | { | |
7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7559 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7560 | ||
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | { | |
7565 | #if wxUSE_UNICODE | |
7566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7567 | #else | |
7568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7569 | #endif | |
7570 | } | |
7571 | return resultobj; | |
7572 | fail: | |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
7577 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7578 | PyObject *resultobj; | |
7579 | wxFont *arg1 = (wxFont *) 0 ; | |
7580 | int result; | |
7581 | PyObject * obj0 = 0 ; | |
7582 | char *kwnames[] = { | |
7583 | (char *) "self", NULL | |
7584 | }; | |
7585 | ||
7586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7588 | { | |
7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7590 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7591 | ||
7592 | wxPyEndAllowThreads(__tstate); | |
7593 | if (PyErr_Occurred()) SWIG_fail; | |
7594 | } | |
994141e6 | 7595 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7596 | return resultobj; |
7597 | fail: | |
7598 | return NULL; | |
7599 | } | |
7600 | ||
7601 | ||
7602 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7603 | PyObject *resultobj; | |
7604 | wxFont *arg1 = (wxFont *) 0 ; | |
7605 | wxNativeFontInfo *result; | |
7606 | PyObject * obj0 = 0 ; | |
7607 | char *kwnames[] = { | |
7608 | (char *) "self", NULL | |
7609 | }; | |
7610 | ||
7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7621 | return resultobj; | |
7622 | fail: | |
7623 | return NULL; | |
7624 | } | |
7625 | ||
7626 | ||
7627 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7628 | PyObject *resultobj; | |
7629 | wxFont *arg1 = (wxFont *) 0 ; | |
7630 | bool result; | |
7631 | PyObject * obj0 = 0 ; | |
7632 | char *kwnames[] = { | |
7633 | (char *) "self", NULL | |
7634 | }; | |
7635 | ||
7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7638 | { | |
7639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7640 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7641 | ||
7642 | wxPyEndAllowThreads(__tstate); | |
7643 | if (PyErr_Occurred()) SWIG_fail; | |
7644 | } | |
994141e6 | 7645 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7646 | return resultobj; |
7647 | fail: | |
7648 | return NULL; | |
7649 | } | |
7650 | ||
7651 | ||
7652 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7653 | PyObject *resultobj; | |
7654 | wxFont *arg1 = (wxFont *) 0 ; | |
7655 | wxString result; | |
7656 | PyObject * obj0 = 0 ; | |
7657 | char *kwnames[] = { | |
7658 | (char *) "self", NULL | |
7659 | }; | |
7660 | ||
7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7663 | { | |
7664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7665 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7666 | ||
7667 | wxPyEndAllowThreads(__tstate); | |
7668 | if (PyErr_Occurred()) SWIG_fail; | |
7669 | } | |
7670 | { | |
7671 | #if wxUSE_UNICODE | |
7672 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7673 | #else | |
7674 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7675 | #endif | |
7676 | } | |
7677 | return resultobj; | |
7678 | fail: | |
7679 | return NULL; | |
7680 | } | |
7681 | ||
7682 | ||
7683 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7684 | PyObject *resultobj; | |
7685 | wxFont *arg1 = (wxFont *) 0 ; | |
7686 | wxString result; | |
7687 | PyObject * obj0 = 0 ; | |
7688 | char *kwnames[] = { | |
7689 | (char *) "self", NULL | |
7690 | }; | |
7691 | ||
7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7694 | { | |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7696 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7697 | ||
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | { | |
7702 | #if wxUSE_UNICODE | |
7703 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7704 | #else | |
7705 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7706 | #endif | |
7707 | } | |
7708 | return resultobj; | |
7709 | fail: | |
7710 | return NULL; | |
7711 | } | |
7712 | ||
7713 | ||
7714 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7715 | PyObject *resultobj; | |
7716 | wxFont *arg1 = (wxFont *) 0 ; | |
7717 | int arg2 ; | |
7718 | PyObject * obj0 = 0 ; | |
994141e6 | 7719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7720 | char *kwnames[] = { |
7721 | (char *) "self",(char *) "pointSize", NULL | |
7722 | }; | |
7723 | ||
994141e6 | 7724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7726 | { |
7727 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7728 | if (PyErr_Occurred()) SWIG_fail; | |
7729 | } | |
d14a1e28 RD |
7730 | { |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | (arg1)->SetPointSize(arg2); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | Py_INCREF(Py_None); resultobj = Py_None; | |
7738 | return resultobj; | |
7739 | fail: | |
7740 | return NULL; | |
7741 | } | |
7742 | ||
7743 | ||
7744 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7745 | PyObject *resultobj; | |
7746 | wxFont *arg1 = (wxFont *) 0 ; | |
7747 | int arg2 ; | |
7748 | PyObject * obj0 = 0 ; | |
994141e6 | 7749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7750 | char *kwnames[] = { |
7751 | (char *) "self",(char *) "family", NULL | |
7752 | }; | |
7753 | ||
994141e6 | 7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7756 | { |
7757 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7758 | if (PyErr_Occurred()) SWIG_fail; | |
7759 | } | |
d14a1e28 RD |
7760 | { |
7761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7762 | (arg1)->SetFamily(arg2); | |
7763 | ||
7764 | wxPyEndAllowThreads(__tstate); | |
7765 | if (PyErr_Occurred()) SWIG_fail; | |
7766 | } | |
7767 | Py_INCREF(Py_None); resultobj = Py_None; | |
7768 | return resultobj; | |
7769 | fail: | |
7770 | return NULL; | |
7771 | } | |
7772 | ||
7773 | ||
7774 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7775 | PyObject *resultobj; | |
7776 | wxFont *arg1 = (wxFont *) 0 ; | |
7777 | int arg2 ; | |
7778 | PyObject * obj0 = 0 ; | |
994141e6 | 7779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7780 | char *kwnames[] = { |
7781 | (char *) "self",(char *) "style", NULL | |
7782 | }; | |
7783 | ||
994141e6 | 7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7786 | { |
7787 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | } | |
d14a1e28 RD |
7790 | { |
7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7792 | (arg1)->SetStyle(arg2); | |
7793 | ||
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
7797 | Py_INCREF(Py_None); resultobj = Py_None; | |
7798 | return resultobj; | |
7799 | fail: | |
7800 | return NULL; | |
7801 | } | |
7802 | ||
7803 | ||
7804 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7805 | PyObject *resultobj; | |
7806 | wxFont *arg1 = (wxFont *) 0 ; | |
7807 | int arg2 ; | |
7808 | PyObject * obj0 = 0 ; | |
994141e6 | 7809 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7810 | char *kwnames[] = { |
7811 | (char *) "self",(char *) "weight", NULL | |
7812 | }; | |
7813 | ||
994141e6 | 7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7816 | { |
7817 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
d14a1e28 RD |
7820 | { |
7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7822 | (arg1)->SetWeight(arg2); | |
7823 | ||
7824 | wxPyEndAllowThreads(__tstate); | |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
7826 | } | |
7827 | Py_INCREF(Py_None); resultobj = Py_None; | |
7828 | return resultobj; | |
7829 | fail: | |
7830 | return NULL; | |
7831 | } | |
7832 | ||
7833 | ||
7834 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7835 | PyObject *resultobj; | |
7836 | wxFont *arg1 = (wxFont *) 0 ; | |
7837 | wxString *arg2 = 0 ; | |
e811c8ce | 7838 | bool temp2 = False ; |
d14a1e28 RD |
7839 | PyObject * obj0 = 0 ; |
7840 | PyObject * obj1 = 0 ; | |
7841 | char *kwnames[] = { | |
7842 | (char *) "self",(char *) "faceName", NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7847 | { | |
7848 | arg2 = wxString_in_helper(obj1); | |
7849 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7850 | temp2 = True; |
d14a1e28 RD |
7851 | } |
7852 | { | |
7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7854 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7855 | ||
7856 | wxPyEndAllowThreads(__tstate); | |
7857 | if (PyErr_Occurred()) SWIG_fail; | |
7858 | } | |
7859 | Py_INCREF(Py_None); resultobj = Py_None; | |
7860 | { | |
7861 | if (temp2) | |
7862 | delete arg2; | |
7863 | } | |
7864 | return resultobj; | |
7865 | fail: | |
7866 | { | |
7867 | if (temp2) | |
7868 | delete arg2; | |
7869 | } | |
7870 | return NULL; | |
7871 | } | |
7872 | ||
7873 | ||
7874 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7875 | PyObject *resultobj; | |
7876 | wxFont *arg1 = (wxFont *) 0 ; | |
7877 | bool arg2 ; | |
7878 | PyObject * obj0 = 0 ; | |
7879 | PyObject * obj1 = 0 ; | |
7880 | char *kwnames[] = { | |
7881 | (char *) "self",(char *) "underlined", NULL | |
7882 | }; | |
7883 | ||
7884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 7886 | { |
994141e6 | 7887 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
7888 | if (PyErr_Occurred()) SWIG_fail; |
7889 | } | |
d14a1e28 RD |
7890 | { |
7891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7892 | (arg1)->SetUnderlined(arg2); | |
7893 | ||
7894 | wxPyEndAllowThreads(__tstate); | |
7895 | if (PyErr_Occurred()) SWIG_fail; | |
7896 | } | |
7897 | Py_INCREF(Py_None); resultobj = Py_None; | |
7898 | return resultobj; | |
7899 | fail: | |
7900 | return NULL; | |
7901 | } | |
7902 | ||
7903 | ||
7904 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7905 | PyObject *resultobj; | |
7906 | wxFont *arg1 = (wxFont *) 0 ; | |
7907 | int arg2 ; | |
7908 | PyObject * obj0 = 0 ; | |
994141e6 | 7909 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7910 | char *kwnames[] = { |
7911 | (char *) "self",(char *) "encoding", NULL | |
7912 | }; | |
7913 | ||
994141e6 | 7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7916 | { |
7917 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7918 | if (PyErr_Occurred()) SWIG_fail; | |
7919 | } | |
d14a1e28 RD |
7920 | { |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7923 | ||
7924 | wxPyEndAllowThreads(__tstate); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
7927 | Py_INCREF(Py_None); resultobj = Py_None; | |
7928 | return resultobj; | |
7929 | fail: | |
7930 | return NULL; | |
7931 | } | |
7932 | ||
7933 | ||
7934 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7935 | PyObject *resultobj; | |
7936 | wxFont *arg1 = (wxFont *) 0 ; | |
7937 | wxNativeFontInfo *arg2 = 0 ; | |
7938 | PyObject * obj0 = 0 ; | |
7939 | PyObject * obj1 = 0 ; | |
7940 | char *kwnames[] = { | |
7941 | (char *) "self",(char *) "info", NULL | |
7942 | }; | |
7943 | ||
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7946 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7947 | if (arg2 == NULL) { | |
7948 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7949 | } | |
7950 | { | |
7951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7952 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7953 | ||
7954 | wxPyEndAllowThreads(__tstate); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | } | |
7957 | Py_INCREF(Py_None); resultobj = Py_None; | |
7958 | return resultobj; | |
7959 | fail: | |
7960 | return NULL; | |
7961 | } | |
7962 | ||
7963 | ||
7964 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7965 | PyObject *resultobj; | |
7966 | wxFont *arg1 = (wxFont *) 0 ; | |
7967 | wxString *arg2 = 0 ; | |
e811c8ce | 7968 | bool temp2 = False ; |
d14a1e28 RD |
7969 | PyObject * obj0 = 0 ; |
7970 | PyObject * obj1 = 0 ; | |
7971 | char *kwnames[] = { | |
7972 | (char *) "self",(char *) "info", NULL | |
7973 | }; | |
7974 | ||
7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7977 | { | |
7978 | arg2 = wxString_in_helper(obj1); | |
7979 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7980 | temp2 = True; |
d14a1e28 RD |
7981 | } |
7982 | { | |
7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7984 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
7985 | ||
7986 | wxPyEndAllowThreads(__tstate); | |
7987 | if (PyErr_Occurred()) SWIG_fail; | |
7988 | } | |
7989 | Py_INCREF(Py_None); resultobj = Py_None; | |
7990 | { | |
7991 | if (temp2) | |
7992 | delete arg2; | |
7993 | } | |
7994 | return resultobj; | |
7995 | fail: | |
7996 | { | |
7997 | if (temp2) | |
7998 | delete arg2; | |
7999 | } | |
8000 | return NULL; | |
8001 | } | |
8002 | ||
8003 | ||
8004 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8005 | PyObject *resultobj; | |
8006 | wxFont *arg1 = (wxFont *) 0 ; | |
8007 | wxString *arg2 = 0 ; | |
e811c8ce | 8008 | bool temp2 = False ; |
d14a1e28 RD |
8009 | PyObject * obj0 = 0 ; |
8010 | PyObject * obj1 = 0 ; | |
8011 | char *kwnames[] = { | |
8012 | (char *) "self",(char *) "info", NULL | |
8013 | }; | |
8014 | ||
8015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8017 | { | |
8018 | arg2 = wxString_in_helper(obj1); | |
8019 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8020 | temp2 = True; |
d14a1e28 RD |
8021 | } |
8022 | { | |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) SWIG_fail; | |
8028 | } | |
8029 | Py_INCREF(Py_None); resultobj = Py_None; | |
8030 | { | |
8031 | if (temp2) | |
8032 | delete arg2; | |
8033 | } | |
8034 | return resultobj; | |
8035 | fail: | |
8036 | { | |
8037 | if (temp2) | |
8038 | delete arg2; | |
8039 | } | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxFont *arg1 = (wxFont *) 0 ; | |
8047 | wxString result; | |
8048 | PyObject * obj0 = 0 ; | |
8049 | char *kwnames[] = { | |
8050 | (char *) "self", NULL | |
8051 | }; | |
8052 | ||
8053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8055 | { | |
8056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8057 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8058 | ||
8059 | wxPyEndAllowThreads(__tstate); | |
8060 | if (PyErr_Occurred()) SWIG_fail; | |
8061 | } | |
8062 | { | |
8063 | #if wxUSE_UNICODE | |
8064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8065 | #else | |
8066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8067 | #endif | |
8068 | } | |
8069 | return resultobj; | |
8070 | fail: | |
8071 | return NULL; | |
8072 | } | |
8073 | ||
8074 | ||
8075 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8076 | PyObject *resultobj; | |
8077 | wxFont *arg1 = (wxFont *) 0 ; | |
8078 | wxString result; | |
8079 | PyObject * obj0 = 0 ; | |
8080 | char *kwnames[] = { | |
8081 | (char *) "self", NULL | |
8082 | }; | |
8083 | ||
8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8086 | { | |
8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8088 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8089 | ||
8090 | wxPyEndAllowThreads(__tstate); | |
8091 | if (PyErr_Occurred()) SWIG_fail; | |
8092 | } | |
8093 | { | |
8094 | #if wxUSE_UNICODE | |
8095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8096 | #else | |
8097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8098 | #endif | |
8099 | } | |
8100 | return resultobj; | |
8101 | fail: | |
8102 | return NULL; | |
8103 | } | |
8104 | ||
8105 | ||
8106 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8107 | PyObject *resultobj; | |
8108 | wxFont *arg1 = (wxFont *) 0 ; | |
8109 | wxString result; | |
8110 | PyObject * obj0 = 0 ; | |
8111 | char *kwnames[] = { | |
8112 | (char *) "self", NULL | |
8113 | }; | |
8114 | ||
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8117 | { | |
8118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8119 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8120 | ||
8121 | wxPyEndAllowThreads(__tstate); | |
8122 | if (PyErr_Occurred()) SWIG_fail; | |
8123 | } | |
8124 | { | |
8125 | #if wxUSE_UNICODE | |
8126 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8127 | #else | |
8128 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8129 | #endif | |
8130 | } | |
8131 | return resultobj; | |
8132 | fail: | |
8133 | return NULL; | |
8134 | } | |
8135 | ||
8136 | ||
8137 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8138 | PyObject *resultobj; | |
8139 | wxFont *arg1 = (wxFont *) 0 ; | |
e811c8ce | 8140 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8141 | PyObject * obj0 = 0 ; |
8142 | PyObject * obj1 = 0 ; | |
8143 | char *kwnames[] = { | |
8144 | (char *) "self",(char *) "no", NULL | |
8145 | }; | |
8146 | ||
8147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8149 | if (obj1) { | |
a41e16b6 | 8150 | { |
994141e6 | 8151 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
8152 | if (PyErr_Occurred()) SWIG_fail; |
8153 | } | |
d14a1e28 RD |
8154 | } |
8155 | { | |
8156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8157 | (arg1)->SetNoAntiAliasing(arg2); | |
8158 | ||
8159 | wxPyEndAllowThreads(__tstate); | |
8160 | if (PyErr_Occurred()) SWIG_fail; | |
8161 | } | |
8162 | Py_INCREF(Py_None); resultobj = Py_None; | |
8163 | return resultobj; | |
8164 | fail: | |
8165 | return NULL; | |
8166 | } | |
8167 | ||
8168 | ||
8169 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8170 | PyObject *resultobj; | |
8171 | wxFont *arg1 = (wxFont *) 0 ; | |
8172 | bool result; | |
8173 | PyObject * obj0 = 0 ; | |
8174 | char *kwnames[] = { | |
8175 | (char *) "self", NULL | |
8176 | }; | |
8177 | ||
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8180 | { | |
8181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8182 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8183 | ||
8184 | wxPyEndAllowThreads(__tstate); | |
8185 | if (PyErr_Occurred()) SWIG_fail; | |
8186 | } | |
994141e6 | 8187 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8188 | return resultobj; |
8189 | fail: | |
8190 | return NULL; | |
8191 | } | |
8192 | ||
8193 | ||
8194 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8195 | PyObject *resultobj; | |
8196 | int result; | |
8197 | char *kwnames[] = { | |
8198 | NULL | |
8199 | }; | |
8200 | ||
8201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8202 | { | |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8204 | result = (int)wxFont::GetDefaultEncoding(); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
8207 | if (PyErr_Occurred()) SWIG_fail; | |
8208 | } | |
994141e6 | 8209 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8210 | return resultobj; |
8211 | fail: | |
8212 | return NULL; | |
8213 | } | |
8214 | ||
8215 | ||
8216 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8217 | PyObject *resultobj; | |
8218 | int arg1 ; | |
994141e6 | 8219 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8220 | char *kwnames[] = { |
8221 | (char *) "encoding", NULL | |
8222 | }; | |
8223 | ||
994141e6 RD |
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
8225 | { | |
8226 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
8228 | } | |
d14a1e28 RD |
8229 | { |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8232 | ||
8233 | wxPyEndAllowThreads(__tstate); | |
8234 | if (PyErr_Occurred()) SWIG_fail; | |
8235 | } | |
8236 | Py_INCREF(Py_None); resultobj = Py_None; | |
8237 | return resultobj; | |
8238 | fail: | |
8239 | return NULL; | |
8240 | } | |
8241 | ||
8242 | ||
8243 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8244 | PyObject *obj; | |
8245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8246 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8247 | Py_INCREF(obj); | |
8248 | return Py_BuildValue((char *)""); | |
8249 | } | |
8250 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8251 | PyObject *resultobj; | |
8252 | wxPyFontEnumerator *result; | |
8253 | char *kwnames[] = { | |
8254 | NULL | |
8255 | }; | |
8256 | ||
8257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8258 | { | |
8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8260 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8261 | ||
8262 | wxPyEndAllowThreads(__tstate); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
8264 | } | |
8265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8266 | return resultobj; | |
8267 | fail: | |
8268 | return NULL; | |
8269 | } | |
8270 | ||
8271 | ||
8272 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8273 | PyObject *resultobj; | |
8274 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8275 | PyObject * obj0 = 0 ; | |
8276 | char *kwnames[] = { | |
8277 | (char *) "self", NULL | |
8278 | }; | |
8279 | ||
8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8282 | { | |
8283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8284 | delete arg1; | |
8285 | ||
8286 | wxPyEndAllowThreads(__tstate); | |
8287 | if (PyErr_Occurred()) SWIG_fail; | |
8288 | } | |
8289 | Py_INCREF(Py_None); resultobj = Py_None; | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | return NULL; | |
8293 | } | |
8294 | ||
8295 | ||
8296 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8297 | PyObject *resultobj; | |
8298 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8299 | PyObject *arg2 = (PyObject *) 0 ; | |
8300 | PyObject *arg3 = (PyObject *) 0 ; | |
8301 | bool arg4 ; | |
8302 | PyObject * obj0 = 0 ; | |
8303 | PyObject * obj1 = 0 ; | |
8304 | PyObject * obj2 = 0 ; | |
8305 | PyObject * obj3 = 0 ; | |
8306 | char *kwnames[] = { | |
8307 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8308 | }; | |
8309 | ||
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8312 | arg2 = obj1; | |
8313 | arg3 = obj2; | |
a41e16b6 | 8314 | { |
994141e6 | 8315 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
8316 | if (PyErr_Occurred()) SWIG_fail; |
8317 | } | |
d14a1e28 RD |
8318 | { |
8319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8320 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8321 | ||
8322 | wxPyEndAllowThreads(__tstate); | |
8323 | if (PyErr_Occurred()) SWIG_fail; | |
8324 | } | |
8325 | Py_INCREF(Py_None); resultobj = Py_None; | |
8326 | return resultobj; | |
8327 | fail: | |
8328 | return NULL; | |
8329 | } | |
8330 | ||
8331 | ||
8332 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8333 | PyObject *resultobj; | |
8334 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8335 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
e811c8ce | 8336 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8337 | bool result; |
8338 | PyObject * obj0 = 0 ; | |
994141e6 | 8339 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8340 | PyObject * obj2 = 0 ; |
8341 | char *kwnames[] = { | |
8342 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8343 | }; | |
8344 | ||
994141e6 | 8345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8347 | if (obj1) { |
8348 | { | |
8349 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8350 | if (PyErr_Occurred()) SWIG_fail; | |
8351 | } | |
8352 | } | |
d14a1e28 | 8353 | if (obj2) { |
a41e16b6 | 8354 | { |
994141e6 | 8355 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
8356 | if (PyErr_Occurred()) SWIG_fail; |
8357 | } | |
d14a1e28 RD |
8358 | } |
8359 | { | |
8360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8361 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8362 | ||
8363 | wxPyEndAllowThreads(__tstate); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | } | |
994141e6 | 8366 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8367 | return resultobj; |
8368 | fail: | |
8369 | return NULL; | |
8370 | } | |
8371 | ||
8372 | ||
8373 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8374 | PyObject *resultobj; | |
8375 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8376 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8377 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8378 | bool result; | |
e811c8ce | 8379 | bool temp2 = False ; |
d14a1e28 RD |
8380 | PyObject * obj0 = 0 ; |
8381 | PyObject * obj1 = 0 ; | |
8382 | char *kwnames[] = { | |
8383 | (char *) "self",(char *) "facename", NULL | |
8384 | }; | |
8385 | ||
8386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8388 | if (obj1) { | |
8389 | { | |
8390 | arg2 = wxString_in_helper(obj1); | |
8391 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8392 | temp2 = True; |
d14a1e28 RD |
8393 | } |
8394 | } | |
8395 | { | |
8396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8397 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8398 | ||
8399 | wxPyEndAllowThreads(__tstate); | |
8400 | if (PyErr_Occurred()) SWIG_fail; | |
8401 | } | |
994141e6 | 8402 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8403 | { |
8404 | if (temp2) | |
8405 | delete arg2; | |
8406 | } | |
8407 | return resultobj; | |
8408 | fail: | |
8409 | { | |
8410 | if (temp2) | |
8411 | delete arg2; | |
8412 | } | |
8413 | return NULL; | |
8414 | } | |
8415 | ||
8416 | ||
8417 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8418 | PyObject *resultobj; | |
8419 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8420 | PyObject *result; | |
8421 | PyObject * obj0 = 0 ; | |
8422 | char *kwnames[] = { | |
8423 | (char *) "self", NULL | |
8424 | }; | |
8425 | ||
8426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8428 | { | |
8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8430 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8431 | ||
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
8434 | } | |
8435 | resultobj = result; | |
8436 | return resultobj; | |
8437 | fail: | |
8438 | return NULL; | |
8439 | } | |
8440 | ||
8441 | ||
8442 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8443 | PyObject *resultobj; | |
8444 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8445 | PyObject *result; | |
8446 | PyObject * obj0 = 0 ; | |
8447 | char *kwnames[] = { | |
8448 | (char *) "self", NULL | |
8449 | }; | |
8450 | ||
8451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",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 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8456 | ||
8457 | wxPyEndAllowThreads(__tstate); | |
8458 | if (PyErr_Occurred()) SWIG_fail; | |
8459 | } | |
8460 | resultobj = result; | |
8461 | return resultobj; | |
8462 | fail: | |
8463 | return NULL; | |
8464 | } | |
8465 | ||
8466 | ||
8467 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8468 | PyObject *obj; | |
8469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8470 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8471 | Py_INCREF(obj); | |
8472 | return Py_BuildValue((char *)""); | |
8473 | } | |
8474 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8475 | PyObject *resultobj; | |
8476 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8477 | int arg2 ; | |
8478 | PyObject * obj0 = 0 ; | |
994141e6 | 8479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8480 | char *kwnames[] = { |
8481 | (char *) "self",(char *) "Language", NULL | |
8482 | }; | |
8483 | ||
994141e6 | 8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8486 | { |
8487 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8488 | if (PyErr_Occurred()) SWIG_fail; | |
8489 | } | |
d14a1e28 RD |
8490 | if (arg1) (arg1)->Language = arg2; |
8491 | ||
8492 | Py_INCREF(Py_None); resultobj = Py_None; | |
8493 | return resultobj; | |
8494 | fail: | |
8495 | return NULL; | |
8496 | } | |
8497 | ||
8498 | ||
8499 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8500 | PyObject *resultobj; | |
8501 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8502 | int result; | |
8503 | PyObject * obj0 = 0 ; | |
8504 | char *kwnames[] = { | |
8505 | (char *) "self", NULL | |
8506 | }; | |
8507 | ||
8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8510 | result = (int) ((arg1)->Language); | |
8511 | ||
994141e6 | 8512 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8513 | return resultobj; |
8514 | fail: | |
8515 | return NULL; | |
8516 | } | |
8517 | ||
8518 | ||
8519 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8520 | PyObject *resultobj; | |
8521 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8522 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8523 | bool temp2 = False ; |
d14a1e28 RD |
8524 | PyObject * obj0 = 0 ; |
8525 | PyObject * obj1 = 0 ; | |
8526 | char *kwnames[] = { | |
8527 | (char *) "self",(char *) "CanonicalName", NULL | |
8528 | }; | |
8529 | ||
8530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8532 | { |
8533 | arg2 = wxString_in_helper(obj1); | |
8534 | if (arg2 == NULL) SWIG_fail; | |
8535 | temp2 = True; | |
8536 | } | |
196addbf | 8537 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8538 | |
8539 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8540 | { |
8541 | if (temp2) | |
8542 | delete arg2; | |
8543 | } | |
d14a1e28 RD |
8544 | return resultobj; |
8545 | fail: | |
7eae615b RD |
8546 | { |
8547 | if (temp2) | |
8548 | delete arg2; | |
8549 | } | |
d14a1e28 RD |
8550 | return NULL; |
8551 | } | |
8552 | ||
8553 | ||
8554 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8555 | PyObject *resultobj; | |
8556 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8557 | wxString *result; |
d14a1e28 RD |
8558 | PyObject * obj0 = 0 ; |
8559 | char *kwnames[] = { | |
8560 | (char *) "self", NULL | |
8561 | }; | |
8562 | ||
8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8565 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8566 | |
8567 | { | |
8568 | #if wxUSE_UNICODE | |
196addbf | 8569 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8570 | #else |
196addbf | 8571 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8572 | #endif |
8573 | } | |
8574 | return resultobj; | |
8575 | fail: | |
8576 | return NULL; | |
8577 | } | |
8578 | ||
8579 | ||
8580 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8581 | PyObject *resultobj; | |
8582 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8583 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8584 | bool temp2 = False ; |
d14a1e28 RD |
8585 | PyObject * obj0 = 0 ; |
8586 | PyObject * obj1 = 0 ; | |
8587 | char *kwnames[] = { | |
8588 | (char *) "self",(char *) "Description", NULL | |
8589 | }; | |
8590 | ||
8591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8593 | { |
8594 | arg2 = wxString_in_helper(obj1); | |
8595 | if (arg2 == NULL) SWIG_fail; | |
8596 | temp2 = True; | |
8597 | } | |
196addbf | 8598 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8599 | |
8600 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8601 | { |
8602 | if (temp2) | |
8603 | delete arg2; | |
8604 | } | |
d14a1e28 RD |
8605 | return resultobj; |
8606 | fail: | |
7eae615b RD |
8607 | { |
8608 | if (temp2) | |
8609 | delete arg2; | |
8610 | } | |
d14a1e28 RD |
8611 | return NULL; |
8612 | } | |
8613 | ||
8614 | ||
8615 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8616 | PyObject *resultobj; | |
8617 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8618 | wxString *result; |
d14a1e28 RD |
8619 | PyObject * obj0 = 0 ; |
8620 | char *kwnames[] = { | |
8621 | (char *) "self", NULL | |
8622 | }; | |
8623 | ||
8624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8626 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8627 | |
8628 | { | |
8629 | #if wxUSE_UNICODE | |
196addbf | 8630 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8631 | #else |
196addbf | 8632 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8633 | #endif |
8634 | } | |
8635 | return resultobj; | |
8636 | fail: | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
8641 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8642 | PyObject *obj; | |
8643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8644 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8645 | Py_INCREF(obj); | |
8646 | return Py_BuildValue((char *)""); | |
8647 | } | |
8648 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8649 | PyObject *resultobj; | |
8650 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8651 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8652 | wxLocale *result; | |
994141e6 RD |
8653 | PyObject * obj0 = 0 ; |
8654 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8655 | char *kwnames[] = { |
8656 | (char *) "language",(char *) "flags", NULL | |
8657 | }; | |
8658 | ||
994141e6 RD |
8659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
8660 | if (obj0) { | |
8661 | { | |
8662 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8663 | if (PyErr_Occurred()) SWIG_fail; | |
8664 | } | |
8665 | } | |
8666 | if (obj1) { | |
8667 | { | |
8668 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8669 | if (PyErr_Occurred()) SWIG_fail; | |
8670 | } | |
8671 | } | |
d14a1e28 RD |
8672 | { |
8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8674 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8675 | ||
8676 | wxPyEndAllowThreads(__tstate); | |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
8678 | } | |
8679 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8680 | return resultobj; | |
8681 | fail: | |
8682 | return NULL; | |
8683 | } | |
8684 | ||
8685 | ||
8686 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8687 | PyObject *resultobj; | |
8688 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8689 | PyObject * obj0 = 0 ; | |
8690 | char *kwnames[] = { | |
8691 | (char *) "self", NULL | |
8692 | }; | |
8693 | ||
8694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8696 | { | |
8697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8698 | delete arg1; | |
8699 | ||
8700 | wxPyEndAllowThreads(__tstate); | |
8701 | if (PyErr_Occurred()) SWIG_fail; | |
8702 | } | |
8703 | Py_INCREF(Py_None); resultobj = Py_None; | |
8704 | return resultobj; | |
8705 | fail: | |
8706 | return NULL; | |
8707 | } | |
8708 | ||
8709 | ||
8710 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8711 | PyObject *resultobj; | |
8712 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8713 | wxString *arg2 = 0 ; | |
8714 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8715 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8716 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8717 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
e811c8ce RD |
8718 | bool arg5 = (bool) True ; |
8719 | bool arg6 = (bool) False ; | |
d14a1e28 | 8720 | bool result; |
e811c8ce RD |
8721 | bool temp2 = False ; |
8722 | bool temp3 = False ; | |
8723 | bool temp4 = False ; | |
d14a1e28 RD |
8724 | PyObject * obj0 = 0 ; |
8725 | PyObject * obj1 = 0 ; | |
8726 | PyObject * obj2 = 0 ; | |
8727 | PyObject * obj3 = 0 ; | |
8728 | PyObject * obj4 = 0 ; | |
8729 | PyObject * obj5 = 0 ; | |
8730 | char *kwnames[] = { | |
8731 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8732 | }; | |
8733 | ||
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8736 | { | |
8737 | arg2 = wxString_in_helper(obj1); | |
8738 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8739 | temp2 = True; |
d14a1e28 RD |
8740 | } |
8741 | if (obj2) { | |
8742 | { | |
8743 | arg3 = wxString_in_helper(obj2); | |
8744 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8745 | temp3 = True; |
d14a1e28 RD |
8746 | } |
8747 | } | |
8748 | if (obj3) { | |
8749 | { | |
8750 | arg4 = wxString_in_helper(obj3); | |
8751 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8752 | temp4 = True; |
d14a1e28 RD |
8753 | } |
8754 | } | |
8755 | if (obj4) { | |
a41e16b6 | 8756 | { |
994141e6 | 8757 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
8758 | if (PyErr_Occurred()) SWIG_fail; |
8759 | } | |
d14a1e28 RD |
8760 | } |
8761 | if (obj5) { | |
a41e16b6 | 8762 | { |
994141e6 | 8763 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
a41e16b6 RD |
8764 | if (PyErr_Occurred()) SWIG_fail; |
8765 | } | |
d14a1e28 RD |
8766 | } |
8767 | { | |
8768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8769 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8770 | ||
8771 | wxPyEndAllowThreads(__tstate); | |
8772 | if (PyErr_Occurred()) SWIG_fail; | |
8773 | } | |
994141e6 | 8774 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8775 | { |
8776 | if (temp2) | |
8777 | delete arg2; | |
8778 | } | |
8779 | { | |
8780 | if (temp3) | |
8781 | delete arg3; | |
8782 | } | |
8783 | { | |
8784 | if (temp4) | |
8785 | delete arg4; | |
8786 | } | |
8787 | return resultobj; | |
8788 | fail: | |
8789 | { | |
8790 | if (temp2) | |
8791 | delete arg2; | |
8792 | } | |
8793 | { | |
8794 | if (temp3) | |
8795 | delete arg3; | |
8796 | } | |
8797 | { | |
8798 | if (temp4) | |
8799 | delete arg4; | |
8800 | } | |
8801 | return NULL; | |
8802 | } | |
8803 | ||
8804 | ||
8805 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8806 | PyObject *resultobj; | |
8807 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8808 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8809 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8810 | bool result; | |
8811 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8812 | PyObject * obj1 = 0 ; |
8813 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8814 | char *kwnames[] = { |
8815 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8816 | }; | |
8817 | ||
994141e6 | 8818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8820 | if (obj1) { |
8821 | { | |
8822 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
8825 | } | |
8826 | if (obj2) { | |
8827 | { | |
8828 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8829 | if (PyErr_Occurred()) SWIG_fail; | |
8830 | } | |
8831 | } | |
d14a1e28 RD |
8832 | { |
8833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8834 | result = (bool)(arg1)->Init(arg2,arg3); | |
8835 | ||
8836 | wxPyEndAllowThreads(__tstate); | |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
8838 | } | |
994141e6 | 8839 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8840 | return resultobj; |
8841 | fail: | |
8842 | return NULL; | |
8843 | } | |
8844 | ||
8845 | ||
8846 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8847 | PyObject *resultobj; | |
8848 | int result; | |
8849 | char *kwnames[] = { | |
8850 | NULL | |
8851 | }; | |
8852 | ||
8853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8854 | { | |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | result = (int)wxLocale::GetSystemLanguage(); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
994141e6 | 8861 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8862 | return resultobj; |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8869 | PyObject *resultobj; | |
8870 | int result; | |
8871 | char *kwnames[] = { | |
8872 | NULL | |
8873 | }; | |
8874 | ||
8875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8876 | { | |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | result = (int)wxLocale::GetSystemEncoding(); | |
8879 | ||
8880 | wxPyEndAllowThreads(__tstate); | |
8881 | if (PyErr_Occurred()) SWIG_fail; | |
8882 | } | |
994141e6 | 8883 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8884 | return resultobj; |
8885 | fail: | |
8886 | return NULL; | |
8887 | } | |
8888 | ||
8889 | ||
8890 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8891 | PyObject *resultobj; | |
8892 | wxString result; | |
8893 | char *kwnames[] = { | |
8894 | NULL | |
8895 | }; | |
8896 | ||
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | result = wxLocale::GetSystemEncodingName(); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | { | |
8906 | #if wxUSE_UNICODE | |
8907 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8908 | #else | |
8909 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8910 | #endif | |
8911 | } | |
8912 | return resultobj; | |
8913 | fail: | |
8914 | return NULL; | |
8915 | } | |
8916 | ||
8917 | ||
8918 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8919 | PyObject *resultobj; | |
8920 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8921 | bool result; | |
8922 | PyObject * obj0 = 0 ; | |
8923 | char *kwnames[] = { | |
8924 | (char *) "self", NULL | |
8925 | }; | |
8926 | ||
8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8929 | { | |
8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8931 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8932 | ||
8933 | wxPyEndAllowThreads(__tstate); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | } | |
994141e6 | 8936 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8937 | return resultobj; |
8938 | fail: | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8944 | PyObject *resultobj; | |
8945 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8946 | wxString result; | |
8947 | PyObject * obj0 = 0 ; | |
8948 | char *kwnames[] = { | |
8949 | (char *) "self", NULL | |
8950 | }; | |
8951 | ||
8952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8954 | { | |
8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8956 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8957 | ||
8958 | wxPyEndAllowThreads(__tstate); | |
8959 | if (PyErr_Occurred()) SWIG_fail; | |
8960 | } | |
8961 | { | |
8962 | #if wxUSE_UNICODE | |
8963 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8964 | #else | |
8965 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8966 | #endif | |
8967 | } | |
8968 | return resultobj; | |
8969 | fail: | |
8970 | return NULL; | |
8971 | } | |
8972 | ||
8973 | ||
8974 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8975 | PyObject *resultobj; | |
8976 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8977 | int result; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | char *kwnames[] = { | |
8980 | (char *) "self", NULL | |
8981 | }; | |
8982 | ||
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
8984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8985 | { | |
8986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8987 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
8988 | ||
8989 | wxPyEndAllowThreads(__tstate); | |
8990 | if (PyErr_Occurred()) SWIG_fail; | |
8991 | } | |
994141e6 | 8992 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8993 | return resultobj; |
8994 | fail: | |
8995 | return NULL; | |
8996 | } | |
8997 | ||
8998 | ||
8999 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9000 | PyObject *resultobj; | |
9001 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9002 | wxString result; | |
9003 | PyObject * obj0 = 0 ; | |
9004 | char *kwnames[] = { | |
9005 | (char *) "self", NULL | |
9006 | }; | |
9007 | ||
9008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9010 | { | |
9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9012 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9013 | ||
9014 | wxPyEndAllowThreads(__tstate); | |
9015 | if (PyErr_Occurred()) SWIG_fail; | |
9016 | } | |
9017 | { | |
9018 | #if wxUSE_UNICODE | |
9019 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9020 | #else | |
9021 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9022 | #endif | |
9023 | } | |
9024 | return resultobj; | |
9025 | fail: | |
9026 | return NULL; | |
9027 | } | |
9028 | ||
9029 | ||
9030 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9031 | PyObject *resultobj; | |
9032 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9033 | wxString result; | |
9034 | PyObject * obj0 = 0 ; | |
9035 | char *kwnames[] = { | |
9036 | (char *) "self", NULL | |
9037 | }; | |
9038 | ||
9039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9041 | { | |
9042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9043 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9044 | ||
9045 | wxPyEndAllowThreads(__tstate); | |
9046 | if (PyErr_Occurred()) SWIG_fail; | |
9047 | } | |
9048 | { | |
9049 | #if wxUSE_UNICODE | |
9050 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9051 | #else | |
9052 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9053 | #endif | |
9054 | } | |
9055 | return resultobj; | |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj; | |
9063 | wxString *arg1 = 0 ; | |
e811c8ce | 9064 | bool temp1 = False ; |
d14a1e28 RD |
9065 | PyObject * obj0 = 0 ; |
9066 | char *kwnames[] = { | |
9067 | (char *) "prefix", NULL | |
9068 | }; | |
9069 | ||
9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9071 | { | |
9072 | arg1 = wxString_in_helper(obj0); | |
9073 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9074 | temp1 = True; |
d14a1e28 RD |
9075 | } |
9076 | { | |
9077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9078 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9079 | ||
9080 | wxPyEndAllowThreads(__tstate); | |
9081 | if (PyErr_Occurred()) SWIG_fail; | |
9082 | } | |
9083 | Py_INCREF(Py_None); resultobj = Py_None; | |
9084 | { | |
9085 | if (temp1) | |
9086 | delete arg1; | |
9087 | } | |
9088 | return resultobj; | |
9089 | fail: | |
9090 | { | |
9091 | if (temp1) | |
9092 | delete arg1; | |
9093 | } | |
9094 | return NULL; | |
9095 | } | |
9096 | ||
9097 | ||
9098 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9099 | PyObject *resultobj; | |
9100 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9101 | wxString *arg2 = 0 ; | |
9102 | bool result; | |
e811c8ce | 9103 | bool temp2 = False ; |
d14a1e28 RD |
9104 | PyObject * obj0 = 0 ; |
9105 | PyObject * obj1 = 0 ; | |
9106 | char *kwnames[] = { | |
9107 | (char *) "self",(char *) "szDomain", NULL | |
9108 | }; | |
9109 | ||
9110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9112 | { | |
9113 | arg2 = wxString_in_helper(obj1); | |
9114 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9115 | temp2 = True; |
d14a1e28 RD |
9116 | } |
9117 | { | |
9118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9119 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9120 | ||
9121 | wxPyEndAllowThreads(__tstate); | |
9122 | if (PyErr_Occurred()) SWIG_fail; | |
9123 | } | |
994141e6 | 9124 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9125 | { |
9126 | if (temp2) | |
9127 | delete arg2; | |
9128 | } | |
9129 | return resultobj; | |
9130 | fail: | |
9131 | { | |
9132 | if (temp2) | |
9133 | delete arg2; | |
9134 | } | |
9135 | return NULL; | |
9136 | } | |
9137 | ||
9138 | ||
9139 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9140 | PyObject *resultobj; | |
9141 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9142 | wxString *arg2 = 0 ; | |
9143 | bool result; | |
e811c8ce | 9144 | bool temp2 = False ; |
d14a1e28 RD |
9145 | PyObject * obj0 = 0 ; |
9146 | PyObject * obj1 = 0 ; | |
9147 | char *kwnames[] = { | |
9148 | (char *) "self",(char *) "szDomain", NULL | |
9149 | }; | |
9150 | ||
9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9153 | { | |
9154 | arg2 = wxString_in_helper(obj1); | |
9155 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9156 | temp2 = True; |
d14a1e28 RD |
9157 | } |
9158 | { | |
9159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9160 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9161 | ||
9162 | wxPyEndAllowThreads(__tstate); | |
9163 | if (PyErr_Occurred()) SWIG_fail; | |
9164 | } | |
994141e6 | 9165 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9166 | { |
9167 | if (temp2) | |
9168 | delete arg2; | |
9169 | } | |
9170 | return resultobj; | |
9171 | fail: | |
9172 | { | |
9173 | if (temp2) | |
9174 | delete arg2; | |
9175 | } | |
9176 | return NULL; | |
9177 | } | |
9178 | ||
9179 | ||
9180 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9181 | PyObject *resultobj; | |
9182 | int arg1 ; | |
9183 | wxLanguageInfo *result; | |
994141e6 | 9184 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9185 | char *kwnames[] = { |
9186 | (char *) "lang", NULL | |
9187 | }; | |
9188 | ||
994141e6 RD |
9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
9190 | { | |
9191 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9192 | if (PyErr_Occurred()) SWIG_fail; | |
9193 | } | |
d14a1e28 RD |
9194 | { |
9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9196 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9197 | ||
9198 | wxPyEndAllowThreads(__tstate); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | } | |
9201 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9202 | return resultobj; | |
9203 | fail: | |
9204 | return NULL; | |
9205 | } | |
9206 | ||
9207 | ||
9208 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9209 | PyObject *resultobj; | |
9210 | int arg1 ; | |
9211 | wxString result; | |
994141e6 | 9212 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9213 | char *kwnames[] = { |
9214 | (char *) "lang", NULL | |
9215 | }; | |
9216 | ||
994141e6 RD |
9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
9218 | { | |
9219 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9220 | if (PyErr_Occurred()) SWIG_fail; | |
9221 | } | |
d14a1e28 RD |
9222 | { |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | result = wxLocale::GetLanguageName(arg1); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | { | |
9230 | #if wxUSE_UNICODE | |
9231 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9232 | #else | |
9233 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9234 | #endif | |
9235 | } | |
9236 | return resultobj; | |
9237 | fail: | |
9238 | return NULL; | |
9239 | } | |
9240 | ||
9241 | ||
9242 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9243 | PyObject *resultobj; | |
9244 | wxString *arg1 = 0 ; | |
9245 | wxLanguageInfo *result; | |
e811c8ce | 9246 | bool temp1 = False ; |
d14a1e28 RD |
9247 | PyObject * obj0 = 0 ; |
9248 | char *kwnames[] = { | |
9249 | (char *) "locale", NULL | |
9250 | }; | |
9251 | ||
9252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9253 | { | |
9254 | arg1 = wxString_in_helper(obj0); | |
9255 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9256 | temp1 = True; |
d14a1e28 RD |
9257 | } |
9258 | { | |
9259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9260 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9261 | ||
9262 | wxPyEndAllowThreads(__tstate); | |
9263 | if (PyErr_Occurred()) SWIG_fail; | |
9264 | } | |
9265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9266 | { | |
9267 | if (temp1) | |
9268 | delete arg1; | |
9269 | } | |
9270 | return resultobj; | |
9271 | fail: | |
9272 | { | |
9273 | if (temp1) | |
9274 | delete arg1; | |
9275 | } | |
9276 | return NULL; | |
9277 | } | |
9278 | ||
9279 | ||
9280 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9281 | PyObject *resultobj; | |
9282 | wxLanguageInfo *arg1 = 0 ; | |
9283 | PyObject * obj0 = 0 ; | |
9284 | char *kwnames[] = { | |
9285 | (char *) "info", NULL | |
9286 | }; | |
9287 | ||
9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
9289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9290 | if (arg1 == NULL) { | |
9291 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9292 | } | |
9293 | { | |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
9300 | Py_INCREF(Py_None); resultobj = Py_None; | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject *resultobj; | |
9309 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9310 | wxString *arg2 = 0 ; | |
9311 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9312 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9313 | wxString result; | |
e811c8ce RD |
9314 | bool temp2 = False ; |
9315 | bool temp3 = False ; | |
d14a1e28 RD |
9316 | PyObject * obj0 = 0 ; |
9317 | PyObject * obj1 = 0 ; | |
9318 | PyObject * obj2 = 0 ; | |
9319 | char *kwnames[] = { | |
9320 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9321 | }; | |
9322 | ||
9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9325 | { | |
9326 | arg2 = wxString_in_helper(obj1); | |
9327 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9328 | temp2 = True; |
d14a1e28 RD |
9329 | } |
9330 | if (obj2) { | |
9331 | { | |
9332 | arg3 = wxString_in_helper(obj2); | |
9333 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9334 | temp3 = True; |
d14a1e28 RD |
9335 | } |
9336 | } | |
9337 | { | |
9338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9339 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9340 | ||
9341 | wxPyEndAllowThreads(__tstate); | |
9342 | if (PyErr_Occurred()) SWIG_fail; | |
9343 | } | |
9344 | { | |
9345 | #if wxUSE_UNICODE | |
9346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9347 | #else | |
9348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9349 | #endif | |
9350 | } | |
9351 | { | |
9352 | if (temp2) | |
9353 | delete arg2; | |
9354 | } | |
9355 | { | |
9356 | if (temp3) | |
9357 | delete arg3; | |
9358 | } | |
9359 | return resultobj; | |
9360 | fail: | |
9361 | { | |
9362 | if (temp2) | |
9363 | delete arg2; | |
9364 | } | |
9365 | { | |
9366 | if (temp3) | |
9367 | delete arg3; | |
9368 | } | |
9369 | return NULL; | |
9370 | } | |
9371 | ||
9372 | ||
9373 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9374 | PyObject *resultobj; | |
9375 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9376 | wxString *result; | |
9377 | PyObject * obj0 = 0 ; | |
9378 | char *kwnames[] = { | |
9379 | (char *) "self", NULL | |
9380 | }; | |
9381 | ||
9382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9384 | { | |
9385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9386 | { | |
9387 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9388 | result = (wxString *) &_result_ref; | |
9389 | } | |
9390 | ||
9391 | wxPyEndAllowThreads(__tstate); | |
9392 | if (PyErr_Occurred()) SWIG_fail; | |
9393 | } | |
cc6dd355 RD |
9394 | { |
9395 | #if wxUSE_UNICODE | |
9396 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9397 | #else | |
9398 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9399 | #endif | |
9400 | } | |
d14a1e28 RD |
9401 | return resultobj; |
9402 | fail: | |
9403 | return NULL; | |
9404 | } | |
9405 | ||
9406 | ||
9407 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9408 | PyObject *obj; | |
9409 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9410 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9411 | Py_INCREF(obj); | |
9412 | return Py_BuildValue((char *)""); | |
9413 | } | |
9414 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9415 | PyObject *resultobj; | |
9416 | wxLocale *result; | |
9417 | char *kwnames[] = { | |
9418 | NULL | |
9419 | }; | |
9420 | ||
9421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9422 | { | |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (wxLocale *)wxGetLocale(); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9430 | return resultobj; | |
9431 | fail: | |
9432 | return NULL; | |
9433 | } | |
9434 | ||
9435 | ||
9436 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9437 | PyObject *resultobj; | |
9438 | wxString *arg1 = 0 ; | |
9439 | wxString result; | |
e811c8ce | 9440 | bool temp1 = False ; |
d14a1e28 RD |
9441 | PyObject * obj0 = 0 ; |
9442 | ||
9443 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9444 | { | |
9445 | arg1 = wxString_in_helper(obj0); | |
9446 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9447 | temp1 = True; |
d14a1e28 RD |
9448 | } |
9449 | { | |
9450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9451 | result = wxGetTranslation((wxString const &)*arg1); | |
9452 | ||
9453 | wxPyEndAllowThreads(__tstate); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
9456 | { | |
9457 | #if wxUSE_UNICODE | |
9458 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9459 | #else | |
9460 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9461 | #endif | |
9462 | } | |
9463 | { | |
9464 | if (temp1) | |
9465 | delete arg1; | |
9466 | } | |
9467 | return resultobj; | |
9468 | fail: | |
9469 | { | |
9470 | if (temp1) | |
9471 | delete arg1; | |
9472 | } | |
9473 | return NULL; | |
9474 | } | |
9475 | ||
9476 | ||
9477 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9478 | PyObject *resultobj; | |
9479 | wxString *arg1 = 0 ; | |
9480 | wxString *arg2 = 0 ; | |
9481 | size_t arg3 ; | |
9482 | wxString result; | |
e811c8ce RD |
9483 | bool temp1 = False ; |
9484 | bool temp2 = False ; | |
d14a1e28 RD |
9485 | PyObject * obj0 = 0 ; |
9486 | PyObject * obj1 = 0 ; | |
9487 | PyObject * obj2 = 0 ; | |
9488 | ||
9489 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9490 | { | |
9491 | arg1 = wxString_in_helper(obj0); | |
9492 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9493 | temp1 = True; |
d14a1e28 RD |
9494 | } |
9495 | { | |
9496 | arg2 = wxString_in_helper(obj1); | |
9497 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9498 | temp2 = True; |
d14a1e28 | 9499 | } |
a41e16b6 | 9500 | { |
994141e6 | 9501 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
9502 | if (PyErr_Occurred()) SWIG_fail; |
9503 | } | |
d14a1e28 RD |
9504 | { |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9507 | ||
9508 | wxPyEndAllowThreads(__tstate); | |
9509 | if (PyErr_Occurred()) SWIG_fail; | |
9510 | } | |
9511 | { | |
9512 | #if wxUSE_UNICODE | |
9513 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9514 | #else | |
9515 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9516 | #endif | |
9517 | } | |
9518 | { | |
9519 | if (temp1) | |
9520 | delete arg1; | |
9521 | } | |
9522 | { | |
9523 | if (temp2) | |
9524 | delete arg2; | |
9525 | } | |
9526 | return resultobj; | |
9527 | fail: | |
9528 | { | |
9529 | if (temp1) | |
9530 | delete arg1; | |
9531 | } | |
9532 | { | |
9533 | if (temp2) | |
9534 | delete arg2; | |
9535 | } | |
9536 | return NULL; | |
9537 | } | |
9538 | ||
9539 | ||
9540 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9541 | int argc; | |
9542 | PyObject *argv[4]; | |
9543 | int ii; | |
9544 | ||
9545 | argc = PyObject_Length(args); | |
9546 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9547 | argv[ii] = PyTuple_GetItem(args,ii); | |
9548 | } | |
9549 | if (argc == 1) { | |
9550 | int _v; | |
9551 | { | |
9552 | void *ptr; | |
9553 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9554 | _v = 0; | |
9555 | PyErr_Clear(); | |
9556 | } else { | |
9557 | _v = 1; | |
9558 | } | |
9559 | } | |
9560 | if (_v) { | |
9561 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9562 | } | |
9563 | } | |
9564 | if (argc == 3) { | |
9565 | int _v; | |
9566 | { | |
9567 | void *ptr; | |
9568 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9569 | _v = 0; | |
9570 | PyErr_Clear(); | |
9571 | } else { | |
9572 | _v = 1; | |
9573 | } | |
9574 | } | |
9575 | if (_v) { | |
9576 | { | |
9577 | void *ptr; | |
9578 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9579 | _v = 0; | |
9580 | PyErr_Clear(); | |
9581 | } else { | |
9582 | _v = 1; | |
9583 | } | |
9584 | } | |
9585 | if (_v) { | |
9586 | { | |
994141e6 | 9587 | SWIG_PyObj_AsUnsignedLong(argv[2]); |
a41e16b6 RD |
9588 | if (PyErr_Occurred()) { |
9589 | _v = 0; | |
9590 | PyErr_Clear(); | |
9591 | } else { | |
9592 | _v = 1; | |
9593 | } | |
d14a1e28 RD |
9594 | } |
9595 | if (_v) { | |
9596 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9597 | } | |
9598 | } | |
9599 | } | |
9600 | } | |
9601 | ||
9602 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9603 | return NULL; | |
9604 | } | |
9605 | ||
9606 | ||
9607 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9608 | PyObject *resultobj; | |
9609 | wxEncodingConverter *result; | |
9610 | char *kwnames[] = { | |
9611 | NULL | |
9612 | }; | |
9613 | ||
9614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9615 | { | |
9616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9617 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9618 | ||
9619 | wxPyEndAllowThreads(__tstate); | |
9620 | if (PyErr_Occurred()) SWIG_fail; | |
9621 | } | |
9622 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | return NULL; | |
9626 | } | |
9627 | ||
9628 | ||
9629 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9630 | PyObject *resultobj; | |
9631 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9632 | PyObject * obj0 = 0 ; | |
9633 | char *kwnames[] = { | |
9634 | (char *) "self", NULL | |
9635 | }; | |
9636 | ||
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | delete arg1; | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | Py_INCREF(Py_None); resultobj = Py_None; | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9656 | int arg2 ; | |
9657 | int arg3 ; | |
9658 | int arg4 = (int) wxCONVERT_STRICT ; | |
9659 | bool result; | |
9660 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9661 | PyObject * obj1 = 0 ; |
9662 | PyObject * obj2 = 0 ; | |
9663 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9664 | char *kwnames[] = { |
9665 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9666 | }; | |
9667 | ||
994141e6 | 9668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 9669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9670 | { |
9671 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | { | |
9675 | arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2); | |
9676 | if (PyErr_Occurred()) SWIG_fail; | |
9677 | } | |
9678 | if (obj3) { | |
9679 | { | |
9680 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9681 | if (PyErr_Occurred()) SWIG_fail; | |
9682 | } | |
9683 | } | |
d14a1e28 RD |
9684 | { |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
994141e6 | 9691 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9692 | return resultobj; |
9693 | fail: | |
9694 | return NULL; | |
9695 | } | |
9696 | ||
9697 | ||
9698 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9699 | PyObject *resultobj; | |
9700 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9701 | wxString *arg2 = 0 ; | |
9702 | wxString result; | |
e811c8ce | 9703 | bool temp2 = False ; |
d14a1e28 RD |
9704 | PyObject * obj0 = 0 ; |
9705 | PyObject * obj1 = 0 ; | |
9706 | char *kwnames[] = { | |
9707 | (char *) "self",(char *) "input", NULL | |
9708 | }; | |
9709 | ||
9710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9712 | { | |
9713 | arg2 = wxString_in_helper(obj1); | |
9714 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9715 | temp2 = True; |
d14a1e28 RD |
9716 | } |
9717 | { | |
9718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9719 | result = (arg1)->Convert((wxString const &)*arg2); | |
9720 | ||
9721 | wxPyEndAllowThreads(__tstate); | |
9722 | if (PyErr_Occurred()) SWIG_fail; | |
9723 | } | |
9724 | { | |
9725 | #if wxUSE_UNICODE | |
9726 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9727 | #else | |
9728 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9729 | #endif | |
9730 | } | |
9731 | { | |
9732 | if (temp2) | |
9733 | delete arg2; | |
9734 | } | |
9735 | return resultobj; | |
9736 | fail: | |
9737 | { | |
9738 | if (temp2) | |
9739 | delete arg2; | |
9740 | } | |
9741 | return NULL; | |
9742 | } | |
9743 | ||
9744 | ||
9745 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject *resultobj; | |
9747 | int arg1 ; | |
9748 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9749 | wxFontEncodingArray result; | |
994141e6 RD |
9750 | PyObject * obj0 = 0 ; |
9751 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9752 | char *kwnames[] = { |
9753 | (char *) "enc",(char *) "platform", NULL | |
9754 | }; | |
9755 | ||
994141e6 RD |
9756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
9757 | { | |
9758 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
9761 | if (obj1) { | |
9762 | { | |
9763 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9764 | if (PyErr_Occurred()) SWIG_fail; | |
9765 | } | |
9766 | } | |
d14a1e28 RD |
9767 | { |
9768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9769 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9770 | ||
9771 | wxPyEndAllowThreads(__tstate); | |
9772 | if (PyErr_Occurred()) SWIG_fail; | |
9773 | } | |
9774 | { | |
9775 | resultobj = PyList_New(0); | |
9776 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9777 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9778 | PyList_Append(resultobj, number); | |
9779 | Py_DECREF(number); | |
9780 | } | |
9781 | } | |
9782 | return resultobj; | |
9783 | fail: | |
9784 | return NULL; | |
9785 | } | |
9786 | ||
9787 | ||
9788 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9789 | PyObject *resultobj; | |
9790 | int arg1 ; | |
9791 | wxFontEncodingArray result; | |
994141e6 | 9792 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9793 | char *kwnames[] = { |
9794 | (char *) "enc", NULL | |
9795 | }; | |
9796 | ||
994141e6 RD |
9797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
9798 | { | |
9799 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9800 | if (PyErr_Occurred()) SWIG_fail; | |
9801 | } | |
d14a1e28 RD |
9802 | { |
9803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9804 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9805 | ||
9806 | wxPyEndAllowThreads(__tstate); | |
9807 | if (PyErr_Occurred()) SWIG_fail; | |
9808 | } | |
9809 | { | |
9810 | resultobj = PyList_New(0); | |
9811 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9812 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9813 | PyList_Append(resultobj, number); | |
9814 | Py_DECREF(number); | |
9815 | } | |
9816 | } | |
9817 | return resultobj; | |
9818 | fail: | |
9819 | return NULL; | |
9820 | } | |
9821 | ||
9822 | ||
9823 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9824 | PyObject *resultobj; | |
9825 | int arg1 ; | |
9826 | int arg2 ; | |
9827 | bool result; | |
994141e6 RD |
9828 | PyObject * obj0 = 0 ; |
9829 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9830 | char *kwnames[] = { |
9831 | (char *) "encIn",(char *) "encOut", NULL | |
9832 | }; | |
9833 | ||
994141e6 RD |
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
9835 | { | |
9836 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
9839 | { | |
9840 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9841 | if (PyErr_Occurred()) SWIG_fail; | |
9842 | } | |
d14a1e28 RD |
9843 | { |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9845 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9846 | ||
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) SWIG_fail; | |
9849 | } | |
994141e6 | 9850 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9851 | return resultobj; |
9852 | fail: | |
9853 | return NULL; | |
9854 | } | |
9855 | ||
9856 | ||
9857 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9858 | PyObject *obj; | |
9859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9860 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9861 | Py_INCREF(obj); | |
9862 | return Py_BuildValue((char *)""); | |
9863 | } | |
9864 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9865 | PyObject *resultobj; | |
9866 | wxDC *arg1 = (wxDC *) 0 ; | |
9867 | PyObject * obj0 = 0 ; | |
9868 | char *kwnames[] = { | |
9869 | (char *) "self", NULL | |
9870 | }; | |
9871 | ||
9872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9874 | { | |
9875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9876 | delete arg1; | |
9877 | ||
9878 | wxPyEndAllowThreads(__tstate); | |
9879 | if (PyErr_Occurred()) SWIG_fail; | |
9880 | } | |
9881 | Py_INCREF(Py_None); resultobj = Py_None; | |
9882 | return resultobj; | |
9883 | fail: | |
9884 | return NULL; | |
9885 | } | |
9886 | ||
9887 | ||
9888 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9889 | PyObject *resultobj; | |
9890 | wxDC *arg1 = (wxDC *) 0 ; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9898 | { | |
9899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9900 | (arg1)->BeginDrawing(); | |
9901 | ||
9902 | wxPyEndAllowThreads(__tstate); | |
9903 | if (PyErr_Occurred()) SWIG_fail; | |
9904 | } | |
9905 | Py_INCREF(Py_None); resultobj = Py_None; | |
9906 | return resultobj; | |
9907 | fail: | |
9908 | return NULL; | |
9909 | } | |
9910 | ||
9911 | ||
9912 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9913 | PyObject *resultobj; | |
9914 | wxDC *arg1 = (wxDC *) 0 ; | |
9915 | PyObject * obj0 = 0 ; | |
9916 | char *kwnames[] = { | |
9917 | (char *) "self", NULL | |
9918 | }; | |
9919 | ||
9920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9922 | { | |
9923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9924 | (arg1)->EndDrawing(); | |
9925 | ||
9926 | wxPyEndAllowThreads(__tstate); | |
9927 | if (PyErr_Occurred()) SWIG_fail; | |
9928 | } | |
9929 | Py_INCREF(Py_None); resultobj = Py_None; | |
9930 | return resultobj; | |
9931 | fail: | |
9932 | return NULL; | |
9933 | } | |
9934 | ||
9935 | ||
9936 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9937 | PyObject *resultobj; | |
9938 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
9939 | int arg2 ; |
9940 | int arg3 ; | |
d14a1e28 RD |
9941 | wxColour *arg4 = 0 ; |
9942 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9943 | bool result; | |
9944 | wxColour temp4 ; | |
9945 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9946 | PyObject * obj1 = 0 ; |
9947 | PyObject * obj2 = 0 ; | |
d14a1e28 | 9948 | PyObject * obj3 = 0 ; |
994141e6 | 9949 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9950 | char *kwnames[] = { |
9951 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9952 | }; | |
9953 | ||
994141e6 | 9954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 9955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9956 | { |
9957 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
9960 | { | |
9961 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9962 | if (PyErr_Occurred()) SWIG_fail; | |
9963 | } | |
d14a1e28 RD |
9964 | { |
9965 | arg4 = &temp4; | |
9966 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9967 | } | |
994141e6 RD |
9968 | if (obj4) { |
9969 | { | |
9970 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | } | |
d14a1e28 RD |
9974 | { |
9975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9976 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9977 | ||
9978 | wxPyEndAllowThreads(__tstate); | |
9979 | if (PyErr_Occurred()) SWIG_fail; | |
9980 | } | |
994141e6 | 9981 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9982 | return resultobj; |
9983 | fail: | |
9984 | return NULL; | |
9985 | } | |
9986 | ||
9987 | ||
9988 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9989 | PyObject *resultobj; | |
9990 | wxDC *arg1 = (wxDC *) 0 ; | |
9991 | wxPoint *arg2 = 0 ; | |
9992 | wxColour *arg3 = 0 ; | |
9993 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9994 | bool result; | |
9995 | wxPoint temp2 ; | |
9996 | wxColour temp3 ; | |
9997 | PyObject * obj0 = 0 ; | |
9998 | PyObject * obj1 = 0 ; | |
9999 | PyObject * obj2 = 0 ; | |
994141e6 | 10000 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10001 | char *kwnames[] = { |
10002 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10003 | }; | |
10004 | ||
994141e6 | 10005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10007 | { | |
10008 | arg2 = &temp2; | |
10009 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10010 | } | |
10011 | { | |
10012 | arg3 = &temp3; | |
10013 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10014 | } | |
994141e6 RD |
10015 | if (obj3) { |
10016 | { | |
10017 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10018 | if (PyErr_Occurred()) SWIG_fail; | |
10019 | } | |
10020 | } | |
d14a1e28 RD |
10021 | { |
10022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10023 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10024 | ||
10025 | wxPyEndAllowThreads(__tstate); | |
10026 | if (PyErr_Occurred()) SWIG_fail; | |
10027 | } | |
994141e6 | 10028 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10029 | return resultobj; |
10030 | fail: | |
10031 | return NULL; | |
10032 | } | |
10033 | ||
10034 | ||
10035 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10036 | PyObject *resultobj; | |
10037 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10038 | int arg2 ; |
10039 | int arg3 ; | |
d14a1e28 RD |
10040 | wxColour result; |
10041 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10042 | PyObject * obj1 = 0 ; |
10043 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10044 | char *kwnames[] = { |
10045 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10046 | }; | |
10047 | ||
994141e6 | 10048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10050 | { |
10051 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10052 | if (PyErr_Occurred()) SWIG_fail; | |
10053 | } | |
10054 | { | |
10055 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10056 | if (PyErr_Occurred()) SWIG_fail; | |
10057 | } | |
d14a1e28 RD |
10058 | { |
10059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10060 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10061 | ||
10062 | wxPyEndAllowThreads(__tstate); | |
10063 | if (PyErr_Occurred()) SWIG_fail; | |
10064 | } | |
10065 | { | |
10066 | wxColour * resultptr; | |
10067 | resultptr = new wxColour((wxColour &) result); | |
10068 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
10076 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject *resultobj; | |
10078 | wxDC *arg1 = (wxDC *) 0 ; | |
10079 | wxPoint *arg2 = 0 ; | |
10080 | wxColour result; | |
10081 | wxPoint temp2 ; | |
10082 | PyObject * obj0 = 0 ; | |
10083 | PyObject * obj1 = 0 ; | |
10084 | char *kwnames[] = { | |
10085 | (char *) "self",(char *) "pt", NULL | |
10086 | }; | |
10087 | ||
10088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
10089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10090 | { | |
10091 | arg2 = &temp2; | |
10092 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10093 | } | |
10094 | { | |
10095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10096 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10097 | ||
10098 | wxPyEndAllowThreads(__tstate); | |
10099 | if (PyErr_Occurred()) SWIG_fail; | |
10100 | } | |
10101 | { | |
10102 | wxColour * resultptr; | |
10103 | resultptr = new wxColour((wxColour &) result); | |
10104 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10105 | } | |
10106 | return resultobj; | |
10107 | fail: | |
10108 | return NULL; | |
10109 | } | |
10110 | ||
10111 | ||
10112 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10113 | PyObject *resultobj; | |
10114 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10115 | int arg2 ; |
10116 | int arg3 ; | |
10117 | int arg4 ; | |
10118 | int arg5 ; | |
d14a1e28 | 10119 | PyObject * obj0 = 0 ; |
994141e6 RD |
10120 | PyObject * obj1 = 0 ; |
10121 | PyObject * obj2 = 0 ; | |
10122 | PyObject * obj3 = 0 ; | |
10123 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10124 | char *kwnames[] = { |
10125 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10126 | }; | |
10127 | ||
994141e6 | 10128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10130 | { |
10131 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10132 | if (PyErr_Occurred()) SWIG_fail; | |
10133 | } | |
10134 | { | |
10135 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10136 | if (PyErr_Occurred()) SWIG_fail; | |
10137 | } | |
10138 | { | |
10139 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
10142 | { | |
10143 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10144 | if (PyErr_Occurred()) SWIG_fail; | |
10145 | } | |
d14a1e28 RD |
10146 | { |
10147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10148 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10149 | ||
10150 | wxPyEndAllowThreads(__tstate); | |
10151 | if (PyErr_Occurred()) SWIG_fail; | |
10152 | } | |
10153 | Py_INCREF(Py_None); resultobj = Py_None; | |
10154 | return resultobj; | |
10155 | fail: | |
10156 | return NULL; | |
10157 | } | |
10158 | ||
10159 | ||
10160 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject *resultobj; | |
10162 | wxDC *arg1 = (wxDC *) 0 ; | |
10163 | wxPoint *arg2 = 0 ; | |
10164 | wxPoint *arg3 = 0 ; | |
10165 | wxPoint temp2 ; | |
10166 | wxPoint temp3 ; | |
10167 | PyObject * obj0 = 0 ; | |
10168 | PyObject * obj1 = 0 ; | |
10169 | PyObject * obj2 = 0 ; | |
10170 | char *kwnames[] = { | |
10171 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10172 | }; | |
10173 | ||
10174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10176 | { | |
10177 | arg2 = &temp2; | |
10178 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10179 | } | |
10180 | { | |
10181 | arg3 = &temp3; | |
10182 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10183 | } | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10187 | ||
10188 | wxPyEndAllowThreads(__tstate); | |
10189 | if (PyErr_Occurred()) SWIG_fail; | |
10190 | } | |
10191 | Py_INCREF(Py_None); resultobj = Py_None; | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
10198 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10199 | PyObject *resultobj; | |
10200 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10201 | int arg2 ; |
10202 | int arg3 ; | |
d14a1e28 | 10203 | PyObject * obj0 = 0 ; |
994141e6 RD |
10204 | PyObject * obj1 = 0 ; |
10205 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10206 | char *kwnames[] = { |
10207 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10208 | }; | |
10209 | ||
994141e6 | 10210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10212 | { |
10213 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | } | |
10216 | { | |
10217 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
d14a1e28 RD |
10220 | { |
10221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10222 | (arg1)->CrossHair(arg2,arg3); | |
10223 | ||
10224 | wxPyEndAllowThreads(__tstate); | |
10225 | if (PyErr_Occurred()) SWIG_fail; | |
10226 | } | |
10227 | Py_INCREF(Py_None); resultobj = Py_None; | |
10228 | return resultobj; | |
10229 | fail: | |
10230 | return NULL; | |
10231 | } | |
10232 | ||
10233 | ||
10234 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10235 | PyObject *resultobj; | |
10236 | wxDC *arg1 = (wxDC *) 0 ; | |
10237 | wxPoint *arg2 = 0 ; | |
10238 | wxPoint temp2 ; | |
10239 | PyObject * obj0 = 0 ; | |
10240 | PyObject * obj1 = 0 ; | |
10241 | char *kwnames[] = { | |
10242 | (char *) "self",(char *) "pt", NULL | |
10243 | }; | |
10244 | ||
10245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
10246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10247 | { | |
10248 | arg2 = &temp2; | |
10249 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10250 | } | |
10251 | { | |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
10258 | Py_INCREF(Py_None); resultobj = Py_None; | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_DC_DrawArcXY(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 ; | |
10272 | int arg6 ; | |
10273 | int arg7 ; | |
d14a1e28 | 10274 | PyObject * obj0 = 0 ; |
994141e6 RD |
10275 | PyObject * obj1 = 0 ; |
10276 | PyObject * obj2 = 0 ; | |
10277 | PyObject * obj3 = 0 ; | |
10278 | PyObject * obj4 = 0 ; | |
10279 | PyObject * obj5 = 0 ; | |
10280 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10281 | char *kwnames[] = { |
10282 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10283 | }; | |
10284 | ||
994141e6 | 10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10287 | { |
10288 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | } | |
10291 | { | |
10292 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | { | |
10296 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10297 | if (PyErr_Occurred()) SWIG_fail; | |
10298 | } | |
10299 | { | |
10300 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
10303 | { | |
10304 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | { | |
10308 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
10310 | } | |
d14a1e28 RD |
10311 | { |
10312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10313 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10314 | ||
10315 | wxPyEndAllowThreads(__tstate); | |
10316 | if (PyErr_Occurred()) SWIG_fail; | |
10317 | } | |
10318 | Py_INCREF(Py_None); resultobj = Py_None; | |
10319 | return resultobj; | |
10320 | fail: | |
10321 | return NULL; | |
10322 | } | |
10323 | ||
10324 | ||
10325 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10326 | PyObject *resultobj; | |
10327 | wxDC *arg1 = (wxDC *) 0 ; | |
10328 | wxPoint *arg2 = 0 ; | |
10329 | wxPoint *arg3 = 0 ; | |
10330 | wxPoint *arg4 = 0 ; | |
10331 | wxPoint temp2 ; | |
10332 | wxPoint temp3 ; | |
10333 | wxPoint temp4 ; | |
10334 | PyObject * obj0 = 0 ; | |
10335 | PyObject * obj1 = 0 ; | |
10336 | PyObject * obj2 = 0 ; | |
10337 | PyObject * obj3 = 0 ; | |
10338 | char *kwnames[] = { | |
10339 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10340 | }; | |
10341 | ||
10342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10344 | { | |
10345 | arg2 = &temp2; | |
10346 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10347 | } | |
10348 | { | |
10349 | arg3 = &temp3; | |
10350 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10351 | } | |
10352 | { | |
10353 | arg4 = &temp4; | |
10354 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10355 | } | |
10356 | { | |
10357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10358 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10359 | ||
10360 | wxPyEndAllowThreads(__tstate); | |
10361 | if (PyErr_Occurred()) SWIG_fail; | |
10362 | } | |
10363 | Py_INCREF(Py_None); resultobj = Py_None; | |
10364 | return resultobj; | |
10365 | fail: | |
10366 | return NULL; | |
10367 | } | |
10368 | ||
10369 | ||
10370 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10371 | PyObject *resultobj; | |
10372 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10373 | int arg2 ; |
10374 | int arg3 ; | |
10375 | int arg4 ; | |
10376 | int arg5 ; | |
d14a1e28 | 10377 | PyObject * obj0 = 0 ; |
994141e6 RD |
10378 | PyObject * obj1 = 0 ; |
10379 | PyObject * obj2 = 0 ; | |
10380 | PyObject * obj3 = 0 ; | |
10381 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10382 | char *kwnames[] = { |
10383 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10384 | }; | |
10385 | ||
994141e6 | 10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10388 | { | |
994141e6 | 10389 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
d14a1e28 RD |
10390 | if (PyErr_Occurred()) SWIG_fail; |
10391 | } | |
994141e6 RD |
10392 | { |
10393 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10394 | if (PyErr_Occurred()) SWIG_fail; | |
10395 | } | |
10396 | { | |
10397 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
10399 | } | |
10400 | { | |
10401 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
10404 | { | |
10405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10406 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
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 | ||
d14a1e28 RD |
10418 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
10419 | PyObject *resultobj; | |
10420 | wxDC *arg1 = (wxDC *) 0 ; | |
10421 | wxRect *arg2 = 0 ; | |
10422 | wxRect temp2 ; | |
10423 | PyObject * obj0 = 0 ; | |
10424 | PyObject * obj1 = 0 ; | |
10425 | char *kwnames[] = { | |
10426 | (char *) "self",(char *) "rect", NULL | |
10427 | }; | |
10428 | ||
10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
10430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10431 | { | |
10432 | arg2 = &temp2; | |
10433 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10434 | } | |
10435 | { | |
10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10437 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10438 | ||
10439 | wxPyEndAllowThreads(__tstate); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | } | |
10442 | Py_INCREF(Py_None); resultobj = Py_None; | |
10443 | return resultobj; | |
10444 | fail: | |
10445 | return NULL; | |
10446 | } | |
10447 | ||
10448 | ||
10449 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10450 | PyObject *resultobj; | |
10451 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10452 | int arg2 ; |
10453 | int arg3 ; | |
10454 | int arg4 ; | |
10455 | int arg5 ; | |
d14a1e28 RD |
10456 | double arg6 ; |
10457 | double arg7 ; | |
10458 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10459 | PyObject * obj1 = 0 ; |
10460 | PyObject * obj2 = 0 ; | |
10461 | PyObject * obj3 = 0 ; | |
10462 | PyObject * obj4 = 0 ; | |
10463 | PyObject * obj5 = 0 ; | |
10464 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10465 | char *kwnames[] = { |
10466 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10467 | }; | |
10468 | ||
994141e6 | 10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10471 | { |
10472 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10473 | if (PyErr_Occurred()) SWIG_fail; | |
10474 | } | |
10475 | { | |
10476 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | } | |
10479 | { | |
10480 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | { | |
10484 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
10486 | } | |
10487 | { | |
10488 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10489 | if (PyErr_Occurred()) SWIG_fail; | |
10490 | } | |
10491 | { | |
10492 | arg7 = (double) SWIG_PyObj_AsDouble(obj6); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
d14a1e28 RD |
10495 | { |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10497 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10498 | ||
10499 | wxPyEndAllowThreads(__tstate); | |
10500 | if (PyErr_Occurred()) SWIG_fail; | |
10501 | } | |
10502 | Py_INCREF(Py_None); resultobj = Py_None; | |
10503 | return resultobj; | |
10504 | fail: | |
10505 | return NULL; | |
10506 | } | |
10507 | ||
10508 | ||
10509 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10510 | PyObject *resultobj; | |
10511 | wxDC *arg1 = (wxDC *) 0 ; | |
10512 | wxPoint *arg2 = 0 ; | |
10513 | wxSize *arg3 = 0 ; | |
10514 | double arg4 ; | |
10515 | double arg5 ; | |
10516 | wxPoint temp2 ; | |
10517 | wxSize temp3 ; | |
10518 | PyObject * obj0 = 0 ; | |
10519 | PyObject * obj1 = 0 ; | |
10520 | PyObject * obj2 = 0 ; | |
994141e6 RD |
10521 | PyObject * obj3 = 0 ; |
10522 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10523 | char *kwnames[] = { |
10524 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10525 | }; | |
10526 | ||
994141e6 | 10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10529 | { | |
10530 | arg2 = &temp2; | |
10531 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10532 | } | |
10533 | { | |
10534 | arg3 = &temp3; | |
10535 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10536 | } | |
994141e6 RD |
10537 | { |
10538 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
10540 | } | |
10541 | { | |
10542 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
d14a1e28 RD |
10545 | { |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | Py_INCREF(Py_None); resultobj = Py_None; | |
10553 | return resultobj; | |
10554 | fail: | |
10555 | return NULL; | |
10556 | } | |
10557 | ||
10558 | ||
10559 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10560 | PyObject *resultobj; | |
10561 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10562 | int arg2 ; |
10563 | int arg3 ; | |
d14a1e28 | 10564 | PyObject * obj0 = 0 ; |
994141e6 RD |
10565 | PyObject * obj1 = 0 ; |
10566 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10567 | char *kwnames[] = { |
10568 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10569 | }; | |
10570 | ||
994141e6 | 10571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10573 | { |
10574 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10575 | if (PyErr_Occurred()) SWIG_fail; | |
10576 | } | |
10577 | { | |
10578 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
10580 | } | |
d14a1e28 RD |
10581 | { |
10582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10583 | (arg1)->DrawPoint(arg2,arg3); | |
10584 | ||
10585 | wxPyEndAllowThreads(__tstate); | |
10586 | if (PyErr_Occurred()) SWIG_fail; | |
10587 | } | |
10588 | Py_INCREF(Py_None); resultobj = Py_None; | |
10589 | return resultobj; | |
10590 | fail: | |
10591 | return NULL; | |
10592 | } | |
10593 | ||
10594 | ||
10595 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10596 | PyObject *resultobj; | |
10597 | wxDC *arg1 = (wxDC *) 0 ; | |
10598 | wxPoint *arg2 = 0 ; | |
10599 | wxPoint temp2 ; | |
10600 | PyObject * obj0 = 0 ; | |
10601 | PyObject * obj1 = 0 ; | |
10602 | char *kwnames[] = { | |
10603 | (char *) "self",(char *) "pt", NULL | |
10604 | }; | |
10605 | ||
10606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10608 | { | |
10609 | arg2 = &temp2; | |
10610 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10611 | } | |
10612 | { | |
10613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10614 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10615 | ||
10616 | wxPyEndAllowThreads(__tstate); | |
10617 | if (PyErr_Occurred()) SWIG_fail; | |
10618 | } | |
10619 | Py_INCREF(Py_None); resultobj = Py_None; | |
10620 | return resultobj; | |
10621 | fail: | |
10622 | return NULL; | |
10623 | } | |
10624 | ||
10625 | ||
10626 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10627 | PyObject *resultobj; | |
10628 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10629 | int arg2 ; |
10630 | int arg3 ; | |
10631 | int arg4 ; | |
10632 | int arg5 ; | |
d14a1e28 | 10633 | PyObject * obj0 = 0 ; |
994141e6 RD |
10634 | PyObject * obj1 = 0 ; |
10635 | PyObject * obj2 = 0 ; | |
10636 | PyObject * obj3 = 0 ; | |
10637 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10638 | char *kwnames[] = { |
10639 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10640 | }; | |
10641 | ||
994141e6 | 10642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10644 | { |
10645 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | { | |
10649 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
10651 | } | |
10652 | { | |
10653 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
10656 | { | |
10657 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
d14a1e28 RD |
10660 | { |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | Py_INCREF(Py_None); resultobj = Py_None; | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj; | |
10676 | wxDC *arg1 = (wxDC *) 0 ; | |
10677 | wxPoint *arg2 = 0 ; | |
10678 | wxSize *arg3 = 0 ; | |
10679 | wxPoint temp2 ; | |
10680 | wxSize temp3 ; | |
10681 | PyObject * obj0 = 0 ; | |
10682 | PyObject * obj1 = 0 ; | |
10683 | PyObject * obj2 = 0 ; | |
10684 | char *kwnames[] = { | |
10685 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10686 | }; | |
10687 | ||
10688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10690 | { | |
10691 | arg2 = &temp2; | |
10692 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10693 | } | |
10694 | { | |
10695 | arg3 = &temp3; | |
10696 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10697 | } | |
10698 | { | |
10699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10700 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
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_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10713 | PyObject *resultobj; | |
10714 | wxDC *arg1 = (wxDC *) 0 ; | |
10715 | wxRect *arg2 = 0 ; | |
10716 | wxRect temp2 ; | |
10717 | PyObject * obj0 = 0 ; | |
10718 | PyObject * obj1 = 0 ; | |
10719 | char *kwnames[] = { | |
10720 | (char *) "self",(char *) "rect", NULL | |
10721 | }; | |
10722 | ||
10723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10725 | { | |
10726 | arg2 = &temp2; | |
10727 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10728 | } | |
10729 | { | |
10730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10731 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10732 | ||
10733 | wxPyEndAllowThreads(__tstate); | |
10734 | if (PyErr_Occurred()) SWIG_fail; | |
10735 | } | |
10736 | Py_INCREF(Py_None); resultobj = Py_None; | |
10737 | return resultobj; | |
10738 | fail: | |
10739 | return NULL; | |
10740 | } | |
10741 | ||
10742 | ||
10743 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10744 | PyObject *resultobj; | |
10745 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10746 | int arg2 ; |
10747 | int arg3 ; | |
10748 | int arg4 ; | |
10749 | int arg5 ; | |
d14a1e28 RD |
10750 | double arg6 ; |
10751 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10752 | PyObject * obj1 = 0 ; |
10753 | PyObject * obj2 = 0 ; | |
10754 | PyObject * obj3 = 0 ; | |
10755 | PyObject * obj4 = 0 ; | |
10756 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
10757 | char *kwnames[] = { |
10758 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10759 | }; | |
10760 | ||
994141e6 | 10761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 10762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10763 | { |
10764 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10765 | if (PyErr_Occurred()) SWIG_fail; | |
10766 | } | |
10767 | { | |
10768 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10769 | if (PyErr_Occurred()) SWIG_fail; | |
10770 | } | |
10771 | { | |
10772 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | } | |
10775 | { | |
10776 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10777 | if (PyErr_Occurred()) SWIG_fail; | |
10778 | } | |
10779 | { | |
10780 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | } | |
d14a1e28 RD |
10783 | { |
10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10785 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10786 | ||
10787 | wxPyEndAllowThreads(__tstate); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
10790 | Py_INCREF(Py_None); resultobj = Py_None; | |
10791 | return resultobj; | |
10792 | fail: | |
10793 | return NULL; | |
10794 | } | |
10795 | ||
10796 | ||
10797 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10798 | PyObject *resultobj; | |
10799 | wxDC *arg1 = (wxDC *) 0 ; | |
10800 | wxPoint *arg2 = 0 ; | |
10801 | wxSize *arg3 = 0 ; | |
10802 | double arg4 ; | |
10803 | wxPoint temp2 ; | |
10804 | wxSize temp3 ; | |
10805 | PyObject * obj0 = 0 ; | |
10806 | PyObject * obj1 = 0 ; | |
10807 | PyObject * obj2 = 0 ; | |
994141e6 | 10808 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10809 | char *kwnames[] = { |
10810 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10811 | }; | |
10812 | ||
994141e6 | 10813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10815 | { | |
10816 | arg2 = &temp2; | |
10817 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10818 | } | |
10819 | { | |
10820 | arg3 = &temp3; | |
10821 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10822 | } | |
994141e6 RD |
10823 | { |
10824 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10825 | if (PyErr_Occurred()) SWIG_fail; | |
10826 | } | |
d14a1e28 RD |
10827 | { |
10828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10829 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10830 | ||
10831 | wxPyEndAllowThreads(__tstate); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | } | |
10834 | Py_INCREF(Py_None); resultobj = Py_None; | |
10835 | return resultobj; | |
10836 | fail: | |
10837 | return NULL; | |
10838 | } | |
10839 | ||
10840 | ||
10841 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10842 | PyObject *resultobj; | |
10843 | wxDC *arg1 = (wxDC *) 0 ; | |
10844 | wxRect *arg2 = 0 ; | |
10845 | double arg3 ; | |
10846 | wxRect temp2 ; | |
10847 | PyObject * obj0 = 0 ; | |
10848 | PyObject * obj1 = 0 ; | |
994141e6 | 10849 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10850 | char *kwnames[] = { |
10851 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10852 | }; | |
10853 | ||
994141e6 | 10854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10856 | { | |
10857 | arg2 = &temp2; | |
10858 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10859 | } | |
994141e6 RD |
10860 | { |
10861 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
10862 | if (PyErr_Occurred()) SWIG_fail; | |
10863 | } | |
d14a1e28 RD |
10864 | { |
10865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10866 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10867 | ||
10868 | wxPyEndAllowThreads(__tstate); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | } | |
10871 | Py_INCREF(Py_None); resultobj = Py_None; | |
10872 | return resultobj; | |
10873 | fail: | |
10874 | return NULL; | |
10875 | } | |
10876 | ||
10877 | ||
10878 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10879 | PyObject *resultobj; | |
10880 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10881 | int arg2 ; |
10882 | int arg3 ; | |
10883 | int arg4 ; | |
d14a1e28 | 10884 | PyObject * obj0 = 0 ; |
994141e6 RD |
10885 | PyObject * obj1 = 0 ; |
10886 | PyObject * obj2 = 0 ; | |
10887 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10888 | char *kwnames[] = { |
10889 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10890 | }; | |
10891 | ||
994141e6 | 10892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 10893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10894 | { |
10895 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10896 | if (PyErr_Occurred()) SWIG_fail; | |
10897 | } | |
10898 | { | |
10899 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10900 | if (PyErr_Occurred()) SWIG_fail; | |
10901 | } | |
10902 | { | |
10903 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10904 | if (PyErr_Occurred()) SWIG_fail; | |
10905 | } | |
d14a1e28 RD |
10906 | { |
10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10908 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
10909 | ||
10910 | wxPyEndAllowThreads(__tstate); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | } | |
10913 | Py_INCREF(Py_None); resultobj = Py_None; | |
10914 | return resultobj; | |
10915 | fail: | |
10916 | return NULL; | |
10917 | } | |
10918 | ||
10919 | ||
10920 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10921 | PyObject *resultobj; | |
10922 | wxDC *arg1 = (wxDC *) 0 ; | |
10923 | wxPoint *arg2 = 0 ; | |
e811c8ce | 10924 | int arg3 ; |
d14a1e28 RD |
10925 | wxPoint temp2 ; |
10926 | PyObject * obj0 = 0 ; | |
10927 | PyObject * obj1 = 0 ; | |
994141e6 | 10928 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10929 | char *kwnames[] = { |
10930 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10931 | }; | |
10932 | ||
994141e6 | 10933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10935 | { | |
10936 | arg2 = &temp2; | |
10937 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10938 | } | |
994141e6 RD |
10939 | { |
10940 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10941 | if (PyErr_Occurred()) SWIG_fail; | |
10942 | } | |
d14a1e28 RD |
10943 | { |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | Py_INCREF(Py_None); resultobj = Py_None; | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | return NULL; | |
10954 | } | |
10955 | ||
10956 | ||
10957 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10958 | PyObject *resultobj; | |
10959 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10960 | int arg2 ; |
10961 | int arg3 ; | |
10962 | int arg4 ; | |
10963 | int arg5 ; | |
d14a1e28 | 10964 | PyObject * obj0 = 0 ; |
994141e6 RD |
10965 | PyObject * obj1 = 0 ; |
10966 | PyObject * obj2 = 0 ; | |
10967 | PyObject * obj3 = 0 ; | |
10968 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10969 | char *kwnames[] = { |
10970 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10971 | }; | |
10972 | ||
994141e6 | 10973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10975 | { |
10976 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10977 | if (PyErr_Occurred()) SWIG_fail; | |
10978 | } | |
10979 | { | |
10980 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | } | |
10983 | { | |
10984 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
10987 | { | |
10988 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10989 | if (PyErr_Occurred()) SWIG_fail; | |
10990 | } | |
d14a1e28 RD |
10991 | { |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10993 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
10994 | ||
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
10998 | Py_INCREF(Py_None); resultobj = Py_None; | |
10999 | return resultobj; | |
11000 | fail: | |
11001 | return NULL; | |
11002 | } | |
11003 | ||
11004 | ||
11005 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11006 | PyObject *resultobj; | |
11007 | wxDC *arg1 = (wxDC *) 0 ; | |
11008 | wxPoint *arg2 = 0 ; | |
11009 | wxSize *arg3 = 0 ; | |
11010 | wxPoint temp2 ; | |
11011 | wxSize temp3 ; | |
11012 | PyObject * obj0 = 0 ; | |
11013 | PyObject * obj1 = 0 ; | |
11014 | PyObject * obj2 = 0 ; | |
11015 | char *kwnames[] = { | |
11016 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11017 | }; | |
11018 | ||
11019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11021 | { | |
11022 | arg2 = &temp2; | |
11023 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11024 | } | |
11025 | { | |
11026 | arg3 = &temp3; | |
11027 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11028 | } | |
11029 | { | |
11030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11031 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11032 | ||
11033 | wxPyEndAllowThreads(__tstate); | |
11034 | if (PyErr_Occurred()) SWIG_fail; | |
11035 | } | |
11036 | Py_INCREF(Py_None); resultobj = Py_None; | |
11037 | return resultobj; | |
11038 | fail: | |
11039 | return NULL; | |
11040 | } | |
11041 | ||
11042 | ||
11043 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11044 | PyObject *resultobj; | |
11045 | wxDC *arg1 = (wxDC *) 0 ; | |
11046 | wxRect *arg2 = 0 ; | |
11047 | wxRect temp2 ; | |
11048 | PyObject * obj0 = 0 ; | |
11049 | PyObject * obj1 = 0 ; | |
11050 | char *kwnames[] = { | |
11051 | (char *) "self",(char *) "rect", NULL | |
11052 | }; | |
11053 | ||
11054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
11055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11056 | { | |
11057 | arg2 = &temp2; | |
11058 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11059 | } | |
11060 | { | |
11061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11062 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11063 | ||
11064 | wxPyEndAllowThreads(__tstate); | |
11065 | if (PyErr_Occurred()) SWIG_fail; | |
11066 | } | |
11067 | Py_INCREF(Py_None); resultobj = Py_None; | |
11068 | return resultobj; | |
11069 | fail: | |
11070 | return NULL; | |
11071 | } | |
11072 | ||
11073 | ||
11074 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11075 | PyObject *resultobj; | |
11076 | wxDC *arg1 = (wxDC *) 0 ; | |
11077 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11078 | int arg3 ; |
11079 | int arg4 ; | |
d14a1e28 RD |
11080 | PyObject * obj0 = 0 ; |
11081 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11082 | PyObject * obj2 = 0 ; |
11083 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11084 | char *kwnames[] = { |
11085 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11086 | }; | |
11087 | ||
994141e6 | 11088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11090 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11091 | if (arg2 == NULL) { | |
11092 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11093 | } | |
994141e6 RD |
11094 | { |
11095 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11096 | if (PyErr_Occurred()) SWIG_fail; | |
11097 | } | |
11098 | { | |
11099 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
d14a1e28 RD |
11102 | { |
11103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11104 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11105 | ||
11106 | wxPyEndAllowThreads(__tstate); | |
11107 | if (PyErr_Occurred()) SWIG_fail; | |
11108 | } | |
11109 | Py_INCREF(Py_None); resultobj = Py_None; | |
11110 | return resultobj; | |
11111 | fail: | |
11112 | return NULL; | |
11113 | } | |
11114 | ||
11115 | ||
11116 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11117 | PyObject *resultobj; | |
11118 | wxDC *arg1 = (wxDC *) 0 ; | |
11119 | wxIcon *arg2 = 0 ; | |
11120 | wxPoint *arg3 = 0 ; | |
11121 | wxPoint temp3 ; | |
11122 | PyObject * obj0 = 0 ; | |
11123 | PyObject * obj1 = 0 ; | |
11124 | PyObject * obj2 = 0 ; | |
11125 | char *kwnames[] = { | |
11126 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11127 | }; | |
11128 | ||
11129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11131 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11132 | if (arg2 == NULL) { | |
11133 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11134 | } | |
11135 | { | |
11136 | arg3 = &temp3; | |
11137 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11138 | } | |
11139 | { | |
11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11141 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11142 | ||
11143 | wxPyEndAllowThreads(__tstate); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | Py_INCREF(Py_None); resultobj = Py_None; | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11154 | PyObject *resultobj; | |
11155 | wxDC *arg1 = (wxDC *) 0 ; | |
11156 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11157 | int arg3 ; |
11158 | int arg4 ; | |
11159 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11160 | PyObject * obj0 = 0 ; |
11161 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11162 | PyObject * obj2 = 0 ; |
11163 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11164 | PyObject * obj4 = 0 ; |
11165 | char *kwnames[] = { | |
11166 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11167 | }; | |
11168 | ||
994141e6 | 11169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11171 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11172 | if (arg2 == NULL) { | |
11173 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11174 | } | |
994141e6 RD |
11175 | { |
11176 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11177 | if (PyErr_Occurred()) SWIG_fail; | |
11178 | } | |
11179 | { | |
11180 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
d14a1e28 | 11183 | if (obj4) { |
a41e16b6 | 11184 | { |
994141e6 | 11185 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
11186 | if (PyErr_Occurred()) SWIG_fail; |
11187 | } | |
d14a1e28 RD |
11188 | } |
11189 | { | |
11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11191 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11192 | ||
11193 | wxPyEndAllowThreads(__tstate); | |
11194 | if (PyErr_Occurred()) SWIG_fail; | |
11195 | } | |
11196 | Py_INCREF(Py_None); resultobj = Py_None; | |
11197 | return resultobj; | |
11198 | fail: | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
11203 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11204 | PyObject *resultobj; | |
11205 | wxDC *arg1 = (wxDC *) 0 ; | |
11206 | wxBitmap *arg2 = 0 ; | |
11207 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11208 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11209 | wxPoint temp3 ; |
11210 | PyObject * obj0 = 0 ; | |
11211 | PyObject * obj1 = 0 ; | |
11212 | PyObject * obj2 = 0 ; | |
11213 | PyObject * obj3 = 0 ; | |
11214 | char *kwnames[] = { | |
11215 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11216 | }; | |
11217 | ||
11218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11220 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11221 | if (arg2 == NULL) { | |
11222 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11223 | } | |
11224 | { | |
11225 | arg3 = &temp3; | |
11226 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11227 | } | |
11228 | if (obj3) { | |
a41e16b6 | 11229 | { |
994141e6 | 11230 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
11231 | if (PyErr_Occurred()) SWIG_fail; |
11232 | } | |
d14a1e28 RD |
11233 | } |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11237 | ||
11238 | wxPyEndAllowThreads(__tstate); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | } | |
11241 | Py_INCREF(Py_None); resultobj = Py_None; | |
11242 | return resultobj; | |
11243 | fail: | |
11244 | return NULL; | |
11245 | } | |
11246 | ||
11247 | ||
11248 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11249 | PyObject *resultobj; | |
11250 | wxDC *arg1 = (wxDC *) 0 ; | |
11251 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11252 | int arg3 ; |
11253 | int arg4 ; | |
11254 | bool temp2 = False ; | |
d14a1e28 RD |
11255 | PyObject * obj0 = 0 ; |
11256 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11257 | PyObject * obj2 = 0 ; |
11258 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11259 | char *kwnames[] = { |
11260 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11261 | }; | |
11262 | ||
994141e6 | 11263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11265 | { | |
11266 | arg2 = wxString_in_helper(obj1); | |
11267 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11268 | temp2 = True; |
d14a1e28 | 11269 | } |
994141e6 RD |
11270 | { |
11271 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
11274 | { | |
11275 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
d14a1e28 RD |
11278 | { |
11279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11280 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11281 | ||
11282 | wxPyEndAllowThreads(__tstate); | |
11283 | if (PyErr_Occurred()) SWIG_fail; | |
11284 | } | |
11285 | Py_INCREF(Py_None); resultobj = Py_None; | |
11286 | { | |
11287 | if (temp2) | |
11288 | delete arg2; | |
11289 | } | |
11290 | return resultobj; | |
11291 | fail: | |
11292 | { | |
11293 | if (temp2) | |
11294 | delete arg2; | |
11295 | } | |
11296 | return NULL; | |
11297 | } | |
11298 | ||
11299 | ||
11300 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11301 | PyObject *resultobj; | |
11302 | wxDC *arg1 = (wxDC *) 0 ; | |
11303 | wxString *arg2 = 0 ; | |
11304 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11305 | bool temp2 = False ; |
d14a1e28 RD |
11306 | wxPoint temp3 ; |
11307 | PyObject * obj0 = 0 ; | |
11308 | PyObject * obj1 = 0 ; | |
11309 | PyObject * obj2 = 0 ; | |
11310 | char *kwnames[] = { | |
11311 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11312 | }; | |
11313 | ||
11314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11316 | { | |
11317 | arg2 = wxString_in_helper(obj1); | |
11318 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11319 | temp2 = True; |
d14a1e28 RD |
11320 | } |
11321 | { | |
11322 | arg3 = &temp3; | |
11323 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11324 | } | |
11325 | { | |
11326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11327 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11328 | ||
11329 | wxPyEndAllowThreads(__tstate); | |
11330 | if (PyErr_Occurred()) SWIG_fail; | |
11331 | } | |
11332 | Py_INCREF(Py_None); resultobj = Py_None; | |
11333 | { | |
11334 | if (temp2) | |
11335 | delete arg2; | |
11336 | } | |
11337 | return resultobj; | |
11338 | fail: | |
11339 | { | |
11340 | if (temp2) | |
11341 | delete arg2; | |
11342 | } | |
11343 | return NULL; | |
11344 | } | |
11345 | ||
11346 | ||
11347 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11348 | PyObject *resultobj; | |
11349 | wxDC *arg1 = (wxDC *) 0 ; | |
11350 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11351 | int arg3 ; |
11352 | int arg4 ; | |
d14a1e28 | 11353 | double arg5 ; |
e811c8ce | 11354 | bool temp2 = False ; |
d14a1e28 RD |
11355 | PyObject * obj0 = 0 ; |
11356 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11357 | PyObject * obj2 = 0 ; |
11358 | PyObject * obj3 = 0 ; | |
11359 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11360 | char *kwnames[] = { |
11361 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11362 | }; | |
11363 | ||
994141e6 | 11364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11366 | { | |
11367 | arg2 = wxString_in_helper(obj1); | |
11368 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11369 | temp2 = True; |
d14a1e28 | 11370 | } |
994141e6 RD |
11371 | { |
11372 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | { | |
11376 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11377 | if (PyErr_Occurred()) SWIG_fail; | |
11378 | } | |
11379 | { | |
11380 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
11381 | if (PyErr_Occurred()) SWIG_fail; | |
11382 | } | |
d14a1e28 RD |
11383 | { |
11384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11385 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11386 | ||
11387 | wxPyEndAllowThreads(__tstate); | |
11388 | if (PyErr_Occurred()) SWIG_fail; | |
11389 | } | |
11390 | Py_INCREF(Py_None); resultobj = Py_None; | |
11391 | { | |
11392 | if (temp2) | |
11393 | delete arg2; | |
11394 | } | |
11395 | return resultobj; | |
11396 | fail: | |
11397 | { | |
11398 | if (temp2) | |
11399 | delete arg2; | |
11400 | } | |
11401 | return NULL; | |
11402 | } | |
11403 | ||
11404 | ||
11405 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11406 | PyObject *resultobj; | |
11407 | wxDC *arg1 = (wxDC *) 0 ; | |
11408 | wxString *arg2 = 0 ; | |
11409 | wxPoint *arg3 = 0 ; | |
11410 | double arg4 ; | |
e811c8ce | 11411 | bool temp2 = False ; |
d14a1e28 RD |
11412 | wxPoint temp3 ; |
11413 | PyObject * obj0 = 0 ; | |
11414 | PyObject * obj1 = 0 ; | |
11415 | PyObject * obj2 = 0 ; | |
994141e6 | 11416 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11417 | char *kwnames[] = { |
11418 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11419 | }; | |
11420 | ||
994141e6 | 11421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11423 | { | |
11424 | arg2 = wxString_in_helper(obj1); | |
11425 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11426 | temp2 = True; |
d14a1e28 RD |
11427 | } |
11428 | { | |
11429 | arg3 = &temp3; | |
11430 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11431 | } | |
994141e6 RD |
11432 | { |
11433 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
11434 | if (PyErr_Occurred()) SWIG_fail; | |
11435 | } | |
d14a1e28 RD |
11436 | { |
11437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11438 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11439 | ||
11440 | wxPyEndAllowThreads(__tstate); | |
11441 | if (PyErr_Occurred()) SWIG_fail; | |
11442 | } | |
11443 | Py_INCREF(Py_None); resultobj = Py_None; | |
11444 | { | |
11445 | if (temp2) | |
11446 | delete arg2; | |
11447 | } | |
11448 | return resultobj; | |
11449 | fail: | |
11450 | { | |
11451 | if (temp2) | |
11452 | delete arg2; | |
11453 | } | |
11454 | return NULL; | |
11455 | } | |
11456 | ||
11457 | ||
11458 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11459 | PyObject *resultobj; | |
11460 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11461 | int arg2 ; |
11462 | int arg3 ; | |
11463 | int arg4 ; | |
11464 | int arg5 ; | |
d14a1e28 | 11465 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
11466 | int arg7 ; |
11467 | int arg8 ; | |
d14a1e28 | 11468 | int arg9 = (int) wxCOPY ; |
e811c8ce RD |
11469 | bool arg10 = (bool) False ; |
11470 | int arg11 = (int) -1 ; | |
11471 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11472 | bool result; |
11473 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11474 | PyObject * obj1 = 0 ; |
11475 | PyObject * obj2 = 0 ; | |
11476 | PyObject * obj3 = 0 ; | |
11477 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11478 | PyObject * obj5 = 0 ; |
994141e6 RD |
11479 | PyObject * obj6 = 0 ; |
11480 | PyObject * obj7 = 0 ; | |
11481 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11482 | PyObject * obj9 = 0 ; |
994141e6 RD |
11483 | PyObject * obj10 = 0 ; |
11484 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11485 | char *kwnames[] = { |
11486 | (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 | |
11487 | }; | |
11488 | ||
994141e6 | 11489 | 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 | 11490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11491 | { |
11492 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
11495 | { | |
11496 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11497 | if (PyErr_Occurred()) SWIG_fail; | |
11498 | } | |
11499 | { | |
11500 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11501 | if (PyErr_Occurred()) SWIG_fail; | |
11502 | } | |
11503 | { | |
11504 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11505 | if (PyErr_Occurred()) SWIG_fail; | |
11506 | } | |
d14a1e28 | 11507 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11508 | { |
11509 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
11511 | } | |
11512 | { | |
11513 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | if (obj8) { | |
11517 | { | |
11518 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
11519 | if (PyErr_Occurred()) SWIG_fail; | |
11520 | } | |
11521 | } | |
d14a1e28 | 11522 | if (obj9) { |
a41e16b6 | 11523 | { |
994141e6 RD |
11524 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
11525 | if (PyErr_Occurred()) SWIG_fail; | |
11526 | } | |
11527 | } | |
11528 | if (obj10) { | |
11529 | { | |
11530 | arg11 = (int) SWIG_PyObj_AsInt(obj10); | |
11531 | if (PyErr_Occurred()) SWIG_fail; | |
11532 | } | |
11533 | } | |
11534 | if (obj11) { | |
11535 | { | |
11536 | arg12 = (int) SWIG_PyObj_AsInt(obj11); | |
a41e16b6 RD |
11537 | if (PyErr_Occurred()) SWIG_fail; |
11538 | } | |
d14a1e28 RD |
11539 | } |
11540 | { | |
11541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11542 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11543 | ||
11544 | wxPyEndAllowThreads(__tstate); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | } | |
994141e6 | 11547 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
11548 | return resultobj; |
11549 | fail: | |
11550 | return NULL; | |
11551 | } | |
11552 | ||
11553 | ||
11554 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11555 | PyObject *resultobj; | |
11556 | wxDC *arg1 = (wxDC *) 0 ; | |
11557 | wxPoint *arg2 = 0 ; | |
11558 | wxSize *arg3 = 0 ; | |
11559 | wxDC *arg4 = (wxDC *) 0 ; | |
11560 | wxPoint *arg5 = 0 ; | |
11561 | int arg6 = (int) wxCOPY ; | |
e811c8ce | 11562 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11563 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11564 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11565 | bool result; | |
11566 | wxPoint temp2 ; | |
11567 | wxSize temp3 ; | |
11568 | wxPoint temp5 ; | |
11569 | wxPoint temp8 ; | |
11570 | PyObject * obj0 = 0 ; | |
11571 | PyObject * obj1 = 0 ; | |
11572 | PyObject * obj2 = 0 ; | |
11573 | PyObject * obj3 = 0 ; | |
11574 | PyObject * obj4 = 0 ; | |
994141e6 | 11575 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11576 | PyObject * obj6 = 0 ; |
11577 | PyObject * obj7 = 0 ; | |
11578 | char *kwnames[] = { | |
11579 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11580 | }; | |
11581 | ||
994141e6 | 11582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
11583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11584 | { | |
11585 | arg2 = &temp2; | |
11586 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11587 | } | |
11588 | { | |
11589 | arg3 = &temp3; | |
11590 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11591 | } | |
11592 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11593 | { | |
11594 | arg5 = &temp5; | |
11595 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11596 | } | |
994141e6 RD |
11597 | if (obj5) { |
11598 | { | |
11599 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | } | |
11602 | } | |
d14a1e28 | 11603 | if (obj6) { |
a41e16b6 | 11604 | { |
994141e6 | 11605 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
11606 | if (PyErr_Occurred()) SWIG_fail; |
11607 | } | |
d14a1e28 RD |
11608 | } |
11609 | if (obj7) { | |
11610 | { | |
11611 | arg8 = &temp8; | |
11612 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11613 | } | |
11614 | } | |
11615 | { | |
11616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11617 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11618 | ||
11619 | wxPyEndAllowThreads(__tstate); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
994141e6 | 11622 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
11623 | return resultobj; |
11624 | fail: | |
11625 | return NULL; | |
11626 | } | |
11627 | ||
11628 | ||
11629 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11630 | PyObject *resultobj; | |
11631 | wxDC *arg1 = (wxDC *) 0 ; | |
11632 | int arg2 ; | |
11633 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11634 | int arg4 = (int) 0 ; |
11635 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11636 | PyObject * obj0 = 0 ; |
11637 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11638 | PyObject * obj2 = 0 ; |
11639 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11640 | char *kwnames[] = { |
11641 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11642 | }; | |
11643 | ||
994141e6 | 11644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11646 | { | |
11647 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11648 | if (arg3 == NULL) SWIG_fail; | |
11649 | } | |
994141e6 RD |
11650 | if (obj2) { |
11651 | { | |
11652 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | } | |
11656 | if (obj3) { | |
11657 | { | |
11658 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | } | |
d14a1e28 RD |
11662 | { |
11663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11664 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11665 | ||
11666 | wxPyEndAllowThreads(__tstate); | |
11667 | if (PyErr_Occurred()) SWIG_fail; | |
11668 | } | |
11669 | Py_INCREF(Py_None); resultobj = Py_None; | |
11670 | { | |
11671 | if (arg3) delete [] arg3; | |
11672 | } | |
11673 | return resultobj; | |
11674 | fail: | |
11675 | { | |
11676 | if (arg3) delete [] arg3; | |
11677 | } | |
11678 | return NULL; | |
11679 | } | |
11680 | ||
11681 | ||
11682 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11683 | PyObject *resultobj; | |
11684 | wxDC *arg1 = (wxDC *) 0 ; | |
11685 | int arg2 ; | |
11686 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11687 | int arg4 = (int) 0 ; |
11688 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11689 | int arg6 = (int) wxODDEVEN_RULE ; |
11690 | PyObject * obj0 = 0 ; | |
11691 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11692 | PyObject * obj2 = 0 ; |
11693 | PyObject * obj3 = 0 ; | |
11694 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11695 | char *kwnames[] = { |
11696 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11697 | }; | |
11698 | ||
994141e6 | 11699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11701 | { | |
11702 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11703 | if (arg3 == NULL) SWIG_fail; | |
11704 | } | |
994141e6 RD |
11705 | if (obj2) { |
11706 | { | |
11707 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11708 | if (PyErr_Occurred()) SWIG_fail; | |
11709 | } | |
11710 | } | |
11711 | if (obj3) { | |
11712 | { | |
11713 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11714 | if (PyErr_Occurred()) SWIG_fail; | |
11715 | } | |
11716 | } | |
11717 | if (obj4) { | |
11718 | { | |
11719 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
11720 | if (PyErr_Occurred()) SWIG_fail; | |
11721 | } | |
11722 | } | |
d14a1e28 RD |
11723 | { |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11726 | ||
11727 | wxPyEndAllowThreads(__tstate); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
11730 | Py_INCREF(Py_None); resultobj = Py_None; | |
11731 | { | |
11732 | if (arg3) delete [] arg3; | |
11733 | } | |
11734 | return resultobj; | |
11735 | fail: | |
11736 | { | |
11737 | if (arg3) delete [] arg3; | |
11738 | } | |
11739 | return NULL; | |
11740 | } | |
11741 | ||
11742 | ||
11743 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11744 | PyObject *resultobj; | |
11745 | wxDC *arg1 = (wxDC *) 0 ; | |
11746 | wxString *arg2 = 0 ; | |
11747 | wxRect *arg3 = 0 ; | |
11748 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11749 | int arg5 = (int) -1 ; | |
e811c8ce | 11750 | bool temp2 = False ; |
d14a1e28 RD |
11751 | wxRect temp3 ; |
11752 | PyObject * obj0 = 0 ; | |
11753 | PyObject * obj1 = 0 ; | |
11754 | PyObject * obj2 = 0 ; | |
994141e6 RD |
11755 | PyObject * obj3 = 0 ; |
11756 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11757 | char *kwnames[] = { |
11758 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11759 | }; | |
11760 | ||
994141e6 | 11761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11763 | { | |
11764 | arg2 = wxString_in_helper(obj1); | |
11765 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11766 | temp2 = True; |
d14a1e28 RD |
11767 | } |
11768 | { | |
11769 | arg3 = &temp3; | |
11770 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11771 | } | |
994141e6 RD |
11772 | if (obj3) { |
11773 | { | |
11774 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11775 | if (PyErr_Occurred()) SWIG_fail; | |
11776 | } | |
11777 | } | |
11778 | if (obj4) { | |
11779 | { | |
11780 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11781 | if (PyErr_Occurred()) SWIG_fail; | |
11782 | } | |
11783 | } | |
11784 | { | |
11785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11786 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
11787 | |
11788 | wxPyEndAllowThreads(__tstate); | |
11789 | if (PyErr_Occurred()) SWIG_fail; | |
11790 | } | |
11791 | Py_INCREF(Py_None); resultobj = Py_None; | |
11792 | { | |
11793 | if (temp2) | |
11794 | delete arg2; | |
11795 | } | |
11796 | return resultobj; | |
11797 | fail: | |
11798 | { | |
11799 | if (temp2) | |
11800 | delete arg2; | |
11801 | } | |
11802 | return NULL; | |
11803 | } | |
11804 | ||
11805 | ||
11806 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11807 | PyObject *resultobj; | |
11808 | wxDC *arg1 = (wxDC *) 0 ; | |
11809 | wxString *arg2 = 0 ; | |
11810 | wxBitmap *arg3 = 0 ; | |
11811 | wxRect *arg4 = 0 ; | |
11812 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11813 | int arg6 = (int) -1 ; | |
11814 | wxRect result; | |
e811c8ce | 11815 | bool temp2 = False ; |
d14a1e28 RD |
11816 | wxRect temp4 ; |
11817 | PyObject * obj0 = 0 ; | |
11818 | PyObject * obj1 = 0 ; | |
11819 | PyObject * obj2 = 0 ; | |
11820 | PyObject * obj3 = 0 ; | |
994141e6 RD |
11821 | PyObject * obj4 = 0 ; |
11822 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11823 | char *kwnames[] = { |
11824 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11825 | }; | |
11826 | ||
994141e6 | 11827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
11828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11829 | { | |
11830 | arg2 = wxString_in_helper(obj1); | |
11831 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11832 | temp2 = True; |
d14a1e28 RD |
11833 | } |
11834 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11835 | if (arg3 == NULL) { | |
11836 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11837 | } | |
11838 | { | |
11839 | arg4 = &temp4; | |
11840 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11841 | } | |
994141e6 RD |
11842 | if (obj4) { |
11843 | { | |
11844 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11845 | if (PyErr_Occurred()) SWIG_fail; | |
11846 | } | |
11847 | } | |
11848 | if (obj5) { | |
11849 | { | |
11850 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11851 | if (PyErr_Occurred()) SWIG_fail; | |
11852 | } | |
11853 | } | |
d14a1e28 RD |
11854 | { |
11855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11856 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
11857 | ||
11858 | wxPyEndAllowThreads(__tstate); | |
11859 | if (PyErr_Occurred()) SWIG_fail; | |
11860 | } | |
11861 | { | |
11862 | wxRect * resultptr; | |
11863 | resultptr = new wxRect((wxRect &) result); | |
11864 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11865 | } | |
11866 | { | |
11867 | if (temp2) | |
11868 | delete arg2; | |
11869 | } | |
11870 | return resultobj; | |
11871 | fail: | |
11872 | { | |
11873 | if (temp2) | |
11874 | delete arg2; | |
11875 | } | |
11876 | return NULL; | |
11877 | } | |
11878 | ||
11879 | ||
11880 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11881 | PyObject *resultobj; | |
11882 | wxDC *arg1 = (wxDC *) 0 ; | |
11883 | int arg2 ; | |
11884 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11885 | PyObject * obj0 = 0 ; | |
11886 | PyObject * obj1 = 0 ; | |
11887 | char *kwnames[] = { | |
11888 | (char *) "self",(char *) "points", NULL | |
11889 | }; | |
11890 | ||
11891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11893 | { | |
11894 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11895 | if (arg3 == NULL) SWIG_fail; | |
11896 | } | |
11897 | { | |
11898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11899 | (arg1)->DrawSpline(arg2,arg3); | |
11900 | ||
11901 | wxPyEndAllowThreads(__tstate); | |
11902 | if (PyErr_Occurred()) SWIG_fail; | |
11903 | } | |
11904 | Py_INCREF(Py_None); resultobj = Py_None; | |
11905 | { | |
11906 | if (arg3) delete [] arg3; | |
11907 | } | |
11908 | return resultobj; | |
11909 | fail: | |
11910 | { | |
11911 | if (arg3) delete [] arg3; | |
11912 | } | |
11913 | return NULL; | |
11914 | } | |
11915 | ||
11916 | ||
11917 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11918 | PyObject *resultobj; | |
11919 | wxDC *arg1 = (wxDC *) 0 ; | |
11920 | PyObject * obj0 = 0 ; | |
11921 | char *kwnames[] = { | |
11922 | (char *) "self", NULL | |
11923 | }; | |
11924 | ||
11925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11927 | { | |
11928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11929 | (arg1)->Clear(); | |
11930 | ||
11931 | wxPyEndAllowThreads(__tstate); | |
11932 | if (PyErr_Occurred()) SWIG_fail; | |
11933 | } | |
11934 | Py_INCREF(Py_None); resultobj = Py_None; | |
11935 | return resultobj; | |
11936 | fail: | |
11937 | return NULL; | |
11938 | } | |
11939 | ||
11940 | ||
11941 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11942 | PyObject *resultobj; | |
11943 | wxDC *arg1 = (wxDC *) 0 ; | |
11944 | wxString *arg2 = 0 ; | |
11945 | bool result; | |
e811c8ce | 11946 | bool temp2 = False ; |
d14a1e28 RD |
11947 | PyObject * obj0 = 0 ; |
11948 | PyObject * obj1 = 0 ; | |
11949 | char *kwnames[] = { | |
11950 | (char *) "self",(char *) "message", NULL | |
11951 | }; | |
11952 | ||
11953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11955 | { | |
11956 | arg2 = wxString_in_helper(obj1); | |
11957 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11958 | temp2 = True; |
d14a1e28 RD |
11959 | } |
11960 | { | |
11961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11962 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11963 | ||
11964 | wxPyEndAllowThreads(__tstate); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
994141e6 | 11967 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
11968 | { |
11969 | if (temp2) | |
11970 | delete arg2; | |
11971 | } | |
11972 | return resultobj; | |
11973 | fail: | |
11974 | { | |
11975 | if (temp2) | |
11976 | delete arg2; | |
11977 | } | |
11978 | return NULL; | |
11979 | } | |
11980 | ||
11981 | ||
11982 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11983 | PyObject *resultobj; | |
11984 | wxDC *arg1 = (wxDC *) 0 ; | |
11985 | PyObject * obj0 = 0 ; | |
11986 | char *kwnames[] = { | |
11987 | (char *) "self", NULL | |
11988 | }; | |
11989 | ||
11990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
11991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11992 | { | |
11993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11994 | (arg1)->EndDoc(); | |
11995 | ||
11996 | wxPyEndAllowThreads(__tstate); | |
11997 | if (PyErr_Occurred()) SWIG_fail; | |
11998 | } | |
11999 | Py_INCREF(Py_None); resultobj = Py_None; | |
12000 | return resultobj; | |
12001 | fail: | |
12002 | return NULL; | |
12003 | } | |
12004 | ||
12005 | ||
12006 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12007 | PyObject *resultobj; | |
12008 | wxDC *arg1 = (wxDC *) 0 ; | |
12009 | PyObject * obj0 = 0 ; | |
12010 | char *kwnames[] = { | |
12011 | (char *) "self", NULL | |
12012 | }; | |
12013 | ||
12014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12016 | { | |
12017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12018 | (arg1)->StartPage(); | |
12019 | ||
12020 | wxPyEndAllowThreads(__tstate); | |
12021 | if (PyErr_Occurred()) SWIG_fail; | |
12022 | } | |
12023 | Py_INCREF(Py_None); resultobj = Py_None; | |
12024 | return resultobj; | |
12025 | fail: | |
12026 | return NULL; | |
12027 | } | |
12028 | ||
12029 | ||
12030 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12031 | PyObject *resultobj; | |
12032 | wxDC *arg1 = (wxDC *) 0 ; | |
12033 | PyObject * obj0 = 0 ; | |
12034 | char *kwnames[] = { | |
12035 | (char *) "self", NULL | |
12036 | }; | |
12037 | ||
12038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12040 | { | |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | (arg1)->EndPage(); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
12047 | Py_INCREF(Py_None); resultobj = Py_None; | |
12048 | return resultobj; | |
12049 | fail: | |
12050 | return NULL; | |
12051 | } | |
12052 | ||
12053 | ||
12054 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12055 | PyObject *resultobj; | |
12056 | wxDC *arg1 = (wxDC *) 0 ; | |
12057 | wxFont *arg2 = 0 ; | |
12058 | PyObject * obj0 = 0 ; | |
12059 | PyObject * obj1 = 0 ; | |
12060 | char *kwnames[] = { | |
12061 | (char *) "self",(char *) "font", NULL | |
12062 | }; | |
12063 | ||
12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
12065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12066 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12067 | if (arg2 == NULL) { | |
12068 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12069 | } | |
12070 | { | |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12072 | (arg1)->SetFont((wxFont const &)*arg2); | |
12073 | ||
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | Py_INCREF(Py_None); resultobj = Py_None; | |
12078 | return resultobj; | |
12079 | fail: | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
12084 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12085 | PyObject *resultobj; | |
12086 | wxDC *arg1 = (wxDC *) 0 ; | |
12087 | wxPen *arg2 = 0 ; | |
12088 | PyObject * obj0 = 0 ; | |
12089 | PyObject * obj1 = 0 ; | |
12090 | char *kwnames[] = { | |
12091 | (char *) "self",(char *) "pen", NULL | |
12092 | }; | |
12093 | ||
12094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
12095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12096 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12097 | if (arg2 == NULL) { | |
12098 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12099 | } | |
12100 | { | |
12101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12102 | (arg1)->SetPen((wxPen const &)*arg2); | |
12103 | ||
12104 | wxPyEndAllowThreads(__tstate); | |
12105 | if (PyErr_Occurred()) SWIG_fail; | |
12106 | } | |
12107 | Py_INCREF(Py_None); resultobj = Py_None; | |
12108 | return resultobj; | |
12109 | fail: | |
12110 | return NULL; | |
12111 | } | |
12112 | ||
12113 | ||
12114 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12115 | PyObject *resultobj; | |
12116 | wxDC *arg1 = (wxDC *) 0 ; | |
12117 | wxBrush *arg2 = 0 ; | |
12118 | PyObject * obj0 = 0 ; | |
12119 | PyObject * obj1 = 0 ; | |
12120 | char *kwnames[] = { | |
12121 | (char *) "self",(char *) "brush", NULL | |
12122 | }; | |
12123 | ||
12124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
12125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12126 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12127 | if (arg2 == NULL) { | |
12128 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12129 | } | |
12130 | { | |
12131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12132 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12133 | ||
12134 | wxPyEndAllowThreads(__tstate); | |
12135 | if (PyErr_Occurred()) SWIG_fail; | |
12136 | } | |
12137 | Py_INCREF(Py_None); resultobj = Py_None; | |
12138 | return resultobj; | |
12139 | fail: | |
12140 | return NULL; | |
12141 | } | |
12142 | ||
12143 | ||
12144 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12145 | PyObject *resultobj; | |
12146 | wxDC *arg1 = (wxDC *) 0 ; | |
12147 | wxBrush *arg2 = 0 ; | |
12148 | PyObject * obj0 = 0 ; | |
12149 | PyObject * obj1 = 0 ; | |
12150 | char *kwnames[] = { | |
12151 | (char *) "self",(char *) "brush", NULL | |
12152 | }; | |
12153 | ||
12154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
12155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12156 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12157 | if (arg2 == NULL) { | |
12158 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12159 | } | |
12160 | { | |
12161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12162 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12163 | ||
12164 | wxPyEndAllowThreads(__tstate); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
12167 | Py_INCREF(Py_None); resultobj = Py_None; | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | return NULL; | |
12171 | } | |
12172 | ||
12173 | ||
12174 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12175 | PyObject *resultobj; | |
12176 | wxDC *arg1 = (wxDC *) 0 ; | |
12177 | int arg2 ; | |
12178 | PyObject * obj0 = 0 ; | |
994141e6 | 12179 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12180 | char *kwnames[] = { |
12181 | (char *) "self",(char *) "mode", NULL | |
12182 | }; | |
12183 | ||
994141e6 | 12184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12186 | { |
12187 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | } | |
d14a1e28 RD |
12190 | { |
12191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12192 | (arg1)->SetBackgroundMode(arg2); | |
12193 | ||
12194 | wxPyEndAllowThreads(__tstate); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
12197 | Py_INCREF(Py_None); resultobj = Py_None; | |
12198 | return resultobj; | |
12199 | fail: | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj; | |
12206 | wxDC *arg1 = (wxDC *) 0 ; | |
12207 | wxPalette *arg2 = 0 ; | |
12208 | PyObject * obj0 = 0 ; | |
12209 | PyObject * obj1 = 0 ; | |
12210 | char *kwnames[] = { | |
12211 | (char *) "self",(char *) "palette", NULL | |
12212 | }; | |
12213 | ||
12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
12215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12216 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12217 | if (arg2 == NULL) { | |
12218 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12219 | } | |
12220 | { | |
12221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12222 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12223 | ||
12224 | wxPyEndAllowThreads(__tstate); | |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
12226 | } | |
12227 | Py_INCREF(Py_None); resultobj = Py_None; | |
12228 | return resultobj; | |
12229 | fail: | |
12230 | return NULL; | |
12231 | } | |
12232 | ||
12233 | ||
242b7b46 | 12234 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12235 | PyObject *resultobj; |
12236 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12237 | int arg2 ; |
12238 | int arg3 ; | |
12239 | int arg4 ; | |
12240 | int arg5 ; | |
d14a1e28 | 12241 | PyObject * obj0 = 0 ; |
994141e6 RD |
12242 | PyObject * obj1 = 0 ; |
12243 | PyObject * obj2 = 0 ; | |
12244 | PyObject * obj3 = 0 ; | |
12245 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12246 | char *kwnames[] = { |
12247 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12248 | }; | |
12249 | ||
994141e6 | 12250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12252 | { |
12253 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12254 | if (PyErr_Occurred()) SWIG_fail; | |
12255 | } | |
12256 | { | |
12257 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12258 | if (PyErr_Occurred()) SWIG_fail; | |
12259 | } | |
12260 | { | |
12261 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | { | |
12265 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12266 | if (PyErr_Occurred()) SWIG_fail; | |
12267 | } | |
d14a1e28 RD |
12268 | { |
12269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12270 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12271 | ||
12272 | wxPyEndAllowThreads(__tstate); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | } | |
12275 | Py_INCREF(Py_None); resultobj = Py_None; | |
12276 | return resultobj; | |
12277 | fail: | |
12278 | return NULL; | |
12279 | } | |
12280 | ||
12281 | ||
242b7b46 RD |
12282 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12283 | PyObject *resultobj; | |
12284 | wxDC *arg1 = (wxDC *) 0 ; | |
12285 | wxPoint *arg2 = 0 ; | |
12286 | wxSize *arg3 = 0 ; | |
12287 | wxPoint temp2 ; | |
12288 | wxSize temp3 ; | |
12289 | PyObject * obj0 = 0 ; | |
12290 | PyObject * obj1 = 0 ; | |
12291 | PyObject * obj2 = 0 ; | |
12292 | char *kwnames[] = { | |
12293 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12294 | }; | |
12295 | ||
12296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12298 | { | |
12299 | arg2 = &temp2; | |
12300 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12301 | } | |
12302 | { | |
12303 | arg3 = &temp3; | |
12304 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12305 | } | |
12306 | { | |
12307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12308 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12309 | ||
12310 | wxPyEndAllowThreads(__tstate); | |
12311 | if (PyErr_Occurred()) SWIG_fail; | |
12312 | } | |
12313 | Py_INCREF(Py_None); resultobj = Py_None; | |
12314 | return resultobj; | |
12315 | fail: | |
12316 | return NULL; | |
12317 | } | |
12318 | ||
12319 | ||
d14a1e28 RD |
12320 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
12321 | PyObject *resultobj; | |
12322 | wxDC *arg1 = (wxDC *) 0 ; | |
12323 | wxRect *arg2 = 0 ; | |
12324 | wxRect temp2 ; | |
12325 | PyObject * obj0 = 0 ; | |
12326 | PyObject * obj1 = 0 ; | |
12327 | char *kwnames[] = { | |
12328 | (char *) "self",(char *) "rect", NULL | |
12329 | }; | |
12330 | ||
12331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12333 | { | |
12334 | arg2 = &temp2; | |
12335 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12336 | } | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | Py_INCREF(Py_None); resultobj = Py_None; | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxDC *arg1 = (wxDC *) 0 ; | |
12354 | wxRegion *arg2 = 0 ; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | PyObject * obj1 = 0 ; | |
12357 | char *kwnames[] = { | |
12358 | (char *) "self",(char *) "region", NULL | |
12359 | }; | |
12360 | ||
12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12363 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12364 | if (arg2 == NULL) { | |
12365 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12366 | } | |
12367 | { | |
12368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12369 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12370 | ||
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
12374 | Py_INCREF(Py_None); resultobj = Py_None; | |
12375 | return resultobj; | |
12376 | fail: | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
12381 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12382 | PyObject *resultobj; | |
12383 | wxDC *arg1 = (wxDC *) 0 ; | |
12384 | PyObject * obj0 = 0 ; | |
12385 | char *kwnames[] = { | |
12386 | (char *) "self", NULL | |
12387 | }; | |
12388 | ||
12389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
12390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12391 | { | |
12392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12393 | (arg1)->DestroyClippingRegion(); | |
12394 | ||
12395 | wxPyEndAllowThreads(__tstate); | |
12396 | if (PyErr_Occurred()) SWIG_fail; | |
12397 | } | |
12398 | Py_INCREF(Py_None); resultobj = Py_None; | |
12399 | return resultobj; | |
12400 | fail: | |
12401 | return NULL; | |
12402 | } | |
12403 | ||
12404 | ||
12405 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12406 | PyObject *resultobj; | |
12407 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12408 | int *arg2 = (int *) 0 ; |
12409 | int *arg3 = (int *) 0 ; | |
12410 | int *arg4 = (int *) 0 ; | |
12411 | int *arg5 = (int *) 0 ; | |
12412 | int temp2 ; | |
12413 | int temp3 ; | |
12414 | int temp4 ; | |
12415 | int temp5 ; | |
d14a1e28 RD |
12416 | PyObject * obj0 = 0 ; |
12417 | char *kwnames[] = { | |
12418 | (char *) "self", NULL | |
12419 | }; | |
12420 | ||
12421 | arg2 = &temp2; | |
12422 | arg3 = &temp3; | |
12423 | arg4 = &temp4; | |
12424 | arg5 = &temp5; | |
12425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
12426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12427 | { | |
12428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12429 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12430 | ||
12431 | wxPyEndAllowThreads(__tstate); | |
12432 | if (PyErr_Occurred()) SWIG_fail; | |
12433 | } | |
12434 | Py_INCREF(Py_None); resultobj = Py_None; | |
12435 | { | |
12436 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12437 | resultobj = t_output_helper(resultobj,o); | |
12438 | } | |
12439 | { | |
12440 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12441 | resultobj = t_output_helper(resultobj,o); | |
12442 | } | |
12443 | { | |
12444 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12445 | resultobj = t_output_helper(resultobj,o); | |
12446 | } | |
12447 | { | |
12448 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12449 | resultobj = t_output_helper(resultobj,o); | |
12450 | } | |
12451 | return resultobj; | |
12452 | fail: | |
12453 | return NULL; | |
12454 | } | |
12455 | ||
12456 | ||
12457 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12458 | PyObject *resultobj; | |
12459 | wxDC *arg1 = (wxDC *) 0 ; | |
12460 | wxRect result; | |
12461 | PyObject * obj0 = 0 ; | |
12462 | char *kwnames[] = { | |
12463 | (char *) "self", NULL | |
12464 | }; | |
12465 | ||
12466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
12467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12468 | { | |
12469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12470 | result = wxDC_GetClippingRect(arg1); | |
12471 | ||
12472 | wxPyEndAllowThreads(__tstate); | |
12473 | if (PyErr_Occurred()) SWIG_fail; | |
12474 | } | |
12475 | { | |
12476 | wxRect * resultptr; | |
12477 | resultptr = new wxRect((wxRect &) result); | |
12478 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
12479 | } | |
12480 | return resultobj; | |
12481 | fail: | |
12482 | return NULL; | |
12483 | } | |
12484 | ||
12485 | ||
12486 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12487 | PyObject *resultobj; | |
12488 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12489 | int result; |
d14a1e28 RD |
12490 | PyObject * obj0 = 0 ; |
12491 | char *kwnames[] = { | |
12492 | (char *) "self", NULL | |
12493 | }; | |
12494 | ||
12495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
12496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12499 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12500 | |
12501 | wxPyEndAllowThreads(__tstate); | |
12502 | if (PyErr_Occurred()) SWIG_fail; | |
12503 | } | |
994141e6 | 12504 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12505 | return resultobj; |
12506 | fail: | |
12507 | return NULL; | |
12508 | } | |
12509 | ||
12510 | ||
12511 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12512 | PyObject *resultobj; | |
12513 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12514 | int result; |
d14a1e28 RD |
12515 | PyObject * obj0 = 0 ; |
12516 | char *kwnames[] = { | |
12517 | (char *) "self", NULL | |
12518 | }; | |
12519 | ||
12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
12521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12524 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12525 | |
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
994141e6 | 12529 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12530 | return resultobj; |
12531 | fail: | |
12532 | return NULL; | |
12533 | } | |
12534 | ||
12535 | ||
12536 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12537 | PyObject *resultobj; | |
12538 | wxDC *arg1 = (wxDC *) 0 ; | |
12539 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12540 | int *arg3 = (int *) 0 ; |
12541 | int *arg4 = (int *) 0 ; | |
12542 | bool temp2 = False ; | |
12543 | int temp3 ; | |
12544 | int temp4 ; | |
d14a1e28 RD |
12545 | PyObject * obj0 = 0 ; |
12546 | PyObject * obj1 = 0 ; | |
12547 | char *kwnames[] = { | |
12548 | (char *) "self",(char *) "string", NULL | |
12549 | }; | |
12550 | ||
12551 | arg3 = &temp3; | |
12552 | arg4 = &temp4; | |
12553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
12554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12555 | { | |
12556 | arg2 = wxString_in_helper(obj1); | |
12557 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12558 | temp2 = True; |
d14a1e28 RD |
12559 | } |
12560 | { | |
12561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12562 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12563 | ||
12564 | wxPyEndAllowThreads(__tstate); | |
12565 | if (PyErr_Occurred()) SWIG_fail; | |
12566 | } | |
12567 | Py_INCREF(Py_None); resultobj = Py_None; | |
12568 | { | |
12569 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12570 | resultobj = t_output_helper(resultobj,o); | |
12571 | } | |
12572 | { | |
12573 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12574 | resultobj = t_output_helper(resultobj,o); | |
12575 | } | |
12576 | { | |
12577 | if (temp2) | |
12578 | delete arg2; | |
12579 | } | |
12580 | return resultobj; | |
12581 | fail: | |
12582 | { | |
12583 | if (temp2) | |
12584 | delete arg2; | |
12585 | } | |
12586 | return NULL; | |
12587 | } | |
12588 | ||
12589 | ||
12590 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12591 | PyObject *resultobj; | |
12592 | wxDC *arg1 = (wxDC *) 0 ; | |
12593 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12594 | int *arg3 = (int *) 0 ; |
12595 | int *arg4 = (int *) 0 ; | |
12596 | int *arg5 = (int *) 0 ; | |
12597 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12598 | wxFont *arg7 = (wxFont *) NULL ; |
e811c8ce RD |
12599 | bool temp2 = False ; |
12600 | int temp3 ; | |
12601 | int temp4 ; | |
12602 | int temp5 ; | |
12603 | int temp6 ; | |
d14a1e28 RD |
12604 | PyObject * obj0 = 0 ; |
12605 | PyObject * obj1 = 0 ; | |
12606 | PyObject * obj2 = 0 ; | |
12607 | char *kwnames[] = { | |
12608 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12609 | }; | |
12610 | ||
12611 | arg3 = &temp3; | |
12612 | arg4 = &temp4; | |
12613 | arg5 = &temp5; | |
12614 | arg6 = &temp6; | |
12615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12617 | { | |
12618 | arg2 = wxString_in_helper(obj1); | |
12619 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12620 | temp2 = True; |
d14a1e28 RD |
12621 | } |
12622 | if (obj2) { | |
12623 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12624 | } | |
12625 | { | |
12626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12627 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12628 | ||
12629 | wxPyEndAllowThreads(__tstate); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | Py_INCREF(Py_None); resultobj = Py_None; | |
12633 | { | |
12634 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12635 | resultobj = t_output_helper(resultobj,o); | |
12636 | } | |
12637 | { | |
12638 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12639 | resultobj = t_output_helper(resultobj,o); | |
12640 | } | |
12641 | { | |
12642 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12643 | resultobj = t_output_helper(resultobj,o); | |
12644 | } | |
12645 | { | |
12646 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12647 | resultobj = t_output_helper(resultobj,o); | |
12648 | } | |
12649 | { | |
12650 | if (temp2) | |
12651 | delete arg2; | |
12652 | } | |
12653 | return resultobj; | |
12654 | fail: | |
12655 | { | |
12656 | if (temp2) | |
12657 | delete arg2; | |
12658 | } | |
12659 | return NULL; | |
12660 | } | |
12661 | ||
12662 | ||
12663 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12664 | PyObject *resultobj; | |
12665 | wxDC *arg1 = (wxDC *) 0 ; | |
12666 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12667 | int *arg3 = (int *) 0 ; |
12668 | int *arg4 = (int *) 0 ; | |
12669 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12670 | wxFont *arg6 = (wxFont *) NULL ; |
e811c8ce RD |
12671 | bool temp2 = False ; |
12672 | int temp3 ; | |
12673 | int temp4 ; | |
12674 | int temp5 ; | |
d14a1e28 RD |
12675 | PyObject * obj0 = 0 ; |
12676 | PyObject * obj1 = 0 ; | |
12677 | PyObject * obj2 = 0 ; | |
12678 | char *kwnames[] = { | |
12679 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12680 | }; | |
12681 | ||
12682 | arg3 = &temp3; | |
12683 | arg4 = &temp4; | |
12684 | arg5 = &temp5; | |
12685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12687 | { | |
12688 | arg2 = wxString_in_helper(obj1); | |
12689 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12690 | temp2 = True; |
d14a1e28 RD |
12691 | } |
12692 | if (obj2) { | |
12693 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12694 | } | |
12695 | { | |
12696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12697 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12698 | ||
12699 | wxPyEndAllowThreads(__tstate); | |
12700 | if (PyErr_Occurred()) SWIG_fail; | |
12701 | } | |
12702 | Py_INCREF(Py_None); resultobj = Py_None; | |
12703 | { | |
12704 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12705 | resultobj = t_output_helper(resultobj,o); | |
12706 | } | |
12707 | { | |
12708 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12709 | resultobj = t_output_helper(resultobj,o); | |
12710 | } | |
12711 | { | |
12712 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12713 | resultobj = t_output_helper(resultobj,o); | |
12714 | } | |
12715 | { | |
12716 | if (temp2) | |
12717 | delete arg2; | |
12718 | } | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | { | |
12722 | if (temp2) | |
12723 | delete arg2; | |
12724 | } | |
12725 | return NULL; | |
12726 | } | |
12727 | ||
12728 | ||
322913ce RD |
12729 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
12730 | PyObject *resultobj; | |
12731 | wxDC *arg1 = (wxDC *) 0 ; | |
12732 | wxSize result; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | char *kwnames[] = { | |
12735 | (char *) "self", NULL | |
12736 | }; | |
12737 | ||
12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
12739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | result = (arg1)->GetSize(); | |
12743 | ||
12744 | wxPyEndAllowThreads(__tstate); | |
12745 | if (PyErr_Occurred()) SWIG_fail; | |
12746 | } | |
12747 | { | |
12748 | wxSize * resultptr; | |
12749 | resultptr = new wxSize((wxSize &) result); | |
12750 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12751 | } | |
12752 | return resultobj; | |
12753 | fail: | |
12754 | return NULL; | |
12755 | } | |
12756 | ||
12757 | ||
d14a1e28 RD |
12758 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
12759 | PyObject *resultobj; | |
12760 | wxDC *arg1 = (wxDC *) 0 ; | |
12761 | int *arg2 = (int *) 0 ; | |
12762 | int *arg3 = (int *) 0 ; | |
12763 | int temp2 ; | |
12764 | int temp3 ; | |
12765 | PyObject * obj0 = 0 ; | |
12766 | char *kwnames[] = { | |
12767 | (char *) "self", NULL | |
12768 | }; | |
12769 | ||
12770 | arg2 = &temp2; | |
12771 | arg3 = &temp3; | |
12772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
12773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12774 | { | |
12775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12776 | (arg1)->GetSize(arg2,arg3); | |
12777 | ||
12778 | wxPyEndAllowThreads(__tstate); | |
12779 | if (PyErr_Occurred()) SWIG_fail; | |
12780 | } | |
12781 | Py_INCREF(Py_None); resultobj = Py_None; | |
12782 | { | |
12783 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12784 | resultobj = t_output_helper(resultobj,o); | |
12785 | } | |
12786 | { | |
12787 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12788 | resultobj = t_output_helper(resultobj,o); | |
12789 | } | |
12790 | return resultobj; | |
12791 | fail: | |
12792 | return NULL; | |
12793 | } | |
12794 | ||
12795 | ||
322913ce | 12796 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12797 | PyObject *resultobj; |
12798 | wxDC *arg1 = (wxDC *) 0 ; | |
12799 | wxSize result; | |
12800 | PyObject * obj0 = 0 ; | |
12801 | char *kwnames[] = { | |
12802 | (char *) "self", NULL | |
12803 | }; | |
12804 | ||
322913ce | 12805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12807 | { | |
12808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 12809 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
12810 | |
12811 | wxPyEndAllowThreads(__tstate); | |
12812 | if (PyErr_Occurred()) SWIG_fail; | |
12813 | } | |
12814 | { | |
12815 | wxSize * resultptr; | |
12816 | resultptr = new wxSize((wxSize &) result); | |
12817 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12818 | } | |
12819 | return resultobj; | |
12820 | fail: | |
12821 | return NULL; | |
12822 | } | |
12823 | ||
12824 | ||
322913ce | 12825 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12826 | PyObject *resultobj; |
12827 | wxDC *arg1 = (wxDC *) 0 ; | |
12828 | int *arg2 = (int *) 0 ; | |
12829 | int *arg3 = (int *) 0 ; | |
12830 | int temp2 ; | |
12831 | int temp3 ; | |
12832 | PyObject * obj0 = 0 ; | |
12833 | char *kwnames[] = { | |
12834 | (char *) "self", NULL | |
12835 | }; | |
12836 | ||
12837 | arg2 = &temp2; | |
12838 | arg3 = &temp3; | |
322913ce | 12839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12841 | { | |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
12848 | Py_INCREF(Py_None); resultobj = Py_None; | |
12849 | { | |
12850 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12851 | resultobj = t_output_helper(resultobj,o); | |
12852 | } | |
12853 | { | |
12854 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12855 | resultobj = t_output_helper(resultobj,o); | |
12856 | } | |
12857 | return resultobj; | |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
d14a1e28 RD |
12863 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
12864 | PyObject *resultobj; | |
12865 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12866 | int arg2 ; |
12867 | int result; | |
d14a1e28 | 12868 | PyObject * obj0 = 0 ; |
994141e6 | 12869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12870 | char *kwnames[] = { |
12871 | (char *) "self",(char *) "x", NULL | |
12872 | }; | |
12873 | ||
994141e6 | 12874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12876 | { |
12877 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
d14a1e28 RD |
12880 | { |
12881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12882 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
12883 | |
12884 | wxPyEndAllowThreads(__tstate); | |
12885 | if (PyErr_Occurred()) SWIG_fail; | |
12886 | } | |
994141e6 | 12887 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12888 | return resultobj; |
12889 | fail: | |
12890 | return NULL; | |
12891 | } | |
12892 | ||
12893 | ||
12894 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12895 | PyObject *resultobj; | |
12896 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12897 | int arg2 ; |
12898 | int result; | |
d14a1e28 | 12899 | PyObject * obj0 = 0 ; |
994141e6 | 12900 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12901 | char *kwnames[] = { |
12902 | (char *) "self",(char *) "y", NULL | |
12903 | }; | |
12904 | ||
994141e6 | 12905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12907 | { |
12908 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12909 | if (PyErr_Occurred()) SWIG_fail; | |
12910 | } | |
d14a1e28 RD |
12911 | { |
12912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12913 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
12914 | |
12915 | wxPyEndAllowThreads(__tstate); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
994141e6 | 12918 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12919 | return resultobj; |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
12925 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12926 | PyObject *resultobj; | |
12927 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12928 | int arg2 ; |
12929 | int result; | |
d14a1e28 | 12930 | PyObject * obj0 = 0 ; |
994141e6 | 12931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12932 | char *kwnames[] = { |
12933 | (char *) "self",(char *) "x", NULL | |
12934 | }; | |
12935 | ||
994141e6 | 12936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12938 | { |
12939 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12940 | if (PyErr_Occurred()) SWIG_fail; | |
12941 | } | |
d14a1e28 RD |
12942 | { |
12943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12944 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
12945 | |
12946 | wxPyEndAllowThreads(__tstate); | |
12947 | if (PyErr_Occurred()) SWIG_fail; | |
12948 | } | |
994141e6 | 12949 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12950 | return resultobj; |
12951 | fail: | |
12952 | return NULL; | |
12953 | } | |
12954 | ||
12955 | ||
12956 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12957 | PyObject *resultobj; | |
12958 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12959 | int arg2 ; |
12960 | int result; | |
d14a1e28 | 12961 | PyObject * obj0 = 0 ; |
994141e6 | 12962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12963 | char *kwnames[] = { |
12964 | (char *) "self",(char *) "y", NULL | |
12965 | }; | |
12966 | ||
994141e6 | 12967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12969 | { |
12970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
12972 | } | |
d14a1e28 RD |
12973 | { |
12974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12975 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
12976 | |
12977 | wxPyEndAllowThreads(__tstate); | |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
12979 | } | |
994141e6 | 12980 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12981 | return resultobj; |
12982 | fail: | |
12983 | return NULL; | |
12984 | } | |
12985 | ||
12986 | ||
12987 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12988 | PyObject *resultobj; | |
12989 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12990 | int arg2 ; |
12991 | int result; | |
d14a1e28 | 12992 | PyObject * obj0 = 0 ; |
994141e6 | 12993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12994 | char *kwnames[] = { |
12995 | (char *) "self",(char *) "x", NULL | |
12996 | }; | |
12997 | ||
994141e6 | 12998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13000 | { |
13001 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
d14a1e28 RD |
13004 | { |
13005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13006 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13007 | |
13008 | wxPyEndAllowThreads(__tstate); | |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
994141e6 | 13011 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13012 | return resultobj; |
13013 | fail: | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
13018 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13019 | PyObject *resultobj; | |
13020 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13021 | int arg2 ; |
13022 | int result; | |
d14a1e28 | 13023 | PyObject * obj0 = 0 ; |
994141e6 | 13024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13025 | char *kwnames[] = { |
13026 | (char *) "self",(char *) "y", NULL | |
13027 | }; | |
13028 | ||
994141e6 | 13029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13031 | { |
13032 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13033 | if (PyErr_Occurred()) SWIG_fail; | |
13034 | } | |
d14a1e28 RD |
13035 | { |
13036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13037 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13038 | |
13039 | wxPyEndAllowThreads(__tstate); | |
13040 | if (PyErr_Occurred()) SWIG_fail; | |
13041 | } | |
994141e6 | 13042 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13043 | return resultobj; |
13044 | fail: | |
13045 | return NULL; | |
13046 | } | |
13047 | ||
13048 | ||
13049 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13050 | PyObject *resultobj; | |
13051 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13052 | int arg2 ; |
13053 | int result; | |
d14a1e28 | 13054 | PyObject * obj0 = 0 ; |
994141e6 | 13055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13056 | char *kwnames[] = { |
13057 | (char *) "self",(char *) "x", NULL | |
13058 | }; | |
13059 | ||
994141e6 | 13060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13062 | { |
13063 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13064 | if (PyErr_Occurred()) SWIG_fail; | |
13065 | } | |
d14a1e28 RD |
13066 | { |
13067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13068 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13069 | |
13070 | wxPyEndAllowThreads(__tstate); | |
13071 | if (PyErr_Occurred()) SWIG_fail; | |
13072 | } | |
994141e6 | 13073 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13074 | return resultobj; |
13075 | fail: | |
13076 | return NULL; | |
13077 | } | |
13078 | ||
13079 | ||
13080 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13081 | PyObject *resultobj; | |
13082 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13083 | int arg2 ; |
13084 | int result; | |
d14a1e28 | 13085 | PyObject * obj0 = 0 ; |
994141e6 | 13086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13087 | char *kwnames[] = { |
13088 | (char *) "self",(char *) "y", NULL | |
13089 | }; | |
13090 | ||
994141e6 | 13091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13093 | { |
13094 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13095 | if (PyErr_Occurred()) SWIG_fail; | |
13096 | } | |
d14a1e28 RD |
13097 | { |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13099 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13100 | |
13101 | wxPyEndAllowThreads(__tstate); | |
13102 | if (PyErr_Occurred()) SWIG_fail; | |
13103 | } | |
994141e6 | 13104 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13105 | return resultobj; |
13106 | fail: | |
13107 | return NULL; | |
13108 | } | |
13109 | ||
13110 | ||
13111 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13112 | PyObject *resultobj; | |
13113 | wxDC *arg1 = (wxDC *) 0 ; | |
13114 | bool result; | |
13115 | PyObject * obj0 = 0 ; | |
13116 | char *kwnames[] = { | |
13117 | (char *) "self", NULL | |
13118 | }; | |
13119 | ||
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13122 | { | |
13123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13124 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13125 | ||
13126 | wxPyEndAllowThreads(__tstate); | |
13127 | if (PyErr_Occurred()) SWIG_fail; | |
13128 | } | |
994141e6 | 13129 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13130 | return resultobj; |
13131 | fail: | |
13132 | return NULL; | |
13133 | } | |
13134 | ||
13135 | ||
13136 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13137 | PyObject *resultobj; | |
13138 | wxDC *arg1 = (wxDC *) 0 ; | |
13139 | bool result; | |
13140 | PyObject * obj0 = 0 ; | |
13141 | char *kwnames[] = { | |
13142 | (char *) "self", NULL | |
13143 | }; | |
13144 | ||
13145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13150 | ||
13151 | wxPyEndAllowThreads(__tstate); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
994141e6 | 13154 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13155 | return resultobj; |
13156 | fail: | |
13157 | return NULL; | |
13158 | } | |
13159 | ||
13160 | ||
13161 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13162 | PyObject *resultobj; | |
13163 | wxDC *arg1 = (wxDC *) 0 ; | |
13164 | int result; | |
13165 | PyObject * obj0 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "self", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
13171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13172 | { | |
13173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13174 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13175 | ||
13176 | wxPyEndAllowThreads(__tstate); | |
13177 | if (PyErr_Occurred()) SWIG_fail; | |
13178 | } | |
994141e6 | 13179 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13180 | return resultobj; |
13181 | fail: | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
13186 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13187 | PyObject *resultobj; | |
13188 | wxDC *arg1 = (wxDC *) 0 ; | |
13189 | wxSize result; | |
13190 | PyObject * obj0 = 0 ; | |
13191 | char *kwnames[] = { | |
13192 | (char *) "self", NULL | |
13193 | }; | |
13194 | ||
13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
13196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13197 | { | |
13198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13199 | result = ((wxDC const *)arg1)->GetPPI(); | |
13200 | ||
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | { | |
13205 | wxSize * resultptr; | |
13206 | resultptr = new wxSize((wxSize &) result); | |
13207 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13208 | } | |
13209 | return resultobj; | |
13210 | fail: | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
13215 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13216 | PyObject *resultobj; | |
13217 | wxDC *arg1 = (wxDC *) 0 ; | |
13218 | bool result; | |
13219 | PyObject * obj0 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
13225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13226 | { | |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13229 | ||
13230 | wxPyEndAllowThreads(__tstate); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
13232 | } | |
994141e6 | 13233 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13234 | return resultobj; |
13235 | fail: | |
13236 | return NULL; | |
13237 | } | |
13238 | ||
13239 | ||
13240 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13241 | PyObject *resultobj; | |
13242 | wxDC *arg1 = (wxDC *) 0 ; | |
13243 | int result; | |
13244 | PyObject * obj0 = 0 ; | |
13245 | char *kwnames[] = { | |
13246 | (char *) "self", NULL | |
13247 | }; | |
13248 | ||
13249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
13250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13251 | { | |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13254 | ||
13255 | wxPyEndAllowThreads(__tstate); | |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
13257 | } | |
994141e6 | 13258 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13259 | return resultobj; |
13260 | fail: | |
13261 | return NULL; | |
13262 | } | |
13263 | ||
13264 | ||
13265 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13266 | PyObject *resultobj; | |
13267 | wxDC *arg1 = (wxDC *) 0 ; | |
13268 | wxBrush *result; | |
13269 | PyObject * obj0 = 0 ; | |
13270 | char *kwnames[] = { | |
13271 | (char *) "self", NULL | |
13272 | }; | |
13273 | ||
13274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
13275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13276 | { | |
13277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13278 | { | |
13279 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13280 | result = (wxBrush *) &_result_ref; | |
13281 | } | |
13282 | ||
13283 | wxPyEndAllowThreads(__tstate); | |
13284 | if (PyErr_Occurred()) SWIG_fail; | |
13285 | } | |
13286 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13287 | return resultobj; | |
13288 | fail: | |
13289 | return NULL; | |
13290 | } | |
13291 | ||
13292 | ||
13293 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13294 | PyObject *resultobj; | |
13295 | wxDC *arg1 = (wxDC *) 0 ; | |
13296 | wxBrush *result; | |
13297 | PyObject * obj0 = 0 ; | |
13298 | char *kwnames[] = { | |
13299 | (char *) "self", NULL | |
13300 | }; | |
13301 | ||
13302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
13303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13304 | { | |
13305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13306 | { | |
13307 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13308 | result = (wxBrush *) &_result_ref; | |
13309 | } | |
13310 | ||
13311 | wxPyEndAllowThreads(__tstate); | |
13312 | if (PyErr_Occurred()) SWIG_fail; | |
13313 | } | |
13314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13315 | return resultobj; | |
13316 | fail: | |
13317 | return NULL; | |
13318 | } | |
13319 | ||
13320 | ||
13321 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13322 | PyObject *resultobj; | |
13323 | wxDC *arg1 = (wxDC *) 0 ; | |
13324 | wxFont *result; | |
13325 | PyObject * obj0 = 0 ; | |
13326 | char *kwnames[] = { | |
13327 | (char *) "self", NULL | |
13328 | }; | |
13329 | ||
13330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
13331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13332 | { | |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | { | |
13335 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13336 | result = (wxFont *) &_result_ref; | |
13337 | } | |
13338 | ||
13339 | wxPyEndAllowThreads(__tstate); | |
13340 | if (PyErr_Occurred()) SWIG_fail; | |
13341 | } | |
13342 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
13343 | return resultobj; | |
13344 | fail: | |
13345 | return NULL; | |
13346 | } | |
13347 | ||
13348 | ||
13349 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13350 | PyObject *resultobj; | |
13351 | wxDC *arg1 = (wxDC *) 0 ; | |
13352 | wxPen *result; | |
13353 | PyObject * obj0 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
13359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13360 | { | |
13361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13362 | { | |
13363 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13364 | result = (wxPen *) &_result_ref; | |
13365 | } | |
13366 | ||
13367 | wxPyEndAllowThreads(__tstate); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
13369 | } | |
13370 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
13371 | return resultobj; | |
13372 | fail: | |
13373 | return NULL; | |
13374 | } | |
13375 | ||
13376 | ||
13377 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13378 | PyObject *resultobj; | |
13379 | wxDC *arg1 = (wxDC *) 0 ; | |
13380 | wxColour *result; | |
13381 | PyObject * obj0 = 0 ; | |
13382 | char *kwnames[] = { | |
13383 | (char *) "self", NULL | |
13384 | }; | |
13385 | ||
13386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
13387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13388 | { | |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | { | |
13391 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13392 | result = (wxColour *) &_result_ref; | |
13393 | } | |
13394 | ||
13395 | wxPyEndAllowThreads(__tstate); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13399 | return resultobj; | |
13400 | fail: | |
13401 | return NULL; | |
13402 | } | |
13403 | ||
13404 | ||
13405 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13406 | PyObject *resultobj; | |
13407 | wxDC *arg1 = (wxDC *) 0 ; | |
13408 | wxColour *result; | |
13409 | PyObject * obj0 = 0 ; | |
13410 | char *kwnames[] = { | |
13411 | (char *) "self", NULL | |
13412 | }; | |
13413 | ||
13414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
13415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13416 | { | |
13417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13418 | { | |
13419 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13420 | result = (wxColour *) &_result_ref; | |
13421 | } | |
13422 | ||
13423 | wxPyEndAllowThreads(__tstate); | |
13424 | if (PyErr_Occurred()) SWIG_fail; | |
13425 | } | |
13426 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13427 | return resultobj; | |
13428 | fail: | |
13429 | return NULL; | |
13430 | } | |
13431 | ||
13432 | ||
13433 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13434 | PyObject *resultobj; | |
13435 | wxDC *arg1 = (wxDC *) 0 ; | |
13436 | wxColour *arg2 = 0 ; | |
13437 | wxColour temp2 ; | |
13438 | PyObject * obj0 = 0 ; | |
13439 | PyObject * obj1 = 0 ; | |
13440 | char *kwnames[] = { | |
13441 | (char *) "self",(char *) "colour", NULL | |
13442 | }; | |
13443 | ||
13444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
13445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13446 | { | |
13447 | arg2 = &temp2; | |
13448 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13449 | } | |
13450 | { | |
13451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13452 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13453 | ||
13454 | wxPyEndAllowThreads(__tstate); | |
13455 | if (PyErr_Occurred()) SWIG_fail; | |
13456 | } | |
13457 | Py_INCREF(Py_None); resultobj = Py_None; | |
13458 | return resultobj; | |
13459 | fail: | |
13460 | return NULL; | |
13461 | } | |
13462 | ||
13463 | ||
13464 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13465 | PyObject *resultobj; | |
13466 | wxDC *arg1 = (wxDC *) 0 ; | |
13467 | wxColour *arg2 = 0 ; | |
13468 | wxColour temp2 ; | |
13469 | PyObject * obj0 = 0 ; | |
13470 | PyObject * obj1 = 0 ; | |
13471 | char *kwnames[] = { | |
13472 | (char *) "self",(char *) "colour", NULL | |
13473 | }; | |
13474 | ||
13475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
13476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13477 | { | |
13478 | arg2 = &temp2; | |
13479 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13480 | } | |
13481 | { | |
13482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13483 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13484 | ||
13485 | wxPyEndAllowThreads(__tstate); | |
13486 | if (PyErr_Occurred()) SWIG_fail; | |
13487 | } | |
13488 | Py_INCREF(Py_None); resultobj = Py_None; | |
13489 | return resultobj; | |
13490 | fail: | |
13491 | return NULL; | |
13492 | } | |
13493 | ||
13494 | ||
13495 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13496 | PyObject *resultobj; | |
13497 | wxDC *arg1 = (wxDC *) 0 ; | |
13498 | int result; | |
13499 | PyObject * obj0 = 0 ; | |
13500 | char *kwnames[] = { | |
13501 | (char *) "self", NULL | |
13502 | }; | |
13503 | ||
13504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",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 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13509 | ||
13510 | wxPyEndAllowThreads(__tstate); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
13512 | } | |
994141e6 | 13513 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13514 | return resultobj; |
13515 | fail: | |
13516 | return NULL; | |
13517 | } | |
13518 | ||
13519 | ||
13520 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13521 | PyObject *resultobj; | |
13522 | wxDC *arg1 = (wxDC *) 0 ; | |
13523 | int arg2 ; | |
13524 | PyObject * obj0 = 0 ; | |
994141e6 | 13525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13526 | char *kwnames[] = { |
13527 | (char *) "self",(char *) "mode", NULL | |
13528 | }; | |
13529 | ||
994141e6 | 13530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13532 | { |
13533 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13534 | if (PyErr_Occurred()) SWIG_fail; | |
13535 | } | |
d14a1e28 RD |
13536 | { |
13537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13538 | (arg1)->SetMapMode(arg2); | |
13539 | ||
13540 | wxPyEndAllowThreads(__tstate); | |
13541 | if (PyErr_Occurred()) SWIG_fail; | |
13542 | } | |
13543 | Py_INCREF(Py_None); resultobj = Py_None; | |
13544 | return resultobj; | |
13545 | fail: | |
13546 | return NULL; | |
13547 | } | |
13548 | ||
13549 | ||
13550 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13551 | PyObject *resultobj; | |
13552 | wxDC *arg1 = (wxDC *) 0 ; | |
13553 | double *arg2 = (double *) 0 ; | |
13554 | double *arg3 = (double *) 0 ; | |
13555 | double temp2 ; | |
13556 | double temp3 ; | |
13557 | PyObject * obj0 = 0 ; | |
13558 | char *kwnames[] = { | |
13559 | (char *) "self", NULL | |
13560 | }; | |
13561 | ||
13562 | arg2 = &temp2; | |
13563 | arg3 = &temp3; | |
13564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
13565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13566 | { | |
13567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13568 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13569 | ||
13570 | wxPyEndAllowThreads(__tstate); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
13572 | } | |
13573 | Py_INCREF(Py_None); resultobj = Py_None; | |
13574 | { | |
13575 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13576 | resultobj = t_output_helper(resultobj,o); | |
13577 | } | |
13578 | { | |
13579 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13580 | resultobj = t_output_helper(resultobj,o); | |
13581 | } | |
13582 | return resultobj; | |
13583 | fail: | |
13584 | return NULL; | |
13585 | } | |
13586 | ||
13587 | ||
13588 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13589 | PyObject *resultobj; | |
13590 | wxDC *arg1 = (wxDC *) 0 ; | |
13591 | double arg2 ; | |
13592 | double arg3 ; | |
13593 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13594 | PyObject * obj1 = 0 ; |
13595 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13596 | char *kwnames[] = { |
13597 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13598 | }; | |
13599 | ||
994141e6 | 13600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13602 | { |
13603 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13604 | if (PyErr_Occurred()) SWIG_fail; | |
13605 | } | |
13606 | { | |
13607 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13608 | if (PyErr_Occurred()) SWIG_fail; | |
13609 | } | |
d14a1e28 RD |
13610 | { |
13611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13612 | (arg1)->SetUserScale(arg2,arg3); | |
13613 | ||
13614 | wxPyEndAllowThreads(__tstate); | |
13615 | if (PyErr_Occurred()) SWIG_fail; | |
13616 | } | |
13617 | Py_INCREF(Py_None); resultobj = Py_None; | |
13618 | return resultobj; | |
13619 | fail: | |
13620 | return NULL; | |
13621 | } | |
13622 | ||
13623 | ||
13624 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13625 | PyObject *resultobj; | |
13626 | wxDC *arg1 = (wxDC *) 0 ; | |
13627 | double *arg2 = (double *) 0 ; | |
13628 | double *arg3 = (double *) 0 ; | |
13629 | double temp2 ; | |
13630 | double temp3 ; | |
13631 | PyObject * obj0 = 0 ; | |
13632 | char *kwnames[] = { | |
13633 | (char *) "self", NULL | |
13634 | }; | |
13635 | ||
13636 | arg2 = &temp2; | |
13637 | arg3 = &temp3; | |
13638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
13639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13640 | { | |
13641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13642 | (arg1)->GetLogicalScale(arg2,arg3); | |
13643 | ||
13644 | wxPyEndAllowThreads(__tstate); | |
13645 | if (PyErr_Occurred()) SWIG_fail; | |
13646 | } | |
13647 | Py_INCREF(Py_None); resultobj = Py_None; | |
13648 | { | |
13649 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13650 | resultobj = t_output_helper(resultobj,o); | |
13651 | } | |
13652 | { | |
13653 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13654 | resultobj = t_output_helper(resultobj,o); | |
13655 | } | |
13656 | return resultobj; | |
13657 | fail: | |
13658 | return NULL; | |
13659 | } | |
13660 | ||
13661 | ||
13662 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13663 | PyObject *resultobj; | |
13664 | wxDC *arg1 = (wxDC *) 0 ; | |
13665 | double arg2 ; | |
13666 | double arg3 ; | |
13667 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13668 | PyObject * obj1 = 0 ; |
13669 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13670 | char *kwnames[] = { |
13671 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13672 | }; | |
13673 | ||
994141e6 | 13674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13676 | { |
13677 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13678 | if (PyErr_Occurred()) SWIG_fail; | |
13679 | } | |
13680 | { | |
13681 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13682 | if (PyErr_Occurred()) SWIG_fail; | |
13683 | } | |
d14a1e28 RD |
13684 | { |
13685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13686 | (arg1)->SetLogicalScale(arg2,arg3); | |
13687 | ||
13688 | wxPyEndAllowThreads(__tstate); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
13691 | Py_INCREF(Py_None); resultobj = Py_None; | |
13692 | return resultobj; | |
13693 | fail: | |
13694 | return NULL; | |
13695 | } | |
13696 | ||
13697 | ||
322913ce | 13698 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13699 | PyObject *resultobj; |
13700 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13701 | wxPoint result; |
d14a1e28 RD |
13702 | PyObject * obj0 = 0 ; |
13703 | char *kwnames[] = { | |
13704 | (char *) "self", NULL | |
13705 | }; | |
13706 | ||
322913ce | 13707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13709 | { | |
13710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13711 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
13712 | |
13713 | wxPyEndAllowThreads(__tstate); | |
13714 | if (PyErr_Occurred()) SWIG_fail; | |
13715 | } | |
d14a1e28 | 13716 | { |
322913ce RD |
13717 | wxPoint * resultptr; |
13718 | resultptr = new wxPoint((wxPoint &) result); | |
13719 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13720 | } |
13721 | return resultobj; | |
13722 | fail: | |
13723 | return NULL; | |
13724 | } | |
13725 | ||
13726 | ||
322913ce | 13727 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13728 | PyObject *resultobj; |
13729 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
13730 | int *arg2 = (int *) 0 ; |
13731 | int *arg3 = (int *) 0 ; | |
13732 | int temp2 ; | |
13733 | int temp3 ; | |
d14a1e28 RD |
13734 | PyObject * obj0 = 0 ; |
13735 | char *kwnames[] = { | |
13736 | (char *) "self", NULL | |
13737 | }; | |
13738 | ||
322913ce RD |
13739 | arg2 = &temp2; |
13740 | arg3 = &temp3; | |
13741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13743 | { | |
13744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13745 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
13746 | |
13747 | wxPyEndAllowThreads(__tstate); | |
13748 | if (PyErr_Occurred()) SWIG_fail; | |
13749 | } | |
322913ce | 13750 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13751 | { |
322913ce RD |
13752 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13753 | resultobj = t_output_helper(resultobj,o); | |
13754 | } | |
13755 | { | |
13756 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13757 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13758 | } |
13759 | return resultobj; | |
13760 | fail: | |
13761 | return NULL; | |
13762 | } | |
13763 | ||
13764 | ||
13765 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13766 | PyObject *resultobj; | |
13767 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13768 | int arg2 ; |
13769 | int arg3 ; | |
d14a1e28 | 13770 | PyObject * obj0 = 0 ; |
994141e6 RD |
13771 | PyObject * obj1 = 0 ; |
13772 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13773 | char *kwnames[] = { |
13774 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13775 | }; | |
13776 | ||
994141e6 | 13777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13779 | { |
13780 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13781 | if (PyErr_Occurred()) SWIG_fail; | |
13782 | } | |
13783 | { | |
13784 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13785 | if (PyErr_Occurred()) SWIG_fail; | |
13786 | } | |
d14a1e28 RD |
13787 | { |
13788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13789 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
13790 | ||
13791 | wxPyEndAllowThreads(__tstate); | |
13792 | if (PyErr_Occurred()) SWIG_fail; | |
13793 | } | |
13794 | Py_INCREF(Py_None); resultobj = Py_None; | |
13795 | return resultobj; | |
13796 | fail: | |
13797 | return NULL; | |
13798 | } | |
13799 | ||
13800 | ||
322913ce | 13801 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13802 | PyObject *resultobj; |
13803 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13804 | wxPoint result; |
d14a1e28 RD |
13805 | PyObject * obj0 = 0 ; |
13806 | char *kwnames[] = { | |
13807 | (char *) "self", NULL | |
13808 | }; | |
13809 | ||
322913ce | 13810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13812 | { | |
13813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13814 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
13815 | |
13816 | wxPyEndAllowThreads(__tstate); | |
13817 | if (PyErr_Occurred()) SWIG_fail; | |
13818 | } | |
d14a1e28 | 13819 | { |
322913ce RD |
13820 | wxPoint * resultptr; |
13821 | resultptr = new wxPoint((wxPoint &) result); | |
13822 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13823 | } |
13824 | return resultobj; | |
13825 | fail: | |
13826 | return NULL; | |
13827 | } | |
13828 | ||
13829 | ||
322913ce | 13830 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13831 | PyObject *resultobj; |
13832 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
13833 | int *arg2 = (int *) 0 ; |
13834 | int *arg3 = (int *) 0 ; | |
13835 | int temp2 ; | |
13836 | int temp3 ; | |
d14a1e28 RD |
13837 | PyObject * obj0 = 0 ; |
13838 | char *kwnames[] = { | |
13839 | (char *) "self", NULL | |
13840 | }; | |
13841 | ||
322913ce RD |
13842 | arg2 = &temp2; |
13843 | arg3 = &temp3; | |
13844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13846 | { | |
13847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13848 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
13849 | |
13850 | wxPyEndAllowThreads(__tstate); | |
13851 | if (PyErr_Occurred()) SWIG_fail; | |
13852 | } | |
322913ce | 13853 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13854 | { |
322913ce RD |
13855 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13856 | resultobj = t_output_helper(resultobj,o); | |
13857 | } | |
13858 | { | |
13859 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13860 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13861 | } |
13862 | return resultobj; | |
13863 | fail: | |
13864 | return NULL; | |
13865 | } | |
13866 | ||
13867 | ||
13868 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13869 | PyObject *resultobj; | |
13870 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13871 | int arg2 ; |
13872 | int arg3 ; | |
d14a1e28 | 13873 | PyObject * obj0 = 0 ; |
994141e6 RD |
13874 | PyObject * obj1 = 0 ; |
13875 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13876 | char *kwnames[] = { |
13877 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13878 | }; | |
13879 | ||
994141e6 | 13880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13882 | { |
13883 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13884 | if (PyErr_Occurred()) SWIG_fail; | |
13885 | } | |
13886 | { | |
13887 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
d14a1e28 RD |
13890 | { |
13891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13892 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
13893 | ||
13894 | wxPyEndAllowThreads(__tstate); | |
13895 | if (PyErr_Occurred()) SWIG_fail; | |
13896 | } | |
13897 | Py_INCREF(Py_None); resultobj = Py_None; | |
13898 | return resultobj; | |
13899 | fail: | |
13900 | return NULL; | |
13901 | } | |
13902 | ||
13903 | ||
13904 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13905 | PyObject *resultobj; | |
13906 | wxDC *arg1 = (wxDC *) 0 ; | |
13907 | bool arg2 ; | |
13908 | bool arg3 ; | |
13909 | PyObject * obj0 = 0 ; | |
13910 | PyObject * obj1 = 0 ; | |
13911 | PyObject * obj2 = 0 ; | |
13912 | char *kwnames[] = { | |
13913 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
13914 | }; | |
13915 | ||
13916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13918 | { |
994141e6 | 13919 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
13920 | if (PyErr_Occurred()) SWIG_fail; |
13921 | } | |
13922 | { | |
994141e6 | 13923 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
13924 | if (PyErr_Occurred()) SWIG_fail; |
13925 | } | |
d14a1e28 RD |
13926 | { |
13927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13928 | (arg1)->SetAxisOrientation(arg2,arg3); | |
13929 | ||
13930 | wxPyEndAllowThreads(__tstate); | |
13931 | if (PyErr_Occurred()) SWIG_fail; | |
13932 | } | |
13933 | Py_INCREF(Py_None); resultobj = Py_None; | |
13934 | return resultobj; | |
13935 | fail: | |
13936 | return NULL; | |
13937 | } | |
13938 | ||
13939 | ||
13940 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13941 | PyObject *resultobj; | |
13942 | wxDC *arg1 = (wxDC *) 0 ; | |
13943 | int result; | |
13944 | PyObject * obj0 = 0 ; | |
13945 | char *kwnames[] = { | |
13946 | (char *) "self", NULL | |
13947 | }; | |
13948 | ||
13949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
13950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13951 | { | |
13952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13953 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
13954 | ||
13955 | wxPyEndAllowThreads(__tstate); | |
13956 | if (PyErr_Occurred()) SWIG_fail; | |
13957 | } | |
994141e6 | 13958 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13959 | return resultobj; |
13960 | fail: | |
13961 | return NULL; | |
13962 | } | |
13963 | ||
13964 | ||
13965 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13966 | PyObject *resultobj; | |
13967 | wxDC *arg1 = (wxDC *) 0 ; | |
13968 | int arg2 ; | |
13969 | PyObject * obj0 = 0 ; | |
994141e6 | 13970 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13971 | char *kwnames[] = { |
13972 | (char *) "self",(char *) "function", NULL | |
13973 | }; | |
13974 | ||
994141e6 | 13975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13977 | { |
13978 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13979 | if (PyErr_Occurred()) SWIG_fail; | |
13980 | } | |
d14a1e28 RD |
13981 | { |
13982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13983 | (arg1)->SetLogicalFunction(arg2); | |
13984 | ||
13985 | wxPyEndAllowThreads(__tstate); | |
13986 | if (PyErr_Occurred()) SWIG_fail; | |
13987 | } | |
13988 | Py_INCREF(Py_None); resultobj = Py_None; | |
13989 | return resultobj; | |
13990 | fail: | |
13991 | return NULL; | |
13992 | } | |
13993 | ||
13994 | ||
13995 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13996 | PyObject *resultobj; | |
13997 | wxDC *arg1 = (wxDC *) 0 ; | |
13998 | bool arg2 ; | |
13999 | PyObject * obj0 = 0 ; | |
14000 | PyObject * obj1 = 0 ; | |
14001 | char *kwnames[] = { | |
14002 | (char *) "self",(char *) "opt", NULL | |
14003 | }; | |
14004 | ||
14005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
14006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14007 | { |
994141e6 | 14008 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14009 | if (PyErr_Occurred()) SWIG_fail; |
14010 | } | |
d14a1e28 RD |
14011 | { |
14012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14013 | (arg1)->SetOptimization(arg2); | |
14014 | ||
14015 | wxPyEndAllowThreads(__tstate); | |
14016 | if (PyErr_Occurred()) SWIG_fail; | |
14017 | } | |
14018 | Py_INCREF(Py_None); resultobj = Py_None; | |
14019 | return resultobj; | |
14020 | fail: | |
14021 | return NULL; | |
14022 | } | |
14023 | ||
14024 | ||
14025 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14026 | PyObject *resultobj; | |
14027 | wxDC *arg1 = (wxDC *) 0 ; | |
14028 | bool result; | |
14029 | PyObject * obj0 = 0 ; | |
14030 | char *kwnames[] = { | |
14031 | (char *) "self", NULL | |
14032 | }; | |
14033 | ||
14034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
14035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14036 | { | |
14037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14038 | result = (bool)(arg1)->GetOptimization(); | |
14039 | ||
14040 | wxPyEndAllowThreads(__tstate); | |
14041 | if (PyErr_Occurred()) SWIG_fail; | |
14042 | } | |
994141e6 | 14043 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14044 | return resultobj; |
14045 | fail: | |
14046 | return NULL; | |
14047 | } | |
14048 | ||
14049 | ||
14050 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14051 | PyObject *resultobj; | |
14052 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14053 | int arg2 ; |
14054 | int arg3 ; | |
d14a1e28 | 14055 | PyObject * obj0 = 0 ; |
994141e6 RD |
14056 | PyObject * obj1 = 0 ; |
14057 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14058 | char *kwnames[] = { |
14059 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14060 | }; | |
14061 | ||
994141e6 | 14062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14064 | { |
14065 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14066 | if (PyErr_Occurred()) SWIG_fail; | |
14067 | } | |
14068 | { | |
14069 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14070 | if (PyErr_Occurred()) SWIG_fail; | |
14071 | } | |
d14a1e28 RD |
14072 | { |
14073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14074 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14075 | ||
14076 | wxPyEndAllowThreads(__tstate); | |
14077 | if (PyErr_Occurred()) SWIG_fail; | |
14078 | } | |
14079 | Py_INCREF(Py_None); resultobj = Py_None; | |
14080 | return resultobj; | |
14081 | fail: | |
14082 | return NULL; | |
14083 | } | |
14084 | ||
14085 | ||
14086 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14087 | PyObject *resultobj; | |
14088 | wxDC *arg1 = (wxDC *) 0 ; | |
14089 | PyObject * obj0 = 0 ; | |
14090 | char *kwnames[] = { | |
14091 | (char *) "self", NULL | |
14092 | }; | |
14093 | ||
14094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
14095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14096 | { | |
14097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14098 | (arg1)->ResetBoundingBox(); | |
14099 | ||
14100 | wxPyEndAllowThreads(__tstate); | |
14101 | if (PyErr_Occurred()) SWIG_fail; | |
14102 | } | |
14103 | Py_INCREF(Py_None); resultobj = Py_None; | |
14104 | return resultobj; | |
14105 | fail: | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14111 | PyObject *resultobj; | |
14112 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14113 | int result; |
d14a1e28 RD |
14114 | PyObject * obj0 = 0 ; |
14115 | char *kwnames[] = { | |
14116 | (char *) "self", NULL | |
14117 | }; | |
14118 | ||
14119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
14120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14121 | { | |
14122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14123 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14124 | |
14125 | wxPyEndAllowThreads(__tstate); | |
14126 | if (PyErr_Occurred()) SWIG_fail; | |
14127 | } | |
994141e6 | 14128 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14129 | return resultobj; |
14130 | fail: | |
14131 | return NULL; | |
14132 | } | |
14133 | ||
14134 | ||
14135 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14136 | PyObject *resultobj; | |
14137 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14138 | int result; |
d14a1e28 RD |
14139 | PyObject * obj0 = 0 ; |
14140 | char *kwnames[] = { | |
14141 | (char *) "self", NULL | |
14142 | }; | |
14143 | ||
14144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
14145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14146 | { | |
14147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14148 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14149 | |
14150 | wxPyEndAllowThreads(__tstate); | |
14151 | if (PyErr_Occurred()) SWIG_fail; | |
14152 | } | |
994141e6 | 14153 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14154 | return resultobj; |
14155 | fail: | |
14156 | return NULL; | |
14157 | } | |
14158 | ||
14159 | ||
14160 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14161 | PyObject *resultobj; | |
14162 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14163 | int result; |
d14a1e28 RD |
14164 | PyObject * obj0 = 0 ; |
14165 | char *kwnames[] = { | |
14166 | (char *) "self", NULL | |
14167 | }; | |
14168 | ||
14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
14170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14171 | { | |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14173 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14174 | |
14175 | wxPyEndAllowThreads(__tstate); | |
14176 | if (PyErr_Occurred()) SWIG_fail; | |
14177 | } | |
994141e6 | 14178 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14179 | return resultobj; |
14180 | fail: | |
14181 | return NULL; | |
14182 | } | |
14183 | ||
14184 | ||
14185 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14186 | PyObject *resultobj; | |
14187 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14188 | int result; |
d14a1e28 RD |
14189 | PyObject * obj0 = 0 ; |
14190 | char *kwnames[] = { | |
14191 | (char *) "self", NULL | |
14192 | }; | |
14193 | ||
14194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
14195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14196 | { | |
14197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14198 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14199 | |
14200 | wxPyEndAllowThreads(__tstate); | |
14201 | if (PyErr_Occurred()) SWIG_fail; | |
14202 | } | |
994141e6 | 14203 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14204 | return resultobj; |
14205 | fail: | |
14206 | return NULL; | |
14207 | } | |
14208 | ||
14209 | ||
14210 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14211 | PyObject *resultobj; | |
14212 | wxDC *arg1 = (wxDC *) 0 ; | |
14213 | int *arg2 = (int *) 0 ; | |
14214 | int *arg3 = (int *) 0 ; | |
14215 | int *arg4 = (int *) 0 ; | |
14216 | int *arg5 = (int *) 0 ; | |
14217 | int temp2 ; | |
14218 | int temp3 ; | |
14219 | int temp4 ; | |
14220 | int temp5 ; | |
14221 | PyObject * obj0 = 0 ; | |
14222 | char *kwnames[] = { | |
14223 | (char *) "self", NULL | |
14224 | }; | |
14225 | ||
14226 | arg2 = &temp2; | |
14227 | arg3 = &temp3; | |
14228 | arg4 = &temp4; | |
14229 | arg5 = &temp5; | |
14230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
14231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14232 | { | |
14233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14234 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14235 | ||
14236 | wxPyEndAllowThreads(__tstate); | |
14237 | if (PyErr_Occurred()) SWIG_fail; | |
14238 | } | |
14239 | Py_INCREF(Py_None); resultobj = Py_None; | |
14240 | { | |
14241 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14242 | resultobj = t_output_helper(resultobj,o); | |
14243 | } | |
14244 | { | |
14245 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14246 | resultobj = t_output_helper(resultobj,o); | |
14247 | } | |
14248 | { | |
14249 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14250 | resultobj = t_output_helper(resultobj,o); | |
14251 | } | |
14252 | { | |
14253 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14254 | resultobj = t_output_helper(resultobj,o); | |
14255 | } | |
14256 | return resultobj; | |
14257 | fail: | |
14258 | return NULL; | |
14259 | } | |
14260 | ||
14261 | ||
14262 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14263 | PyObject *resultobj; | |
14264 | wxDC *arg1 = (wxDC *) 0 ; | |
14265 | PyObject *arg2 = (PyObject *) 0 ; | |
14266 | PyObject *arg3 = (PyObject *) 0 ; | |
14267 | PyObject *arg4 = (PyObject *) 0 ; | |
14268 | PyObject *result; | |
14269 | PyObject * obj0 = 0 ; | |
14270 | PyObject * obj1 = 0 ; | |
14271 | PyObject * obj2 = 0 ; | |
14272 | PyObject * obj3 = 0 ; | |
14273 | char *kwnames[] = { | |
14274 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14275 | }; | |
14276 | ||
14277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14279 | arg2 = obj1; | |
14280 | arg3 = obj2; | |
14281 | arg4 = obj3; | |
14282 | { | |
14283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14284 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14285 | ||
14286 | wxPyEndAllowThreads(__tstate); | |
14287 | if (PyErr_Occurred()) SWIG_fail; | |
14288 | } | |
14289 | resultobj = result; | |
14290 | return resultobj; | |
14291 | fail: | |
14292 | return NULL; | |
14293 | } | |
14294 | ||
14295 | ||
14296 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14297 | PyObject *resultobj; | |
14298 | wxDC *arg1 = (wxDC *) 0 ; | |
14299 | PyObject *arg2 = (PyObject *) 0 ; | |
14300 | PyObject *arg3 = (PyObject *) 0 ; | |
14301 | PyObject *arg4 = (PyObject *) 0 ; | |
14302 | PyObject *result; | |
14303 | PyObject * obj0 = 0 ; | |
14304 | PyObject * obj1 = 0 ; | |
14305 | PyObject * obj2 = 0 ; | |
14306 | PyObject * obj3 = 0 ; | |
14307 | char *kwnames[] = { | |
14308 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14309 | }; | |
14310 | ||
14311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14313 | arg2 = obj1; | |
14314 | arg3 = obj2; | |
14315 | arg4 = obj3; | |
14316 | { | |
14317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14318 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14319 | ||
14320 | wxPyEndAllowThreads(__tstate); | |
14321 | if (PyErr_Occurred()) SWIG_fail; | |
14322 | } | |
14323 | resultobj = result; | |
14324 | return resultobj; | |
14325 | fail: | |
14326 | return NULL; | |
14327 | } | |
14328 | ||
14329 | ||
14330 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14331 | PyObject *resultobj; | |
14332 | wxDC *arg1 = (wxDC *) 0 ; | |
14333 | PyObject *arg2 = (PyObject *) 0 ; | |
14334 | PyObject *arg3 = (PyObject *) 0 ; | |
14335 | PyObject *arg4 = (PyObject *) 0 ; | |
14336 | PyObject *result; | |
14337 | PyObject * obj0 = 0 ; | |
14338 | PyObject * obj1 = 0 ; | |
14339 | PyObject * obj2 = 0 ; | |
14340 | PyObject * obj3 = 0 ; | |
14341 | char *kwnames[] = { | |
14342 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14343 | }; | |
14344 | ||
14345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14347 | arg2 = obj1; | |
14348 | arg3 = obj2; | |
14349 | arg4 = obj3; | |
14350 | { | |
14351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14352 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14353 | ||
14354 | wxPyEndAllowThreads(__tstate); | |
14355 | if (PyErr_Occurred()) SWIG_fail; | |
14356 | } | |
14357 | resultobj = result; | |
14358 | return resultobj; | |
14359 | fail: | |
14360 | return NULL; | |
14361 | } | |
14362 | ||
14363 | ||
14364 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14365 | PyObject *resultobj; | |
14366 | wxDC *arg1 = (wxDC *) 0 ; | |
14367 | PyObject *arg2 = (PyObject *) 0 ; | |
14368 | PyObject *arg3 = (PyObject *) 0 ; | |
14369 | PyObject *arg4 = (PyObject *) 0 ; | |
14370 | PyObject *result; | |
14371 | PyObject * obj0 = 0 ; | |
14372 | PyObject * obj1 = 0 ; | |
14373 | PyObject * obj2 = 0 ; | |
14374 | PyObject * obj3 = 0 ; | |
14375 | char *kwnames[] = { | |
14376 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14377 | }; | |
14378 | ||
14379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14381 | arg2 = obj1; | |
14382 | arg3 = obj2; | |
14383 | arg4 = obj3; | |
14384 | { | |
14385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14386 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14387 | ||
14388 | wxPyEndAllowThreads(__tstate); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
14391 | resultobj = result; | |
14392 | return resultobj; | |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14399 | PyObject *resultobj; | |
14400 | wxDC *arg1 = (wxDC *) 0 ; | |
14401 | PyObject *arg2 = (PyObject *) 0 ; | |
14402 | PyObject *arg3 = (PyObject *) 0 ; | |
14403 | PyObject *arg4 = (PyObject *) 0 ; | |
14404 | PyObject *result; | |
14405 | PyObject * obj0 = 0 ; | |
14406 | PyObject * obj1 = 0 ; | |
14407 | PyObject * obj2 = 0 ; | |
14408 | PyObject * obj3 = 0 ; | |
14409 | char *kwnames[] = { | |
14410 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14411 | }; | |
14412 | ||
14413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14415 | arg2 = obj1; | |
14416 | arg3 = obj2; | |
14417 | arg4 = obj3; | |
14418 | { | |
14419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14420 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14421 | ||
14422 | wxPyEndAllowThreads(__tstate); | |
14423 | if (PyErr_Occurred()) SWIG_fail; | |
14424 | } | |
14425 | resultobj = result; | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
14432 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14433 | PyObject *resultobj; | |
14434 | wxDC *arg1 = (wxDC *) 0 ; | |
14435 | PyObject *arg2 = (PyObject *) 0 ; | |
14436 | PyObject *arg3 = (PyObject *) 0 ; | |
14437 | PyObject *arg4 = (PyObject *) 0 ; | |
14438 | PyObject *arg5 = (PyObject *) 0 ; | |
14439 | PyObject *result; | |
14440 | PyObject * obj0 = 0 ; | |
14441 | PyObject * obj1 = 0 ; | |
14442 | PyObject * obj2 = 0 ; | |
14443 | PyObject * obj3 = 0 ; | |
14444 | PyObject * obj4 = 0 ; | |
14445 | char *kwnames[] = { | |
14446 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14447 | }; | |
14448 | ||
14449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14451 | arg2 = obj1; | |
14452 | arg3 = obj2; | |
14453 | arg4 = obj3; | |
14454 | arg5 = obj4; | |
14455 | { | |
14456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14457 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14458 | ||
14459 | wxPyEndAllowThreads(__tstate); | |
14460 | if (PyErr_Occurred()) SWIG_fail; | |
14461 | } | |
14462 | resultobj = result; | |
14463 | return resultobj; | |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
14469 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14470 | PyObject *obj; | |
14471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14472 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14473 | Py_INCREF(obj); | |
14474 | return Py_BuildValue((char *)""); | |
14475 | } | |
14476 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14477 | PyObject *resultobj; | |
14478 | wxMemoryDC *result; | |
14479 | char *kwnames[] = { | |
14480 | NULL | |
14481 | }; | |
14482 | ||
14483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14484 | { | |
14485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14486 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14487 | ||
14488 | wxPyEndAllowThreads(__tstate); | |
14489 | if (PyErr_Occurred()) SWIG_fail; | |
14490 | } | |
14491 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14492 | return resultobj; | |
14493 | fail: | |
14494 | return NULL; | |
14495 | } | |
14496 | ||
14497 | ||
14498 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14499 | PyObject *resultobj; | |
14500 | wxDC *arg1 = (wxDC *) 0 ; | |
14501 | wxMemoryDC *result; | |
14502 | PyObject * obj0 = 0 ; | |
14503 | char *kwnames[] = { | |
14504 | (char *) "oldDC", NULL | |
14505 | }; | |
14506 | ||
14507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
14508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14509 | { | |
14510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14511 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14512 | ||
14513 | wxPyEndAllowThreads(__tstate); | |
14514 | if (PyErr_Occurred()) SWIG_fail; | |
14515 | } | |
14516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14517 | return resultobj; | |
14518 | fail: | |
14519 | return NULL; | |
14520 | } | |
14521 | ||
14522 | ||
14523 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14524 | PyObject *resultobj; | |
14525 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14526 | wxBitmap *arg2 = 0 ; | |
14527 | PyObject * obj0 = 0 ; | |
14528 | PyObject * obj1 = 0 ; | |
14529 | char *kwnames[] = { | |
14530 | (char *) "self",(char *) "bitmap", NULL | |
14531 | }; | |
14532 | ||
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
14534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14535 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14536 | if (arg2 == NULL) { | |
14537 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14538 | } | |
14539 | { | |
14540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14541 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14542 | ||
14543 | wxPyEndAllowThreads(__tstate); | |
14544 | if (PyErr_Occurred()) SWIG_fail; | |
14545 | } | |
14546 | Py_INCREF(Py_None); resultobj = Py_None; | |
14547 | return resultobj; | |
14548 | fail: | |
14549 | return NULL; | |
14550 | } | |
14551 | ||
14552 | ||
14553 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
14554 | PyObject *obj; | |
14555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14556 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14557 | Py_INCREF(obj); | |
14558 | return Py_BuildValue((char *)""); | |
14559 | } | |
14560 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14561 | PyObject *resultobj; | |
14562 | wxDC *arg1 = (wxDC *) 0 ; | |
14563 | wxBitmap *arg2 = 0 ; | |
14564 | wxBufferedDC *result; | |
14565 | PyObject * obj0 = 0 ; | |
14566 | PyObject * obj1 = 0 ; | |
14567 | char *kwnames[] = { | |
14568 | (char *) "dc",(char *) "buffer", NULL | |
14569 | }; | |
14570 | ||
14571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail; | |
14572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14573 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14574 | if (arg2 == NULL) { | |
14575 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14576 | } | |
14577 | { | |
14578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14579 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
14580 | ||
14581 | wxPyEndAllowThreads(__tstate); | |
14582 | if (PyErr_Occurred()) SWIG_fail; | |
14583 | } | |
14584 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14585 | return resultobj; | |
14586 | fail: | |
14587 | return NULL; | |
14588 | } | |
14589 | ||
14590 | ||
14591 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14592 | PyObject *resultobj; | |
14593 | wxDC *arg1 = (wxDC *) 0 ; | |
14594 | wxSize *arg2 = 0 ; | |
14595 | wxBufferedDC *result; | |
14596 | wxSize temp2 ; | |
14597 | PyObject * obj0 = 0 ; | |
14598 | PyObject * obj1 = 0 ; | |
14599 | char *kwnames[] = { | |
14600 | (char *) "dc",(char *) "area", NULL | |
14601 | }; | |
14602 | ||
14603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail; | |
14604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14605 | { | |
14606 | arg2 = &temp2; | |
14607 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14608 | } | |
14609 | { | |
14610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14611 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
14612 | ||
14613 | wxPyEndAllowThreads(__tstate); | |
14614 | if (PyErr_Occurred()) SWIG_fail; | |
14615 | } | |
14616 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14617 | return resultobj; | |
14618 | fail: | |
14619 | return NULL; | |
14620 | } | |
14621 | ||
14622 | ||
14623 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14624 | PyObject *resultobj; | |
14625 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
14626 | PyObject * obj0 = 0 ; | |
14627 | char *kwnames[] = { | |
14628 | (char *) "self", NULL | |
14629 | }; | |
14630 | ||
14631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
14632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14633 | { | |
14634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14635 | (arg1)->UnMask(); | |
14636 | ||
14637 | wxPyEndAllowThreads(__tstate); | |
14638 | if (PyErr_Occurred()) SWIG_fail; | |
14639 | } | |
14640 | Py_INCREF(Py_None); resultobj = Py_None; | |
14641 | return resultobj; | |
14642 | fail: | |
14643 | return NULL; | |
14644 | } | |
14645 | ||
14646 | ||
14647 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
14648 | PyObject *obj; | |
14649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14650 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
14651 | Py_INCREF(obj); | |
14652 | return Py_BuildValue((char *)""); | |
14653 | } | |
14654 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14655 | PyObject *resultobj; | |
14656 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14657 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
14658 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
14659 | wxBufferedPaintDC *result; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | PyObject * obj1 = 0 ; | |
14662 | char *kwnames[] = { | |
14663 | (char *) "window",(char *) "buffer", NULL | |
14664 | }; | |
14665 | ||
14666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
14667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14668 | if (obj1) { | |
14669 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14670 | if (arg2 == NULL) { | |
14671 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14672 | } | |
14673 | } | |
14674 | { | |
14675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14676 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
14677 | ||
14678 | wxPyEndAllowThreads(__tstate); | |
14679 | if (PyErr_Occurred()) SWIG_fail; | |
14680 | } | |
14681 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14682 | return resultobj; | |
14683 | fail: | |
14684 | return NULL; | |
14685 | } | |
14686 | ||
14687 | ||
14688 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
14689 | PyObject *obj; | |
14690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14691 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
14692 | Py_INCREF(obj); | |
14693 | return Py_BuildValue((char *)""); | |
14694 | } | |
14695 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14696 | PyObject *resultobj; | |
14697 | wxScreenDC *result; | |
14698 | char *kwnames[] = { | |
14699 | NULL | |
14700 | }; | |
14701 | ||
14702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
14703 | { | |
14704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14705 | result = (wxScreenDC *)new wxScreenDC(); | |
14706 | ||
14707 | wxPyEndAllowThreads(__tstate); | |
14708 | if (PyErr_Occurred()) SWIG_fail; | |
14709 | } | |
14710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
14711 | return resultobj; | |
14712 | fail: | |
14713 | return NULL; | |
14714 | } | |
14715 | ||
14716 | ||
14717 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14718 | PyObject *resultobj; | |
14719 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14720 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14721 | bool result; | |
14722 | PyObject * obj0 = 0 ; | |
14723 | PyObject * obj1 = 0 ; | |
14724 | char *kwnames[] = { | |
14725 | (char *) "self",(char *) "window", NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
14729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14730 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14731 | { | |
14732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14733 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
14734 | ||
14735 | wxPyEndAllowThreads(__tstate); | |
14736 | if (PyErr_Occurred()) SWIG_fail; | |
14737 | } | |
994141e6 | 14738 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14739 | return resultobj; |
14740 | fail: | |
14741 | return NULL; | |
14742 | } | |
14743 | ||
14744 | ||
14745 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14746 | PyObject *resultobj; | |
14747 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14748 | wxRect *arg2 = (wxRect *) NULL ; | |
14749 | bool result; | |
14750 | PyObject * obj0 = 0 ; | |
14751 | PyObject * obj1 = 0 ; | |
14752 | char *kwnames[] = { | |
14753 | (char *) "self",(char *) "rect", NULL | |
14754 | }; | |
14755 | ||
14756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
14757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14758 | if (obj1) { | |
14759 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14760 | } | |
14761 | { | |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14763 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
994141e6 | 14768 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14769 | return resultobj; |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14776 | PyObject *resultobj; | |
14777 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14778 | bool result; | |
14779 | PyObject * obj0 = 0 ; | |
14780 | char *kwnames[] = { | |
14781 | (char *) "self", NULL | |
14782 | }; | |
14783 | ||
14784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
14785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14786 | { | |
14787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14788 | result = (bool)(arg1)->EndDrawingOnTop(); | |
14789 | ||
14790 | wxPyEndAllowThreads(__tstate); | |
14791 | if (PyErr_Occurred()) SWIG_fail; | |
14792 | } | |
994141e6 | 14793 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14794 | return resultobj; |
14795 | fail: | |
14796 | return NULL; | |
14797 | } | |
14798 | ||
14799 | ||
14800 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
14801 | PyObject *obj; | |
14802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14803 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
14804 | Py_INCREF(obj); | |
14805 | return Py_BuildValue((char *)""); | |
14806 | } | |
14807 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14808 | PyObject *resultobj; | |
14809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14810 | wxClientDC *result; | |
14811 | PyObject * obj0 = 0 ; | |
14812 | char *kwnames[] = { | |
14813 | (char *) "win", NULL | |
14814 | }; | |
14815 | ||
14816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
14817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14818 | { | |
14819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14820 | result = (wxClientDC *)new wxClientDC(arg1); | |
14821 | ||
14822 | wxPyEndAllowThreads(__tstate); | |
14823 | if (PyErr_Occurred()) SWIG_fail; | |
14824 | } | |
14825 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
14826 | return resultobj; | |
14827 | fail: | |
14828 | return NULL; | |
14829 | } | |
14830 | ||
14831 | ||
14832 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
14833 | PyObject *obj; | |
14834 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14835 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
14836 | Py_INCREF(obj); | |
14837 | return Py_BuildValue((char *)""); | |
14838 | } | |
14839 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14840 | PyObject *resultobj; | |
14841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14842 | wxPaintDC *result; | |
14843 | PyObject * obj0 = 0 ; | |
14844 | char *kwnames[] = { | |
14845 | (char *) "win", NULL | |
14846 | }; | |
14847 | ||
14848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
14849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14850 | { | |
14851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14852 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
14853 | ||
14854 | wxPyEndAllowThreads(__tstate); | |
14855 | if (PyErr_Occurred()) SWIG_fail; | |
14856 | } | |
14857 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
14858 | return resultobj; | |
14859 | fail: | |
14860 | return NULL; | |
14861 | } | |
14862 | ||
14863 | ||
14864 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
14865 | PyObject *obj; | |
14866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14867 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
14868 | Py_INCREF(obj); | |
14869 | return Py_BuildValue((char *)""); | |
14870 | } | |
14871 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14872 | PyObject *resultobj; | |
14873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14874 | wxWindowDC *result; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | char *kwnames[] = { | |
14877 | (char *) "win", NULL | |
14878 | }; | |
14879 | ||
14880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
14881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14882 | { | |
14883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14884 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
14885 | ||
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
14889 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
14890 | return resultobj; | |
14891 | fail: | |
14892 | return NULL; | |
14893 | } | |
14894 | ||
14895 | ||
14896 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
14897 | PyObject *obj; | |
14898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14899 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
14900 | Py_INCREF(obj); | |
14901 | return Py_BuildValue((char *)""); | |
14902 | } | |
14903 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14904 | PyObject *resultobj; | |
14905 | wxDC *arg1 = 0 ; | |
14906 | bool arg2 ; | |
14907 | wxMirrorDC *result; | |
14908 | PyObject * obj0 = 0 ; | |
14909 | PyObject * obj1 = 0 ; | |
14910 | char *kwnames[] = { | |
14911 | (char *) "dc",(char *) "mirror", NULL | |
14912 | }; | |
14913 | ||
14914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
14915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14916 | if (arg1 == NULL) { | |
14917 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14918 | } | |
a41e16b6 | 14919 | { |
994141e6 | 14920 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14921 | if (PyErr_Occurred()) SWIG_fail; |
14922 | } | |
d14a1e28 RD |
14923 | { |
14924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14925 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
14926 | ||
14927 | wxPyEndAllowThreads(__tstate); | |
14928 | if (PyErr_Occurred()) SWIG_fail; | |
14929 | } | |
14930 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
14931 | return resultobj; | |
14932 | fail: | |
14933 | return NULL; | |
14934 | } | |
14935 | ||
14936 | ||
14937 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
14938 | PyObject *obj; | |
14939 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14940 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
14941 | Py_INCREF(obj); | |
14942 | return Py_BuildValue((char *)""); | |
14943 | } | |
14944 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14945 | PyObject *resultobj; | |
14946 | wxPrintData *arg1 = 0 ; | |
14947 | wxPostScriptDC *result; | |
14948 | PyObject * obj0 = 0 ; | |
14949 | char *kwnames[] = { | |
14950 | (char *) "printData", NULL | |
14951 | }; | |
14952 | ||
14953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
14954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14955 | if (arg1 == NULL) { | |
14956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14957 | } | |
14958 | { | |
14959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14960 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
14961 | ||
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
14966 | return resultobj; | |
14967 | fail: | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
14972 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14973 | PyObject *resultobj; | |
14974 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
14975 | wxPrintData *result; | |
14976 | PyObject * obj0 = 0 ; | |
14977 | char *kwnames[] = { | |
14978 | (char *) "self", NULL | |
14979 | }; | |
14980 | ||
14981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
14982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | { | |
14986 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
14987 | result = (wxPrintData *) &_result_ref; | |
14988 | } | |
14989 | ||
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
14993 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
14994 | return resultobj; | |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
15000 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15001 | PyObject *resultobj; | |
15002 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15003 | wxPrintData *arg2 = 0 ; | |
15004 | PyObject * obj0 = 0 ; | |
15005 | PyObject * obj1 = 0 ; | |
15006 | char *kwnames[] = { | |
15007 | (char *) "self",(char *) "data", NULL | |
15008 | }; | |
15009 | ||
15010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15012 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15013 | if (arg2 == NULL) { | |
15014 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15015 | } | |
15016 | { | |
15017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15018 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15019 | ||
15020 | wxPyEndAllowThreads(__tstate); | |
15021 | if (PyErr_Occurred()) SWIG_fail; | |
15022 | } | |
15023 | Py_INCREF(Py_None); resultobj = Py_None; | |
15024 | return resultobj; | |
15025 | fail: | |
15026 | return NULL; | |
15027 | } | |
15028 | ||
15029 | ||
15030 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15031 | PyObject *resultobj; | |
15032 | int arg1 ; | |
994141e6 | 15033 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15034 | char *kwnames[] = { |
15035 | (char *) "ppi", NULL | |
15036 | }; | |
15037 | ||
994141e6 RD |
15038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15039 | { | |
15040 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
15042 | } | |
d14a1e28 RD |
15043 | { |
15044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15045 | wxPostScriptDC::SetResolution(arg1); | |
15046 | ||
15047 | wxPyEndAllowThreads(__tstate); | |
15048 | if (PyErr_Occurred()) SWIG_fail; | |
15049 | } | |
15050 | Py_INCREF(Py_None); resultobj = Py_None; | |
15051 | return resultobj; | |
15052 | fail: | |
15053 | return NULL; | |
15054 | } | |
15055 | ||
15056 | ||
15057 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15058 | PyObject *resultobj; | |
15059 | int result; | |
15060 | char *kwnames[] = { | |
15061 | NULL | |
15062 | }; | |
15063 | ||
15064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15065 | { | |
15066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15067 | result = (int)wxPostScriptDC::GetResolution(); | |
15068 | ||
15069 | wxPyEndAllowThreads(__tstate); | |
15070 | if (PyErr_Occurred()) SWIG_fail; | |
15071 | } | |
994141e6 | 15072 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15073 | return resultobj; |
15074 | fail: | |
15075 | return NULL; | |
15076 | } | |
15077 | ||
15078 | ||
15079 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15080 | PyObject *obj; | |
15081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15082 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15083 | Py_INCREF(obj); | |
15084 | return Py_BuildValue((char *)""); | |
15085 | } | |
15086 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15087 | PyObject *resultobj; | |
15088 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15089 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15090 | wxMetaFile *result; | |
e811c8ce | 15091 | bool temp1 = False ; |
d14a1e28 RD |
15092 | PyObject * obj0 = 0 ; |
15093 | char *kwnames[] = { | |
15094 | (char *) "filename", NULL | |
15095 | }; | |
15096 | ||
15097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15098 | if (obj0) { | |
15099 | { | |
15100 | arg1 = wxString_in_helper(obj0); | |
15101 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15102 | temp1 = True; |
d14a1e28 RD |
15103 | } |
15104 | } | |
15105 | { | |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15107 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15108 | ||
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
15112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
15113 | { | |
15114 | if (temp1) | |
15115 | delete arg1; | |
15116 | } | |
15117 | return resultobj; | |
15118 | fail: | |
15119 | { | |
15120 | if (temp1) | |
15121 | delete arg1; | |
15122 | } | |
15123 | return NULL; | |
15124 | } | |
15125 | ||
15126 | ||
15127 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15128 | PyObject *obj; | |
15129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15130 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15131 | Py_INCREF(obj); | |
15132 | return Py_BuildValue((char *)""); | |
15133 | } | |
15134 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15135 | PyObject *resultobj; | |
15136 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15137 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15138 | int arg2 = (int) 0 ; | |
15139 | int arg3 = (int) 0 ; | |
15140 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15141 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15142 | wxMetaFileDC *result; | |
e811c8ce RD |
15143 | bool temp1 = False ; |
15144 | bool temp4 = False ; | |
d14a1e28 | 15145 | PyObject * obj0 = 0 ; |
994141e6 RD |
15146 | PyObject * obj1 = 0 ; |
15147 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15148 | PyObject * obj3 = 0 ; |
15149 | char *kwnames[] = { | |
15150 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15151 | }; | |
15152 | ||
994141e6 | 15153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15154 | if (obj0) { |
15155 | { | |
15156 | arg1 = wxString_in_helper(obj0); | |
15157 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15158 | temp1 = True; |
d14a1e28 RD |
15159 | } |
15160 | } | |
994141e6 RD |
15161 | if (obj1) { |
15162 | { | |
15163 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | } | |
15167 | if (obj2) { | |
15168 | { | |
15169 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15170 | if (PyErr_Occurred()) SWIG_fail; | |
15171 | } | |
15172 | } | |
d14a1e28 RD |
15173 | if (obj3) { |
15174 | { | |
15175 | arg4 = wxString_in_helper(obj3); | |
15176 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15177 | temp4 = True; |
d14a1e28 RD |
15178 | } |
15179 | } | |
15180 | { | |
15181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15182 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15183 | ||
15184 | wxPyEndAllowThreads(__tstate); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | } | |
15187 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
15188 | { | |
15189 | if (temp1) | |
15190 | delete arg1; | |
15191 | } | |
15192 | { | |
15193 | if (temp4) | |
15194 | delete arg4; | |
15195 | } | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | { | |
15199 | if (temp1) | |
15200 | delete arg1; | |
15201 | } | |
15202 | { | |
15203 | if (temp4) | |
15204 | delete arg4; | |
15205 | } | |
15206 | return NULL; | |
15207 | } | |
15208 | ||
15209 | ||
15210 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15211 | PyObject *obj; | |
15212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15213 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15214 | Py_INCREF(obj); | |
15215 | return Py_BuildValue((char *)""); | |
15216 | } | |
15217 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15218 | PyObject *resultobj; | |
15219 | wxPrintData *arg1 = 0 ; | |
15220 | wxPrinterDC *result; | |
15221 | PyObject * obj0 = 0 ; | |
15222 | char *kwnames[] = { | |
15223 | (char *) "printData", NULL | |
15224 | }; | |
15225 | ||
15226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15228 | if (arg1 == NULL) { | |
15229 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15230 | } | |
15231 | { | |
15232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15233 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15234 | ||
15235 | wxPyEndAllowThreads(__tstate); | |
15236 | if (PyErr_Occurred()) SWIG_fail; | |
15237 | } | |
15238 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
15239 | return resultobj; | |
15240 | fail: | |
15241 | return NULL; | |
15242 | } | |
15243 | ||
15244 | ||
15245 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
15246 | PyObject *obj; | |
15247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15248 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15249 | Py_INCREF(obj); | |
15250 | return Py_BuildValue((char *)""); | |
15251 | } | |
15252 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15253 | PyObject *resultobj; | |
15254 | int arg1 ; | |
15255 | int arg2 ; | |
e811c8ce | 15256 | int arg3 = (int) True ; |
d14a1e28 RD |
15257 | int arg4 = (int) 1 ; |
15258 | wxImageList *result; | |
994141e6 RD |
15259 | PyObject * obj0 = 0 ; |
15260 | PyObject * obj1 = 0 ; | |
15261 | PyObject * obj2 = 0 ; | |
15262 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15263 | char *kwnames[] = { |
15264 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15265 | }; | |
15266 | ||
994141e6 RD |
15267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15268 | { | |
15269 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15270 | if (PyErr_Occurred()) SWIG_fail; | |
15271 | } | |
15272 | { | |
15273 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15274 | if (PyErr_Occurred()) SWIG_fail; | |
15275 | } | |
15276 | if (obj2) { | |
15277 | { | |
15278 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15279 | if (PyErr_Occurred()) SWIG_fail; | |
15280 | } | |
15281 | } | |
15282 | if (obj3) { | |
15283 | { | |
15284 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | } | |
d14a1e28 RD |
15288 | { |
15289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15290 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15291 | ||
15292 | wxPyEndAllowThreads(__tstate); | |
15293 | if (PyErr_Occurred()) SWIG_fail; | |
15294 | } | |
15295 | { | |
15296 | resultobj = wxPyMake_wxObject(result); | |
15297 | } | |
15298 | return resultobj; | |
15299 | fail: | |
15300 | return NULL; | |
15301 | } | |
15302 | ||
15303 | ||
15304 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15305 | PyObject *resultobj; | |
15306 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | char *kwnames[] = { | |
15309 | (char *) "self", NULL | |
15310 | }; | |
15311 | ||
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15314 | { | |
15315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15316 | delete arg1; | |
15317 | ||
15318 | wxPyEndAllowThreads(__tstate); | |
15319 | if (PyErr_Occurred()) SWIG_fail; | |
15320 | } | |
15321 | Py_INCREF(Py_None); resultobj = Py_None; | |
15322 | return resultobj; | |
15323 | fail: | |
15324 | return NULL; | |
15325 | } | |
15326 | ||
15327 | ||
15328 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15329 | PyObject *resultobj; | |
15330 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15331 | wxBitmap *arg2 = 0 ; | |
15332 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15333 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15334 | int result; | |
15335 | PyObject * obj0 = 0 ; | |
15336 | PyObject * obj1 = 0 ; | |
15337 | PyObject * obj2 = 0 ; | |
15338 | char *kwnames[] = { | |
15339 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15340 | }; | |
15341 | ||
15342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15345 | if (arg2 == NULL) { | |
15346 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15347 | } | |
15348 | if (obj2) { | |
15349 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15350 | if (arg3 == NULL) { | |
15351 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15352 | } | |
15353 | } | |
15354 | { | |
15355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15356 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15357 | ||
15358 | wxPyEndAllowThreads(__tstate); | |
15359 | if (PyErr_Occurred()) SWIG_fail; | |
15360 | } | |
994141e6 | 15361 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15362 | return resultobj; |
15363 | fail: | |
15364 | return NULL; | |
15365 | } | |
15366 | ||
15367 | ||
15368 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15369 | PyObject *resultobj; | |
15370 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15371 | wxBitmap *arg2 = 0 ; | |
15372 | wxColour *arg3 = 0 ; | |
15373 | int result; | |
15374 | wxColour temp3 ; | |
15375 | PyObject * obj0 = 0 ; | |
15376 | PyObject * obj1 = 0 ; | |
15377 | PyObject * obj2 = 0 ; | |
15378 | char *kwnames[] = { | |
15379 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
15380 | }; | |
15381 | ||
15382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15384 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15385 | if (arg2 == NULL) { | |
15386 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15387 | } | |
15388 | { | |
15389 | arg3 = &temp3; | |
15390 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15391 | } | |
15392 | { | |
15393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15394 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
15395 | ||
15396 | wxPyEndAllowThreads(__tstate); | |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
15398 | } | |
994141e6 | 15399 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15400 | return resultobj; |
15401 | fail: | |
15402 | return NULL; | |
15403 | } | |
15404 | ||
15405 | ||
15406 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15407 | PyObject *resultobj; | |
15408 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15409 | wxIcon *arg2 = 0 ; | |
15410 | int result; | |
15411 | PyObject * obj0 = 0 ; | |
15412 | PyObject * obj1 = 0 ; | |
15413 | char *kwnames[] = { | |
15414 | (char *) "self",(char *) "icon", NULL | |
15415 | }; | |
15416 | ||
15417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15419 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15420 | if (arg2 == NULL) { | |
15421 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15422 | } | |
15423 | { | |
15424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15425 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
15426 | ||
15427 | wxPyEndAllowThreads(__tstate); | |
15428 | if (PyErr_Occurred()) SWIG_fail; | |
15429 | } | |
994141e6 | 15430 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15431 | return resultobj; |
15432 | fail: | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
15437 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15438 | PyObject *resultobj; | |
15439 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15440 | int arg2 ; | |
15441 | wxBitmap *arg3 = 0 ; | |
15442 | bool result; | |
15443 | PyObject * obj0 = 0 ; | |
994141e6 | 15444 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15445 | PyObject * obj2 = 0 ; |
15446 | char *kwnames[] = { | |
15447 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
15448 | }; | |
15449 | ||
994141e6 | 15450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15452 | { |
15453 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15454 | if (PyErr_Occurred()) SWIG_fail; | |
15455 | } | |
d14a1e28 RD |
15456 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15457 | if (arg3 == NULL) { | |
15458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15459 | } | |
15460 | { | |
15461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15462 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
15463 | ||
15464 | wxPyEndAllowThreads(__tstate); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | } | |
994141e6 | 15467 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15468 | return resultobj; |
15469 | fail: | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
15474 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15475 | PyObject *resultobj; | |
15476 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15477 | int arg2 ; | |
15478 | wxDC *arg3 = 0 ; | |
15479 | int arg4 ; | |
15480 | int arg5 ; | |
15481 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
e811c8ce | 15482 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15483 | bool result; |
15484 | PyObject * obj0 = 0 ; | |
994141e6 | 15485 | PyObject * obj1 = 0 ; |
d14a1e28 | 15486 | PyObject * obj2 = 0 ; |
994141e6 RD |
15487 | PyObject * obj3 = 0 ; |
15488 | PyObject * obj4 = 0 ; | |
15489 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15490 | PyObject * obj6 = 0 ; |
15491 | char *kwnames[] = { | |
15492 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15493 | }; | |
15494 | ||
994141e6 | 15495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 15496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15497 | { |
15498 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15499 | if (PyErr_Occurred()) SWIG_fail; | |
15500 | } | |
d14a1e28 RD |
15501 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15502 | if (arg3 == NULL) { | |
15503 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15504 | } | |
994141e6 RD |
15505 | { |
15506 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15507 | if (PyErr_Occurred()) SWIG_fail; | |
15508 | } | |
15509 | { | |
15510 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15511 | if (PyErr_Occurred()) SWIG_fail; | |
15512 | } | |
15513 | if (obj5) { | |
15514 | { | |
15515 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15516 | if (PyErr_Occurred()) SWIG_fail; | |
15517 | } | |
15518 | } | |
d14a1e28 | 15519 | if (obj6) { |
a41e16b6 | 15520 | { |
994141e6 | 15521 | arg7 = (bool const) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
15522 | if (PyErr_Occurred()) SWIG_fail; |
15523 | } | |
d14a1e28 RD |
15524 | } |
15525 | { | |
15526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15527 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15528 | ||
15529 | wxPyEndAllowThreads(__tstate); | |
15530 | if (PyErr_Occurred()) SWIG_fail; | |
15531 | } | |
994141e6 | 15532 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15533 | return resultobj; |
15534 | fail: | |
15535 | return NULL; | |
15536 | } | |
15537 | ||
15538 | ||
15539 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15540 | PyObject *resultobj; | |
15541 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15542 | int result; | |
15543 | PyObject * obj0 = 0 ; | |
15544 | char *kwnames[] = { | |
15545 | (char *) "self", NULL | |
15546 | }; | |
15547 | ||
15548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15550 | { | |
15551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15552 | result = (int)(arg1)->GetImageCount(); | |
15553 | ||
15554 | wxPyEndAllowThreads(__tstate); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | } | |
994141e6 | 15557 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15558 | return resultobj; |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
15564 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15565 | PyObject *resultobj; | |
15566 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15567 | int arg2 ; | |
15568 | bool result; | |
15569 | PyObject * obj0 = 0 ; | |
994141e6 | 15570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15571 | char *kwnames[] = { |
15572 | (char *) "self",(char *) "index", NULL | |
15573 | }; | |
15574 | ||
994141e6 | 15575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15577 | { |
15578 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15579 | if (PyErr_Occurred()) SWIG_fail; | |
15580 | } | |
d14a1e28 RD |
15581 | { |
15582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15583 | result = (bool)(arg1)->Remove(arg2); | |
15584 | ||
15585 | wxPyEndAllowThreads(__tstate); | |
15586 | if (PyErr_Occurred()) SWIG_fail; | |
15587 | } | |
994141e6 | 15588 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15589 | return resultobj; |
15590 | fail: | |
15591 | return NULL; | |
15592 | } | |
15593 | ||
15594 | ||
15595 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15596 | PyObject *resultobj; | |
15597 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15598 | bool result; | |
15599 | PyObject * obj0 = 0 ; | |
15600 | char *kwnames[] = { | |
15601 | (char *) "self", NULL | |
15602 | }; | |
15603 | ||
15604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15606 | { | |
15607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15608 | result = (bool)(arg1)->RemoveAll(); | |
15609 | ||
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
994141e6 | 15613 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15614 | return resultobj; |
15615 | fail: | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
15620 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15621 | PyObject *resultobj; | |
15622 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15623 | int arg2 ; | |
15624 | int *arg3 = 0 ; | |
15625 | int *arg4 = 0 ; | |
15626 | int temp3 ; | |
15627 | int temp4 ; | |
15628 | PyObject * obj0 = 0 ; | |
994141e6 | 15629 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15630 | char *kwnames[] = { |
15631 | (char *) "self",(char *) "index", NULL | |
15632 | }; | |
15633 | ||
15634 | arg3 = &temp3; | |
15635 | arg4 = &temp4; | |
994141e6 | 15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15638 | { |
15639 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15640 | if (PyErr_Occurred()) SWIG_fail; | |
15641 | } | |
d14a1e28 RD |
15642 | { |
15643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15644 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
15645 | ||
15646 | wxPyEndAllowThreads(__tstate); | |
15647 | if (PyErr_Occurred()) SWIG_fail; | |
15648 | } | |
15649 | Py_INCREF(Py_None); resultobj = Py_None; | |
15650 | { | |
15651 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15652 | resultobj = t_output_helper(resultobj,o); | |
15653 | } | |
15654 | { | |
15655 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15656 | resultobj = t_output_helper(resultobj,o); | |
15657 | } | |
15658 | return resultobj; | |
15659 | fail: | |
15660 | return NULL; | |
15661 | } | |
15662 | ||
15663 | ||
15664 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
15665 | PyObject *obj; | |
15666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15667 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
15668 | Py_INCREF(obj); | |
15669 | return Py_BuildValue((char *)""); | |
15670 | } | |
994141e6 RD |
15671 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { |
15672 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15673 | return 1; | |
d14a1e28 RD |
15674 | } |
15675 | ||
15676 | ||
994141e6 RD |
15677 | static PyObject *_wrap_NORMAL_FONT_get() { |
15678 | PyObject *pyobj; | |
d14a1e28 | 15679 | |
994141e6 RD |
15680 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); |
15681 | return pyobj; | |
d14a1e28 RD |
15682 | } |
15683 | ||
15684 | ||
994141e6 RD |
15685 | static int _wrap_SMALL_FONT_set(PyObject *_val) { |
15686 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15687 | return 1; | |
d14a1e28 RD |
15688 | } |
15689 | ||
15690 | ||
994141e6 RD |
15691 | static PyObject *_wrap_SMALL_FONT_get() { |
15692 | PyObject *pyobj; | |
d14a1e28 | 15693 | |
994141e6 RD |
15694 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); |
15695 | return pyobj; | |
d14a1e28 RD |
15696 | } |
15697 | ||
15698 | ||
994141e6 RD |
15699 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { |
15700 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15701 | return 1; | |
d14a1e28 | 15702 | } |
994141e6 RD |
15703 | |
15704 | ||
15705 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15706 | PyObject *pyobj; | |
d14a1e28 | 15707 | |
994141e6 RD |
15708 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); |
15709 | return pyobj; | |
d14a1e28 RD |
15710 | } |
15711 | ||
15712 | ||
994141e6 RD |
15713 | static int _wrap_SWISS_FONT_set(PyObject *_val) { |
15714 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15715 | return 1; | |
d14a1e28 RD |
15716 | } |
15717 | ||
15718 | ||
994141e6 RD |
15719 | static PyObject *_wrap_SWISS_FONT_get() { |
15720 | PyObject *pyobj; | |
d14a1e28 | 15721 | |
994141e6 RD |
15722 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); |
15723 | return pyobj; | |
d14a1e28 RD |
15724 | } |
15725 | ||
15726 | ||
994141e6 RD |
15727 | static int _wrap_RED_PEN_set(PyObject *_val) { |
15728 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15729 | return 1; | |
15730 | } | |
15731 | ||
15732 | ||
15733 | static PyObject *_wrap_RED_PEN_get() { | |
15734 | PyObject *pyobj; | |
d14a1e28 | 15735 | |
994141e6 RD |
15736 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); |
15737 | return pyobj; | |
d14a1e28 RD |
15738 | } |
15739 | ||
15740 | ||
994141e6 RD |
15741 | static int _wrap_CYAN_PEN_set(PyObject *_val) { |
15742 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
15743 | return 1; | |
d14a1e28 | 15744 | } |
994141e6 RD |
15745 | |
15746 | ||
15747 | static PyObject *_wrap_CYAN_PEN_get() { | |
15748 | PyObject *pyobj; | |
d14a1e28 | 15749 | |
994141e6 RD |
15750 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); |
15751 | return pyobj; | |
d14a1e28 RD |
15752 | } |
15753 | ||
15754 | ||
994141e6 RD |
15755 | static int _wrap_GREEN_PEN_set(PyObject *_val) { |
15756 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
15757 | return 1; | |
15758 | } | |
15759 | ||
15760 | ||
15761 | static PyObject *_wrap_GREEN_PEN_get() { | |
15762 | PyObject *pyobj; | |
d14a1e28 | 15763 | |
994141e6 RD |
15764 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); |
15765 | return pyobj; | |
d14a1e28 RD |
15766 | } |
15767 | ||
15768 | ||
994141e6 RD |
15769 | static int _wrap_BLACK_PEN_set(PyObject *_val) { |
15770 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
15771 | return 1; | |
15772 | } | |
15773 | ||
15774 | ||
15775 | static PyObject *_wrap_BLACK_PEN_get() { | |
15776 | PyObject *pyobj; | |
d14a1e28 | 15777 | |
994141e6 RD |
15778 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); |
15779 | return pyobj; | |
d14a1e28 RD |
15780 | } |
15781 | ||
15782 | ||
994141e6 RD |
15783 | static int _wrap_WHITE_PEN_set(PyObject *_val) { |
15784 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
15785 | return 1; | |
d14a1e28 RD |
15786 | } |
15787 | ||
15788 | ||
994141e6 RD |
15789 | static PyObject *_wrap_WHITE_PEN_get() { |
15790 | PyObject *pyobj; | |
d14a1e28 | 15791 | |
994141e6 RD |
15792 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); |
15793 | return pyobj; | |
d14a1e28 RD |
15794 | } |
15795 | ||
15796 | ||
994141e6 RD |
15797 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { |
15798 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
15799 | return 1; | |
d14a1e28 RD |
15800 | } |
15801 | ||
15802 | ||
994141e6 RD |
15803 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
15804 | PyObject *pyobj; | |
d14a1e28 | 15805 | |
994141e6 RD |
15806 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); |
15807 | return pyobj; | |
d14a1e28 RD |
15808 | } |
15809 | ||
15810 | ||
994141e6 RD |
15811 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { |
15812 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
15813 | return 1; | |
d14a1e28 RD |
15814 | } |
15815 | ||
15816 | ||
994141e6 RD |
15817 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
15818 | PyObject *pyobj; | |
d14a1e28 | 15819 | |
994141e6 RD |
15820 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); |
15821 | return pyobj; | |
d14a1e28 RD |
15822 | } |
15823 | ||
15824 | ||
994141e6 RD |
15825 | static int _wrap_GREY_PEN_set(PyObject *_val) { |
15826 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
15827 | return 1; | |
d14a1e28 RD |
15828 | } |
15829 | ||
15830 | ||
994141e6 RD |
15831 | static PyObject *_wrap_GREY_PEN_get() { |
15832 | PyObject *pyobj; | |
15833 | ||
15834 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15835 | return pyobj; | |
d14a1e28 | 15836 | } |
994141e6 RD |
15837 | |
15838 | ||
15839 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
15840 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
15841 | return 1; |
15842 | } | |
15843 | ||
15844 | ||
994141e6 | 15845 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
15846 | PyObject *pyobj; |
15847 | ||
994141e6 | 15848 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
15849 | return pyobj; |
15850 | } | |
15851 | ||
15852 | ||
994141e6 RD |
15853 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { |
15854 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
d14a1e28 RD |
15855 | return 1; |
15856 | } | |
15857 | ||
15858 | ||
994141e6 | 15859 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
15860 | PyObject *pyobj; |
15861 | ||
994141e6 | 15862 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
15863 | return pyobj; |
15864 | } | |
15865 | ||
15866 | ||
994141e6 RD |
15867 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { |
15868 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
15869 | return 1; |
15870 | } | |
15871 | ||
15872 | ||
994141e6 | 15873 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
15874 | PyObject *pyobj; |
15875 | ||
994141e6 | 15876 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15877 | return pyobj; |
15878 | } | |
15879 | ||
15880 | ||
994141e6 RD |
15881 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { |
15882 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
15883 | return 1; |
15884 | } | |
15885 | ||
15886 | ||
994141e6 | 15887 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
15888 | PyObject *pyobj; |
15889 | ||
994141e6 | 15890 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15891 | return pyobj; |
15892 | } | |
15893 | ||
15894 | ||
994141e6 RD |
15895 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { |
15896 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
15897 | return 1; |
15898 | } | |
15899 | ||
15900 | ||
994141e6 | 15901 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
15902 | PyObject *pyobj; |
15903 | ||
994141e6 | 15904 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15905 | return pyobj; |
15906 | } | |
15907 | ||
15908 | ||
994141e6 RD |
15909 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { |
15910 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
15911 | return 1; |
15912 | } | |
15913 | ||
15914 | ||
994141e6 | 15915 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
15916 | PyObject *pyobj; |
15917 | ||
994141e6 | 15918 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15919 | return pyobj; |
15920 | } | |
15921 | ||
15922 | ||
994141e6 RD |
15923 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { |
15924 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
15925 | return 1; |
15926 | } | |
15927 | ||
15928 | ||
994141e6 | 15929 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
15930 | PyObject *pyobj; |
15931 | ||
994141e6 | 15932 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15933 | return pyobj; |
15934 | } | |
15935 | ||
15936 | ||
994141e6 RD |
15937 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { |
15938 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
15939 | return 1; |
15940 | } | |
15941 | ||
15942 | ||
994141e6 | 15943 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
15944 | PyObject *pyobj; |
15945 | ||
994141e6 | 15946 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15947 | return pyobj; |
15948 | } | |
15949 | ||
15950 | ||
994141e6 RD |
15951 | static int _wrap_RED_BRUSH_set(PyObject *_val) { |
15952 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
15953 | return 1; |
15954 | } | |
15955 | ||
15956 | ||
994141e6 | 15957 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
15958 | PyObject *pyobj; |
15959 | ||
994141e6 | 15960 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15961 | return pyobj; |
15962 | } | |
15963 | ||
15964 | ||
994141e6 RD |
15965 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { |
15966 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
15967 | return 1; |
15968 | } | |
15969 | ||
15970 | ||
994141e6 | 15971 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
15972 | PyObject *pyobj; |
15973 | ||
994141e6 | 15974 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15975 | return pyobj; |
15976 | } | |
15977 | ||
15978 | ||
994141e6 RD |
15979 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { |
15980 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
15981 | return 1; |
15982 | } | |
15983 | ||
15984 | ||
994141e6 | 15985 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
15986 | PyObject *pyobj; |
15987 | ||
994141e6 | 15988 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
15989 | return pyobj; |
15990 | } | |
15991 | ||
15992 | ||
994141e6 RD |
15993 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { |
15994 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
15995 | return 1; |
15996 | } | |
15997 | ||
15998 | ||
994141e6 | 15999 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16000 | PyObject *pyobj; |
16001 | ||
994141e6 | 16002 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16003 | return pyobj; |
16004 | } | |
16005 | ||
16006 | ||
994141e6 RD |
16007 | static int _wrap_BLACK_set(PyObject *_val) { |
16008 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16009 | return 1; |
16010 | } | |
16011 | ||
16012 | ||
994141e6 | 16013 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16014 | PyObject *pyobj; |
16015 | ||
994141e6 | 16016 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16017 | return pyobj; |
16018 | } | |
16019 | ||
16020 | ||
994141e6 RD |
16021 | static int _wrap_WHITE_set(PyObject *_val) { |
16022 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16023 | return 1; |
16024 | } | |
16025 | ||
16026 | ||
994141e6 | 16027 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16028 | PyObject *pyobj; |
16029 | ||
994141e6 | 16030 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16031 | return pyobj; |
16032 | } | |
16033 | ||
16034 | ||
994141e6 RD |
16035 | static int _wrap_RED_set(PyObject *_val) { |
16036 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16037 | return 1; |
16038 | } | |
16039 | ||
16040 | ||
994141e6 | 16041 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16042 | PyObject *pyobj; |
16043 | ||
994141e6 | 16044 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16045 | return pyobj; |
16046 | } | |
16047 | ||
16048 | ||
994141e6 RD |
16049 | static int _wrap_BLUE_set(PyObject *_val) { |
16050 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16051 | return 1; |
16052 | } | |
16053 | ||
16054 | ||
994141e6 | 16055 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16056 | PyObject *pyobj; |
16057 | ||
994141e6 | 16058 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16059 | return pyobj; |
16060 | } | |
16061 | ||
16062 | ||
994141e6 RD |
16063 | static int _wrap_GREEN_set(PyObject *_val) { |
16064 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16065 | return 1; |
16066 | } | |
16067 | ||
16068 | ||
994141e6 | 16069 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16070 | PyObject *pyobj; |
16071 | ||
994141e6 | 16072 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16073 | return pyobj; |
16074 | } | |
16075 | ||
16076 | ||
994141e6 RD |
16077 | static int _wrap_CYAN_set(PyObject *_val) { |
16078 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16079 | return 1; |
16080 | } | |
16081 | ||
16082 | ||
994141e6 | 16083 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16084 | PyObject *pyobj; |
16085 | ||
994141e6 | 16086 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16087 | return pyobj; |
16088 | } | |
16089 | ||
16090 | ||
994141e6 RD |
16091 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { |
16092 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16093 | return 1; |
16094 | } | |
16095 | ||
16096 | ||
994141e6 | 16097 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16098 | PyObject *pyobj; |
16099 | ||
994141e6 | 16100 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16101 | return pyobj; |
16102 | } | |
16103 | ||
16104 | ||
994141e6 RD |
16105 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { |
16106 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16107 | return 1; |
16108 | } | |
16109 | ||
16110 | ||
994141e6 | 16111 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16112 | PyObject *pyobj; |
16113 | ||
994141e6 | 16114 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16115 | return pyobj; |
16116 | } | |
16117 | ||
16118 | ||
994141e6 RD |
16119 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { |
16120 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16121 | return 1; |
16122 | } | |
16123 | ||
16124 | ||
994141e6 | 16125 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16126 | PyObject *pyobj; |
16127 | ||
994141e6 | 16128 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16129 | return pyobj; |
16130 | } | |
16131 | ||
16132 | ||
994141e6 RD |
16133 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { |
16134 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16135 | return 1; |
16136 | } | |
16137 | ||
16138 | ||
994141e6 | 16139 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16140 | PyObject *pyobj; |
16141 | ||
994141e6 | 16142 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16143 | return pyobj; |
16144 | } | |
16145 | ||
16146 | ||
994141e6 RD |
16147 | static int _wrap_NullBitmap_set(PyObject *_val) { |
16148 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16149 | return 1; |
16150 | } | |
16151 | ||
16152 | ||
994141e6 | 16153 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16154 | PyObject *pyobj; |
16155 | ||
994141e6 | 16156 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16157 | return pyobj; |
16158 | } | |
16159 | ||
16160 | ||
994141e6 RD |
16161 | static int _wrap_NullIcon_set(PyObject *_val) { |
16162 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16163 | return 1; |
16164 | } | |
16165 | ||
16166 | ||
994141e6 | 16167 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16168 | PyObject *pyobj; |
16169 | ||
994141e6 | 16170 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16171 | return pyobj; |
16172 | } | |
16173 | ||
16174 | ||
994141e6 RD |
16175 | static int _wrap_NullCursor_set(PyObject *_val) { |
16176 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16177 | return 1; |
16178 | } | |
16179 | ||
16180 | ||
994141e6 | 16181 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16182 | PyObject *pyobj; |
16183 | ||
994141e6 | 16184 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16185 | return pyobj; |
16186 | } | |
16187 | ||
16188 | ||
994141e6 RD |
16189 | static int _wrap_NullPen_set(PyObject *_val) { |
16190 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16191 | return 1; |
16192 | } | |
16193 | ||
16194 | ||
994141e6 | 16195 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16196 | PyObject *pyobj; |
16197 | ||
994141e6 | 16198 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16199 | return pyobj; |
16200 | } | |
16201 | ||
16202 | ||
994141e6 RD |
16203 | static int _wrap_NullBrush_set(PyObject *_val) { |
16204 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16205 | return 1; |
16206 | } | |
16207 | ||
16208 | ||
994141e6 | 16209 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16210 | PyObject *pyobj; |
16211 | ||
994141e6 | 16212 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16213 | return pyobj; |
16214 | } | |
16215 | ||
16216 | ||
994141e6 RD |
16217 | static int _wrap_NullPalette_set(PyObject *_val) { |
16218 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16219 | return 1; |
16220 | } | |
16221 | ||
16222 | ||
994141e6 | 16223 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16224 | PyObject *pyobj; |
16225 | ||
994141e6 | 16226 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16227 | return pyobj; |
16228 | } | |
16229 | ||
16230 | ||
994141e6 RD |
16231 | static int _wrap_NullFont_set(PyObject *_val) { |
16232 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16233 | return 1; |
16234 | } | |
16235 | ||
16236 | ||
994141e6 | 16237 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16238 | PyObject *pyobj; |
16239 | ||
994141e6 | 16240 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16241 | return pyobj; |
16242 | } | |
16243 | ||
16244 | ||
994141e6 RD |
16245 | static int _wrap_NullColour_set(PyObject *_val) { |
16246 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16247 | return 1; |
16248 | } | |
16249 | ||
16250 | ||
994141e6 | 16251 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16252 | PyObject *pyobj; |
16253 | ||
994141e6 | 16254 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16255 | return pyobj; |
16256 | } | |
16257 | ||
16258 | ||
994141e6 RD |
16259 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16260 | PyObject *resultobj; | |
16261 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16262 | wxPen *arg2 = (wxPen *) 0 ; | |
16263 | PyObject * obj0 = 0 ; | |
16264 | PyObject * obj1 = 0 ; | |
16265 | char *kwnames[] = { | |
16266 | (char *) "self",(char *) "pen", NULL | |
16267 | }; | |
16268 | ||
16269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
16270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16272 | { | |
16273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16274 | (arg1)->AddPen(arg2); | |
16275 | ||
16276 | wxPyEndAllowThreads(__tstate); | |
16277 | if (PyErr_Occurred()) SWIG_fail; | |
16278 | } | |
16279 | Py_INCREF(Py_None); resultobj = Py_None; | |
16280 | return resultobj; | |
16281 | fail: | |
16282 | return NULL; | |
d14a1e28 RD |
16283 | } |
16284 | ||
16285 | ||
994141e6 RD |
16286 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16287 | PyObject *resultobj; | |
16288 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16289 | wxColour *arg2 = 0 ; | |
16290 | int arg3 ; | |
16291 | int arg4 ; | |
16292 | wxPen *result; | |
16293 | wxColour temp2 ; | |
16294 | PyObject * obj0 = 0 ; | |
16295 | PyObject * obj1 = 0 ; | |
16296 | PyObject * obj2 = 0 ; | |
16297 | PyObject * obj3 = 0 ; | |
16298 | char *kwnames[] = { | |
16299 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16300 | }; | |
d14a1e28 | 16301 | |
994141e6 RD |
16302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
16303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16304 | { | |
16305 | arg2 = &temp2; | |
16306 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16307 | } | |
16308 | { | |
16309 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16310 | if (PyErr_Occurred()) SWIG_fail; | |
16311 | } | |
16312 | { | |
16313 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16314 | if (PyErr_Occurred()) SWIG_fail; | |
16315 | } | |
16316 | { | |
16317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16318 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16319 | ||
16320 | wxPyEndAllowThreads(__tstate); | |
16321 | if (PyErr_Occurred()) SWIG_fail; | |
16322 | } | |
16323 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
16324 | return resultobj; | |
16325 | fail: | |
16326 | return NULL; | |
d14a1e28 RD |
16327 | } |
16328 | ||
16329 | ||
994141e6 RD |
16330 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16331 | PyObject *resultobj; | |
16332 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16333 | wxPen *arg2 = (wxPen *) 0 ; | |
16334 | PyObject * obj0 = 0 ; | |
16335 | PyObject * obj1 = 0 ; | |
16336 | char *kwnames[] = { | |
16337 | (char *) "self",(char *) "pen", NULL | |
16338 | }; | |
16339 | ||
16340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
16341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16343 | { | |
16344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16345 | (arg1)->RemovePen(arg2); | |
16346 | ||
16347 | wxPyEndAllowThreads(__tstate); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
16350 | Py_INCREF(Py_None); resultobj = Py_None; | |
16351 | return resultobj; | |
16352 | fail: | |
16353 | return NULL; | |
d14a1e28 RD |
16354 | } |
16355 | ||
16356 | ||
994141e6 RD |
16357 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16358 | PyObject *resultobj; | |
16359 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16360 | int result; | |
16361 | PyObject * obj0 = 0 ; | |
16362 | char *kwnames[] = { | |
16363 | (char *) "self", NULL | |
16364 | }; | |
d14a1e28 | 16365 | |
994141e6 RD |
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
16367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16368 | { | |
16369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16370 | result = (int)(arg1)->GetCount(); | |
16371 | ||
16372 | wxPyEndAllowThreads(__tstate); | |
16373 | if (PyErr_Occurred()) SWIG_fail; | |
16374 | } | |
16375 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16376 | return resultobj; | |
16377 | fail: | |
16378 | return NULL; | |
d14a1e28 RD |
16379 | } |
16380 | ||
16381 | ||
994141e6 RD |
16382 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
16383 | PyObject *obj; | |
16384 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16385 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
16386 | Py_INCREF(obj); | |
16387 | return Py_BuildValue((char *)""); | |
16388 | } | |
16389 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16390 | PyObject *resultobj; | |
16391 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16392 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16393 | PyObject * obj0 = 0 ; | |
16394 | PyObject * obj1 = 0 ; | |
16395 | char *kwnames[] = { | |
16396 | (char *) "self",(char *) "brush", NULL | |
16397 | }; | |
16398 | ||
16399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
16400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16401 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16402 | { | |
16403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16404 | (arg1)->AddBrush(arg2); | |
16405 | ||
16406 | wxPyEndAllowThreads(__tstate); | |
16407 | if (PyErr_Occurred()) SWIG_fail; | |
16408 | } | |
16409 | Py_INCREF(Py_None); resultobj = Py_None; | |
16410 | return resultobj; | |
16411 | fail: | |
16412 | return NULL; | |
16413 | } | |
16414 | ||
16415 | ||
16416 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16417 | PyObject *resultobj; | |
16418 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16419 | wxColour *arg2 = 0 ; | |
16420 | int arg3 ; | |
16421 | wxBrush *result; | |
16422 | wxColour temp2 ; | |
16423 | PyObject * obj0 = 0 ; | |
16424 | PyObject * obj1 = 0 ; | |
16425 | PyObject * obj2 = 0 ; | |
16426 | char *kwnames[] = { | |
16427 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
16428 | }; | |
16429 | ||
16430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16432 | { | |
16433 | arg2 = &temp2; | |
16434 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16435 | } | |
16436 | { | |
16437 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16438 | if (PyErr_Occurred()) SWIG_fail; | |
16439 | } | |
16440 | { | |
16441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16442 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
16443 | ||
16444 | wxPyEndAllowThreads(__tstate); | |
16445 | if (PyErr_Occurred()) SWIG_fail; | |
16446 | } | |
16447 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
16448 | return resultobj; | |
16449 | fail: | |
16450 | return NULL; | |
d14a1e28 RD |
16451 | } |
16452 | ||
16453 | ||
994141e6 RD |
16454 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16455 | PyObject *resultobj; | |
16456 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16457 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16458 | PyObject * obj0 = 0 ; | |
16459 | PyObject * obj1 = 0 ; | |
16460 | char *kwnames[] = { | |
16461 | (char *) "self",(char *) "brush", NULL | |
16462 | }; | |
d14a1e28 | 16463 | |
994141e6 RD |
16464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
16465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16466 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16467 | { | |
16468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16469 | (arg1)->RemoveBrush(arg2); | |
16470 | ||
16471 | wxPyEndAllowThreads(__tstate); | |
16472 | if (PyErr_Occurred()) SWIG_fail; | |
16473 | } | |
16474 | Py_INCREF(Py_None); resultobj = Py_None; | |
16475 | return resultobj; | |
16476 | fail: | |
16477 | return NULL; | |
d14a1e28 RD |
16478 | } |
16479 | ||
16480 | ||
994141e6 RD |
16481 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16482 | PyObject *resultobj; | |
16483 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16484 | int result; | |
16485 | PyObject * obj0 = 0 ; | |
16486 | char *kwnames[] = { | |
16487 | (char *) "self", NULL | |
16488 | }; | |
d14a1e28 | 16489 | |
994141e6 RD |
16490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
16491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16492 | { | |
16493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16494 | result = (int)(arg1)->GetCount(); | |
16495 | ||
16496 | wxPyEndAllowThreads(__tstate); | |
16497 | if (PyErr_Occurred()) SWIG_fail; | |
16498 | } | |
16499 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16500 | return resultobj; | |
16501 | fail: | |
16502 | return NULL; | |
d14a1e28 RD |
16503 | } |
16504 | ||
16505 | ||
994141e6 RD |
16506 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
16507 | PyObject *obj; | |
16508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16509 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
16510 | Py_INCREF(obj); | |
16511 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16512 | } |
994141e6 RD |
16513 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16514 | PyObject *resultobj; | |
16515 | wxColourDatabase *result; | |
16516 | char *kwnames[] = { | |
16517 | NULL | |
16518 | }; | |
d14a1e28 | 16519 | |
994141e6 RD |
16520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
16521 | { | |
16522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16523 | result = (wxColourDatabase *)new wxColourDatabase(); | |
16524 | ||
16525 | wxPyEndAllowThreads(__tstate); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
16528 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
16529 | return resultobj; | |
16530 | fail: | |
16531 | return NULL; | |
d14a1e28 RD |
16532 | } |
16533 | ||
16534 | ||
994141e6 RD |
16535 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16536 | PyObject *resultobj; | |
16537 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16538 | PyObject * obj0 = 0 ; | |
16539 | char *kwnames[] = { | |
16540 | (char *) "self", NULL | |
16541 | }; | |
d14a1e28 | 16542 | |
994141e6 RD |
16543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
16544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16545 | { | |
16546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16547 | delete arg1; | |
16548 | ||
16549 | wxPyEndAllowThreads(__tstate); | |
16550 | if (PyErr_Occurred()) SWIG_fail; | |
16551 | } | |
16552 | Py_INCREF(Py_None); resultobj = Py_None; | |
16553 | return resultobj; | |
16554 | fail: | |
16555 | return NULL; | |
d14a1e28 RD |
16556 | } |
16557 | ||
16558 | ||
994141e6 RD |
16559 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
16560 | PyObject *resultobj; | |
16561 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16562 | wxString *arg2 = 0 ; | |
16563 | wxColour result; | |
16564 | bool temp2 = False ; | |
16565 | PyObject * obj0 = 0 ; | |
16566 | PyObject * obj1 = 0 ; | |
16567 | char *kwnames[] = { | |
16568 | (char *) "self",(char *) "name", NULL | |
16569 | }; | |
16570 | ||
16571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
16572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16573 | { | |
16574 | arg2 = wxString_in_helper(obj1); | |
16575 | if (arg2 == NULL) SWIG_fail; | |
16576 | temp2 = True; | |
16577 | } | |
16578 | { | |
16579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16580 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
16581 | ||
16582 | wxPyEndAllowThreads(__tstate); | |
16583 | if (PyErr_Occurred()) SWIG_fail; | |
16584 | } | |
16585 | { | |
16586 | wxColour * resultptr; | |
16587 | resultptr = new wxColour((wxColour &) result); | |
16588 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16589 | } | |
16590 | { | |
16591 | if (temp2) | |
16592 | delete arg2; | |
16593 | } | |
16594 | return resultobj; | |
16595 | fail: | |
16596 | { | |
16597 | if (temp2) | |
16598 | delete arg2; | |
16599 | } | |
16600 | return NULL; | |
d14a1e28 RD |
16601 | } |
16602 | ||
16603 | ||
994141e6 RD |
16604 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
16605 | PyObject *resultobj; | |
16606 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16607 | wxColour *arg2 = 0 ; | |
16608 | wxString result; | |
16609 | wxColour temp2 ; | |
16610 | PyObject * obj0 = 0 ; | |
16611 | PyObject * obj1 = 0 ; | |
16612 | char *kwnames[] = { | |
16613 | (char *) "self",(char *) "colour", NULL | |
16614 | }; | |
d14a1e28 | 16615 | |
994141e6 RD |
16616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
16617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16618 | { | |
16619 | arg2 = &temp2; | |
16620 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16621 | } | |
16622 | { | |
16623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16624 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
16625 | ||
16626 | wxPyEndAllowThreads(__tstate); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
16629 | { | |
16630 | #if wxUSE_UNICODE | |
16631 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16632 | #else | |
16633 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16634 | #endif | |
16635 | } | |
16636 | return resultobj; | |
16637 | fail: | |
16638 | return NULL; | |
d14a1e28 RD |
16639 | } |
16640 | ||
16641 | ||
994141e6 RD |
16642 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
16643 | PyObject *resultobj; | |
16644 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16645 | wxString *arg2 = 0 ; | |
16646 | wxColour *arg3 = 0 ; | |
16647 | bool temp2 = False ; | |
16648 | wxColour temp3 ; | |
16649 | PyObject * obj0 = 0 ; | |
16650 | PyObject * obj1 = 0 ; | |
16651 | PyObject * obj2 = 0 ; | |
16652 | char *kwnames[] = { | |
16653 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
16654 | }; | |
16655 | ||
16656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16658 | { | |
16659 | arg2 = wxString_in_helper(obj1); | |
16660 | if (arg2 == NULL) SWIG_fail; | |
16661 | temp2 = True; | |
16662 | } | |
16663 | { | |
16664 | arg3 = &temp3; | |
16665 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16666 | } | |
16667 | { | |
16668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16669 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
16670 | ||
16671 | wxPyEndAllowThreads(__tstate); | |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
16673 | } | |
16674 | Py_INCREF(Py_None); resultobj = Py_None; | |
16675 | { | |
16676 | if (temp2) | |
16677 | delete arg2; | |
16678 | } | |
16679 | return resultobj; | |
16680 | fail: | |
16681 | { | |
16682 | if (temp2) | |
16683 | delete arg2; | |
16684 | } | |
16685 | return NULL; | |
d14a1e28 RD |
16686 | } |
16687 | ||
16688 | ||
994141e6 RD |
16689 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
16690 | PyObject *resultobj; | |
16691 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16692 | wxString *arg2 = 0 ; | |
16693 | int arg3 ; | |
16694 | int arg4 ; | |
16695 | int arg5 ; | |
16696 | bool temp2 = False ; | |
16697 | PyObject * obj0 = 0 ; | |
16698 | PyObject * obj1 = 0 ; | |
16699 | PyObject * obj2 = 0 ; | |
16700 | PyObject * obj3 = 0 ; | |
16701 | PyObject * obj4 = 0 ; | |
16702 | char *kwnames[] = { | |
16703 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
16704 | }; | |
d14a1e28 | 16705 | |
994141e6 RD |
16706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
16707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16708 | { | |
16709 | arg2 = wxString_in_helper(obj1); | |
16710 | if (arg2 == NULL) SWIG_fail; | |
16711 | temp2 = True; | |
16712 | } | |
16713 | { | |
16714 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | { | |
16718 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16719 | if (PyErr_Occurred()) SWIG_fail; | |
16720 | } | |
16721 | { | |
16722 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
16723 | if (PyErr_Occurred()) SWIG_fail; | |
16724 | } | |
16725 | { | |
16726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16727 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
16728 | ||
16729 | wxPyEndAllowThreads(__tstate); | |
16730 | if (PyErr_Occurred()) SWIG_fail; | |
16731 | } | |
16732 | Py_INCREF(Py_None); resultobj = Py_None; | |
16733 | { | |
16734 | if (temp2) | |
16735 | delete arg2; | |
16736 | } | |
16737 | return resultobj; | |
16738 | fail: | |
16739 | { | |
16740 | if (temp2) | |
16741 | delete arg2; | |
16742 | } | |
16743 | return NULL; | |
d14a1e28 RD |
16744 | } |
16745 | ||
16746 | ||
994141e6 RD |
16747 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
16748 | PyObject *obj; | |
16749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16750 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
16751 | Py_INCREF(obj); | |
16752 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16753 | } |
994141e6 RD |
16754 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
16755 | PyObject *resultobj; | |
16756 | wxFontList *arg1 = (wxFontList *) 0 ; | |
16757 | wxFont *arg2 = (wxFont *) 0 ; | |
16758 | PyObject * obj0 = 0 ; | |
16759 | PyObject * obj1 = 0 ; | |
16760 | char *kwnames[] = { | |
16761 | (char *) "self",(char *) "font", NULL | |
16762 | }; | |
d14a1e28 | 16763 | |
994141e6 RD |
16764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
16765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16766 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16767 | { | |
16768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16769 | (arg1)->AddFont(arg2); | |
16770 | ||
16771 | wxPyEndAllowThreads(__tstate); | |
16772 | if (PyErr_Occurred()) SWIG_fail; | |
16773 | } | |
16774 | Py_INCREF(Py_None); resultobj = Py_None; | |
16775 | return resultobj; | |
16776 | fail: | |
16777 | return NULL; | |
d14a1e28 RD |
16778 | } |
16779 | ||
16780 | ||
994141e6 RD |
16781 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
16782 | PyObject *resultobj; | |
16783 | wxFontList *arg1 = (wxFontList *) 0 ; | |
16784 | int arg2 ; | |
16785 | int arg3 ; | |
16786 | int arg4 ; | |
16787 | int arg5 ; | |
16788 | bool arg6 = (bool) False ; | |
16789 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16790 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16791 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
16792 | wxFont *result; | |
16793 | bool temp7 = False ; | |
16794 | PyObject * obj0 = 0 ; | |
16795 | PyObject * obj1 = 0 ; | |
16796 | PyObject * obj2 = 0 ; | |
16797 | PyObject * obj3 = 0 ; | |
16798 | PyObject * obj4 = 0 ; | |
16799 | PyObject * obj5 = 0 ; | |
16800 | PyObject * obj6 = 0 ; | |
16801 | PyObject * obj7 = 0 ; | |
16802 | char *kwnames[] = { | |
16803 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
16804 | }; | |
d14a1e28 | 16805 | |
994141e6 RD |
16806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
16807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16808 | { | |
16809 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | { | |
16813 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16814 | if (PyErr_Occurred()) SWIG_fail; | |
16815 | } | |
16816 | { | |
16817 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
16820 | { | |
16821 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
16824 | if (obj5) { | |
16825 | { | |
16826 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
16827 | if (PyErr_Occurred()) SWIG_fail; | |
16828 | } | |
16829 | } | |
16830 | if (obj6) { | |
16831 | { | |
16832 | arg7 = wxString_in_helper(obj6); | |
16833 | if (arg7 == NULL) SWIG_fail; | |
16834 | temp7 = True; | |
16835 | } | |
16836 | } | |
16837 | if (obj7) { | |
16838 | { | |
16839 | arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7); | |
16840 | if (PyErr_Occurred()) SWIG_fail; | |
16841 | } | |
16842 | } | |
16843 | { | |
16844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16845 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
16846 | ||
16847 | wxPyEndAllowThreads(__tstate); | |
16848 | if (PyErr_Occurred()) SWIG_fail; | |
16849 | } | |
16850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
16851 | { | |
16852 | if (temp7) | |
16853 | delete arg7; | |
16854 | } | |
16855 | return resultobj; | |
16856 | fail: | |
16857 | { | |
16858 | if (temp7) | |
16859 | delete arg7; | |
16860 | } | |
16861 | return NULL; | |
d14a1e28 RD |
16862 | } |
16863 | ||
16864 | ||
994141e6 RD |
16865 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
16866 | PyObject *resultobj; | |
16867 | wxFontList *arg1 = (wxFontList *) 0 ; | |
16868 | wxFont *arg2 = (wxFont *) 0 ; | |
16869 | PyObject * obj0 = 0 ; | |
16870 | PyObject * obj1 = 0 ; | |
16871 | char *kwnames[] = { | |
16872 | (char *) "self",(char *) "font", NULL | |
16873 | }; | |
d14a1e28 | 16874 | |
994141e6 RD |
16875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
16876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16877 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16878 | { | |
16879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16880 | (arg1)->RemoveFont(arg2); | |
16881 | ||
16882 | wxPyEndAllowThreads(__tstate); | |
16883 | if (PyErr_Occurred()) SWIG_fail; | |
16884 | } | |
16885 | Py_INCREF(Py_None); resultobj = Py_None; | |
16886 | return resultobj; | |
16887 | fail: | |
16888 | return NULL; | |
d14a1e28 RD |
16889 | } |
16890 | ||
16891 | ||
994141e6 RD |
16892 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16893 | PyObject *resultobj; | |
16894 | wxFontList *arg1 = (wxFontList *) 0 ; | |
16895 | int result; | |
16896 | PyObject * obj0 = 0 ; | |
16897 | char *kwnames[] = { | |
16898 | (char *) "self", NULL | |
16899 | }; | |
d14a1e28 | 16900 | |
994141e6 RD |
16901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
16902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16903 | { | |
16904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16905 | result = (int)(arg1)->GetCount(); | |
16906 | ||
16907 | wxPyEndAllowThreads(__tstate); | |
16908 | if (PyErr_Occurred()) SWIG_fail; | |
16909 | } | |
16910 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16911 | return resultobj; | |
16912 | fail: | |
16913 | return NULL; | |
d14a1e28 RD |
16914 | } |
16915 | ||
16916 | ||
994141e6 RD |
16917 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
16918 | PyObject *obj; | |
16919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16920 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
16921 | Py_INCREF(obj); | |
16922 | return Py_BuildValue((char *)""); | |
16923 | } | |
d14a1e28 RD |
16924 | static int _wrap_TheFontList_set(PyObject *_val) { |
16925 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
16926 | return 1; | |
16927 | } | |
16928 | ||
16929 | ||
16930 | static PyObject *_wrap_TheFontList_get() { | |
16931 | PyObject *pyobj; | |
16932 | ||
16933 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
16934 | return pyobj; | |
16935 | } | |
16936 | ||
16937 | ||
16938 | static int _wrap_ThePenList_set(PyObject *_val) { | |
16939 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
16940 | return 1; | |
16941 | } | |
16942 | ||
16943 | ||
16944 | static PyObject *_wrap_ThePenList_get() { | |
16945 | PyObject *pyobj; | |
16946 | ||
16947 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
16948 | return pyobj; | |
16949 | } | |
16950 | ||
16951 | ||
16952 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
16953 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
16954 | return 1; | |
16955 | } | |
16956 | ||
16957 | ||
16958 | static PyObject *_wrap_TheBrushList_get() { | |
16959 | PyObject *pyobj; | |
16960 | ||
16961 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
16962 | return pyobj; | |
16963 | } | |
16964 | ||
16965 | ||
16966 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
16967 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
16968 | return 1; | |
16969 | } | |
16970 | ||
16971 | ||
16972 | static PyObject *_wrap_TheColourDatabase_get() { | |
16973 | PyObject *pyobj; | |
16974 | ||
16975 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
16976 | return pyobj; | |
16977 | } | |
16978 | ||
16979 | ||
e811c8ce | 16980 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16981 | PyObject *resultobj; |
e811c8ce | 16982 | wxEffects *result; |
d14a1e28 | 16983 | char *kwnames[] = { |
e811c8ce | 16984 | NULL |
d14a1e28 RD |
16985 | }; |
16986 | ||
e811c8ce | 16987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
16988 | { |
16989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 16990 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
16991 | |
16992 | wxPyEndAllowThreads(__tstate); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | } | |
e811c8ce | 16995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
16996 | return resultobj; |
16997 | fail: | |
16998 | return NULL; | |
16999 | } | |
17000 | ||
17001 | ||
e811c8ce | 17002 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17003 | PyObject *resultobj; |
e811c8ce RD |
17004 | wxEffects *arg1 = (wxEffects *) 0 ; |
17005 | wxColour result; | |
d14a1e28 | 17006 | PyObject * obj0 = 0 ; |
d14a1e28 | 17007 | char *kwnames[] = { |
e811c8ce | 17008 | (char *) "self", NULL |
d14a1e28 RD |
17009 | }; |
17010 | ||
e811c8ce RD |
17011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
17012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17013 | { |
17014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17015 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
17016 | |
17017 | wxPyEndAllowThreads(__tstate); | |
17018 | if (PyErr_Occurred()) SWIG_fail; | |
17019 | } | |
e811c8ce RD |
17020 | { |
17021 | wxColour * resultptr; | |
17022 | resultptr = new wxColour((wxColour &) result); | |
17023 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17024 | } | |
d14a1e28 RD |
17025 | return resultobj; |
17026 | fail: | |
17027 | return NULL; | |
17028 | } | |
17029 | ||
17030 | ||
e811c8ce | 17031 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17032 | PyObject *resultobj; |
e811c8ce RD |
17033 | wxEffects *arg1 = (wxEffects *) 0 ; |
17034 | wxColour result; | |
d14a1e28 | 17035 | PyObject * obj0 = 0 ; |
d14a1e28 | 17036 | char *kwnames[] = { |
e811c8ce | 17037 | (char *) "self", NULL |
d14a1e28 RD |
17038 | }; |
17039 | ||
e811c8ce RD |
17040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
17041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17042 | { |
17043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17044 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17045 | |
17046 | wxPyEndAllowThreads(__tstate); | |
17047 | if (PyErr_Occurred()) SWIG_fail; | |
17048 | } | |
d14a1e28 | 17049 | { |
e811c8ce RD |
17050 | wxColour * resultptr; |
17051 | resultptr = new wxColour((wxColour &) result); | |
17052 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
17053 | } |
17054 | return resultobj; | |
17055 | fail: | |
d14a1e28 RD |
17056 | return NULL; |
17057 | } | |
17058 | ||
17059 | ||
e811c8ce | 17060 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17061 | PyObject *resultobj; |
e811c8ce RD |
17062 | wxEffects *arg1 = (wxEffects *) 0 ; |
17063 | wxColour result; | |
d14a1e28 | 17064 | PyObject * obj0 = 0 ; |
d14a1e28 | 17065 | char *kwnames[] = { |
e811c8ce | 17066 | (char *) "self", NULL |
d14a1e28 RD |
17067 | }; |
17068 | ||
e811c8ce RD |
17069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
17070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17071 | { |
17072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17073 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17074 | |
17075 | wxPyEndAllowThreads(__tstate); | |
17076 | if (PyErr_Occurred()) SWIG_fail; | |
17077 | } | |
e811c8ce RD |
17078 | { |
17079 | wxColour * resultptr; | |
17080 | resultptr = new wxColour((wxColour &) result); | |
17081 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17082 | } | |
d14a1e28 RD |
17083 | return resultobj; |
17084 | fail: | |
17085 | return NULL; | |
17086 | } | |
17087 | ||
17088 | ||
e811c8ce | 17089 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17090 | PyObject *resultobj; |
e811c8ce RD |
17091 | wxEffects *arg1 = (wxEffects *) 0 ; |
17092 | wxColour result; | |
d14a1e28 RD |
17093 | PyObject * obj0 = 0 ; |
17094 | char *kwnames[] = { | |
e811c8ce | 17095 | (char *) "self", NULL |
d14a1e28 RD |
17096 | }; |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
17099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17100 | { | |
17101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17102 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17103 | ||
17104 | wxPyEndAllowThreads(__tstate); | |
17105 | if (PyErr_Occurred()) SWIG_fail; | |
17106 | } | |
17107 | { | |
17108 | wxColour * resultptr; | |
17109 | resultptr = new wxColour((wxColour &) result); | |
17110 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17111 | } | |
17112 | return resultobj; | |
17113 | fail: | |
17114 | return NULL; | |
17115 | } | |
17116 | ||
17117 | ||
17118 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17119 | PyObject *resultobj; | |
17120 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17121 | wxColour result; | |
17122 | PyObject * obj0 = 0 ; | |
17123 | char *kwnames[] = { | |
17124 | (char *) "self", NULL | |
17125 | }; | |
17126 | ||
17127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
17128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17129 | { | |
17130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17131 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17132 | ||
17133 | wxPyEndAllowThreads(__tstate); | |
17134 | if (PyErr_Occurred()) SWIG_fail; | |
17135 | } | |
17136 | { | |
17137 | wxColour * resultptr; | |
17138 | resultptr = new wxColour((wxColour &) result); | |
17139 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17140 | } | |
17141 | return resultobj; | |
17142 | fail: | |
17143 | return NULL; | |
17144 | } | |
17145 | ||
17146 | ||
17147 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17148 | PyObject *resultobj; | |
17149 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17150 | wxColour *arg2 = 0 ; | |
17151 | wxColour temp2 ; | |
17152 | PyObject * obj0 = 0 ; | |
17153 | PyObject * obj1 = 0 ; | |
17154 | char *kwnames[] = { | |
17155 | (char *) "self",(char *) "c", NULL | |
17156 | }; | |
17157 | ||
17158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
17159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17160 | { | |
17161 | arg2 = &temp2; | |
17162 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17163 | } | |
17164 | { | |
17165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17166 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17167 | ||
17168 | wxPyEndAllowThreads(__tstate); | |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
17170 | } | |
17171 | Py_INCREF(Py_None); resultobj = Py_None; | |
17172 | return resultobj; | |
17173 | fail: | |
17174 | return NULL; | |
17175 | } | |
17176 | ||
17177 | ||
17178 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17179 | PyObject *resultobj; | |
17180 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17181 | wxColour *arg2 = 0 ; | |
17182 | wxColour temp2 ; | |
17183 | PyObject * obj0 = 0 ; | |
17184 | PyObject * obj1 = 0 ; | |
17185 | char *kwnames[] = { | |
17186 | (char *) "self",(char *) "c", NULL | |
17187 | }; | |
17188 | ||
17189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
17190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17191 | { | |
17192 | arg2 = &temp2; | |
17193 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17194 | } | |
17195 | { | |
17196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17197 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17198 | ||
17199 | wxPyEndAllowThreads(__tstate); | |
17200 | if (PyErr_Occurred()) SWIG_fail; | |
17201 | } | |
17202 | Py_INCREF(Py_None); resultobj = Py_None; | |
17203 | return resultobj; | |
17204 | fail: | |
17205 | return NULL; | |
17206 | } | |
17207 | ||
17208 | ||
17209 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17210 | PyObject *resultobj; | |
17211 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17212 | wxColour *arg2 = 0 ; | |
17213 | wxColour temp2 ; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | PyObject * obj1 = 0 ; | |
17216 | char *kwnames[] = { | |
17217 | (char *) "self",(char *) "c", NULL | |
17218 | }; | |
17219 | ||
17220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
17221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17222 | { | |
17223 | arg2 = &temp2; | |
17224 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17225 | } | |
17226 | { | |
17227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17228 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17229 | ||
17230 | wxPyEndAllowThreads(__tstate); | |
17231 | if (PyErr_Occurred()) SWIG_fail; | |
17232 | } | |
17233 | Py_INCREF(Py_None); resultobj = Py_None; | |
17234 | return resultobj; | |
17235 | fail: | |
17236 | return NULL; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17241 | PyObject *resultobj; | |
17242 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17243 | wxColour *arg2 = 0 ; | |
17244 | wxColour temp2 ; | |
17245 | PyObject * obj0 = 0 ; | |
17246 | PyObject * obj1 = 0 ; | |
17247 | char *kwnames[] = { | |
17248 | (char *) "self",(char *) "c", NULL | |
17249 | }; | |
17250 | ||
17251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
17252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17253 | { | |
17254 | arg2 = &temp2; | |
17255 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17256 | } | |
17257 | { | |
17258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17259 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17260 | ||
17261 | wxPyEndAllowThreads(__tstate); | |
17262 | if (PyErr_Occurred()) SWIG_fail; | |
17263 | } | |
17264 | Py_INCREF(Py_None); resultobj = Py_None; | |
17265 | return resultobj; | |
17266 | fail: | |
17267 | return NULL; | |
17268 | } | |
17269 | ||
17270 | ||
17271 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17272 | PyObject *resultobj; | |
17273 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17274 | wxColour *arg2 = 0 ; | |
17275 | wxColour temp2 ; | |
17276 | PyObject * obj0 = 0 ; | |
17277 | PyObject * obj1 = 0 ; | |
17278 | char *kwnames[] = { | |
17279 | (char *) "self",(char *) "c", NULL | |
17280 | }; | |
17281 | ||
17282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
17283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17284 | { | |
17285 | arg2 = &temp2; | |
17286 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17287 | } | |
17288 | { | |
17289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17290 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17291 | ||
17292 | wxPyEndAllowThreads(__tstate); | |
17293 | if (PyErr_Occurred()) SWIG_fail; | |
17294 | } | |
17295 | Py_INCREF(Py_None); resultobj = Py_None; | |
17296 | return resultobj; | |
17297 | fail: | |
17298 | return NULL; | |
17299 | } | |
17300 | ||
17301 | ||
17302 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17303 | PyObject *resultobj; | |
17304 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17305 | wxColour *arg2 = 0 ; | |
17306 | wxColour *arg3 = 0 ; | |
17307 | wxColour *arg4 = 0 ; | |
17308 | wxColour *arg5 = 0 ; | |
17309 | wxColour *arg6 = 0 ; | |
17310 | wxColour temp2 ; | |
17311 | wxColour temp3 ; | |
17312 | wxColour temp4 ; | |
17313 | wxColour temp5 ; | |
17314 | wxColour temp6 ; | |
17315 | PyObject * obj0 = 0 ; | |
17316 | PyObject * obj1 = 0 ; | |
17317 | PyObject * obj2 = 0 ; | |
17318 | PyObject * obj3 = 0 ; | |
17319 | PyObject * obj4 = 0 ; | |
17320 | PyObject * obj5 = 0 ; | |
17321 | char *kwnames[] = { | |
17322 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17323 | }; | |
17324 | ||
17325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17327 | { | |
17328 | arg2 = &temp2; | |
17329 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17330 | } | |
17331 | { | |
17332 | arg3 = &temp3; | |
17333 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17334 | } | |
17335 | { | |
17336 | arg4 = &temp4; | |
17337 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17338 | } | |
17339 | { | |
17340 | arg5 = &temp5; | |
17341 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17342 | } | |
17343 | { | |
17344 | arg6 = &temp6; | |
17345 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
17346 | } | |
17347 | { | |
17348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17349 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
17350 | ||
17351 | wxPyEndAllowThreads(__tstate); | |
17352 | if (PyErr_Occurred()) SWIG_fail; | |
17353 | } | |
17354 | Py_INCREF(Py_None); resultobj = Py_None; | |
17355 | return resultobj; | |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17362 | PyObject *resultobj; | |
17363 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17364 | wxDC *arg2 = 0 ; | |
17365 | wxRect *arg3 = 0 ; | |
17366 | int arg4 = (int) 1 ; | |
17367 | wxRect temp3 ; | |
17368 | PyObject * obj0 = 0 ; | |
17369 | PyObject * obj1 = 0 ; | |
17370 | PyObject * obj2 = 0 ; | |
994141e6 | 17371 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
17372 | char *kwnames[] = { |
17373 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17374 | }; | |
17375 | ||
994141e6 | 17376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
17377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17378 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17379 | if (arg2 == NULL) { | |
17380 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17381 | } | |
17382 | { | |
17383 | arg3 = &temp3; | |
17384 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17385 | } | |
994141e6 RD |
17386 | if (obj3) { |
17387 | { | |
17388 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17389 | if (PyErr_Occurred()) SWIG_fail; | |
17390 | } | |
17391 | } | |
d14a1e28 RD |
17392 | { |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17395 | ||
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
17399 | Py_INCREF(Py_None); resultobj = Py_None; | |
17400 | return resultobj; | |
17401 | fail: | |
17402 | return NULL; | |
17403 | } | |
17404 | ||
17405 | ||
17406 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17407 | PyObject *resultobj; | |
17408 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17409 | wxRect *arg2 = 0 ; | |
17410 | wxDC *arg3 = 0 ; | |
17411 | wxBitmap *arg4 = 0 ; | |
17412 | bool result; | |
17413 | wxRect temp2 ; | |
17414 | PyObject * obj0 = 0 ; | |
17415 | PyObject * obj1 = 0 ; | |
17416 | PyObject * obj2 = 0 ; | |
17417 | PyObject * obj3 = 0 ; | |
17418 | char *kwnames[] = { | |
17419 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17420 | }; | |
17421 | ||
17422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17424 | { | |
17425 | arg2 = &temp2; | |
17426 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17427 | } | |
17428 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17429 | if (arg3 == NULL) { | |
17430 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17431 | } | |
17432 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17433 | if (arg4 == NULL) { | |
17434 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17435 | } | |
17436 | { | |
17437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17438 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17439 | ||
17440 | wxPyEndAllowThreads(__tstate); | |
17441 | if (PyErr_Occurred()) SWIG_fail; | |
17442 | } | |
994141e6 | 17443 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17444 | return resultobj; |
17445 | fail: | |
17446 | return NULL; | |
17447 | } | |
17448 | ||
17449 | ||
17450 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
17451 | PyObject *obj; | |
17452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17453 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17454 | Py_INCREF(obj); | |
17455 | return Py_BuildValue((char *)""); | |
17456 | } | |
17457 | static PyMethodDef SwigMethods[] = { | |
17458 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17459 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17460 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17461 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17462 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
17463 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
17464 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17465 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17466 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
17467 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
17468 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
17469 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
17470 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
17471 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17472 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17473 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17474 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
17475 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17476 | { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17477 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, |
17478 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
17479 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17480 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17481 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17482 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
17483 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17484 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
17485 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17486 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17487 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
17488 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17489 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17490 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17491 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17492 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17493 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
17494 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17495 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17496 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17497 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17498 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17499 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17500 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17501 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
17502 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17503 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17504 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17505 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
17506 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17507 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17508 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17509 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17510 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17511 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17512 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17513 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17514 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17515 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
17516 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17517 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17518 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17519 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17520 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17521 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17522 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17523 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17524 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17525 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17526 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17527 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
17528 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
17529 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
17530 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17531 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17532 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
17533 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17534 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17535 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17536 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17537 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17538 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
17539 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
17540 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17541 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
17542 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17543 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17544 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
17545 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
17546 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17547 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17548 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17549 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17550 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17551 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17552 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17553 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17554 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17555 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17556 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17557 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
17558 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17559 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17560 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17561 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17562 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17563 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17564 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17565 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
17566 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17567 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17568 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17569 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17570 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17571 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17572 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
17573 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
17574 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17575 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17576 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
17577 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17578 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17579 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17580 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
17581 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
17582 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17583 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
17584 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
17585 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17586 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
17587 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
17588 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
17589 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
17590 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
17591 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
17592 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
17593 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
17594 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
17595 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
17596 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
17597 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
17598 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
17599 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
17600 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
17601 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
17602 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
17603 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
17604 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
17605 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17606 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17607 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
17608 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17609 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17610 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
17611 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
17612 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
17613 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17614 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
17615 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17616 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
17617 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
17618 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
17619 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
17620 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
17621 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
17622 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17623 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17624 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
17625 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
17626 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17627 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17628 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17629 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17630 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17631 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17632 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17633 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17634 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17635 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17636 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17637 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17638 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17639 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17640 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17641 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17642 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
17643 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
17644 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
17645 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
17646 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
17647 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
17648 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
17649 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
17650 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17651 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17652 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17653 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17654 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
17655 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17656 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17657 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17658 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17659 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
17660 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
17661 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17662 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
17663 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17664 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17665 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
17666 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
17667 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17668 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17669 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17670 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
17671 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
17672 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
17673 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
17674 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
17675 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
17676 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
17677 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
17678 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
17679 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17680 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17681 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17682 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17683 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17684 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17685 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17686 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17687 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17688 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17689 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17690 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
17691 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
17692 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17693 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17694 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17695 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17696 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17697 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17698 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17699 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17700 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17701 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
17702 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17703 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
17704 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
17705 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
17706 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17707 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17708 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17709 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17710 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
17711 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17712 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17713 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
17714 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17715 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17716 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17717 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17718 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
17719 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
17720 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
17721 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
17722 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
17723 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
17724 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
17725 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
17726 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17727 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17728 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
17729 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
17730 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17731 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17732 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17733 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17734 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17735 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17736 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
17737 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
17738 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
17739 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
17740 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
17741 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17742 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
17743 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17744 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17745 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
17746 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
17747 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
17748 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17749 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
17750 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17751 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17752 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
17753 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
17754 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17755 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17756 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
17757 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
17758 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
17759 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17760 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17761 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
17762 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
17763 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
17764 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17765 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
17766 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
17767 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
17768 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
17769 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17770 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
17771 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
17772 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
17773 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17774 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
17775 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
17776 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
17777 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17778 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17779 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17780 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17781 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17782 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17783 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
17784 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
17785 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
17786 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
17787 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
17788 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
17789 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
17790 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
17791 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17792 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
17793 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
17794 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
17795 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
17796 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
17797 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
17798 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
17799 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
17800 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
17801 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
17802 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
17803 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17804 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
17805 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
17806 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
17807 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
17808 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
17809 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
17810 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
17811 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
17812 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
17813 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
242b7b46 | 17814 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17815 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
17816 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
17817 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
17818 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
17819 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
17820 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
17821 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
17822 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
17823 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17824 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17825 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 17826 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 17827 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 17828 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 17829 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17830 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
17831 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
17832 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
17833 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
17834 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
17835 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
17836 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
17837 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
17838 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17839 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
17840 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17841 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
17842 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17843 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
17844 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
17845 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
17846 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
17847 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
17848 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
17849 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
17850 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
17851 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
17852 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
17853 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
17854 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
17855 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
17856 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
17857 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 17858 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 17859 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 17860 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 17861 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 17862 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17863 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
17864 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
17865 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17866 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
17867 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17868 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
17869 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17870 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17871 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
17872 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
17873 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
17874 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
17875 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
17876 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
17877 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
17878 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
17879 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
17880 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
17881 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
17882 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
17883 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
17884 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
17885 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
17886 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
17887 | { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
17888 | { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
17889 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
17890 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
17891 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17892 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
17893 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
17894 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
17895 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17896 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
17897 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
17898 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
17899 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
17900 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
17901 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
17902 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
17903 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
17904 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
17905 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
17906 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
17907 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17908 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
17909 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17910 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
17911 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
17912 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
17913 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
17914 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17915 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
17916 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
17917 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
17918 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17919 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17920 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
17921 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
17922 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17923 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
17924 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
17925 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
17926 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
17927 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
17928 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17929 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
17930 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
17931 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
17932 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
17933 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17934 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
17935 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
17936 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
17937 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
17938 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17939 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
17940 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17941 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17942 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
17943 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
17944 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
17945 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
17946 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
17947 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
17948 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
17949 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
17950 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17951 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
17952 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
17953 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17954 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17955 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17956 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17957 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17958 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17959 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17960 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17961 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17962 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17963 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
17964 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
17965 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17966 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
17967 | { NULL, NULL } | |
17968 | }; | |
17969 | ||
17970 | ||
17971 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
17972 | ||
e811c8ce RD |
17973 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
17974 | return (void *)((wxWindow *) ((wxControl *) x)); | |
17975 | } | |
17976 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
17977 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
17978 | } | |
17979 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
17980 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
17981 | } | |
d14a1e28 RD |
17982 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
17983 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
17984 | } | |
17985 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
17986 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17987 | } | |
d14a1e28 RD |
17988 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
17989 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
17990 | } | |
17991 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
17992 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
17993 | } | |
17994 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
17995 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
17996 | } | |
17997 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
17998 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
17999 | } | |
18000 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18001 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18002 | } | |
18003 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18004 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18005 | } | |
18006 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18007 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18008 | } | |
18009 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18010 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18011 | } | |
18012 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18013 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18014 | } | |
18015 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18016 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18017 | } | |
18018 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18019 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18020 | } | |
18021 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18022 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18023 | } | |
18024 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18025 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18026 | } | |
18027 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18028 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18029 | } | |
18030 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18031 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18032 | } | |
18033 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18034 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18035 | } | |
18036 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18037 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18038 | } | |
18039 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18040 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18041 | } | |
18042 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18043 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18044 | } | |
18045 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18046 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18047 | } | |
18048 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18049 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18050 | } | |
18051 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18052 | return (void *)((wxObject *) ((wxDC *) x)); | |
18053 | } | |
18054 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18055 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18056 | } | |
18057 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18058 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18059 | } | |
18060 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18061 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18062 | } | |
18063 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18064 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18065 | } | |
18066 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18067 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18068 | } | |
18069 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18070 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18071 | } | |
18072 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18073 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18074 | } | |
18075 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18076 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18077 | } | |
18078 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18079 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18080 | } | |
18081 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18082 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18083 | } | |
18084 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18085 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18086 | } | |
18087 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18088 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18089 | } | |
18090 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18091 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18092 | } | |
18093 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18094 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18095 | } | |
18096 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18097 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18098 | } | |
18099 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18100 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18101 | } | |
18102 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18103 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18104 | } | |
18105 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18106 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18107 | } | |
18108 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18109 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18110 | } | |
18111 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18112 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18113 | } | |
18114 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18115 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18116 | } | |
18117 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18118 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18119 | } | |
18120 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18121 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18122 | } | |
18123 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18124 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18125 | } | |
18126 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18127 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18128 | } | |
18129 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18130 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18131 | } | |
18132 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18133 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18134 | } | |
18135 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18136 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18137 | } | |
18138 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18139 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18140 | } | |
18141 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18142 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18143 | } | |
18144 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18145 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18146 | } | |
18147 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18148 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18149 | } | |
18150 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18151 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18152 | } | |
18153 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18154 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18155 | } | |
18156 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18157 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18158 | } | |
18159 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18160 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18161 | } | |
18162 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18163 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18164 | } | |
18165 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18166 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18167 | } | |
18168 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18169 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18170 | } | |
18171 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18172 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18173 | } | |
18174 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18175 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18176 | } | |
18177 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18178 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18179 | } | |
18180 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18181 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18182 | } | |
18183 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18184 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18185 | } | |
1e0c8722 RD |
18186 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18187 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18188 | } | |
d14a1e28 RD |
18189 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18190 | return (void *)((wxObject *) ((wxImage *) x)); | |
18191 | } | |
18192 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18193 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18194 | } | |
d14a1e28 RD |
18195 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18196 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18197 | } | |
18198 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18199 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18200 | } | |
18201 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18202 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18203 | } | |
18204 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18205 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18206 | } | |
18207 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18208 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18209 | } | |
18210 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18211 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18212 | } | |
18213 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18214 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18215 | } | |
18216 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18217 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18218 | } | |
18219 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18220 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18221 | } | |
18222 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18223 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18224 | } | |
18225 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18226 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18227 | } | |
18228 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18229 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18230 | } | |
18231 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18232 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18233 | } | |
18234 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18235 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18236 | } | |
18237 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
18238 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
18239 | } | |
18240 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
18241 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18242 | } | |
18243 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18244 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18245 | } | |
18246 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18247 | return (void *)((wxObject *) ((wxMask *) x)); | |
18248 | } | |
18249 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18250 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18251 | } | |
18252 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18253 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18254 | } | |
18255 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18256 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18257 | } | |
18258 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18259 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18260 | } | |
18261 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18262 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18263 | } | |
18264 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18265 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18266 | } | |
18267 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18268 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18269 | } | |
18270 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18271 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18272 | } | |
18273 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18274 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18275 | } | |
18276 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18277 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18278 | } | |
18279 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18280 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18281 | } | |
18282 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18283 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18284 | } | |
18285 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18286 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18287 | } | |
18288 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18289 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18290 | } | |
18291 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18292 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18293 | } | |
18294 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18295 | return (void *)((wxObject *) ((wxColour *) x)); | |
18296 | } | |
18297 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18298 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18299 | } | |
18300 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18301 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18302 | } | |
18303 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18304 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18305 | } | |
e811c8ce RD |
18306 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18307 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18308 | } |
e811c8ce RD |
18309 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18310 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18311 | } |
e811c8ce RD |
18312 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18313 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18314 | } | |
18315 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18316 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18317 | } | |
18318 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18319 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18320 | } | |
18321 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18322 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18323 | } | |
18324 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18325 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18326 | } | |
18327 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
18328 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18329 | } | |
18330 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
18331 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
18332 | } | |
18333 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
18334 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
18335 | } | |
18336 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
18337 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
18338 | } | |
18339 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
18340 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
18341 | } | |
18342 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
18343 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
18344 | } | |
18345 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
18346 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
18347 | } | |
18348 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
18349 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
18350 | } | |
18351 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
18352 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
18353 | } | |
18354 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
18355 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
18356 | } | |
18357 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
18358 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
18359 | } | |
18360 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
18361 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
18362 | } | |
18363 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
18364 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
18365 | } | |
18366 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
18367 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
18368 | } | |
18369 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
18370 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
18371 | } |
18372 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
18373 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
18374 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
18375 | 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}}; |
18376 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
18377 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18378 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
994141e6 | 18379 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
18380 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; |
18381 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
18382 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
18383 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
18384 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
18385 | 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}}; | |
18386 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
18387 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
18388 | 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}}; | |
18389 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
18390 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
18391 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
18392 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
18393 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
1e0c8722 | 18394 | 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 |
18395 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
18396 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
18397 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
18398 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
18399 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
18400 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
18401 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
18402 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
18403 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
18404 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
18405 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
18406 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
18407 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18408 | 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 | 18409 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; |
994141e6 | 18410 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; |
d14a1e28 RD |
18411 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; |
18412 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
18413 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
18414 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
18415 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
18416 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
18417 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
18418 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
18419 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
18420 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
18421 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 18422 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
e811c8ce | 18423 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
18424 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
18425 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
18426 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
18427 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
18428 | ||
18429 | static swig_type_info *swig_types_initial[] = { | |
18430 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
18431 | _swigt__p_wxBrush, |
18432 | _swigt__p_wxColour, | |
d14a1e28 RD |
18433 | _swigt__p_wxDC, |
18434 | _swigt__p_wxMirrorDC, | |
18435 | _swigt__p_byte, | |
18436 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 18437 | _swigt__p_char, |
d14a1e28 RD |
18438 | _swigt__p_wxIconLocation, |
18439 | _swigt__p_wxImage, | |
18440 | _swigt__p_wxMetaFileDC, | |
18441 | _swigt__p_wxMask, | |
18442 | _swigt__p_wxFont, | |
18443 | _swigt__p_wxWindow, | |
18444 | _swigt__p_wxSize, | |
18445 | _swigt__p_double, | |
18446 | _swigt__p_wxMemoryDC, | |
18447 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
18448 | _swigt__p_wxEffects, |
18449 | _swigt__p_wxNativeEncodingInfo, | |
18450 | _swigt__p_wxPalette, | |
18451 | _swigt__p_wxBitmap, | |
18452 | _swigt__p_wxObject, | |
18453 | _swigt__p_wxRegionIterator, | |
18454 | _swigt__p_wxRect, | |
18455 | _swigt__p_wxString, | |
18456 | _swigt__p_wxPrinterDC, | |
18457 | _swigt__p_wxIconBundle, | |
18458 | _swigt__p_wxPoint, | |
18459 | _swigt__p_wxDash, | |
18460 | _swigt__p_wxScreenDC, | |
18461 | _swigt__p_wxCursor, | |
18462 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
18463 | _swigt__p_wxBufferedDC, |
18464 | _swigt__p_wxImageList, | |
18465 | _swigt__p_unsigned_char, | |
18466 | _swigt__p_wxGDIObject, | |
d14a1e28 | 18467 | _swigt__p_wxIcon, |
994141e6 | 18468 | _swigt__p_wxLocale, |
d14a1e28 RD |
18469 | _swigt__p_wxRegion, |
18470 | _swigt__p_wxLanguageInfo, | |
18471 | _swigt__p_wxConfigBase, | |
18472 | _swigt__p_wxWindowDC, | |
18473 | _swigt__p_wxPrintData, | |
18474 | _swigt__p_wxBrushList, | |
18475 | _swigt__p_wxFontList, | |
18476 | _swigt__p_wxPen, | |
18477 | _swigt__p_wxBufferedPaintDC, | |
18478 | _swigt__p_wxPaintDC, | |
18479 | _swigt__p_wxPenList, | |
d14a1e28 RD |
18480 | _swigt__p_wxPyPen, |
18481 | _swigt__p_int, | |
18482 | _swigt__p_wxMetaFile, | |
18483 | _swigt__p_wxNativeFontInfo, | |
18484 | _swigt__p_wxEncodingConverter, | |
18485 | _swigt__p_wxColourDatabase, | |
18486 | 0 | |
18487 | }; | |
18488 | ||
18489 | ||
18490 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18491 | ||
18492 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
18493 | {0}}; |
18494 | ||
18495 | #ifdef __cplusplus | |
18496 | } | |
18497 | #endif | |
18498 | ||
18499 | #ifdef __cplusplus | |
18500 | extern "C" | |
18501 | #endif | |
18502 | SWIGEXPORT(void) SWIG_init(void) { | |
18503 | static PyObject *SWIG_globals = 0; | |
18504 | static int typeinit = 0; | |
18505 | PyObject *m, *d; | |
18506 | int i; | |
18507 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18508 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18509 | d = PyModule_GetDict(m); | |
18510 | ||
18511 | if (!typeinit) { | |
18512 | for (i = 0; swig_types_initial[i]; i++) { | |
18513 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18514 | } | |
18515 | typeinit = 1; | |
18516 | } | |
18517 | SWIG_InstallConstants(d,swig_const_table); | |
18518 | ||
994141e6 RD |
18519 | PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion)); |
18520 | PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion)); | |
18521 | PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion)); | |
18522 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
18523 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
18524 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN)); | |
18525 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
18526 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS)); | |
18527 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN)); | |
18528 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
18529 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX)); | |
18530 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
18531 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL)); | |
18532 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC)); | |
18533 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT)); | |
18534 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX)); | |
18535 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
18536 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
18537 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD)); | |
18538 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX)); | |
18539 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT)); | |
18540 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC)); | |
18541 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT)); | |
18542 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT)); | |
18543 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD)); | |
18544 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
18545 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
18546 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
18547 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
18548 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK)); | |
18549 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM)); | |
18550 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT)); | |
18551 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
18552 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
18553 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
18554 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
18555 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
18556 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
18557 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
18558 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
18559 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
18560 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
18561 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
18562 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
18563 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
18564 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
18565 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
18566 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
18567 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8)); | |
18568 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
18569 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
18570 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437)); | |
18571 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850)); | |
18572 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852)); | |
18573 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855)); | |
18574 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866)); | |
18575 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874)); | |
18576 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932)); | |
18577 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936)); | |
18578 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949)); | |
18579 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950)); | |
18580 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250)); | |
18581 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251)); | |
18582 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252)); | |
18583 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253)); | |
18584 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254)); | |
18585 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255)); | |
18586 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256)); | |
18587 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257)); | |
18588 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
18589 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7)); | |
18590 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8)); | |
18591 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP)); | |
18592 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE)); | |
18593 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE)); | |
18594 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE)); | |
18595 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE)); | |
18596 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN)); | |
18597 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
18598 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
18599 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
18600 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC)); | |
18601 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
18602 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK)); | |
18603 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
18604 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
18605 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
18606 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
18607 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA)); | |
18608 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
18609 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
18610 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
18611 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
18612 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
18613 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
18614 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
18615 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER)); | |
18616 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI)); | |
18617 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
18618 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
18619 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
18620 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
18621 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
18622 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
18623 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
18624 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
18625 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
18626 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
18627 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
18628 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
18629 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
18630 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
18631 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
18632 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
18633 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
18634 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
18635 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
18636 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN)); | |
18637 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX)); | |
18638 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX)); | |
18639 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16)); | |
18640 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32)); | |
18641 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE)); | |
18642 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312)); | |
18643 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5)); | |
18644 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
18645 | |
18646 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18647 | ||
994141e6 RD |
18648 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT)); |
18649 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
18650 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
18651 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR)); | |
18652 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
18653 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
18654 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC)); | |
18655 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC)); | |
18656 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
18657 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
18658 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
18659 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
18660 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
18661 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
18662 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
18663 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
18664 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
18665 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
18666 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
18667 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
18668 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
18669 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
18670 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
18671 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
18672 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
18673 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
18674 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
18675 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA)); | |
18676 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI)); | |
18677 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
18678 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
18679 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR)); | |
18680 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE)); | |
18681 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
18682 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI)); | |
18683 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI)); | |
18684 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI)); | |
18685 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA)); | |
18686 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON)); | |
18687 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
18688 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE)); | |
18689 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
18690 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN)); | |
18691 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE)); | |
18692 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
18693 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
18694 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
18695 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
18696 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
18697 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
18698 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN)); | |
18699 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN)); | |
18700 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH)); | |
18701 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH)); | |
18702 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH)); | |
18703 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
18704 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH)); | |
18705 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
18706 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
18707 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
18708 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
18709 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
18710 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
18711 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
18712 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
18713 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
18714 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
18715 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
18716 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
18717 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
18718 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
18719 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
18720 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
18721 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
18722 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE)); | |
18723 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI)); | |
18724 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI)); | |
18725 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH)); | |
18726 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH)); | |
18727 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
18728 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
18729 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
18730 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
18731 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
18732 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN)); | |
18733 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN)); | |
18734 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
18735 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN)); | |
18736 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
18737 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
18738 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
18739 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
18740 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
18741 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK)); | |
18742 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
18743 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI)); | |
18744 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI)); | |
18745 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA)); | |
18746 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW)); | |
18747 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI)); | |
18748 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
18749 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
18750 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
18751 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
18752 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
18753 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
18754 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK)); | |
18755 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH)); | |
18756 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN)); | |
18757 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
18758 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE)); | |
18759 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE)); | |
18760 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA)); | |
18761 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
18762 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
18763 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH)); | |
18764 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
18765 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
18766 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
18767 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
18768 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI)); | |
18769 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN)); | |
18770 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH)); | |
18771 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
18772 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN)); | |
18773 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN)); | |
18774 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA)); | |
18775 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
18776 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
18777 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY)); | |
18778 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY)); | |
18779 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
18780 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
18781 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
18782 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE)); | |
18783 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI)); | |
18784 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI)); | |
18785 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI)); | |
18786 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
18787 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
18788 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU)); | |
18789 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI)); | |
18790 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
18791 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
18792 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
18793 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN)); | |
18794 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA)); | |
18795 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO)); | |
18796 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO)); | |
18797 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH)); | |
18798 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
18799 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
18800 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI)); | |
18801 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA)); | |
18802 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
18803 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
18804 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
18805 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
18806 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN)); | |
18807 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO)); | |
18808 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
18809 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
18810 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN)); | |
18811 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
18812 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
18813 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
18814 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO)); | |
18815 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA)); | |
18816 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA)); | |
18817 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI)); | |
18818 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE)); | |
18819 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI)); | |
18820 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK)); | |
18821 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
18822 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI)); | |
18823 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH)); | |
18824 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
18825 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
18826 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
18827 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
18828 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
18829 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
18830 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
18831 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
18832 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
18833 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
18834 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
18835 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
18836 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
18837 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
18838 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
18839 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
18840 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
18841 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
18842 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
18843 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
18844 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
18845 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI)); | |
18846 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH)); | |
18847 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
18848 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG)); | |
18849 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK)); | |
18850 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL)); | |
18851 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR)); | |
18852 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU)); | |
18853 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI)); | |
18854 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN)); | |
18855 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
18856 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA)); | |
18857 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA)); | |
18858 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH)); | |
18859 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN)); | |
18860 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI)); | |
18861 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR)); | |
18862 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
18863 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU)); | |
18864 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
18865 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
18866 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK)); | |
18867 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
18868 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
18869 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
18870 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
18871 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH)); | |
18872 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF)); | |
18873 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA)); | |
18874 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH)); | |
18875 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA)); | |
18876 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG)); | |
18877 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU)); | |
18878 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
18879 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
18880 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE)); | |
18881 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY)); | |
18882 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX)); | |
18883 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
18884 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
18885 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
18886 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
18887 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT)); | |
18888 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
18889 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT)); | |
18890 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX)); | |
18891 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS)); | |
18892 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2)); | |
18893 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC)); | |
18894 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
18895 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
18896 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
18897 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
18898 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
18899 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL)); | |
18900 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
18901 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
18902 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
18903 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
18904 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
18905 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
18906 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
18907 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
18908 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
18909 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
18910 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
18911 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
18912 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
18913 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
18914 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
18915 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
18916 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
18917 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
18918 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
18919 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
18920 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
18921 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
18922 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
18923 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
18924 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
18925 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
18926 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
18927 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
18928 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
18929 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
18930 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
18931 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
18932 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
18933 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
18934 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
18935 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
18936 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
18937 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
18938 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
18939 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
18940 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
18941 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
18942 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
18943 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
18944 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
18945 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
18946 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
18947 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
18948 | |
18949 | // Work around a chicken/egg problem in drawlist.cpp | |
18950 | wxPyDrawList_SetAPIPtr(); | |
18951 | ||
d14a1e28 RD |
18952 | } |
18953 |