]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
cc6dd355 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
994141e6 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
9d1d5697 | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
e811c8ce RD |
234 | #define SWIGTYPE_p_wxBrush swig_types[1] |
235 | #define SWIGTYPE_p_wxColour swig_types[2] | |
236 | #define SWIGTYPE_p_wxDC swig_types[3] | |
237 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
238 | #define SWIGTYPE_p_byte swig_types[5] | |
239 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
994141e6 RD |
240 | #define SWIGTYPE_p_char swig_types[7] |
241 | #define SWIGTYPE_p_wxIconLocation swig_types[8] | |
242 | #define SWIGTYPE_p_wxImage swig_types[9] | |
243 | #define SWIGTYPE_p_wxMetaFileDC swig_types[10] | |
244 | #define SWIGTYPE_p_wxMask swig_types[11] | |
245 | #define SWIGTYPE_p_wxFont swig_types[12] | |
246 | #define SWIGTYPE_p_wxWindow swig_types[13] | |
247 | #define SWIGTYPE_p_wxSize swig_types[14] | |
248 | #define SWIGTYPE_p_double swig_types[15] | |
249 | #define SWIGTYPE_p_wxMemoryDC swig_types[16] | |
250 | #define SWIGTYPE_p_wxFontMapper swig_types[17] | |
251 | #define SWIGTYPE_p_wxEffects swig_types[18] | |
252 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] | |
253 | #define SWIGTYPE_p_wxPalette swig_types[20] | |
254 | #define SWIGTYPE_p_wxBitmap swig_types[21] | |
255 | #define SWIGTYPE_p_wxObject swig_types[22] | |
256 | #define SWIGTYPE_p_wxRegionIterator swig_types[23] | |
257 | #define SWIGTYPE_p_wxRect swig_types[24] | |
258 | #define SWIGTYPE_p_wxString swig_types[25] | |
259 | #define SWIGTYPE_p_wxPrinterDC swig_types[26] | |
260 | #define SWIGTYPE_p_wxIconBundle swig_types[27] | |
261 | #define SWIGTYPE_p_wxPoint swig_types[28] | |
262 | #define SWIGTYPE_p_wxDash swig_types[29] | |
263 | #define SWIGTYPE_p_wxScreenDC swig_types[30] | |
264 | #define SWIGTYPE_p_wxCursor swig_types[31] | |
265 | #define SWIGTYPE_p_wxClientDC swig_types[32] | |
266 | #define SWIGTYPE_p_wxBufferedDC swig_types[33] | |
267 | #define SWIGTYPE_p_wxImageList swig_types[34] | |
268 | #define SWIGTYPE_p_unsigned_char swig_types[35] | |
269 | #define SWIGTYPE_p_wxGDIObject swig_types[36] | |
e811c8ce | 270 | #define SWIGTYPE_p_wxIcon swig_types[37] |
994141e6 RD |
271 | #define SWIGTYPE_p_wxLocale swig_types[38] |
272 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
273 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] | |
274 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
275 | #define SWIGTYPE_p_wxWindowDC swig_types[42] | |
276 | #define SWIGTYPE_p_wxPrintData swig_types[43] | |
277 | #define SWIGTYPE_p_wxBrushList swig_types[44] | |
278 | #define SWIGTYPE_p_wxFontList swig_types[45] | |
279 | #define SWIGTYPE_p_wxPen swig_types[46] | |
280 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47] | |
281 | #define SWIGTYPE_p_wxPaintDC swig_types[48] | |
282 | #define SWIGTYPE_p_wxPenList swig_types[49] | |
283 | #define SWIGTYPE_p_wxPyPen swig_types[50] | |
284 | #define SWIGTYPE_p_int swig_types[51] | |
285 | #define SWIGTYPE_p_wxMetaFile swig_types[52] | |
286 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[53] | |
287 | #define SWIGTYPE_p_wxEncodingConverter swig_types[54] | |
288 | #define SWIGTYPE_p_wxColourDatabase swig_types[55] | |
289 | static swig_type_info *swig_types[57]; | |
d14a1e28 RD |
290 | |
291 | /* -------- TYPES TABLE (END) -------- */ | |
292 | ||
293 | ||
294 | /*----------------------------------------------- | |
295 | @(target):= _gdi.so | |
296 | ------------------------------------------------*/ | |
297 | #define SWIG_init init_gdi | |
298 | ||
299 | #define SWIG_name "_gdi" | |
300 | ||
994141e6 RD |
301 | #include <limits.h> |
302 | #include <float.h> | |
303 | #include <string.h> | |
304 | ||
305 | #ifndef SWIGSTATIC | |
306 | #ifdef __cplusplus | |
307 | #define SWIGSTATIC(a) static inline a | |
308 | #else | |
309 | #define SWIGSTATIC(a) static a | |
310 | #endif | |
311 | #endif | |
312 | ||
313 | #ifndef numeric_cast | |
314 | #ifdef __cplusplus | |
315 | #ifdef HAVE_NUMERIC_CAST | |
316 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
317 | #else | |
318 | #define numeric_cast(type,a) static_cast<type>(a) | |
319 | #endif | |
320 | #else | |
321 | #define numeric_cast(type,a) (type)(a) | |
322 | #endif | |
323 | #endif | |
324 | ||
325 | ||
326 | ||
327 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
328 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
329 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
330 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
331 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
332 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
333 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
334 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
335 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
336 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
337 | ||
338 | ||
d14a1e28 RD |
339 | #include "wx/wxPython/wxPython.h" |
340 | #include "wx/wxPython/pyclasses.h" | |
341 | ||
d14a1e28 | 342 | |
b2dc1044 | 343 | static const wxString wxPyEmptyString(wxEmptyString); |
994141e6 | 344 | |
994141e6 RD |
345 | SWIGSTATIC(bool) |
346 | SWIG_PyObj_AsBool(PyObject *obj) | |
347 | { | |
348 | return PyObject_IsTrue(obj) ? true : false; | |
349 | } | |
350 | ||
351 | ||
352 | SWIGSTATIC(unsigned char) | |
353 | SWIG_PyObj_AsUnsignedChar(PyObject *obj) | |
354 | { | |
355 | return numeric_cast(unsigned char, | |
356 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX)); | |
357 | } | |
358 | ||
d14a1e28 RD |
359 | PyObject *wxColour_Get(wxColour *self){ |
360 | PyObject* rv = PyTuple_New(3); | |
361 | int red = -1; | |
362 | int green = -1; | |
363 | int blue = -1; | |
364 | if (self->Ok()) { | |
365 | red = self->Red(); | |
366 | green = self->Green(); | |
367 | blue = self->Blue(); | |
368 | } | |
369 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
370 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
371 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
372 | return rv; | |
373 | } | |
374 | ||
994141e6 RD |
375 | SWIGSTATIC(int) |
376 | SWIG_PyObj_AsInt(PyObject *obj) | |
377 | { | |
378 | return numeric_cast(int, | |
379 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
380 | } | |
381 | ||
382 | ||
d14a1e28 RD |
383 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
384 | PyObject* o2; | |
385 | PyObject* o3; | |
386 | ||
387 | if (!target) { | |
388 | target = o; | |
389 | } else if (target == Py_None) { | |
390 | Py_DECREF(Py_None); | |
391 | target = o; | |
392 | } else { | |
393 | if (!PyTuple_Check(target)) { | |
394 | o2 = target; | |
395 | target = PyTuple_New(1); | |
396 | PyTuple_SetItem(target, 0, o2); | |
397 | } | |
398 | o3 = PyTuple_New(1); | |
399 | PyTuple_SetItem(o3, 0, o); | |
400 | ||
401 | o2 = target; | |
402 | target = PySequence_Concat(o2, o3); | |
403 | Py_DECREF(o2); | |
404 | Py_DECREF(o3); | |
405 | } | |
406 | return target; | |
407 | } | |
408 | ||
409 | PyObject *wxPen_GetDashes(wxPen *self){ | |
410 | wxDash* dashes; | |
411 | int count = self->GetDashes(&dashes); | |
412 | wxPyBeginBlockThreads(); | |
413 | PyObject* retval = PyList_New(0); | |
414 | for (int x=0; x<count; x++) | |
415 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
416 | wxPyEndBlockThreads(); | |
417 | return retval; | |
418 | } | |
419 | ||
420 | wxPyPen::~wxPyPen() | |
421 | { | |
422 | if (m_dash) | |
423 | delete [] m_dash; | |
424 | } | |
425 | ||
426 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
427 | { | |
428 | if (m_dash) | |
429 | delete [] m_dash; | |
430 | m_dash = new wxDash[nb_dashes]; | |
431 | for (int i=0; i<nb_dashes; i++) { | |
432 | m_dash[i] = dash[i]; | |
433 | } | |
434 | wxPen::SetDashes(nb_dashes, m_dash); | |
435 | } | |
436 | ||
437 | ||
438 | #include <wx/image.h> | |
439 | ||
440 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
441 | char** cArray = NULL; | |
442 | int count; | |
443 | ||
444 | if (!PyList_Check(listOfStrings)) { | |
445 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
446 | return NULL; | |
447 | } | |
448 | count = PyList_Size(listOfStrings); | |
449 | cArray = new char*[count]; | |
450 | ||
451 | for(int x=0; x<count; x++) { | |
452 | // TODO: Need some validation and error checking here | |
453 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
454 | } | |
455 | return cArray; | |
456 | } | |
457 | ||
458 | ||
459 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
460 | char** cArray = NULL; | |
461 | wxBitmap* bmp; | |
462 | ||
463 | cArray = ConvertListOfStrings(listOfStrings); | |
464 | if (! cArray) | |
465 | return NULL; | |
466 | bmp = new wxBitmap(cArray); | |
467 | delete [] cArray; | |
468 | return bmp; | |
469 | } | |
470 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
471 | char* buf; | |
472 | int length; | |
473 | PyString_AsStringAndSize(bits, &buf, &length); | |
474 | return new wxBitmap(buf, width, height, depth); | |
475 | } | |
476 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
477 | wxMask *mask = new wxMask(*self, colour); | |
478 | self->SetMask(mask); | |
479 | } | |
480 | ||
481 | #include <wx/iconbndl.h> | |
482 | ||
483 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
484 | wxIcon* icon = new wxIcon(); | |
485 | icon->CopyFromBitmap(bmp); | |
486 | return icon; | |
487 | } | |
488 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
489 | char** cArray = NULL; | |
490 | wxIcon* icon; | |
491 | ||
492 | cArray = ConvertListOfStrings(listOfStrings); | |
493 | if (! cArray) | |
494 | return NULL; | |
495 | icon = new wxIcon(cArray); | |
496 | delete [] cArray; | |
497 | return icon; | |
498 | } | |
499 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
500 | ||
501 | ||
502 | ||
503 | return new wxIconLocation(*filename); | |
504 | ||
505 | } | |
506 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
507 | ||
508 | ||
509 | ||
510 | // do nothing | |
511 | ||
512 | } | |
513 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
514 | ||
515 | ||
516 | ||
517 | return -1; | |
518 | ||
519 | } | |
994141e6 RD |
520 | |
521 | SWIGSTATIC(long) | |
522 | SWIG_PyObj_AsLong(PyObject * obj) | |
523 | { | |
524 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
525 | } | |
526 | ||
d14a1e28 RD |
527 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ |
528 | ||
e811c8ce | 529 | wxCHECK_MSG(False, NULL, |
d14a1e28 RD |
530 | wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead.")); |
531 | ||
532 | ||
533 | ||
534 | } | |
535 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
536 | char* bitsbuf; | |
537 | char* maskbuf = NULL; | |
538 | int length; | |
539 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
540 | if (maskBits) | |
541 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
542 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
543 | } | |
544 | ||
545 | ||
546 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
547 | (*self) ++; | |
548 | } | |
549 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
550 | return self->operator bool(); | |
551 | } | |
552 | ||
553 | #include <wx/fontutil.h> | |
554 | #include <wx/fontmap.h> | |
555 | #include <wx/fontenum.h> | |
556 | ||
557 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
558 | return self->ToString(); | |
559 | } | |
560 | ||
561 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
562 | static wxNativeEncodingInfo info; | |
563 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
564 | return &info; | |
565 | else | |
566 | return NULL; | |
567 | } | |
568 | ||
994141e6 RD |
569 | |
570 | SWIGSTATIC(PyObject* ) | |
571 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
572 | { | |
573 | return (value > (unsigned long)(LONG_MAX)) ? | |
574 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
575 | } | |
576 | ||
d14a1e28 RD |
577 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ |
578 | wxFontEncoding alt_enc; | |
579 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
580 | return PyInt_FromLong(alt_enc); | |
581 | else { | |
582 | Py_INCREF(Py_None); | |
583 | return Py_None; | |
584 | } | |
585 | } | |
586 | wxFont *new_wxFont(wxString const &info){ | |
587 | wxNativeFontInfo nfi; | |
588 | nfi.FromString(info); | |
589 | return new wxFont(nfi); | |
590 | } | |
591 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
592 | return wxFont::New(pointSize, family, flags, face, encoding); | |
593 | } | |
594 | ||
595 | class wxPyFontEnumerator : public wxFontEnumerator { | |
596 | public: | |
597 | wxPyFontEnumerator() {} | |
598 | ~wxPyFontEnumerator() {} | |
599 | ||
600 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
601 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
602 | ||
603 | PYPRIVATE; | |
604 | }; | |
605 | ||
606 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
607 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
608 | ||
609 | ||
610 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
611 | wxArrayString* arr = self->GetEncodings(); | |
612 | return wxArrayString2PyList_helper(*arr); | |
613 | } | |
614 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
615 | wxArrayString* arr = self->GetFacenames(); | |
616 | return wxArrayString2PyList_helper(*arr); | |
617 | } | |
618 | ||
619 | ||
620 | ||
621 | #include "wx/wxPython/pydrawxxx.h" | |
622 | ||
e811c8ce | 623 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
624 | wxColour col; |
625 | self->GetPixel(x, y, &col); | |
626 | return col; | |
627 | } | |
628 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
629 | wxColour col; | |
630 | self->GetPixel(pt, &col); | |
631 | return col; | |
632 | } | |
994141e6 RD |
633 | |
634 | SWIGSTATIC(double) | |
635 | SWIG_PyObj_AsDouble(PyObject *obj) | |
636 | { | |
637 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
638 | #if HAVE_LONG_LONG | |
639 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
640 | #else | |
641 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
642 | #endif | |
643 | if (PyErr_Occurred()) { | |
644 | PyErr_Clear(); | |
645 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
646 | } | |
647 | } | |
648 | ||
d14a1e28 RD |
649 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
650 | wxRect rv; | |
651 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
652 | return rv; | |
653 | } | |
654 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
655 | wxRect rect; | |
656 | self->GetClippingBox(rect); | |
657 | return rect; | |
658 | } | |
659 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
660 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
661 | } | |
662 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
663 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
664 | } | |
665 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
666 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
667 | } | |
668 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
669 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
670 | } | |
671 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
672 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
673 | } | |
674 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
675 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
676 | } | |
677 | ||
678 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
679 | *x1 = dc->MinX(); | |
680 | *y1 = dc->MinY(); | |
681 | *x2 = dc->MaxX(); | |
682 | *y2 = dc->MaxY(); | |
683 | } | |
684 | ||
685 | ||
686 | #include <wx/dcps.h> | |
687 | ||
688 | ||
689 | class wxMetaFile : public wxObject { | |
690 | public: | |
691 | wxMetaFile(const wxString&) | |
39f61e25 | 692 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
693 | }; |
694 | ||
695 | class wxMetaFileDC : public wxClientDC { | |
696 | public: | |
697 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 698 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
699 | }; |
700 | ||
701 | ||
702 | ||
703 | class wxPrinterDC : public wxClientDC { | |
704 | public: | |
705 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 706 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 707 | |
d14a1e28 | 708 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 709 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
710 | }; |
711 | ||
712 | ||
713 | ||
714 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
715 | self->AddColour(name, wxColour(red, green, blue)); | |
716 | } | |
717 | ||
d14a1e28 RD |
718 | #include <wx/effects.h> |
719 | ||
720 | #ifdef __cplusplus | |
721 | extern "C" { | |
722 | #endif | |
723 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
724 | PyObject *resultobj; | |
725 | wxGDIObject *result; | |
726 | char *kwnames[] = { | |
727 | NULL | |
728 | }; | |
729 | ||
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
731 | { | |
732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
733 | result = (wxGDIObject *)new wxGDIObject(); | |
734 | ||
735 | wxPyEndAllowThreads(__tstate); | |
736 | if (PyErr_Occurred()) SWIG_fail; | |
737 | } | |
738 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
739 | return resultobj; | |
740 | fail: | |
741 | return NULL; | |
742 | } | |
743 | ||
744 | ||
745 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
746 | PyObject *resultobj; | |
747 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
748 | PyObject * obj0 = 0 ; | |
749 | char *kwnames[] = { | |
750 | (char *) "self", NULL | |
751 | }; | |
752 | ||
753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
755 | { | |
756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
757 | delete arg1; | |
758 | ||
759 | wxPyEndAllowThreads(__tstate); | |
760 | if (PyErr_Occurred()) SWIG_fail; | |
761 | } | |
762 | Py_INCREF(Py_None); resultobj = Py_None; | |
763 | return resultobj; | |
764 | fail: | |
765 | return NULL; | |
766 | } | |
767 | ||
768 | ||
769 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
770 | PyObject *resultobj; | |
771 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
772 | bool result; | |
773 | PyObject * obj0 = 0 ; | |
774 | char *kwnames[] = { | |
775 | (char *) "self", NULL | |
776 | }; | |
777 | ||
778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
780 | { | |
781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
782 | result = (bool)(arg1)->GetVisible(); | |
783 | ||
784 | wxPyEndAllowThreads(__tstate); | |
785 | if (PyErr_Occurred()) SWIG_fail; | |
786 | } | |
4d5c3d91 | 787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
788 | return resultobj; |
789 | fail: | |
790 | return NULL; | |
791 | } | |
792 | ||
793 | ||
794 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
795 | PyObject *resultobj; | |
796 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
797 | bool arg2 ; | |
798 | PyObject * obj0 = 0 ; | |
799 | PyObject * obj1 = 0 ; | |
800 | char *kwnames[] = { | |
801 | (char *) "self",(char *) "visible", NULL | |
802 | }; | |
803 | ||
804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 806 | { |
994141e6 | 807 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
808 | if (PyErr_Occurred()) SWIG_fail; |
809 | } | |
d14a1e28 RD |
810 | { |
811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
812 | (arg1)->SetVisible(arg2); | |
813 | ||
814 | wxPyEndAllowThreads(__tstate); | |
815 | if (PyErr_Occurred()) SWIG_fail; | |
816 | } | |
817 | Py_INCREF(Py_None); resultobj = Py_None; | |
818 | return resultobj; | |
819 | fail: | |
820 | return NULL; | |
821 | } | |
822 | ||
823 | ||
824 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
825 | PyObject *resultobj; | |
826 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
827 | bool result; | |
828 | PyObject * obj0 = 0 ; | |
829 | char *kwnames[] = { | |
830 | (char *) "self", NULL | |
831 | }; | |
832 | ||
833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
835 | { | |
836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
837 | result = (bool)(arg1)->IsNull(); | |
838 | ||
839 | wxPyEndAllowThreads(__tstate); | |
840 | if (PyErr_Occurred()) SWIG_fail; | |
841 | } | |
4d5c3d91 | 842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
843 | return resultobj; |
844 | fail: | |
845 | return NULL; | |
846 | } | |
847 | ||
848 | ||
849 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
850 | PyObject *obj; | |
851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
852 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
853 | Py_INCREF(obj); | |
854 | return Py_BuildValue((char *)""); | |
855 | } | |
856 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
857 | PyObject *resultobj; | |
858 | unsigned char arg1 = (unsigned char) 0 ; | |
859 | unsigned char arg2 = (unsigned char) 0 ; | |
860 | unsigned char arg3 = (unsigned char) 0 ; | |
861 | wxColour *result; | |
862 | PyObject * obj0 = 0 ; | |
863 | PyObject * obj1 = 0 ; | |
864 | PyObject * obj2 = 0 ; | |
865 | char *kwnames[] = { | |
866 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
867 | }; | |
868 | ||
869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
870 | if (obj0) { | |
a41e16b6 | 871 | { |
994141e6 | 872 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
a41e16b6 RD |
873 | if (PyErr_Occurred()) SWIG_fail; |
874 | } | |
d14a1e28 RD |
875 | } |
876 | if (obj1) { | |
a41e16b6 | 877 | { |
994141e6 | 878 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
879 | if (PyErr_Occurred()) SWIG_fail; |
880 | } | |
d14a1e28 RD |
881 | } |
882 | if (obj2) { | |
a41e16b6 | 883 | { |
994141e6 | 884 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
885 | if (PyErr_Occurred()) SWIG_fail; |
886 | } | |
d14a1e28 RD |
887 | } |
888 | { | |
889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
890 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
891 | ||
892 | wxPyEndAllowThreads(__tstate); | |
893 | if (PyErr_Occurred()) SWIG_fail; | |
894 | } | |
895 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
896 | return resultobj; | |
897 | fail: | |
898 | return NULL; | |
899 | } | |
900 | ||
901 | ||
902 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
903 | PyObject *resultobj; | |
904 | wxColour *arg1 = (wxColour *) 0 ; | |
905 | PyObject * obj0 = 0 ; | |
906 | char *kwnames[] = { | |
907 | (char *) "self", NULL | |
908 | }; | |
909 | ||
910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
912 | { | |
913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
914 | delete arg1; | |
915 | ||
916 | wxPyEndAllowThreads(__tstate); | |
917 | if (PyErr_Occurred()) SWIG_fail; | |
918 | } | |
919 | Py_INCREF(Py_None); resultobj = Py_None; | |
920 | return resultobj; | |
921 | fail: | |
922 | return NULL; | |
923 | } | |
924 | ||
925 | ||
926 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject *resultobj; | |
928 | wxString *arg1 = 0 ; | |
929 | wxColour *result; | |
e811c8ce | 930 | bool temp1 = False ; |
d14a1e28 RD |
931 | PyObject * obj0 = 0 ; |
932 | char *kwnames[] = { | |
933 | (char *) "colorName", NULL | |
934 | }; | |
935 | ||
936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
937 | { | |
938 | arg1 = wxString_in_helper(obj0); | |
939 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 940 | temp1 = True; |
d14a1e28 RD |
941 | } |
942 | { | |
943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
944 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
945 | ||
946 | wxPyEndAllowThreads(__tstate); | |
947 | if (PyErr_Occurred()) SWIG_fail; | |
948 | } | |
949 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
950 | { | |
951 | if (temp1) | |
952 | delete arg1; | |
953 | } | |
954 | return resultobj; | |
955 | fail: | |
956 | { | |
957 | if (temp1) | |
958 | delete arg1; | |
959 | } | |
960 | return NULL; | |
961 | } | |
962 | ||
963 | ||
964 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
965 | PyObject *resultobj; | |
966 | unsigned long arg1 ; | |
967 | wxColour *result; | |
968 | PyObject * obj0 = 0 ; | |
969 | char *kwnames[] = { | |
970 | (char *) "colRGB", NULL | |
971 | }; | |
972 | ||
973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
a41e16b6 | 974 | { |
994141e6 | 975 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
976 | if (PyErr_Occurred()) SWIG_fail; |
977 | } | |
d14a1e28 RD |
978 | { |
979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
980 | result = (wxColour *)new wxColour(arg1); | |
981 | ||
982 | wxPyEndAllowThreads(__tstate); | |
983 | if (PyErr_Occurred()) SWIG_fail; | |
984 | } | |
985 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
986 | return resultobj; | |
987 | fail: | |
988 | return NULL; | |
989 | } | |
990 | ||
991 | ||
992 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
993 | PyObject *resultobj; | |
994 | wxColour *arg1 = (wxColour *) 0 ; | |
995 | unsigned char result; | |
996 | PyObject * obj0 = 0 ; | |
997 | char *kwnames[] = { | |
998 | (char *) "self", NULL | |
999 | }; | |
1000 | ||
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1003 | { | |
1004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1005 | result = (unsigned char)(arg1)->Red(); | |
1006 | ||
1007 | wxPyEndAllowThreads(__tstate); | |
1008 | if (PyErr_Occurred()) SWIG_fail; | |
1009 | } | |
994141e6 | 1010 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1011 | return resultobj; |
1012 | fail: | |
1013 | return NULL; | |
1014 | } | |
1015 | ||
1016 | ||
1017 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1018 | PyObject *resultobj; | |
1019 | wxColour *arg1 = (wxColour *) 0 ; | |
1020 | unsigned char result; | |
1021 | PyObject * obj0 = 0 ; | |
1022 | char *kwnames[] = { | |
1023 | (char *) "self", NULL | |
1024 | }; | |
1025 | ||
1026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1028 | { | |
1029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1030 | result = (unsigned char)(arg1)->Green(); | |
1031 | ||
1032 | wxPyEndAllowThreads(__tstate); | |
1033 | if (PyErr_Occurred()) SWIG_fail; | |
1034 | } | |
994141e6 | 1035 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1036 | return resultobj; |
1037 | fail: | |
1038 | return NULL; | |
1039 | } | |
1040 | ||
1041 | ||
1042 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1043 | PyObject *resultobj; | |
1044 | wxColour *arg1 = (wxColour *) 0 ; | |
1045 | unsigned char result; | |
1046 | PyObject * obj0 = 0 ; | |
1047 | char *kwnames[] = { | |
1048 | (char *) "self", NULL | |
1049 | }; | |
1050 | ||
1051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1053 | { | |
1054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1055 | result = (unsigned char)(arg1)->Blue(); | |
1056 | ||
1057 | wxPyEndAllowThreads(__tstate); | |
1058 | if (PyErr_Occurred()) SWIG_fail; | |
1059 | } | |
994141e6 | 1060 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1061 | return resultobj; |
1062 | fail: | |
1063 | return NULL; | |
1064 | } | |
1065 | ||
1066 | ||
1067 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1068 | PyObject *resultobj; | |
1069 | wxColour *arg1 = (wxColour *) 0 ; | |
1070 | bool result; | |
1071 | PyObject * obj0 = 0 ; | |
1072 | char *kwnames[] = { | |
1073 | (char *) "self", NULL | |
1074 | }; | |
1075 | ||
1076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1078 | { | |
1079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1080 | result = (bool)(arg1)->Ok(); | |
1081 | ||
1082 | wxPyEndAllowThreads(__tstate); | |
1083 | if (PyErr_Occurred()) SWIG_fail; | |
1084 | } | |
4d5c3d91 | 1085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1086 | return resultobj; |
1087 | fail: | |
1088 | return NULL; | |
1089 | } | |
1090 | ||
1091 | ||
1092 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1093 | PyObject *resultobj; | |
1094 | wxColour *arg1 = (wxColour *) 0 ; | |
1095 | unsigned char arg2 ; | |
1096 | unsigned char arg3 ; | |
1097 | unsigned char arg4 ; | |
1098 | PyObject * obj0 = 0 ; | |
1099 | PyObject * obj1 = 0 ; | |
1100 | PyObject * obj2 = 0 ; | |
1101 | PyObject * obj3 = 0 ; | |
1102 | char *kwnames[] = { | |
1103 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1104 | }; | |
1105 | ||
1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1108 | { |
994141e6 | 1109 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1110 | if (PyErr_Occurred()) SWIG_fail; |
1111 | } | |
1112 | { | |
994141e6 | 1113 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1114 | if (PyErr_Occurred()) SWIG_fail; |
1115 | } | |
1116 | { | |
994141e6 | 1117 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1118 | if (PyErr_Occurred()) SWIG_fail; |
1119 | } | |
d14a1e28 RD |
1120 | { |
1121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1122 | (arg1)->Set(arg2,arg3,arg4); | |
1123 | ||
1124 | wxPyEndAllowThreads(__tstate); | |
1125 | if (PyErr_Occurred()) SWIG_fail; | |
1126 | } | |
1127 | Py_INCREF(Py_None); resultobj = Py_None; | |
1128 | return resultobj; | |
1129 | fail: | |
1130 | return NULL; | |
1131 | } | |
1132 | ||
1133 | ||
c9c7117a | 1134 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1135 | PyObject *resultobj; |
1136 | wxColour *arg1 = (wxColour *) 0 ; | |
1137 | unsigned long arg2 ; | |
1138 | PyObject * obj0 = 0 ; | |
1139 | PyObject * obj1 = 0 ; | |
1140 | char *kwnames[] = { | |
1141 | (char *) "self",(char *) "colRGB", NULL | |
1142 | }; | |
1143 | ||
c9c7117a | 1144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 1146 | { |
994141e6 | 1147 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
1148 | if (PyErr_Occurred()) SWIG_fail; |
1149 | } | |
d14a1e28 RD |
1150 | { |
1151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1152 | (arg1)->Set(arg2); | |
1153 | ||
1154 | wxPyEndAllowThreads(__tstate); | |
1155 | if (PyErr_Occurred()) SWIG_fail; | |
1156 | } | |
1157 | Py_INCREF(Py_None); resultobj = Py_None; | |
1158 | return resultobj; | |
1159 | fail: | |
1160 | return NULL; | |
1161 | } | |
1162 | ||
1163 | ||
1164 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1165 | PyObject *resultobj; | |
1166 | wxColour *arg1 = (wxColour *) 0 ; | |
1167 | wxColour *arg2 = 0 ; | |
1168 | bool result; | |
1169 | wxColour temp2 ; | |
1170 | PyObject * obj0 = 0 ; | |
1171 | PyObject * obj1 = 0 ; | |
1172 | char *kwnames[] = { | |
1173 | (char *) "self",(char *) "colour", NULL | |
1174 | }; | |
1175 | ||
1176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1178 | { | |
1179 | arg2 = &temp2; | |
1180 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1181 | } | |
1182 | { | |
1183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1184 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1185 | ||
1186 | wxPyEndAllowThreads(__tstate); | |
1187 | if (PyErr_Occurred()) SWIG_fail; | |
1188 | } | |
4d5c3d91 | 1189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1190 | return resultobj; |
1191 | fail: | |
1192 | return NULL; | |
1193 | } | |
1194 | ||
1195 | ||
1196 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1197 | PyObject *resultobj; | |
1198 | wxColour *arg1 = (wxColour *) 0 ; | |
1199 | wxColour *arg2 = 0 ; | |
1200 | bool result; | |
1201 | wxColour temp2 ; | |
1202 | PyObject * obj0 = 0 ; | |
1203 | PyObject * obj1 = 0 ; | |
1204 | char *kwnames[] = { | |
1205 | (char *) "self",(char *) "colour", NULL | |
1206 | }; | |
1207 | ||
1208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1210 | { | |
1211 | arg2 = &temp2; | |
1212 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1213 | } | |
1214 | { | |
1215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1216 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1217 | ||
1218 | wxPyEndAllowThreads(__tstate); | |
1219 | if (PyErr_Occurred()) SWIG_fail; | |
1220 | } | |
4d5c3d91 | 1221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1222 | return resultobj; |
1223 | fail: | |
1224 | return NULL; | |
1225 | } | |
1226 | ||
1227 | ||
c9c7117a RD |
1228 | static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1229 | PyObject *resultobj; | |
1230 | wxColour *arg1 = (wxColour *) 0 ; | |
1231 | wxString *arg2 = 0 ; | |
1232 | bool temp2 = False ; | |
1233 | PyObject * obj0 = 0 ; | |
1234 | PyObject * obj1 = 0 ; | |
1235 | char *kwnames[] = { | |
1236 | (char *) "self",(char *) "colourName", NULL | |
1237 | }; | |
1238 | ||
1239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail; | |
1240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1241 | { | |
1242 | arg2 = wxString_in_helper(obj1); | |
1243 | if (arg2 == NULL) SWIG_fail; | |
1244 | temp2 = True; | |
1245 | } | |
1246 | { | |
1247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1248 | (arg1)->InitFromName((wxString const &)*arg2); | |
1249 | ||
1250 | wxPyEndAllowThreads(__tstate); | |
1251 | if (PyErr_Occurred()) SWIG_fail; | |
1252 | } | |
1253 | Py_INCREF(Py_None); resultobj = Py_None; | |
1254 | { | |
1255 | if (temp2) | |
1256 | delete arg2; | |
1257 | } | |
1258 | return resultobj; | |
1259 | fail: | |
1260 | { | |
1261 | if (temp2) | |
1262 | delete arg2; | |
1263 | } | |
1264 | return NULL; | |
1265 | } | |
1266 | ||
1267 | ||
d14a1e28 RD |
1268 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
1269 | PyObject *resultobj; | |
1270 | wxColour *arg1 = (wxColour *) 0 ; | |
1271 | PyObject *result; | |
1272 | PyObject * obj0 = 0 ; | |
1273 | char *kwnames[] = { | |
1274 | (char *) "self", NULL | |
1275 | }; | |
1276 | ||
1277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1279 | { | |
1280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1281 | result = (PyObject *)wxColour_Get(arg1); | |
1282 | ||
1283 | wxPyEndAllowThreads(__tstate); | |
1284 | if (PyErr_Occurred()) SWIG_fail; | |
1285 | } | |
1286 | resultobj = result; | |
1287 | return resultobj; | |
1288 | fail: | |
1289 | return NULL; | |
1290 | } | |
1291 | ||
1292 | ||
1293 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1294 | PyObject *obj; | |
1295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1296 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1297 | Py_INCREF(obj); | |
1298 | return Py_BuildValue((char *)""); | |
1299 | } | |
1300 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1301 | PyObject *resultobj; | |
1302 | int arg1 ; | |
1303 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1304 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1305 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1306 | wxPalette *result; | |
994141e6 | 1307 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1308 | PyObject * obj1 = 0 ; |
1309 | PyObject * obj2 = 0 ; | |
1310 | PyObject * obj3 = 0 ; | |
1311 | char *kwnames[] = { | |
1312 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1313 | }; | |
1314 | ||
994141e6 RD |
1315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
1316 | { | |
1317 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1318 | if (PyErr_Occurred()) SWIG_fail; | |
1319 | } | |
d14a1e28 RD |
1320 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1321 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1322 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1323 | { | |
1324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1325 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1326 | ||
1327 | wxPyEndAllowThreads(__tstate); | |
1328 | if (PyErr_Occurred()) SWIG_fail; | |
1329 | } | |
1330 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1331 | return resultobj; | |
1332 | fail: | |
1333 | return NULL; | |
1334 | } | |
1335 | ||
1336 | ||
1337 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1338 | PyObject *resultobj; | |
1339 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1340 | PyObject * obj0 = 0 ; | |
1341 | char *kwnames[] = { | |
1342 | (char *) "self", NULL | |
1343 | }; | |
1344 | ||
1345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1347 | { | |
1348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1349 | delete arg1; | |
1350 | ||
1351 | wxPyEndAllowThreads(__tstate); | |
1352 | if (PyErr_Occurred()) SWIG_fail; | |
1353 | } | |
1354 | Py_INCREF(Py_None); resultobj = Py_None; | |
1355 | return resultobj; | |
1356 | fail: | |
1357 | return NULL; | |
1358 | } | |
1359 | ||
1360 | ||
1361 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1362 | PyObject *resultobj; | |
1363 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1364 | byte arg2 ; | |
1365 | byte arg3 ; | |
1366 | byte arg4 ; | |
1367 | int result; | |
1368 | PyObject * obj0 = 0 ; | |
1369 | PyObject * obj1 = 0 ; | |
1370 | PyObject * obj2 = 0 ; | |
1371 | PyObject * obj3 = 0 ; | |
1372 | char *kwnames[] = { | |
1373 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1374 | }; | |
1375 | ||
1376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1378 | { |
994141e6 | 1379 | arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1380 | if (PyErr_Occurred()) SWIG_fail; |
1381 | } | |
1382 | { | |
994141e6 | 1383 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1384 | if (PyErr_Occurred()) SWIG_fail; |
1385 | } | |
1386 | { | |
994141e6 | 1387 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1388 | if (PyErr_Occurred()) SWIG_fail; |
1389 | } | |
d14a1e28 RD |
1390 | { |
1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1392 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1393 | ||
1394 | wxPyEndAllowThreads(__tstate); | |
1395 | if (PyErr_Occurred()) SWIG_fail; | |
1396 | } | |
994141e6 | 1397 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1398 | return resultobj; |
1399 | fail: | |
1400 | return NULL; | |
1401 | } | |
1402 | ||
1403 | ||
1404 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1405 | PyObject *resultobj; | |
1406 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1407 | int arg2 ; | |
1408 | byte *arg3 = (byte *) 0 ; | |
1409 | byte *arg4 = (byte *) 0 ; | |
1410 | byte *arg5 = (byte *) 0 ; | |
1411 | bool result; | |
1412 | byte temp3 ; | |
1413 | byte temp4 ; | |
1414 | byte temp5 ; | |
1415 | PyObject * obj0 = 0 ; | |
994141e6 | 1416 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1417 | char *kwnames[] = { |
1418 | (char *) "self",(char *) "pixel", NULL | |
1419 | }; | |
1420 | ||
1421 | arg3 = &temp3; | |
1422 | arg4 = &temp4; | |
1423 | arg5 = &temp5; | |
994141e6 | 1424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1426 | { |
1427 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1428 | if (PyErr_Occurred()) SWIG_fail; | |
1429 | } | |
d14a1e28 RD |
1430 | { |
1431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1432 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1433 | ||
1434 | wxPyEndAllowThreads(__tstate); | |
1435 | if (PyErr_Occurred()) SWIG_fail; | |
1436 | } | |
4d5c3d91 | 1437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1438 | { |
1439 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1440 | resultobj = t_output_helper(resultobj,o); | |
1441 | } | |
1442 | { | |
1443 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1444 | resultobj = t_output_helper(resultobj,o); | |
1445 | } | |
1446 | { | |
1447 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1448 | resultobj = t_output_helper(resultobj,o); | |
1449 | } | |
1450 | return resultobj; | |
1451 | fail: | |
1452 | return NULL; | |
1453 | } | |
1454 | ||
1455 | ||
1456 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1457 | PyObject *resultobj; | |
1458 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1459 | bool result; | |
1460 | PyObject * obj0 = 0 ; | |
1461 | char *kwnames[] = { | |
1462 | (char *) "self", NULL | |
1463 | }; | |
1464 | ||
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1467 | { | |
1468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1469 | result = (bool)(arg1)->Ok(); | |
1470 | ||
1471 | wxPyEndAllowThreads(__tstate); | |
1472 | if (PyErr_Occurred()) SWIG_fail; | |
1473 | } | |
4d5c3d91 | 1474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1475 | return resultobj; |
1476 | fail: | |
1477 | return NULL; | |
1478 | } | |
1479 | ||
1480 | ||
1481 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1482 | PyObject *obj; | |
1483 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1484 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1485 | Py_INCREF(obj); | |
1486 | return Py_BuildValue((char *)""); | |
1487 | } | |
1488 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1489 | PyObject *resultobj; | |
1490 | wxColour *arg1 = 0 ; | |
1491 | int arg2 = (int) 1 ; | |
1492 | int arg3 = (int) wxSOLID ; | |
1493 | wxPen *result; | |
1494 | wxColour temp1 ; | |
1495 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1496 | PyObject * obj1 = 0 ; |
1497 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1498 | char *kwnames[] = { |
1499 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1500 | }; | |
1501 | ||
994141e6 | 1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1503 | { |
1504 | arg1 = &temp1; | |
1505 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1506 | } | |
994141e6 RD |
1507 | if (obj1) { |
1508 | { | |
1509 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1510 | if (PyErr_Occurred()) SWIG_fail; | |
1511 | } | |
1512 | } | |
1513 | if (obj2) { | |
1514 | { | |
1515 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1516 | if (PyErr_Occurred()) SWIG_fail; | |
1517 | } | |
1518 | } | |
d14a1e28 RD |
1519 | { |
1520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1521 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1522 | ||
1523 | wxPyEndAllowThreads(__tstate); | |
1524 | if (PyErr_Occurred()) SWIG_fail; | |
1525 | } | |
1526 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1527 | return resultobj; | |
1528 | fail: | |
1529 | return NULL; | |
1530 | } | |
1531 | ||
1532 | ||
1533 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1534 | PyObject *resultobj; | |
1535 | wxPen *arg1 = (wxPen *) 0 ; | |
1536 | PyObject * obj0 = 0 ; | |
1537 | char *kwnames[] = { | |
1538 | (char *) "self", NULL | |
1539 | }; | |
1540 | ||
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1543 | { | |
1544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1545 | delete arg1; | |
1546 | ||
1547 | wxPyEndAllowThreads(__tstate); | |
1548 | if (PyErr_Occurred()) SWIG_fail; | |
1549 | } | |
1550 | Py_INCREF(Py_None); resultobj = Py_None; | |
1551 | return resultobj; | |
1552 | fail: | |
1553 | return NULL; | |
1554 | } | |
1555 | ||
1556 | ||
1557 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1558 | PyObject *resultobj; | |
1559 | wxPen *arg1 = (wxPen *) 0 ; | |
1560 | int result; | |
1561 | PyObject * obj0 = 0 ; | |
1562 | char *kwnames[] = { | |
1563 | (char *) "self", NULL | |
1564 | }; | |
1565 | ||
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1568 | { | |
1569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1570 | result = (int)(arg1)->GetCap(); | |
1571 | ||
1572 | wxPyEndAllowThreads(__tstate); | |
1573 | if (PyErr_Occurred()) SWIG_fail; | |
1574 | } | |
994141e6 | 1575 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1576 | return resultobj; |
1577 | fail: | |
1578 | return NULL; | |
1579 | } | |
1580 | ||
1581 | ||
1582 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1583 | PyObject *resultobj; | |
1584 | wxPen *arg1 = (wxPen *) 0 ; | |
1585 | wxColour result; | |
1586 | PyObject * obj0 = 0 ; | |
1587 | char *kwnames[] = { | |
1588 | (char *) "self", NULL | |
1589 | }; | |
1590 | ||
1591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1593 | { | |
1594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1595 | result = (arg1)->GetColour(); | |
1596 | ||
1597 | wxPyEndAllowThreads(__tstate); | |
1598 | if (PyErr_Occurred()) SWIG_fail; | |
1599 | } | |
1600 | { | |
1601 | wxColour * resultptr; | |
1602 | resultptr = new wxColour((wxColour &) result); | |
1603 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1604 | } | |
1605 | return resultobj; | |
1606 | fail: | |
1607 | return NULL; | |
1608 | } | |
1609 | ||
1610 | ||
1611 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject *resultobj; | |
1613 | wxPen *arg1 = (wxPen *) 0 ; | |
1614 | int result; | |
1615 | PyObject * obj0 = 0 ; | |
1616 | char *kwnames[] = { | |
1617 | (char *) "self", NULL | |
1618 | }; | |
1619 | ||
1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1622 | { | |
1623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1624 | result = (int)(arg1)->GetJoin(); | |
1625 | ||
1626 | wxPyEndAllowThreads(__tstate); | |
1627 | if (PyErr_Occurred()) SWIG_fail; | |
1628 | } | |
994141e6 | 1629 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1630 | return resultobj; |
1631 | fail: | |
1632 | return NULL; | |
1633 | } | |
1634 | ||
1635 | ||
1636 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1637 | PyObject *resultobj; | |
1638 | wxPen *arg1 = (wxPen *) 0 ; | |
1639 | int result; | |
1640 | PyObject * obj0 = 0 ; | |
1641 | char *kwnames[] = { | |
1642 | (char *) "self", NULL | |
1643 | }; | |
1644 | ||
1645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1647 | { | |
1648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1649 | result = (int)(arg1)->GetStyle(); | |
1650 | ||
1651 | wxPyEndAllowThreads(__tstate); | |
1652 | if (PyErr_Occurred()) SWIG_fail; | |
1653 | } | |
994141e6 | 1654 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1655 | return resultobj; |
1656 | fail: | |
1657 | return NULL; | |
1658 | } | |
1659 | ||
1660 | ||
1661 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1662 | PyObject *resultobj; | |
1663 | wxPen *arg1 = (wxPen *) 0 ; | |
1664 | int result; | |
1665 | PyObject * obj0 = 0 ; | |
1666 | char *kwnames[] = { | |
1667 | (char *) "self", NULL | |
1668 | }; | |
1669 | ||
1670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1672 | { | |
1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1674 | result = (int)(arg1)->GetWidth(); | |
1675 | ||
1676 | wxPyEndAllowThreads(__tstate); | |
1677 | if (PyErr_Occurred()) SWIG_fail; | |
1678 | } | |
994141e6 | 1679 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1680 | return resultobj; |
1681 | fail: | |
1682 | return NULL; | |
1683 | } | |
1684 | ||
1685 | ||
1686 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1687 | PyObject *resultobj; | |
1688 | wxPen *arg1 = (wxPen *) 0 ; | |
1689 | bool result; | |
1690 | PyObject * obj0 = 0 ; | |
1691 | char *kwnames[] = { | |
1692 | (char *) "self", NULL | |
1693 | }; | |
1694 | ||
1695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1697 | { | |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | result = (bool)(arg1)->Ok(); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
4d5c3d91 | 1704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1705 | return resultobj; |
1706 | fail: | |
1707 | return NULL; | |
1708 | } | |
1709 | ||
1710 | ||
1711 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1712 | PyObject *resultobj; | |
1713 | wxPen *arg1 = (wxPen *) 0 ; | |
1714 | int arg2 ; | |
1715 | PyObject * obj0 = 0 ; | |
994141e6 | 1716 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1717 | char *kwnames[] = { |
1718 | (char *) "self",(char *) "cap_style", NULL | |
1719 | }; | |
1720 | ||
994141e6 | 1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1723 | { |
1724 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1725 | if (PyErr_Occurred()) SWIG_fail; | |
1726 | } | |
d14a1e28 RD |
1727 | { |
1728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1729 | (arg1)->SetCap(arg2); | |
1730 | ||
1731 | wxPyEndAllowThreads(__tstate); | |
1732 | if (PyErr_Occurred()) SWIG_fail; | |
1733 | } | |
1734 | Py_INCREF(Py_None); resultobj = Py_None; | |
1735 | return resultobj; | |
1736 | fail: | |
1737 | return NULL; | |
1738 | } | |
1739 | ||
1740 | ||
1741 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1742 | PyObject *resultobj; | |
1743 | wxPen *arg1 = (wxPen *) 0 ; | |
1744 | wxColour *arg2 = 0 ; | |
1745 | wxColour temp2 ; | |
1746 | PyObject * obj0 = 0 ; | |
1747 | PyObject * obj1 = 0 ; | |
1748 | char *kwnames[] = { | |
1749 | (char *) "self",(char *) "colour", NULL | |
1750 | }; | |
1751 | ||
1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1754 | { | |
1755 | arg2 = &temp2; | |
1756 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1757 | } | |
1758 | { | |
1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1760 | (arg1)->SetColour(*arg2); | |
1761 | ||
1762 | wxPyEndAllowThreads(__tstate); | |
1763 | if (PyErr_Occurred()) SWIG_fail; | |
1764 | } | |
1765 | Py_INCREF(Py_None); resultobj = Py_None; | |
1766 | return resultobj; | |
1767 | fail: | |
1768 | return NULL; | |
1769 | } | |
1770 | ||
1771 | ||
1772 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject *resultobj; | |
1774 | wxPen *arg1 = (wxPen *) 0 ; | |
1775 | int arg2 ; | |
1776 | PyObject * obj0 = 0 ; | |
994141e6 | 1777 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1778 | char *kwnames[] = { |
1779 | (char *) "self",(char *) "join_style", NULL | |
1780 | }; | |
1781 | ||
994141e6 | 1782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1784 | { |
1785 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1786 | if (PyErr_Occurred()) SWIG_fail; | |
1787 | } | |
d14a1e28 RD |
1788 | { |
1789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1790 | (arg1)->SetJoin(arg2); | |
1791 | ||
1792 | wxPyEndAllowThreads(__tstate); | |
1793 | if (PyErr_Occurred()) SWIG_fail; | |
1794 | } | |
1795 | Py_INCREF(Py_None); resultobj = Py_None; | |
1796 | return resultobj; | |
1797 | fail: | |
1798 | return NULL; | |
1799 | } | |
1800 | ||
1801 | ||
1802 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1803 | PyObject *resultobj; | |
1804 | wxPen *arg1 = (wxPen *) 0 ; | |
1805 | int arg2 ; | |
1806 | PyObject * obj0 = 0 ; | |
994141e6 | 1807 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1808 | char *kwnames[] = { |
1809 | (char *) "self",(char *) "style", NULL | |
1810 | }; | |
1811 | ||
994141e6 | 1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1814 | { |
1815 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1816 | if (PyErr_Occurred()) SWIG_fail; | |
1817 | } | |
d14a1e28 RD |
1818 | { |
1819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1820 | (arg1)->SetStyle(arg2); | |
1821 | ||
1822 | wxPyEndAllowThreads(__tstate); | |
1823 | if (PyErr_Occurred()) SWIG_fail; | |
1824 | } | |
1825 | Py_INCREF(Py_None); resultobj = Py_None; | |
1826 | return resultobj; | |
1827 | fail: | |
1828 | return NULL; | |
1829 | } | |
1830 | ||
1831 | ||
1832 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1833 | PyObject *resultobj; | |
1834 | wxPen *arg1 = (wxPen *) 0 ; | |
1835 | int arg2 ; | |
1836 | PyObject * obj0 = 0 ; | |
994141e6 | 1837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1838 | char *kwnames[] = { |
1839 | (char *) "self",(char *) "width", NULL | |
1840 | }; | |
1841 | ||
994141e6 | 1842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1844 | { |
1845 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1846 | if (PyErr_Occurred()) SWIG_fail; | |
1847 | } | |
d14a1e28 RD |
1848 | { |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | (arg1)->SetWidth(arg2); | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | Py_INCREF(Py_None); resultobj = Py_None; | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxPen *arg1 = (wxPen *) 0 ; | |
1865 | int arg2 ; | |
1866 | wxDash *arg3 = (wxDash *) 0 ; | |
1867 | PyObject * obj0 = 0 ; | |
1868 | PyObject * obj1 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "self",(char *) "dashes", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1875 | { | |
1876 | arg2 = PyList_Size(obj1); | |
1877 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1878 | if (arg3 == NULL) SWIG_fail; | |
1879 | } | |
1880 | { | |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | (arg1)->SetDashes(arg2,arg3); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) SWIG_fail; | |
1886 | } | |
1887 | Py_INCREF(Py_None); resultobj = Py_None; | |
1888 | { | |
1889 | if (arg3) delete [] arg3; | |
1890 | } | |
1891 | return resultobj; | |
1892 | fail: | |
1893 | { | |
1894 | if (arg3) delete [] arg3; | |
1895 | } | |
1896 | return NULL; | |
1897 | } | |
1898 | ||
1899 | ||
1900 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1901 | PyObject *resultobj; | |
1902 | wxPen *arg1 = (wxPen *) 0 ; | |
1903 | PyObject *result; | |
1904 | PyObject * obj0 = 0 ; | |
1905 | char *kwnames[] = { | |
1906 | (char *) "self", NULL | |
1907 | }; | |
1908 | ||
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1911 | { | |
1912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1913 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1914 | ||
1915 | wxPyEndAllowThreads(__tstate); | |
1916 | if (PyErr_Occurred()) SWIG_fail; | |
1917 | } | |
1918 | resultobj = result; | |
1919 | return resultobj; | |
1920 | fail: | |
1921 | return NULL; | |
1922 | } | |
1923 | ||
1924 | ||
3adfb63b RD |
1925 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1926 | PyObject *resultobj; | |
1927 | wxPen *arg1 = (wxPen *) 0 ; | |
1928 | wxPen *arg2 = 0 ; | |
1929 | bool result; | |
1930 | PyObject * obj0 = 0 ; | |
1931 | PyObject * obj1 = 0 ; | |
1932 | char *kwnames[] = { | |
1933 | (char *) "self",(char *) "pen", NULL | |
1934 | }; | |
1935 | ||
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1938 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1939 | if (arg2 == NULL) { | |
1940 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1941 | } | |
1942 | { | |
1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1944 | result = (bool)((wxPen const *)arg1)->operator ==((wxPen const &)*arg2); | |
1945 | ||
1946 | wxPyEndAllowThreads(__tstate); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
1949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1950 | return resultobj; | |
1951 | fail: | |
1952 | return NULL; | |
1953 | } | |
1954 | ||
1955 | ||
c9c7117a RD |
1956 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
1957 | PyObject *resultobj; | |
1958 | wxPen *arg1 = (wxPen *) 0 ; | |
1959 | int result; | |
1960 | PyObject * obj0 = 0 ; | |
1961 | char *kwnames[] = { | |
1962 | (char *) "self", NULL | |
1963 | }; | |
1964 | ||
1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
1966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1967 | { | |
1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1969 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
1970 | ||
1971 | wxPyEndAllowThreads(__tstate); | |
1972 | if (PyErr_Occurred()) SWIG_fail; | |
1973 | } | |
994141e6 | 1974 | resultobj = SWIG_PyObj_FromInt((int)result); |
c9c7117a RD |
1975 | return resultobj; |
1976 | fail: | |
1977 | return NULL; | |
1978 | } | |
1979 | ||
1980 | ||
d14a1e28 RD |
1981 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
1982 | PyObject *obj; | |
1983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1984 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
1985 | Py_INCREF(obj); | |
1986 | return Py_BuildValue((char *)""); | |
1987 | } | |
1988 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1989 | PyObject *resultobj; | |
1990 | wxColour *arg1 = 0 ; | |
1991 | int arg2 = (int) 1 ; | |
1992 | int arg3 = (int) wxSOLID ; | |
1993 | wxPyPen *result; | |
1994 | wxColour temp1 ; | |
1995 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1996 | PyObject * obj1 = 0 ; |
1997 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1998 | char *kwnames[] = { |
1999 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2000 | }; | |
2001 | ||
994141e6 | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2003 | { |
2004 | arg1 = &temp1; | |
2005 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2006 | } | |
994141e6 RD |
2007 | if (obj1) { |
2008 | { | |
2009 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2010 | if (PyErr_Occurred()) SWIG_fail; | |
2011 | } | |
2012 | } | |
2013 | if (obj2) { | |
2014 | { | |
2015 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2016 | if (PyErr_Occurred()) SWIG_fail; | |
2017 | } | |
2018 | } | |
d14a1e28 RD |
2019 | { |
2020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2021 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2022 | ||
2023 | wxPyEndAllowThreads(__tstate); | |
2024 | if (PyErr_Occurred()) SWIG_fail; | |
2025 | } | |
2026 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
2027 | return resultobj; | |
2028 | fail: | |
2029 | return NULL; | |
2030 | } | |
2031 | ||
2032 | ||
2033 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2034 | PyObject *resultobj; | |
2035 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2036 | PyObject * obj0 = 0 ; | |
2037 | char *kwnames[] = { | |
2038 | (char *) "self", NULL | |
2039 | }; | |
2040 | ||
2041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2043 | { | |
2044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2045 | delete arg1; | |
2046 | ||
2047 | wxPyEndAllowThreads(__tstate); | |
2048 | if (PyErr_Occurred()) SWIG_fail; | |
2049 | } | |
2050 | Py_INCREF(Py_None); resultobj = Py_None; | |
2051 | return resultobj; | |
2052 | fail: | |
2053 | return NULL; | |
2054 | } | |
2055 | ||
2056 | ||
2057 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2058 | PyObject *resultobj; | |
2059 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2060 | int arg2 ; | |
2061 | wxDash *arg3 = (wxDash *) 0 ; | |
2062 | PyObject * obj0 = 0 ; | |
2063 | PyObject * obj1 = 0 ; | |
2064 | char *kwnames[] = { | |
2065 | (char *) "self",(char *) "dashes", NULL | |
2066 | }; | |
2067 | ||
2068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2070 | { | |
2071 | arg2 = PyList_Size(obj1); | |
2072 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2073 | if (arg3 == NULL) SWIG_fail; | |
2074 | } | |
2075 | { | |
2076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2077 | (arg1)->SetDashes(arg2,arg3); | |
2078 | ||
2079 | wxPyEndAllowThreads(__tstate); | |
2080 | if (PyErr_Occurred()) SWIG_fail; | |
2081 | } | |
2082 | Py_INCREF(Py_None); resultobj = Py_None; | |
2083 | { | |
2084 | if (arg3) delete [] arg3; | |
2085 | } | |
2086 | return resultobj; | |
2087 | fail: | |
2088 | { | |
2089 | if (arg3) delete [] arg3; | |
2090 | } | |
2091 | return NULL; | |
2092 | } | |
2093 | ||
2094 | ||
2095 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2096 | PyObject *obj; | |
2097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2098 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2099 | Py_INCREF(obj); | |
2100 | return Py_BuildValue((char *)""); | |
2101 | } | |
2102 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2103 | PyObject *resultobj; | |
2104 | wxColour *arg1 = 0 ; | |
2105 | int arg2 = (int) wxSOLID ; | |
2106 | wxBrush *result; | |
2107 | wxColour temp1 ; | |
2108 | PyObject * obj0 = 0 ; | |
994141e6 | 2109 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2110 | char *kwnames[] = { |
2111 | (char *) "colour",(char *) "style", NULL | |
2112 | }; | |
2113 | ||
994141e6 | 2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2115 | { |
2116 | arg1 = &temp1; | |
2117 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2118 | } | |
994141e6 RD |
2119 | if (obj1) { |
2120 | { | |
2121 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2122 | if (PyErr_Occurred()) SWIG_fail; | |
2123 | } | |
2124 | } | |
d14a1e28 RD |
2125 | { |
2126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2127 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2128 | ||
2129 | wxPyEndAllowThreads(__tstate); | |
2130 | if (PyErr_Occurred()) SWIG_fail; | |
2131 | } | |
2132 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
2133 | return resultobj; | |
2134 | fail: | |
2135 | return NULL; | |
2136 | } | |
2137 | ||
2138 | ||
2139 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2140 | PyObject *resultobj; | |
2141 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2142 | PyObject * obj0 = 0 ; | |
2143 | char *kwnames[] = { | |
2144 | (char *) "self", NULL | |
2145 | }; | |
2146 | ||
2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2149 | { | |
2150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2151 | delete arg1; | |
2152 | ||
2153 | wxPyEndAllowThreads(__tstate); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | } | |
2156 | Py_INCREF(Py_None); resultobj = Py_None; | |
2157 | return resultobj; | |
2158 | fail: | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
2163 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject *resultobj; | |
2165 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2166 | wxColour *arg2 = 0 ; | |
2167 | wxColour temp2 ; | |
2168 | PyObject * obj0 = 0 ; | |
2169 | PyObject * obj1 = 0 ; | |
2170 | char *kwnames[] = { | |
2171 | (char *) "self",(char *) "col", NULL | |
2172 | }; | |
2173 | ||
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2176 | { | |
2177 | arg2 = &temp2; | |
2178 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2179 | } | |
2180 | { | |
2181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2182 | (arg1)->SetColour((wxColour const &)*arg2); | |
2183 | ||
2184 | wxPyEndAllowThreads(__tstate); | |
2185 | if (PyErr_Occurred()) SWIG_fail; | |
2186 | } | |
2187 | Py_INCREF(Py_None); resultobj = Py_None; | |
2188 | return resultobj; | |
2189 | fail: | |
2190 | return NULL; | |
2191 | } | |
2192 | ||
2193 | ||
2194 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2195 | PyObject *resultobj; | |
2196 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2197 | int arg2 ; | |
2198 | PyObject * obj0 = 0 ; | |
994141e6 | 2199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2200 | char *kwnames[] = { |
2201 | (char *) "self",(char *) "style", NULL | |
2202 | }; | |
2203 | ||
994141e6 | 2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2206 | { |
2207 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2208 | if (PyErr_Occurred()) SWIG_fail; | |
2209 | } | |
d14a1e28 RD |
2210 | { |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | (arg1)->SetStyle(arg2); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
2217 | Py_INCREF(Py_None); resultobj = Py_None; | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
2224 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2225 | PyObject *resultobj; | |
2226 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2227 | wxBitmap *arg2 = 0 ; | |
2228 | PyObject * obj0 = 0 ; | |
2229 | PyObject * obj1 = 0 ; | |
2230 | char *kwnames[] = { | |
2231 | (char *) "self",(char *) "stipple", NULL | |
2232 | }; | |
2233 | ||
2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2237 | if (arg2 == NULL) { | |
2238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2239 | } | |
2240 | { | |
2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2242 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2243 | ||
2244 | wxPyEndAllowThreads(__tstate); | |
2245 | if (PyErr_Occurred()) SWIG_fail; | |
2246 | } | |
2247 | Py_INCREF(Py_None); resultobj = Py_None; | |
2248 | return resultobj; | |
2249 | fail: | |
2250 | return NULL; | |
2251 | } | |
2252 | ||
2253 | ||
2254 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2255 | PyObject *resultobj; | |
2256 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2257 | wxColour result; | |
2258 | PyObject * obj0 = 0 ; | |
2259 | char *kwnames[] = { | |
2260 | (char *) "self", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2265 | { | |
2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2267 | result = ((wxBrush const *)arg1)->GetColour(); | |
2268 | ||
2269 | wxPyEndAllowThreads(__tstate); | |
2270 | if (PyErr_Occurred()) SWIG_fail; | |
2271 | } | |
2272 | { | |
2273 | wxColour * resultptr; | |
2274 | resultptr = new wxColour((wxColour &) result); | |
2275 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2276 | } | |
2277 | return resultobj; | |
2278 | fail: | |
2279 | return NULL; | |
2280 | } | |
2281 | ||
2282 | ||
2283 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2284 | PyObject *resultobj; | |
2285 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2286 | int result; | |
2287 | PyObject * obj0 = 0 ; | |
2288 | char *kwnames[] = { | |
2289 | (char *) "self", NULL | |
2290 | }; | |
2291 | ||
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2294 | { | |
2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2296 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2297 | ||
2298 | wxPyEndAllowThreads(__tstate); | |
2299 | if (PyErr_Occurred()) SWIG_fail; | |
2300 | } | |
994141e6 | 2301 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2302 | return resultobj; |
2303 | fail: | |
2304 | return NULL; | |
2305 | } | |
2306 | ||
2307 | ||
2308 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2309 | PyObject *resultobj; | |
2310 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2311 | wxBitmap *result; | |
2312 | PyObject * obj0 = 0 ; | |
2313 | char *kwnames[] = { | |
2314 | (char *) "self", NULL | |
2315 | }; | |
2316 | ||
2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2319 | { | |
2320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2321 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2322 | ||
2323 | wxPyEndAllowThreads(__tstate); | |
2324 | if (PyErr_Occurred()) SWIG_fail; | |
2325 | } | |
2326 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2327 | return resultobj; | |
2328 | fail: | |
2329 | return NULL; | |
2330 | } | |
2331 | ||
2332 | ||
2333 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2334 | PyObject *resultobj; | |
2335 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2336 | bool result; | |
2337 | PyObject * obj0 = 0 ; | |
2338 | char *kwnames[] = { | |
2339 | (char *) "self", NULL | |
2340 | }; | |
2341 | ||
2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2344 | { | |
2345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2346 | result = (bool)(arg1)->Ok(); | |
2347 | ||
2348 | wxPyEndAllowThreads(__tstate); | |
2349 | if (PyErr_Occurred()) SWIG_fail; | |
2350 | } | |
4d5c3d91 | 2351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2352 | return resultobj; |
2353 | fail: | |
2354 | return NULL; | |
2355 | } | |
2356 | ||
2357 | ||
2358 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2359 | PyObject *obj; | |
2360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2361 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2362 | Py_INCREF(obj); | |
2363 | return Py_BuildValue((char *)""); | |
2364 | } | |
2365 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2366 | PyObject *resultobj; | |
2367 | wxString *arg1 = 0 ; | |
2368 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2369 | wxBitmap *result; | |
e811c8ce | 2370 | bool temp1 = False ; |
d14a1e28 | 2371 | PyObject * obj0 = 0 ; |
994141e6 | 2372 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2373 | char *kwnames[] = { |
2374 | (char *) "name",(char *) "type", NULL | |
2375 | }; | |
2376 | ||
994141e6 | 2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2378 | { |
2379 | arg1 = wxString_in_helper(obj0); | |
2380 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2381 | temp1 = True; |
d14a1e28 | 2382 | } |
994141e6 RD |
2383 | if (obj1) { |
2384 | { | |
2385 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); | |
2386 | if (PyErr_Occurred()) SWIG_fail; | |
2387 | } | |
2388 | } | |
d14a1e28 RD |
2389 | { |
2390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2391 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2392 | ||
2393 | wxPyEndAllowThreads(__tstate); | |
2394 | if (PyErr_Occurred()) SWIG_fail; | |
2395 | } | |
2396 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2397 | { | |
2398 | if (temp1) | |
2399 | delete arg1; | |
2400 | } | |
2401 | return resultobj; | |
2402 | fail: | |
2403 | { | |
2404 | if (temp1) | |
2405 | delete arg1; | |
2406 | } | |
2407 | return NULL; | |
2408 | } | |
2409 | ||
2410 | ||
2411 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2412 | PyObject *resultobj; | |
2413 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2414 | PyObject * obj0 = 0 ; | |
2415 | char *kwnames[] = { | |
2416 | (char *) "self", NULL | |
2417 | }; | |
2418 | ||
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2423 | delete arg1; | |
2424 | ||
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
2428 | Py_INCREF(Py_None); resultobj = Py_None; | |
2429 | return resultobj; | |
2430 | fail: | |
2431 | return NULL; | |
2432 | } | |
2433 | ||
2434 | ||
2435 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2436 | PyObject *resultobj; | |
2437 | int arg1 ; | |
2438 | int arg2 ; | |
2439 | int arg3 = (int) -1 ; | |
2440 | wxBitmap *result; | |
994141e6 RD |
2441 | PyObject * obj0 = 0 ; |
2442 | PyObject * obj1 = 0 ; | |
2443 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2444 | char *kwnames[] = { |
2445 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2446 | }; | |
2447 | ||
994141e6 RD |
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2449 | { | |
2450 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2451 | if (PyErr_Occurred()) SWIG_fail; | |
2452 | } | |
2453 | { | |
2454 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2455 | if (PyErr_Occurred()) SWIG_fail; | |
2456 | } | |
2457 | if (obj2) { | |
2458 | { | |
2459 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2460 | if (PyErr_Occurred()) SWIG_fail; | |
2461 | } | |
2462 | } | |
d14a1e28 RD |
2463 | { |
2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2465 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2466 | ||
2467 | wxPyEndAllowThreads(__tstate); | |
2468 | if (PyErr_Occurred()) SWIG_fail; | |
2469 | } | |
2470 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2471 | return resultobj; | |
2472 | fail: | |
2473 | return NULL; | |
2474 | } | |
2475 | ||
2476 | ||
2477 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject *resultobj; | |
2479 | wxIcon *arg1 = 0 ; | |
2480 | wxBitmap *result; | |
2481 | PyObject * obj0 = 0 ; | |
2482 | char *kwnames[] = { | |
2483 | (char *) "icon", NULL | |
2484 | }; | |
2485 | ||
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2488 | if (arg1 == NULL) { | |
2489 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2490 | } | |
2491 | { | |
2492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2493 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2494 | ||
2495 | wxPyEndAllowThreads(__tstate); | |
2496 | if (PyErr_Occurred()) SWIG_fail; | |
2497 | } | |
2498 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2499 | return resultobj; | |
2500 | fail: | |
2501 | return NULL; | |
2502 | } | |
2503 | ||
2504 | ||
2505 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2506 | PyObject *resultobj; | |
2507 | wxImage *arg1 = 0 ; | |
2508 | int arg2 = (int) -1 ; | |
2509 | wxBitmap *result; | |
2510 | PyObject * obj0 = 0 ; | |
994141e6 | 2511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2512 | char *kwnames[] = { |
2513 | (char *) "image",(char *) "depth", NULL | |
2514 | }; | |
2515 | ||
994141e6 | 2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2518 | if (arg1 == NULL) { | |
2519 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2520 | } | |
994141e6 RD |
2521 | if (obj1) { |
2522 | { | |
2523 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2524 | if (PyErr_Occurred()) SWIG_fail; | |
2525 | } | |
2526 | } | |
d14a1e28 RD |
2527 | { |
2528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2529 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2530 | ||
2531 | wxPyEndAllowThreads(__tstate); | |
2532 | if (PyErr_Occurred()) SWIG_fail; | |
2533 | } | |
2534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2535 | return resultobj; | |
2536 | fail: | |
2537 | return NULL; | |
2538 | } | |
2539 | ||
2540 | ||
2541 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2542 | PyObject *resultobj; | |
2543 | PyObject *arg1 = (PyObject *) 0 ; | |
2544 | wxBitmap *result; | |
2545 | PyObject * obj0 = 0 ; | |
2546 | char *kwnames[] = { | |
2547 | (char *) "listOfStrings", NULL | |
2548 | }; | |
2549 | ||
2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2551 | arg1 = obj0; | |
2552 | { | |
2553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2554 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2555 | ||
2556 | wxPyEndAllowThreads(__tstate); | |
2557 | if (PyErr_Occurred()) SWIG_fail; | |
2558 | } | |
2559 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2560 | return resultobj; | |
2561 | fail: | |
2562 | return NULL; | |
2563 | } | |
2564 | ||
2565 | ||
2566 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2567 | PyObject *resultobj; | |
2568 | PyObject *arg1 = (PyObject *) 0 ; | |
2569 | int arg2 ; | |
2570 | int arg3 ; | |
2571 | int arg4 = (int) 1 ; | |
2572 | wxBitmap *result; | |
2573 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2574 | PyObject * obj1 = 0 ; |
2575 | PyObject * obj2 = 0 ; | |
2576 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2577 | char *kwnames[] = { |
2578 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2579 | }; | |
2580 | ||
994141e6 | 2581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2582 | arg1 = obj0; |
994141e6 RD |
2583 | { |
2584 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2585 | if (PyErr_Occurred()) SWIG_fail; | |
2586 | } | |
2587 | { | |
2588 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2589 | if (PyErr_Occurred()) SWIG_fail; | |
2590 | } | |
2591 | if (obj3) { | |
2592 | { | |
2593 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2594 | if (PyErr_Occurred()) SWIG_fail; | |
2595 | } | |
2596 | } | |
d14a1e28 RD |
2597 | { |
2598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2599 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2600 | ||
2601 | wxPyEndAllowThreads(__tstate); | |
2602 | if (PyErr_Occurred()) SWIG_fail; | |
2603 | } | |
2604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2605 | return resultobj; | |
2606 | fail: | |
2607 | return NULL; | |
2608 | } | |
2609 | ||
2610 | ||
2611 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2612 | PyObject *resultobj; | |
2613 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2614 | bool result; | |
2615 | PyObject * obj0 = 0 ; | |
2616 | char *kwnames[] = { | |
2617 | (char *) "self", NULL | |
2618 | }; | |
2619 | ||
2620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2622 | { | |
2623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2624 | result = (bool)(arg1)->Ok(); | |
2625 | ||
2626 | wxPyEndAllowThreads(__tstate); | |
2627 | if (PyErr_Occurred()) SWIG_fail; | |
2628 | } | |
4d5c3d91 | 2629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2630 | return resultobj; |
2631 | fail: | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
2636 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject *resultobj; | |
2638 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2639 | int result; | |
2640 | PyObject * obj0 = 0 ; | |
2641 | char *kwnames[] = { | |
2642 | (char *) "self", NULL | |
2643 | }; | |
2644 | ||
2645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2647 | { | |
2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2649 | result = (int)(arg1)->GetWidth(); | |
2650 | ||
2651 | wxPyEndAllowThreads(__tstate); | |
2652 | if (PyErr_Occurred()) SWIG_fail; | |
2653 | } | |
994141e6 | 2654 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2655 | return resultobj; |
2656 | fail: | |
2657 | return NULL; | |
2658 | } | |
2659 | ||
2660 | ||
2661 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2662 | PyObject *resultobj; | |
2663 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2664 | int result; | |
2665 | PyObject * obj0 = 0 ; | |
2666 | char *kwnames[] = { | |
2667 | (char *) "self", NULL | |
2668 | }; | |
2669 | ||
2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2672 | { | |
2673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2674 | result = (int)(arg1)->GetHeight(); | |
2675 | ||
2676 | wxPyEndAllowThreads(__tstate); | |
2677 | if (PyErr_Occurred()) SWIG_fail; | |
2678 | } | |
994141e6 | 2679 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2680 | return resultobj; |
2681 | fail: | |
2682 | return NULL; | |
2683 | } | |
2684 | ||
2685 | ||
2686 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2687 | PyObject *resultobj; | |
2688 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2689 | int result; | |
2690 | PyObject * obj0 = 0 ; | |
2691 | char *kwnames[] = { | |
2692 | (char *) "self", NULL | |
2693 | }; | |
2694 | ||
2695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2697 | { | |
2698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2699 | result = (int)(arg1)->GetDepth(); | |
2700 | ||
2701 | wxPyEndAllowThreads(__tstate); | |
2702 | if (PyErr_Occurred()) SWIG_fail; | |
2703 | } | |
994141e6 | 2704 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2705 | return resultobj; |
2706 | fail: | |
2707 | return NULL; | |
2708 | } | |
2709 | ||
2710 | ||
2711 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2712 | PyObject *resultobj; | |
2713 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2714 | SwigValueWrapper< wxImage > result; | |
2715 | PyObject * obj0 = 0 ; | |
2716 | char *kwnames[] = { | |
2717 | (char *) "self", NULL | |
2718 | }; | |
2719 | ||
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2722 | { | |
2723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2724 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2725 | ||
2726 | wxPyEndAllowThreads(__tstate); | |
2727 | if (PyErr_Occurred()) SWIG_fail; | |
2728 | } | |
2729 | { | |
2730 | wxImage * resultptr; | |
2731 | resultptr = new wxImage((wxImage &) result); | |
2732 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2733 | } | |
2734 | return resultobj; | |
2735 | fail: | |
2736 | return NULL; | |
2737 | } | |
2738 | ||
2739 | ||
2740 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2741 | PyObject *resultobj; | |
2742 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2743 | wxMask *result; | |
2744 | PyObject * obj0 = 0 ; | |
2745 | char *kwnames[] = { | |
2746 | (char *) "self", NULL | |
2747 | }; | |
2748 | ||
2749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2751 | { | |
2752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2753 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2754 | ||
2755 | wxPyEndAllowThreads(__tstate); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | } | |
2758 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2759 | return resultobj; | |
2760 | fail: | |
2761 | return NULL; | |
2762 | } | |
2763 | ||
2764 | ||
2765 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2766 | PyObject *resultobj; | |
2767 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2768 | wxMask *arg2 = (wxMask *) 0 ; | |
2769 | PyObject * obj0 = 0 ; | |
2770 | PyObject * obj1 = 0 ; | |
2771 | char *kwnames[] = { | |
2772 | (char *) "self",(char *) "mask", NULL | |
2773 | }; | |
2774 | ||
2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2777 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2778 | { | |
2779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2780 | (arg1)->SetMask(arg2); | |
2781 | ||
2782 | wxPyEndAllowThreads(__tstate); | |
2783 | if (PyErr_Occurred()) SWIG_fail; | |
2784 | } | |
2785 | Py_INCREF(Py_None); resultobj = Py_None; | |
2786 | return resultobj; | |
2787 | fail: | |
2788 | return NULL; | |
2789 | } | |
2790 | ||
2791 | ||
2792 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2793 | PyObject *resultobj; | |
2794 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2795 | wxColour *arg2 = 0 ; | |
2796 | wxColour temp2 ; | |
2797 | PyObject * obj0 = 0 ; | |
2798 | PyObject * obj1 = 0 ; | |
2799 | char *kwnames[] = { | |
2800 | (char *) "self",(char *) "colour", NULL | |
2801 | }; | |
2802 | ||
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2805 | { | |
2806 | arg2 = &temp2; | |
2807 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2808 | } | |
2809 | { | |
2810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2811 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2812 | ||
2813 | wxPyEndAllowThreads(__tstate); | |
2814 | if (PyErr_Occurred()) SWIG_fail; | |
2815 | } | |
2816 | Py_INCREF(Py_None); resultobj = Py_None; | |
2817 | return resultobj; | |
2818 | fail: | |
2819 | return NULL; | |
2820 | } | |
2821 | ||
2822 | ||
2823 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2824 | PyObject *resultobj; | |
2825 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2826 | wxRect *arg2 = 0 ; | |
2827 | SwigValueWrapper< wxBitmap > result; | |
2828 | wxRect temp2 ; | |
2829 | PyObject * obj0 = 0 ; | |
2830 | PyObject * obj1 = 0 ; | |
2831 | char *kwnames[] = { | |
2832 | (char *) "self",(char *) "rect", NULL | |
2833 | }; | |
2834 | ||
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2837 | { | |
2838 | arg2 = &temp2; | |
2839 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2840 | } | |
2841 | { | |
2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2843 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2844 | ||
2845 | wxPyEndAllowThreads(__tstate); | |
2846 | if (PyErr_Occurred()) SWIG_fail; | |
2847 | } | |
2848 | { | |
2849 | wxBitmap * resultptr; | |
2850 | resultptr = new wxBitmap((wxBitmap &) result); | |
2851 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2852 | } | |
2853 | return resultobj; | |
2854 | fail: | |
2855 | return NULL; | |
2856 | } | |
2857 | ||
2858 | ||
2859 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2860 | PyObject *resultobj; | |
2861 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2862 | wxString *arg2 = 0 ; | |
2863 | int arg3 ; | |
2864 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2865 | bool result; | |
e811c8ce | 2866 | bool temp2 = False ; |
d14a1e28 RD |
2867 | PyObject * obj0 = 0 ; |
2868 | PyObject * obj1 = 0 ; | |
994141e6 | 2869 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2870 | PyObject * obj3 = 0 ; |
2871 | char *kwnames[] = { | |
2872 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2873 | }; | |
2874 | ||
994141e6 | 2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
2876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2877 | { | |
2878 | arg2 = wxString_in_helper(obj1); | |
2879 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2880 | temp2 = True; |
d14a1e28 | 2881 | } |
994141e6 RD |
2882 | { |
2883 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
2884 | if (PyErr_Occurred()) SWIG_fail; | |
2885 | } | |
d14a1e28 RD |
2886 | if (obj3) { |
2887 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2888 | } | |
2889 | { | |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2891 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
2894 | if (PyErr_Occurred()) SWIG_fail; | |
2895 | } | |
4d5c3d91 | 2896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2897 | { |
2898 | if (temp2) | |
2899 | delete arg2; | |
2900 | } | |
2901 | return resultobj; | |
2902 | fail: | |
2903 | { | |
2904 | if (temp2) | |
2905 | delete arg2; | |
2906 | } | |
2907 | return NULL; | |
2908 | } | |
2909 | ||
2910 | ||
2911 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2912 | PyObject *resultobj; | |
2913 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2914 | wxString *arg2 = 0 ; | |
2915 | int arg3 ; | |
2916 | bool result; | |
e811c8ce | 2917 | bool temp2 = False ; |
d14a1e28 RD |
2918 | PyObject * obj0 = 0 ; |
2919 | PyObject * obj1 = 0 ; | |
994141e6 | 2920 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2921 | char *kwnames[] = { |
2922 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2923 | }; | |
2924 | ||
994141e6 | 2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2927 | { | |
2928 | arg2 = wxString_in_helper(obj1); | |
2929 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2930 | temp2 = True; |
d14a1e28 | 2931 | } |
994141e6 RD |
2932 | { |
2933 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
2934 | if (PyErr_Occurred()) SWIG_fail; | |
2935 | } | |
d14a1e28 RD |
2936 | { |
2937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2938 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2939 | ||
2940 | wxPyEndAllowThreads(__tstate); | |
2941 | if (PyErr_Occurred()) SWIG_fail; | |
2942 | } | |
4d5c3d91 | 2943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2944 | { |
2945 | if (temp2) | |
2946 | delete arg2; | |
2947 | } | |
2948 | return resultobj; | |
2949 | fail: | |
2950 | { | |
2951 | if (temp2) | |
2952 | delete arg2; | |
2953 | } | |
2954 | return NULL; | |
2955 | } | |
2956 | ||
2957 | ||
2958 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2959 | PyObject *resultobj; | |
2960 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2961 | wxIcon *arg2 = 0 ; | |
2962 | bool result; | |
2963 | PyObject * obj0 = 0 ; | |
2964 | PyObject * obj1 = 0 ; | |
2965 | char *kwnames[] = { | |
2966 | (char *) "self",(char *) "icon", NULL | |
2967 | }; | |
2968 | ||
2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2971 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2972 | if (arg2 == NULL) { | |
2973 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2974 | } | |
2975 | { | |
2976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2977 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2978 | ||
2979 | wxPyEndAllowThreads(__tstate); | |
2980 | if (PyErr_Occurred()) SWIG_fail; | |
2981 | } | |
4d5c3d91 | 2982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2983 | return resultobj; |
2984 | fail: | |
2985 | return NULL; | |
2986 | } | |
2987 | ||
2988 | ||
2989 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2990 | PyObject *resultobj; | |
2991 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2992 | int arg2 ; | |
2993 | PyObject * obj0 = 0 ; | |
994141e6 | 2994 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2995 | char *kwnames[] = { |
2996 | (char *) "self",(char *) "height", NULL | |
2997 | }; | |
2998 | ||
994141e6 | 2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3001 | { |
3002 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3003 | if (PyErr_Occurred()) SWIG_fail; | |
3004 | } | |
d14a1e28 RD |
3005 | { |
3006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3007 | (arg1)->SetHeight(arg2); | |
3008 | ||
3009 | wxPyEndAllowThreads(__tstate); | |
3010 | if (PyErr_Occurred()) SWIG_fail; | |
3011 | } | |
3012 | Py_INCREF(Py_None); resultobj = Py_None; | |
3013 | return resultobj; | |
3014 | fail: | |
3015 | return NULL; | |
3016 | } | |
3017 | ||
3018 | ||
3019 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3020 | PyObject *resultobj; | |
3021 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3022 | int arg2 ; | |
3023 | PyObject * obj0 = 0 ; | |
994141e6 | 3024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3025 | char *kwnames[] = { |
3026 | (char *) "self",(char *) "width", NULL | |
3027 | }; | |
3028 | ||
994141e6 | 3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3031 | { |
3032 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3033 | if (PyErr_Occurred()) SWIG_fail; | |
3034 | } | |
d14a1e28 RD |
3035 | { |
3036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3037 | (arg1)->SetWidth(arg2); | |
3038 | ||
3039 | wxPyEndAllowThreads(__tstate); | |
3040 | if (PyErr_Occurred()) SWIG_fail; | |
3041 | } | |
3042 | Py_INCREF(Py_None); resultobj = Py_None; | |
3043 | return resultobj; | |
3044 | fail: | |
3045 | return NULL; | |
3046 | } | |
3047 | ||
3048 | ||
3049 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3050 | PyObject *resultobj; | |
3051 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3052 | int arg2 ; | |
3053 | PyObject * obj0 = 0 ; | |
994141e6 | 3054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3055 | char *kwnames[] = { |
3056 | (char *) "self",(char *) "depth", NULL | |
3057 | }; | |
3058 | ||
994141e6 | 3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3061 | { |
3062 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3063 | if (PyErr_Occurred()) SWIG_fail; | |
3064 | } | |
d14a1e28 RD |
3065 | { |
3066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3067 | (arg1)->SetDepth(arg2); | |
3068 | ||
3069 | wxPyEndAllowThreads(__tstate); | |
3070 | if (PyErr_Occurred()) SWIG_fail; | |
3071 | } | |
3072 | Py_INCREF(Py_None); resultobj = Py_None; | |
3073 | return resultobj; | |
3074 | fail: | |
3075 | return NULL; | |
3076 | } | |
3077 | ||
3078 | ||
3079 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3080 | PyObject *obj; | |
3081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3082 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3083 | Py_INCREF(obj); | |
3084 | return Py_BuildValue((char *)""); | |
3085 | } | |
3086 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3087 | PyObject *resultobj; | |
3088 | wxBitmap *arg1 = 0 ; | |
3089 | wxMask *result; | |
3090 | PyObject * obj0 = 0 ; | |
3091 | char *kwnames[] = { | |
3092 | (char *) "bitmap", NULL | |
3093 | }; | |
3094 | ||
3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
3096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3097 | if (arg1 == NULL) { | |
3098 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3099 | } | |
3100 | { | |
3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3102 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
3103 | ||
3104 | wxPyEndAllowThreads(__tstate); | |
3105 | if (PyErr_Occurred()) SWIG_fail; | |
3106 | } | |
3107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3108 | return resultobj; | |
3109 | fail: | |
3110 | return NULL; | |
3111 | } | |
3112 | ||
3113 | ||
3114 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3115 | PyObject *resultobj; | |
3116 | wxBitmap *arg1 = 0 ; | |
3117 | wxColour *arg2 = 0 ; | |
3118 | wxMask *result; | |
3119 | wxColour temp2 ; | |
3120 | PyObject * obj0 = 0 ; | |
3121 | PyObject * obj1 = 0 ; | |
3122 | char *kwnames[] = { | |
3123 | (char *) "bitmap",(char *) "colour", NULL | |
3124 | }; | |
3125 | ||
3126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3128 | if (arg1 == NULL) { | |
3129 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3130 | } | |
3131 | { | |
3132 | arg2 = &temp2; | |
3133 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3134 | } | |
3135 | { | |
3136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3137 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3138 | ||
3139 | wxPyEndAllowThreads(__tstate); | |
3140 | if (PyErr_Occurred()) SWIG_fail; | |
3141 | } | |
3142 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3143 | return resultobj; | |
3144 | fail: | |
3145 | return NULL; | |
3146 | } | |
3147 | ||
3148 | ||
3149 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3150 | PyObject *obj; | |
3151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3152 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3153 | Py_INCREF(obj); | |
3154 | return Py_BuildValue((char *)""); | |
3155 | } | |
3156 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3157 | PyObject *resultobj; | |
3158 | wxString *arg1 = 0 ; | |
f87da722 | 3159 | int arg2 ; |
d14a1e28 RD |
3160 | int arg3 = (int) -1 ; |
3161 | int arg4 = (int) -1 ; | |
3162 | wxIcon *result; | |
e811c8ce | 3163 | bool temp1 = False ; |
d14a1e28 | 3164 | PyObject * obj0 = 0 ; |
994141e6 RD |
3165 | PyObject * obj1 = 0 ; |
3166 | PyObject * obj2 = 0 ; | |
3167 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3168 | char *kwnames[] = { |
f87da722 | 3169 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3170 | }; |
3171 | ||
994141e6 | 3172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3173 | { |
3174 | arg1 = wxString_in_helper(obj0); | |
3175 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3176 | temp1 = True; |
d14a1e28 RD |
3177 | } |
3178 | { | |
994141e6 RD |
3179 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); |
3180 | if (PyErr_Occurred()) SWIG_fail; | |
3181 | } | |
3182 | if (obj2) { | |
3183 | { | |
3184 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | } | |
3187 | } | |
3188 | if (obj3) { | |
3189 | { | |
3190 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3191 | if (PyErr_Occurred()) SWIG_fail; | |
3192 | } | |
3193 | } | |
3194 | { | |
3195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3196 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3197 | ||
3198 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
3199 | if (PyErr_Occurred()) SWIG_fail; |
3200 | } | |
3201 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3202 | { | |
3203 | if (temp1) | |
3204 | delete arg1; | |
3205 | } | |
3206 | return resultobj; | |
3207 | fail: | |
3208 | { | |
3209 | if (temp1) | |
3210 | delete arg1; | |
3211 | } | |
3212 | return NULL; | |
3213 | } | |
3214 | ||
3215 | ||
3216 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3217 | PyObject *resultobj; | |
3218 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3219 | PyObject * obj0 = 0 ; | |
3220 | char *kwnames[] = { | |
3221 | (char *) "self", NULL | |
3222 | }; | |
3223 | ||
3224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3226 | { | |
3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3228 | delete arg1; | |
3229 | ||
3230 | wxPyEndAllowThreads(__tstate); | |
3231 | if (PyErr_Occurred()) SWIG_fail; | |
3232 | } | |
3233 | Py_INCREF(Py_None); resultobj = Py_None; | |
3234 | return resultobj; | |
3235 | fail: | |
3236 | return NULL; | |
3237 | } | |
3238 | ||
3239 | ||
3240 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject *resultobj; | |
3242 | wxIcon *result; | |
3243 | char *kwnames[] = { | |
3244 | NULL | |
3245 | }; | |
3246 | ||
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3248 | { | |
3249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3250 | result = (wxIcon *)new wxIcon(); | |
3251 | ||
3252 | wxPyEndAllowThreads(__tstate); | |
3253 | if (PyErr_Occurred()) SWIG_fail; | |
3254 | } | |
3255 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3256 | return resultobj; | |
3257 | fail: | |
3258 | return NULL; | |
3259 | } | |
3260 | ||
3261 | ||
3262 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3263 | PyObject *resultobj; | |
3264 | wxIconLocation *arg1 = 0 ; | |
3265 | wxIcon *result; | |
3266 | PyObject * obj0 = 0 ; | |
3267 | char *kwnames[] = { | |
3268 | (char *) "loc", NULL | |
3269 | }; | |
3270 | ||
3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3273 | if (arg1 == NULL) { | |
3274 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3275 | } | |
3276 | { | |
3277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3278 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3279 | ||
3280 | wxPyEndAllowThreads(__tstate); | |
3281 | if (PyErr_Occurred()) SWIG_fail; | |
3282 | } | |
3283 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3284 | return resultobj; | |
3285 | fail: | |
3286 | return NULL; | |
3287 | } | |
3288 | ||
3289 | ||
3290 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3291 | PyObject *resultobj; | |
3292 | wxBitmap *arg1 = 0 ; | |
3293 | wxIcon *result; | |
3294 | PyObject * obj0 = 0 ; | |
3295 | char *kwnames[] = { | |
3296 | (char *) "bmp", NULL | |
3297 | }; | |
3298 | ||
3299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3301 | if (arg1 == NULL) { | |
3302 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3303 | } | |
3304 | { | |
3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3306 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3307 | ||
3308 | wxPyEndAllowThreads(__tstate); | |
3309 | if (PyErr_Occurred()) SWIG_fail; | |
3310 | } | |
3311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3312 | return resultobj; | |
3313 | fail: | |
3314 | return NULL; | |
3315 | } | |
3316 | ||
3317 | ||
3318 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3319 | PyObject *resultobj; | |
3320 | PyObject *arg1 = (PyObject *) 0 ; | |
3321 | wxIcon *result; | |
3322 | PyObject * obj0 = 0 ; | |
3323 | char *kwnames[] = { | |
3324 | (char *) "listOfStrings", NULL | |
3325 | }; | |
3326 | ||
3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3328 | arg1 = obj0; | |
3329 | { | |
3330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3331 | result = (wxIcon *)new_wxIcon(arg1); | |
3332 | ||
3333 | wxPyEndAllowThreads(__tstate); | |
3334 | if (PyErr_Occurred()) SWIG_fail; | |
3335 | } | |
3336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3337 | return resultobj; | |
3338 | fail: | |
3339 | return NULL; | |
3340 | } | |
3341 | ||
3342 | ||
3343 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3344 | PyObject *resultobj; | |
3345 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3346 | wxString *arg2 = 0 ; | |
f87da722 | 3347 | int arg3 ; |
d14a1e28 | 3348 | bool result; |
e811c8ce | 3349 | bool temp2 = False ; |
d14a1e28 RD |
3350 | PyObject * obj0 = 0 ; |
3351 | PyObject * obj1 = 0 ; | |
994141e6 | 3352 | PyObject * obj2 = 0 ; |
d14a1e28 | 3353 | char *kwnames[] = { |
f87da722 | 3354 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3355 | }; |
3356 | ||
994141e6 | 3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3359 | { | |
3360 | arg2 = wxString_in_helper(obj1); | |
3361 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3362 | temp2 = True; |
d14a1e28 | 3363 | } |
994141e6 RD |
3364 | { |
3365 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3366 | if (PyErr_Occurred()) SWIG_fail; | |
3367 | } | |
d14a1e28 RD |
3368 | { |
3369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3370 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3371 | |
3372 | wxPyEndAllowThreads(__tstate); | |
3373 | if (PyErr_Occurred()) SWIG_fail; | |
3374 | } | |
4d5c3d91 | 3375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3376 | { |
3377 | if (temp2) | |
3378 | delete arg2; | |
3379 | } | |
3380 | return resultobj; | |
3381 | fail: | |
3382 | { | |
3383 | if (temp2) | |
3384 | delete arg2; | |
3385 | } | |
3386 | return NULL; | |
3387 | } | |
3388 | ||
3389 | ||
3390 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3391 | PyObject *resultobj; | |
3392 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3393 | bool result; | |
3394 | PyObject * obj0 = 0 ; | |
3395 | char *kwnames[] = { | |
3396 | (char *) "self", NULL | |
3397 | }; | |
3398 | ||
3399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3401 | { | |
3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3403 | result = (bool)(arg1)->Ok(); | |
3404 | ||
3405 | wxPyEndAllowThreads(__tstate); | |
3406 | if (PyErr_Occurred()) SWIG_fail; | |
3407 | } | |
4d5c3d91 | 3408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3409 | return resultobj; |
3410 | fail: | |
3411 | return NULL; | |
3412 | } | |
3413 | ||
3414 | ||
3415 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3416 | PyObject *resultobj; | |
3417 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3418 | int result; | |
3419 | PyObject * obj0 = 0 ; | |
3420 | char *kwnames[] = { | |
3421 | (char *) "self", NULL | |
3422 | }; | |
3423 | ||
3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3426 | { | |
3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3428 | result = (int)(arg1)->GetWidth(); | |
3429 | ||
3430 | wxPyEndAllowThreads(__tstate); | |
3431 | if (PyErr_Occurred()) SWIG_fail; | |
3432 | } | |
994141e6 | 3433 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3434 | return resultobj; |
3435 | fail: | |
3436 | return NULL; | |
3437 | } | |
3438 | ||
3439 | ||
3440 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3441 | PyObject *resultobj; | |
3442 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3443 | int result; | |
3444 | PyObject * obj0 = 0 ; | |
3445 | char *kwnames[] = { | |
3446 | (char *) "self", NULL | |
3447 | }; | |
3448 | ||
3449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3451 | { | |
3452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3453 | result = (int)(arg1)->GetHeight(); | |
3454 | ||
3455 | wxPyEndAllowThreads(__tstate); | |
3456 | if (PyErr_Occurred()) SWIG_fail; | |
3457 | } | |
994141e6 | 3458 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3459 | return resultobj; |
3460 | fail: | |
3461 | return NULL; | |
3462 | } | |
3463 | ||
3464 | ||
3465 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3466 | PyObject *resultobj; | |
3467 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3468 | int result; | |
3469 | PyObject * obj0 = 0 ; | |
3470 | char *kwnames[] = { | |
3471 | (char *) "self", NULL | |
3472 | }; | |
3473 | ||
3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3476 | { | |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | result = (int)(arg1)->GetDepth(); | |
3479 | ||
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) SWIG_fail; | |
3482 | } | |
994141e6 | 3483 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3484 | return resultobj; |
3485 | fail: | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject *resultobj; | |
3492 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3493 | int arg2 ; | |
3494 | PyObject * obj0 = 0 ; | |
994141e6 | 3495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3496 | char *kwnames[] = { |
3497 | (char *) "self",(char *) "w", NULL | |
3498 | }; | |
3499 | ||
994141e6 | 3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3502 | { |
3503 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
d14a1e28 RD |
3506 | { |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | (arg1)->SetWidth(arg2); | |
3509 | ||
3510 | wxPyEndAllowThreads(__tstate); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | Py_INCREF(Py_None); resultobj = Py_None; | |
3514 | return resultobj; | |
3515 | fail: | |
3516 | return NULL; | |
3517 | } | |
3518 | ||
3519 | ||
3520 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3521 | PyObject *resultobj; | |
3522 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3523 | int arg2 ; | |
3524 | PyObject * obj0 = 0 ; | |
994141e6 | 3525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3526 | char *kwnames[] = { |
3527 | (char *) "self",(char *) "h", NULL | |
3528 | }; | |
3529 | ||
994141e6 | 3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3532 | { |
3533 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3534 | if (PyErr_Occurred()) SWIG_fail; | |
3535 | } | |
d14a1e28 RD |
3536 | { |
3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3538 | (arg1)->SetHeight(arg2); | |
3539 | ||
3540 | wxPyEndAllowThreads(__tstate); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
3543 | Py_INCREF(Py_None); resultobj = Py_None; | |
3544 | return resultobj; | |
3545 | fail: | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
3550 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3551 | PyObject *resultobj; | |
3552 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3553 | int arg2 ; | |
3554 | PyObject * obj0 = 0 ; | |
994141e6 | 3555 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3556 | char *kwnames[] = { |
3557 | (char *) "self",(char *) "d", NULL | |
3558 | }; | |
3559 | ||
994141e6 | 3560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3562 | { |
3563 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3564 | if (PyErr_Occurred()) SWIG_fail; | |
3565 | } | |
d14a1e28 RD |
3566 | { |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3568 | (arg1)->SetDepth(arg2); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | Py_INCREF(Py_None); resultobj = Py_None; | |
3574 | return resultobj; | |
3575 | fail: | |
3576 | return NULL; | |
3577 | } | |
3578 | ||
3579 | ||
3580 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3581 | PyObject *resultobj; | |
3582 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3583 | wxBitmap *arg2 = 0 ; | |
3584 | PyObject * obj0 = 0 ; | |
3585 | PyObject * obj1 = 0 ; | |
3586 | char *kwnames[] = { | |
3587 | (char *) "self",(char *) "bmp", NULL | |
3588 | }; | |
3589 | ||
3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3592 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3593 | if (arg2 == NULL) { | |
3594 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3595 | } | |
3596 | { | |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3598 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3599 | ||
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | Py_INCREF(Py_None); resultobj = Py_None; | |
3604 | return resultobj; | |
3605 | fail: | |
3606 | return NULL; | |
3607 | } | |
3608 | ||
3609 | ||
3610 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3611 | PyObject *obj; | |
3612 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3613 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3614 | Py_INCREF(obj); | |
3615 | return Py_BuildValue((char *)""); | |
3616 | } | |
3617 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3618 | PyObject *resultobj; | |
3619 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3620 | int arg2 = (int) 0 ; | |
3621 | wxIconLocation *result; | |
7eae615b | 3622 | bool temp1 = False ; |
d14a1e28 | 3623 | PyObject * obj0 = 0 ; |
994141e6 | 3624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3625 | char *kwnames[] = { |
3626 | (char *) "filename",(char *) "num", NULL | |
3627 | }; | |
3628 | ||
994141e6 | 3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3630 | if (obj0) { |
7eae615b RD |
3631 | { |
3632 | arg1 = wxString_in_helper(obj0); | |
3633 | if (arg1 == NULL) SWIG_fail; | |
3634 | temp1 = True; | |
3635 | } | |
d14a1e28 | 3636 | } |
994141e6 RD |
3637 | if (obj1) { |
3638 | { | |
3639 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3640 | if (PyErr_Occurred()) SWIG_fail; | |
3641 | } | |
3642 | } | |
d14a1e28 RD |
3643 | { |
3644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3645 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3646 | ||
3647 | wxPyEndAllowThreads(__tstate); | |
3648 | if (PyErr_Occurred()) SWIG_fail; | |
3649 | } | |
3650 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
7eae615b RD |
3651 | { |
3652 | if (temp1) | |
3653 | delete arg1; | |
3654 | } | |
d14a1e28 RD |
3655 | return resultobj; |
3656 | fail: | |
7eae615b RD |
3657 | { |
3658 | if (temp1) | |
3659 | delete arg1; | |
3660 | } | |
d14a1e28 RD |
3661 | return NULL; |
3662 | } | |
3663 | ||
3664 | ||
3665 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3666 | PyObject *resultobj; | |
3667 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3668 | PyObject * obj0 = 0 ; | |
3669 | char *kwnames[] = { | |
3670 | (char *) "self", NULL | |
3671 | }; | |
3672 | ||
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3675 | { | |
3676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3677 | delete arg1; | |
3678 | ||
3679 | wxPyEndAllowThreads(__tstate); | |
3680 | if (PyErr_Occurred()) SWIG_fail; | |
3681 | } | |
3682 | Py_INCREF(Py_None); resultobj = Py_None; | |
3683 | return resultobj; | |
3684 | fail: | |
3685 | return NULL; | |
3686 | } | |
3687 | ||
3688 | ||
3689 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3690 | PyObject *resultobj; | |
3691 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3692 | bool result; | |
3693 | PyObject * obj0 = 0 ; | |
3694 | char *kwnames[] = { | |
3695 | (char *) "self", NULL | |
3696 | }; | |
3697 | ||
3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3700 | { | |
3701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3702 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3703 | ||
3704 | wxPyEndAllowThreads(__tstate); | |
3705 | if (PyErr_Occurred()) SWIG_fail; | |
3706 | } | |
4d5c3d91 | 3707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3708 | return resultobj; |
3709 | fail: | |
3710 | return NULL; | |
3711 | } | |
3712 | ||
3713 | ||
3714 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3715 | PyObject *resultobj; | |
3716 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3717 | wxString *arg2 = 0 ; | |
e811c8ce | 3718 | bool temp2 = False ; |
d14a1e28 RD |
3719 | PyObject * obj0 = 0 ; |
3720 | PyObject * obj1 = 0 ; | |
3721 | char *kwnames[] = { | |
3722 | (char *) "self",(char *) "filename", NULL | |
3723 | }; | |
3724 | ||
3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3727 | { | |
3728 | arg2 = wxString_in_helper(obj1); | |
3729 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3730 | temp2 = True; |
d14a1e28 RD |
3731 | } |
3732 | { | |
3733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3734 | (arg1)->SetFileName((wxString const &)*arg2); | |
3735 | ||
3736 | wxPyEndAllowThreads(__tstate); | |
3737 | if (PyErr_Occurred()) SWIG_fail; | |
3738 | } | |
3739 | Py_INCREF(Py_None); resultobj = Py_None; | |
3740 | { | |
3741 | if (temp2) | |
3742 | delete arg2; | |
3743 | } | |
3744 | return resultobj; | |
3745 | fail: | |
3746 | { | |
3747 | if (temp2) | |
3748 | delete arg2; | |
3749 | } | |
3750 | return NULL; | |
3751 | } | |
3752 | ||
3753 | ||
3754 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3755 | PyObject *resultobj; | |
3756 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3757 | wxString *result; | |
3758 | PyObject * obj0 = 0 ; | |
3759 | char *kwnames[] = { | |
3760 | (char *) "self", NULL | |
3761 | }; | |
3762 | ||
3763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3765 | { | |
3766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3767 | { | |
3768 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3769 | result = (wxString *) &_result_ref; | |
3770 | } | |
3771 | ||
3772 | wxPyEndAllowThreads(__tstate); | |
3773 | if (PyErr_Occurred()) SWIG_fail; | |
3774 | } | |
cc6dd355 RD |
3775 | { |
3776 | #if wxUSE_UNICODE | |
3777 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3778 | #else | |
3779 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3780 | #endif | |
3781 | } | |
d14a1e28 RD |
3782 | return resultobj; |
3783 | fail: | |
3784 | return NULL; | |
3785 | } | |
3786 | ||
3787 | ||
3788 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3789 | PyObject *resultobj; | |
3790 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3791 | int arg2 ; | |
3792 | PyObject * obj0 = 0 ; | |
994141e6 | 3793 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3794 | char *kwnames[] = { |
3795 | (char *) "self",(char *) "num", NULL | |
3796 | }; | |
3797 | ||
994141e6 | 3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3800 | { |
3801 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3802 | if (PyErr_Occurred()) SWIG_fail; | |
3803 | } | |
d14a1e28 RD |
3804 | { |
3805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3806 | wxIconLocation_SetIndex(arg1,arg2); | |
3807 | ||
3808 | wxPyEndAllowThreads(__tstate); | |
3809 | if (PyErr_Occurred()) SWIG_fail; | |
3810 | } | |
3811 | Py_INCREF(Py_None); resultobj = Py_None; | |
3812 | return resultobj; | |
3813 | fail: | |
3814 | return NULL; | |
3815 | } | |
3816 | ||
3817 | ||
3818 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3819 | PyObject *resultobj; | |
3820 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3821 | int result; | |
3822 | PyObject * obj0 = 0 ; | |
3823 | char *kwnames[] = { | |
3824 | (char *) "self", NULL | |
3825 | }; | |
3826 | ||
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3829 | { | |
3830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3831 | result = (int)wxIconLocation_GetIndex(arg1); | |
3832 | ||
3833 | wxPyEndAllowThreads(__tstate); | |
3834 | if (PyErr_Occurred()) SWIG_fail; | |
3835 | } | |
994141e6 | 3836 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3837 | return resultobj; |
3838 | fail: | |
3839 | return NULL; | |
3840 | } | |
3841 | ||
3842 | ||
3843 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3844 | PyObject *obj; | |
3845 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3846 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3847 | Py_INCREF(obj); | |
3848 | return Py_BuildValue((char *)""); | |
3849 | } | |
3850 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject *resultobj; | |
3852 | wxIconBundle *result; | |
3853 | char *kwnames[] = { | |
3854 | NULL | |
3855 | }; | |
3856 | ||
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (wxIconBundle *)new wxIconBundle(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
3865 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3866 | return resultobj; | |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
3872 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject *resultobj; | |
3874 | wxString *arg1 = 0 ; | |
3875 | long arg2 ; | |
3876 | wxIconBundle *result; | |
e811c8ce | 3877 | bool temp1 = False ; |
d14a1e28 | 3878 | PyObject * obj0 = 0 ; |
994141e6 | 3879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3880 | char *kwnames[] = { |
3881 | (char *) "file",(char *) "type", NULL | |
3882 | }; | |
3883 | ||
994141e6 | 3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3885 | { |
3886 | arg1 = wxString_in_helper(obj0); | |
3887 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3888 | temp1 = True; |
d14a1e28 | 3889 | } |
994141e6 RD |
3890 | { |
3891 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
d14a1e28 RD |
3894 | { |
3895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3896 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3897 | ||
3898 | wxPyEndAllowThreads(__tstate); | |
3899 | if (PyErr_Occurred()) SWIG_fail; | |
3900 | } | |
3901 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3902 | { | |
3903 | if (temp1) | |
3904 | delete arg1; | |
3905 | } | |
3906 | return resultobj; | |
3907 | fail: | |
3908 | { | |
3909 | if (temp1) | |
3910 | delete arg1; | |
3911 | } | |
3912 | return NULL; | |
3913 | } | |
3914 | ||
3915 | ||
3916 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3917 | PyObject *resultobj; | |
3918 | wxIcon *arg1 = 0 ; | |
3919 | wxIconBundle *result; | |
3920 | PyObject * obj0 = 0 ; | |
3921 | char *kwnames[] = { | |
3922 | (char *) "icon", NULL | |
3923 | }; | |
3924 | ||
3925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3927 | if (arg1 == NULL) { | |
3928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3929 | } | |
3930 | { | |
3931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3932 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3933 | ||
3934 | wxPyEndAllowThreads(__tstate); | |
3935 | if (PyErr_Occurred()) SWIG_fail; | |
3936 | } | |
3937 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3938 | return resultobj; | |
3939 | fail: | |
3940 | return NULL; | |
3941 | } | |
3942 | ||
3943 | ||
3944 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3945 | PyObject *resultobj; | |
3946 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3947 | PyObject * obj0 = 0 ; | |
3948 | char *kwnames[] = { | |
3949 | (char *) "self", NULL | |
3950 | }; | |
3951 | ||
3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3954 | { | |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3956 | delete arg1; | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
3961 | Py_INCREF(Py_None); resultobj = Py_None; | |
3962 | return resultobj; | |
3963 | fail: | |
3964 | return NULL; | |
3965 | } | |
3966 | ||
3967 | ||
3968 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3969 | PyObject *resultobj; | |
3970 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3971 | wxIcon *arg2 = 0 ; | |
3972 | PyObject * obj0 = 0 ; | |
3973 | PyObject * obj1 = 0 ; | |
3974 | char *kwnames[] = { | |
3975 | (char *) "self",(char *) "icon", NULL | |
3976 | }; | |
3977 | ||
3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3980 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3981 | if (arg2 == NULL) { | |
3982 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3983 | } | |
3984 | { | |
3985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3986 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
3987 | ||
3988 | wxPyEndAllowThreads(__tstate); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
3991 | Py_INCREF(Py_None); resultobj = Py_None; | |
3992 | return resultobj; | |
3993 | fail: | |
3994 | return NULL; | |
3995 | } | |
3996 | ||
3997 | ||
3998 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3999 | PyObject *resultobj; | |
4000 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4001 | wxString *arg2 = 0 ; | |
4002 | long arg3 ; | |
e811c8ce | 4003 | bool temp2 = False ; |
d14a1e28 RD |
4004 | PyObject * obj0 = 0 ; |
4005 | PyObject * obj1 = 0 ; | |
994141e6 | 4006 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4007 | char *kwnames[] = { |
4008 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4009 | }; | |
4010 | ||
994141e6 | 4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4013 | { | |
4014 | arg2 = wxString_in_helper(obj1); | |
4015 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4016 | temp2 = True; |
d14a1e28 | 4017 | } |
994141e6 RD |
4018 | { |
4019 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
d14a1e28 RD |
4022 | { |
4023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4024 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4025 | ||
4026 | wxPyEndAllowThreads(__tstate); | |
4027 | if (PyErr_Occurred()) SWIG_fail; | |
4028 | } | |
4029 | Py_INCREF(Py_None); resultobj = Py_None; | |
4030 | { | |
4031 | if (temp2) | |
4032 | delete arg2; | |
4033 | } | |
4034 | return resultobj; | |
4035 | fail: | |
4036 | { | |
4037 | if (temp2) | |
4038 | delete arg2; | |
4039 | } | |
4040 | return NULL; | |
4041 | } | |
4042 | ||
4043 | ||
4044 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4045 | PyObject *resultobj; | |
4046 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4047 | wxSize *arg2 = 0 ; | |
4048 | wxIcon *result; | |
4049 | wxSize temp2 ; | |
4050 | PyObject * obj0 = 0 ; | |
4051 | PyObject * obj1 = 0 ; | |
4052 | char *kwnames[] = { | |
4053 | (char *) "self",(char *) "size", NULL | |
4054 | }; | |
4055 | ||
4056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4058 | { | |
4059 | arg2 = &temp2; | |
4060 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4061 | } | |
4062 | { | |
4063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4064 | { | |
4065 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4066 | result = (wxIcon *) &_result_ref; | |
4067 | } | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4080 | PyObject *obj; | |
4081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4082 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4083 | Py_INCREF(obj); | |
4084 | return Py_BuildValue((char *)""); | |
4085 | } | |
4086 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4087 | PyObject *resultobj; | |
4088 | wxString *arg1 = (wxString *) 0 ; | |
4089 | long arg2 ; | |
4090 | int arg3 = (int) 0 ; | |
4091 | int arg4 = (int) 0 ; | |
4092 | wxCursor *result; | |
7eae615b | 4093 | bool temp1 = False ; |
d14a1e28 | 4094 | PyObject * obj0 = 0 ; |
994141e6 RD |
4095 | PyObject * obj1 = 0 ; |
4096 | PyObject * obj2 = 0 ; | |
4097 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4098 | char *kwnames[] = { |
4099 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4100 | }; | |
4101 | ||
994141e6 | 4102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4103 | { |
4104 | arg1 = wxString_in_helper(obj0); | |
4105 | if (arg1 == NULL) SWIG_fail; | |
4106 | temp1 = True; | |
4107 | } | |
994141e6 RD |
4108 | { |
4109 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4110 | if (PyErr_Occurred()) SWIG_fail; | |
4111 | } | |
4112 | if (obj2) { | |
4113 | { | |
4114 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4115 | if (PyErr_Occurred()) SWIG_fail; | |
4116 | } | |
4117 | } | |
4118 | if (obj3) { | |
4119 | { | |
4120 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
4122 | } | |
4123 | } | |
d14a1e28 RD |
4124 | { |
4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4126 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4127 | ||
4128 | wxPyEndAllowThreads(__tstate); | |
4129 | if (PyErr_Occurred()) SWIG_fail; | |
4130 | } | |
4131 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
7eae615b RD |
4132 | { |
4133 | if (temp1) | |
4134 | delete arg1; | |
4135 | } | |
d14a1e28 RD |
4136 | return resultobj; |
4137 | fail: | |
7eae615b RD |
4138 | { |
4139 | if (temp1) | |
4140 | delete arg1; | |
4141 | } | |
d14a1e28 RD |
4142 | return NULL; |
4143 | } | |
4144 | ||
4145 | ||
4146 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4147 | PyObject *resultobj; | |
4148 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4149 | PyObject * obj0 = 0 ; | |
4150 | char *kwnames[] = { | |
4151 | (char *) "self", NULL | |
4152 | }; | |
4153 | ||
4154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4156 | { | |
4157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4158 | delete arg1; | |
4159 | ||
4160 | wxPyEndAllowThreads(__tstate); | |
4161 | if (PyErr_Occurred()) SWIG_fail; | |
4162 | } | |
4163 | Py_INCREF(Py_None); resultobj = Py_None; | |
4164 | return resultobj; | |
4165 | fail: | |
4166 | return NULL; | |
4167 | } | |
4168 | ||
4169 | ||
4170 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4171 | PyObject *resultobj; | |
4172 | int arg1 ; | |
4173 | wxCursor *result; | |
994141e6 | 4174 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4175 | char *kwnames[] = { |
4176 | (char *) "id", NULL | |
4177 | }; | |
4178 | ||
994141e6 RD |
4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
4180 | { | |
4181 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4182 | if (PyErr_Occurred()) SWIG_fail; | |
4183 | } | |
d14a1e28 RD |
4184 | { |
4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4186 | result = (wxCursor *)new wxCursor(arg1); | |
4187 | ||
4188 | wxPyEndAllowThreads(__tstate); | |
4189 | if (PyErr_Occurred()) SWIG_fail; | |
4190 | } | |
4191 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4192 | return resultobj; | |
4193 | fail: | |
4194 | return NULL; | |
4195 | } | |
4196 | ||
4197 | ||
4198 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4199 | PyObject *resultobj; | |
4200 | wxImage *arg1 = 0 ; | |
4201 | wxCursor *result; | |
4202 | PyObject * obj0 = 0 ; | |
4203 | char *kwnames[] = { | |
4204 | (char *) "image", NULL | |
4205 | }; | |
4206 | ||
4207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4209 | if (arg1 == NULL) { | |
4210 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4211 | } | |
4212 | { | |
4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4214 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4215 | ||
4216 | wxPyEndAllowThreads(__tstate); | |
4217 | if (PyErr_Occurred()) SWIG_fail; | |
4218 | } | |
4219 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4220 | return resultobj; | |
4221 | fail: | |
4222 | return NULL; | |
4223 | } | |
4224 | ||
4225 | ||
4226 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4227 | PyObject *resultobj; | |
4228 | PyObject *arg1 = (PyObject *) 0 ; | |
4229 | int arg2 ; | |
4230 | int arg3 ; | |
4231 | int arg4 = (int) -1 ; | |
4232 | int arg5 = (int) -1 ; | |
4233 | PyObject *arg6 = (PyObject *) 0 ; | |
4234 | wxCursor *result; | |
4235 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4236 | PyObject * obj1 = 0 ; |
4237 | PyObject * obj2 = 0 ; | |
4238 | PyObject * obj3 = 0 ; | |
4239 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4240 | PyObject * obj5 = 0 ; |
4241 | char *kwnames[] = { | |
4242 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4243 | }; | |
4244 | ||
994141e6 | 4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4246 | arg1 = obj0; |
994141e6 RD |
4247 | { |
4248 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4249 | if (PyErr_Occurred()) SWIG_fail; | |
4250 | } | |
4251 | { | |
4252 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4253 | if (PyErr_Occurred()) SWIG_fail; | |
4254 | } | |
4255 | if (obj3) { | |
4256 | { | |
4257 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4258 | if (PyErr_Occurred()) SWIG_fail; | |
4259 | } | |
4260 | } | |
4261 | if (obj4) { | |
4262 | { | |
4263 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4264 | if (PyErr_Occurred()) SWIG_fail; | |
4265 | } | |
4266 | } | |
d14a1e28 RD |
4267 | if (obj5) { |
4268 | arg6 = obj5; | |
4269 | } | |
4270 | { | |
4271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4272 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4273 | ||
4274 | wxPyEndAllowThreads(__tstate); | |
4275 | if (PyErr_Occurred()) SWIG_fail; | |
4276 | } | |
4277 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4278 | return resultobj; | |
4279 | fail: | |
4280 | return NULL; | |
4281 | } | |
4282 | ||
4283 | ||
4284 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4285 | PyObject *resultobj; | |
4286 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4287 | bool result; | |
4288 | PyObject * obj0 = 0 ; | |
4289 | char *kwnames[] = { | |
4290 | (char *) "self", NULL | |
4291 | }; | |
4292 | ||
4293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4295 | { | |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4297 | result = (bool)(arg1)->Ok(); | |
4298 | ||
4299 | wxPyEndAllowThreads(__tstate); | |
4300 | if (PyErr_Occurred()) SWIG_fail; | |
4301 | } | |
4d5c3d91 | 4302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4303 | return resultobj; |
4304 | fail: | |
4305 | return NULL; | |
4306 | } | |
4307 | ||
4308 | ||
4309 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4310 | PyObject *obj; | |
4311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4312 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4313 | Py_INCREF(obj); | |
4314 | return Py_BuildValue((char *)""); | |
4315 | } | |
4316 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject *resultobj; | |
e811c8ce RD |
4318 | int arg1 = (int) 0 ; |
4319 | int arg2 = (int) 0 ; | |
4320 | int arg3 = (int) 0 ; | |
4321 | int arg4 = (int) 0 ; | |
d14a1e28 | 4322 | wxRegion *result; |
994141e6 RD |
4323 | PyObject * obj0 = 0 ; |
4324 | PyObject * obj1 = 0 ; | |
4325 | PyObject * obj2 = 0 ; | |
4326 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4327 | char *kwnames[] = { |
4328 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4329 | }; | |
4330 | ||
994141e6 RD |
4331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4332 | if (obj0) { | |
4333 | { | |
4334 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4335 | if (PyErr_Occurred()) SWIG_fail; | |
4336 | } | |
4337 | } | |
4338 | if (obj1) { | |
4339 | { | |
4340 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
4343 | } | |
4344 | if (obj2) { | |
4345 | { | |
4346 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4347 | if (PyErr_Occurred()) SWIG_fail; | |
4348 | } | |
4349 | } | |
4350 | if (obj3) { | |
4351 | { | |
4352 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4353 | if (PyErr_Occurred()) SWIG_fail; | |
4354 | } | |
4355 | } | |
d14a1e28 RD |
4356 | { |
4357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4358 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4359 | ||
4360 | wxPyEndAllowThreads(__tstate); | |
4361 | if (PyErr_Occurred()) SWIG_fail; | |
4362 | } | |
4363 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4364 | return resultobj; | |
4365 | fail: | |
4366 | return NULL; | |
4367 | } | |
4368 | ||
4369 | ||
4370 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4371 | PyObject *resultobj; | |
4372 | wxBitmap *arg1 = 0 ; | |
4373 | wxColour const &arg2_defvalue = wxNullColour ; | |
4374 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4375 | int arg3 = (int) 0 ; | |
4376 | wxRegion *result; | |
4377 | wxColour temp2 ; | |
4378 | PyObject * obj0 = 0 ; | |
4379 | PyObject * obj1 = 0 ; | |
994141e6 | 4380 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4381 | char *kwnames[] = { |
4382 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4383 | }; | |
4384 | ||
994141e6 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4387 | if (arg1 == NULL) { | |
4388 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4389 | } | |
4390 | if (obj1) { | |
4391 | { | |
4392 | arg2 = &temp2; | |
4393 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4394 | } | |
4395 | } | |
994141e6 RD |
4396 | if (obj2) { |
4397 | { | |
4398 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4399 | if (PyErr_Occurred()) SWIG_fail; | |
4400 | } | |
4401 | } | |
d14a1e28 RD |
4402 | { |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4409 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4410 | return resultobj; | |
4411 | fail: | |
4412 | return NULL; | |
4413 | } | |
4414 | ||
4415 | ||
4416 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4417 | PyObject *resultobj; | |
4418 | int arg1 ; | |
4419 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4420 | int arg3 = (int) wxWINDING_RULE ; | |
4421 | wxRegion *result; | |
4422 | PyObject * obj0 = 0 ; | |
994141e6 | 4423 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4424 | char *kwnames[] = { |
4425 | (char *) "points",(char *) "fillStyle", NULL | |
4426 | }; | |
4427 | ||
994141e6 | 4428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4429 | { |
4430 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4431 | if (arg2 == NULL) SWIG_fail; | |
4432 | } | |
994141e6 RD |
4433 | if (obj1) { |
4434 | { | |
4435 | arg3 = (int) SWIG_PyObj_AsInt(obj1); | |
4436 | if (PyErr_Occurred()) SWIG_fail; | |
4437 | } | |
4438 | } | |
d14a1e28 RD |
4439 | { |
4440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4441 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4442 | ||
4443 | wxPyEndAllowThreads(__tstate); | |
4444 | if (PyErr_Occurred()) SWIG_fail; | |
4445 | } | |
4446 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4447 | { | |
4448 | if (arg2) delete [] arg2; | |
4449 | } | |
4450 | return resultobj; | |
4451 | fail: | |
4452 | { | |
4453 | if (arg2) delete [] arg2; | |
4454 | } | |
4455 | return NULL; | |
4456 | } | |
4457 | ||
4458 | ||
4459 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4460 | PyObject *resultobj; | |
4461 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4462 | PyObject * obj0 = 0 ; | |
4463 | char *kwnames[] = { | |
4464 | (char *) "self", NULL | |
4465 | }; | |
4466 | ||
4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4469 | { | |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4471 | delete arg1; | |
4472 | ||
4473 | wxPyEndAllowThreads(__tstate); | |
4474 | if (PyErr_Occurred()) SWIG_fail; | |
4475 | } | |
4476 | Py_INCREF(Py_None); resultobj = Py_None; | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
4483 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4484 | PyObject *resultobj; | |
4485 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4486 | PyObject * obj0 = 0 ; | |
4487 | char *kwnames[] = { | |
4488 | (char *) "self", NULL | |
4489 | }; | |
4490 | ||
4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4493 | { | |
4494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4495 | (arg1)->Clear(); | |
4496 | ||
4497 | wxPyEndAllowThreads(__tstate); | |
4498 | if (PyErr_Occurred()) SWIG_fail; | |
4499 | } | |
4500 | Py_INCREF(Py_None); resultobj = Py_None; | |
4501 | return resultobj; | |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
4507 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject *resultobj; | |
4509 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4510 | int arg2 ; |
4511 | int arg3 ; | |
d14a1e28 RD |
4512 | bool result; |
4513 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4514 | PyObject * obj1 = 0 ; |
4515 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4516 | char *kwnames[] = { |
4517 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4518 | }; | |
4519 | ||
994141e6 | 4520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4522 | { |
4523 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
4526 | { | |
4527 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4528 | if (PyErr_Occurred()) SWIG_fail; | |
4529 | } | |
d14a1e28 RD |
4530 | { |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4533 | ||
4534 | wxPyEndAllowThreads(__tstate); | |
4535 | if (PyErr_Occurred()) SWIG_fail; | |
4536 | } | |
4d5c3d91 | 4537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4538 | return resultobj; |
4539 | fail: | |
4540 | return NULL; | |
4541 | } | |
4542 | ||
4543 | ||
4544 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4545 | PyObject *resultobj; | |
4546 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4547 | int arg2 ; |
4548 | int arg3 ; | |
d14a1e28 RD |
4549 | int result; |
4550 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4551 | PyObject * obj1 = 0 ; |
4552 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4553 | char *kwnames[] = { |
4554 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4555 | }; | |
4556 | ||
994141e6 | 4557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4559 | { |
4560 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4561 | if (PyErr_Occurred()) SWIG_fail; | |
4562 | } | |
4563 | { | |
4564 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
4566 | } | |
d14a1e28 RD |
4567 | { |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | result = (int)(arg1)->Contains(arg2,arg3); | |
4570 | ||
4571 | wxPyEndAllowThreads(__tstate); | |
4572 | if (PyErr_Occurred()) SWIG_fail; | |
4573 | } | |
994141e6 | 4574 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4575 | return resultobj; |
4576 | fail: | |
4577 | return NULL; | |
4578 | } | |
4579 | ||
4580 | ||
4581 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4582 | PyObject *resultobj; | |
4583 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4584 | wxPoint *arg2 = 0 ; | |
4585 | int result; | |
4586 | wxPoint temp2 ; | |
4587 | PyObject * obj0 = 0 ; | |
4588 | PyObject * obj1 = 0 ; | |
4589 | char *kwnames[] = { | |
4590 | (char *) "self",(char *) "pt", NULL | |
4591 | }; | |
4592 | ||
4593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4595 | { | |
4596 | arg2 = &temp2; | |
4597 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4598 | } | |
4599 | { | |
4600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4601 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4602 | ||
4603 | wxPyEndAllowThreads(__tstate); | |
4604 | if (PyErr_Occurred()) SWIG_fail; | |
4605 | } | |
994141e6 | 4606 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4607 | return resultobj; |
4608 | fail: | |
4609 | return NULL; | |
4610 | } | |
4611 | ||
4612 | ||
4613 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4614 | PyObject *resultobj; | |
4615 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4616 | wxRect *arg2 = 0 ; | |
4617 | int result; | |
4618 | wxRect temp2 ; | |
4619 | PyObject * obj0 = 0 ; | |
4620 | PyObject * obj1 = 0 ; | |
4621 | char *kwnames[] = { | |
4622 | (char *) "self",(char *) "rect", NULL | |
4623 | }; | |
4624 | ||
4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4627 | { | |
4628 | arg2 = &temp2; | |
4629 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4630 | } | |
4631 | { | |
4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4633 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4634 | ||
4635 | wxPyEndAllowThreads(__tstate); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
994141e6 | 4638 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4639 | return resultobj; |
4640 | fail: | |
4641 | return NULL; | |
4642 | } | |
4643 | ||
4644 | ||
4645 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4646 | PyObject *resultobj; | |
4647 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4648 | int arg2 ; |
4649 | int arg3 ; | |
4650 | int arg4 ; | |
4651 | int arg5 ; | |
d14a1e28 RD |
4652 | int result; |
4653 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4654 | PyObject * obj1 = 0 ; |
4655 | PyObject * obj2 = 0 ; | |
4656 | PyObject * obj3 = 0 ; | |
4657 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4658 | char *kwnames[] = { |
4659 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4660 | }; | |
4661 | ||
994141e6 | 4662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4664 | { |
4665 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4666 | if (PyErr_Occurred()) SWIG_fail; | |
4667 | } | |
4668 | { | |
4669 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4670 | if (PyErr_Occurred()) SWIG_fail; | |
4671 | } | |
4672 | { | |
4673 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4674 | if (PyErr_Occurred()) SWIG_fail; | |
4675 | } | |
4676 | { | |
4677 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4678 | if (PyErr_Occurred()) SWIG_fail; | |
4679 | } | |
d14a1e28 RD |
4680 | { |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
994141e6 | 4687 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4688 | return resultobj; |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
4694 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject *resultobj; | |
4696 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4697 | wxRect result; | |
4698 | PyObject * obj0 = 0 ; | |
4699 | char *kwnames[] = { | |
4700 | (char *) "self", NULL | |
4701 | }; | |
4702 | ||
4703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4705 | { | |
4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4707 | result = (arg1)->GetBox(); | |
4708 | ||
4709 | wxPyEndAllowThreads(__tstate); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | { | |
4713 | wxRect * resultptr; | |
4714 | resultptr = new wxRect((wxRect &) result); | |
4715 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4716 | } | |
4717 | return resultobj; | |
4718 | fail: | |
4719 | return NULL; | |
4720 | } | |
4721 | ||
4722 | ||
4723 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4724 | PyObject *resultobj; | |
4725 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4726 | int arg2 ; |
4727 | int arg3 ; | |
4728 | int arg4 ; | |
4729 | int arg5 ; | |
d14a1e28 RD |
4730 | bool result; |
4731 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4732 | PyObject * obj1 = 0 ; |
4733 | PyObject * obj2 = 0 ; | |
4734 | PyObject * obj3 = 0 ; | |
4735 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4736 | char *kwnames[] = { |
4737 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4738 | }; | |
4739 | ||
994141e6 | 4740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4742 | { |
4743 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4744 | if (PyErr_Occurred()) SWIG_fail; | |
4745 | } | |
4746 | { | |
4747 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4748 | if (PyErr_Occurred()) SWIG_fail; | |
4749 | } | |
4750 | { | |
4751 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4752 | if (PyErr_Occurred()) SWIG_fail; | |
4753 | } | |
4754 | { | |
4755 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
4757 | } | |
d14a1e28 RD |
4758 | { |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4d5c3d91 | 4765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4766 | return resultobj; |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
4772 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4773 | PyObject *resultobj; | |
4774 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4775 | wxRect *arg2 = 0 ; | |
4776 | bool result; | |
4777 | wxRect temp2 ; | |
4778 | PyObject * obj0 = 0 ; | |
4779 | PyObject * obj1 = 0 ; | |
4780 | char *kwnames[] = { | |
4781 | (char *) "self",(char *) "rect", NULL | |
4782 | }; | |
4783 | ||
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4786 | { | |
4787 | arg2 = &temp2; | |
4788 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4789 | } | |
4790 | { | |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4792 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4793 | ||
4794 | wxPyEndAllowThreads(__tstate); | |
4795 | if (PyErr_Occurred()) SWIG_fail; | |
4796 | } | |
4d5c3d91 | 4797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4798 | return resultobj; |
4799 | fail: | |
4800 | return NULL; | |
4801 | } | |
4802 | ||
4803 | ||
4804 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4805 | PyObject *resultobj; | |
4806 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4807 | wxRegion *arg2 = 0 ; | |
4808 | bool result; | |
4809 | PyObject * obj0 = 0 ; | |
4810 | PyObject * obj1 = 0 ; | |
4811 | char *kwnames[] = { | |
4812 | (char *) "self",(char *) "region", NULL | |
4813 | }; | |
4814 | ||
4815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4817 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4818 | if (arg2 == NULL) { | |
4819 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4820 | } | |
4821 | { | |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4823 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4d5c3d91 | 4828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4829 | return resultobj; |
4830 | fail: | |
4831 | return NULL; | |
4832 | } | |
4833 | ||
4834 | ||
4835 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4836 | PyObject *resultobj; | |
4837 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4838 | bool result; | |
4839 | PyObject * obj0 = 0 ; | |
4840 | char *kwnames[] = { | |
4841 | (char *) "self", NULL | |
4842 | }; | |
4843 | ||
4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4846 | { | |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4848 | result = (bool)(arg1)->IsEmpty(); | |
4849 | ||
4850 | wxPyEndAllowThreads(__tstate); | |
4851 | if (PyErr_Occurred()) SWIG_fail; | |
4852 | } | |
4d5c3d91 | 4853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4854 | return resultobj; |
4855 | fail: | |
4856 | return NULL; | |
4857 | } | |
4858 | ||
4859 | ||
4860 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4861 | PyObject *resultobj; | |
4862 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4863 | int arg2 ; |
4864 | int arg3 ; | |
4865 | int arg4 ; | |
4866 | int arg5 ; | |
d14a1e28 RD |
4867 | bool result; |
4868 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4869 | PyObject * obj1 = 0 ; |
4870 | PyObject * obj2 = 0 ; | |
4871 | PyObject * obj3 = 0 ; | |
4872 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4873 | char *kwnames[] = { |
4874 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4875 | }; | |
4876 | ||
994141e6 | 4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4879 | { |
4880 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4881 | if (PyErr_Occurred()) SWIG_fail; | |
4882 | } | |
4883 | { | |
4884 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4885 | if (PyErr_Occurred()) SWIG_fail; | |
4886 | } | |
4887 | { | |
4888 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4889 | if (PyErr_Occurred()) SWIG_fail; | |
4890 | } | |
4891 | { | |
4892 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4893 | if (PyErr_Occurred()) SWIG_fail; | |
4894 | } | |
d14a1e28 RD |
4895 | { |
4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4897 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4898 | ||
4899 | wxPyEndAllowThreads(__tstate); | |
4900 | if (PyErr_Occurred()) SWIG_fail; | |
4901 | } | |
4d5c3d91 | 4902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4903 | return resultobj; |
4904 | fail: | |
4905 | return NULL; | |
4906 | } | |
4907 | ||
4908 | ||
4909 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4910 | PyObject *resultobj; | |
4911 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4912 | wxRect *arg2 = 0 ; | |
4913 | bool result; | |
4914 | wxRect temp2 ; | |
4915 | PyObject * obj0 = 0 ; | |
4916 | PyObject * obj1 = 0 ; | |
4917 | char *kwnames[] = { | |
4918 | (char *) "self",(char *) "rect", NULL | |
4919 | }; | |
4920 | ||
4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4923 | { | |
4924 | arg2 = &temp2; | |
4925 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4926 | } | |
4927 | { | |
4928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4929 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4930 | ||
4931 | wxPyEndAllowThreads(__tstate); | |
4932 | if (PyErr_Occurred()) SWIG_fail; | |
4933 | } | |
4d5c3d91 | 4934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4935 | return resultobj; |
4936 | fail: | |
4937 | return NULL; | |
4938 | } | |
4939 | ||
4940 | ||
4941 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4942 | PyObject *resultobj; | |
4943 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4944 | wxRegion *arg2 = 0 ; | |
4945 | bool result; | |
4946 | PyObject * obj0 = 0 ; | |
4947 | PyObject * obj1 = 0 ; | |
4948 | char *kwnames[] = { | |
4949 | (char *) "self",(char *) "region", NULL | |
4950 | }; | |
4951 | ||
4952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4954 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4955 | if (arg2 == NULL) { | |
4956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4957 | } | |
4958 | { | |
4959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4960 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4961 | ||
4962 | wxPyEndAllowThreads(__tstate); | |
4963 | if (PyErr_Occurred()) SWIG_fail; | |
4964 | } | |
4d5c3d91 | 4965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4966 | return resultobj; |
4967 | fail: | |
4968 | return NULL; | |
4969 | } | |
4970 | ||
4971 | ||
4972 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4973 | PyObject *resultobj; | |
4974 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4975 | int arg2 ; |
4976 | int arg3 ; | |
4977 | int arg4 ; | |
4978 | int arg5 ; | |
d14a1e28 RD |
4979 | bool result; |
4980 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4981 | PyObject * obj1 = 0 ; |
4982 | PyObject * obj2 = 0 ; | |
4983 | PyObject * obj3 = 0 ; | |
4984 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4985 | char *kwnames[] = { |
4986 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4987 | }; | |
4988 | ||
994141e6 | 4989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4991 | { |
4992 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4993 | if (PyErr_Occurred()) SWIG_fail; | |
4994 | } | |
4995 | { | |
4996 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4997 | if (PyErr_Occurred()) SWIG_fail; | |
4998 | } | |
4999 | { | |
5000 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | } | |
5003 | { | |
5004 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5005 | if (PyErr_Occurred()) SWIG_fail; | |
5006 | } | |
d14a1e28 RD |
5007 | { |
5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5009 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5010 | ||
5011 | wxPyEndAllowThreads(__tstate); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
4d5c3d91 | 5014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5015 | return resultobj; |
5016 | fail: | |
5017 | return NULL; | |
5018 | } | |
5019 | ||
5020 | ||
5021 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5022 | PyObject *resultobj; | |
5023 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5024 | wxRect *arg2 = 0 ; | |
5025 | bool result; | |
5026 | wxRect temp2 ; | |
5027 | PyObject * obj0 = 0 ; | |
5028 | PyObject * obj1 = 0 ; | |
5029 | char *kwnames[] = { | |
5030 | (char *) "self",(char *) "rect", NULL | |
5031 | }; | |
5032 | ||
5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5035 | { | |
5036 | arg2 = &temp2; | |
5037 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5038 | } | |
5039 | { | |
5040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5041 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5042 | ||
5043 | wxPyEndAllowThreads(__tstate); | |
5044 | if (PyErr_Occurred()) SWIG_fail; | |
5045 | } | |
4d5c3d91 | 5046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5047 | return resultobj; |
5048 | fail: | |
5049 | return NULL; | |
5050 | } | |
5051 | ||
5052 | ||
5053 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5054 | PyObject *resultobj; | |
5055 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5056 | wxRegion *arg2 = 0 ; | |
5057 | bool result; | |
5058 | PyObject * obj0 = 0 ; | |
5059 | PyObject * obj1 = 0 ; | |
5060 | char *kwnames[] = { | |
5061 | (char *) "self",(char *) "region", NULL | |
5062 | }; | |
5063 | ||
5064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5066 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5067 | if (arg2 == NULL) { | |
5068 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5069 | } | |
5070 | { | |
5071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5072 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5073 | ||
5074 | wxPyEndAllowThreads(__tstate); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
4d5c3d91 | 5077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5078 | return resultobj; |
5079 | fail: | |
5080 | return NULL; | |
5081 | } | |
5082 | ||
5083 | ||
5084 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5085 | PyObject *resultobj; | |
5086 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5087 | int arg2 ; |
5088 | int arg3 ; | |
5089 | int arg4 ; | |
5090 | int arg5 ; | |
d14a1e28 RD |
5091 | bool result; |
5092 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5093 | PyObject * obj1 = 0 ; |
5094 | PyObject * obj2 = 0 ; | |
5095 | PyObject * obj3 = 0 ; | |
5096 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5097 | char *kwnames[] = { |
5098 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5099 | }; | |
5100 | ||
994141e6 | 5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5103 | { |
5104 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | { | |
5108 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | { | |
5112 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5113 | if (PyErr_Occurred()) SWIG_fail; | |
5114 | } | |
5115 | { | |
5116 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5117 | if (PyErr_Occurred()) SWIG_fail; | |
5118 | } | |
d14a1e28 RD |
5119 | { |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5121 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5122 | ||
5123 | wxPyEndAllowThreads(__tstate); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
4d5c3d91 | 5126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5127 | return resultobj; |
5128 | fail: | |
5129 | return NULL; | |
5130 | } | |
5131 | ||
5132 | ||
5133 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject *resultobj; | |
5135 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5136 | wxRect *arg2 = 0 ; | |
5137 | bool result; | |
5138 | wxRect temp2 ; | |
5139 | PyObject * obj0 = 0 ; | |
5140 | PyObject * obj1 = 0 ; | |
5141 | char *kwnames[] = { | |
5142 | (char *) "self",(char *) "rect", NULL | |
5143 | }; | |
5144 | ||
5145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5147 | { | |
5148 | arg2 = &temp2; | |
5149 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5150 | } | |
5151 | { | |
5152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5153 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5154 | ||
5155 | wxPyEndAllowThreads(__tstate); | |
5156 | if (PyErr_Occurred()) SWIG_fail; | |
5157 | } | |
4d5c3d91 | 5158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5159 | return resultobj; |
5160 | fail: | |
5161 | return NULL; | |
5162 | } | |
5163 | ||
5164 | ||
5165 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5166 | PyObject *resultobj; | |
5167 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5168 | wxRegion *arg2 = 0 ; | |
5169 | bool result; | |
5170 | PyObject * obj0 = 0 ; | |
5171 | PyObject * obj1 = 0 ; | |
5172 | char *kwnames[] = { | |
5173 | (char *) "self",(char *) "region", NULL | |
5174 | }; | |
5175 | ||
5176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5179 | if (arg2 == NULL) { | |
5180 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5181 | } | |
5182 | { | |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5185 | ||
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
4d5c3d91 | 5189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5190 | return resultobj; |
5191 | fail: | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
5196 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5197 | PyObject *resultobj; | |
5198 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5199 | SwigValueWrapper< wxBitmap > result; | |
5200 | PyObject * obj0 = 0 ; | |
5201 | char *kwnames[] = { | |
5202 | (char *) "self", NULL | |
5203 | }; | |
5204 | ||
5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5207 | { | |
5208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5209 | result = (arg1)->ConvertToBitmap(); | |
5210 | ||
5211 | wxPyEndAllowThreads(__tstate); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | } | |
5214 | { | |
5215 | wxBitmap * resultptr; | |
5216 | resultptr = new wxBitmap((wxBitmap &) result); | |
5217 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5218 | } | |
5219 | return resultobj; | |
5220 | fail: | |
5221 | return NULL; | |
5222 | } | |
5223 | ||
5224 | ||
5225 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5226 | PyObject *resultobj; | |
5227 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5228 | wxBitmap *arg2 = 0 ; | |
5229 | wxColour const &arg3_defvalue = wxNullColour ; | |
5230 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5231 | int arg4 = (int) 0 ; | |
5232 | bool result; | |
5233 | wxColour temp3 ; | |
5234 | PyObject * obj0 = 0 ; | |
5235 | PyObject * obj1 = 0 ; | |
5236 | PyObject * obj2 = 0 ; | |
994141e6 | 5237 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5238 | char *kwnames[] = { |
5239 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5240 | }; | |
5241 | ||
994141e6 | 5242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5244 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5245 | if (arg2 == NULL) { | |
5246 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5247 | } | |
5248 | if (obj2) { | |
5249 | { | |
5250 | arg3 = &temp3; | |
5251 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5252 | } | |
5253 | } | |
994141e6 RD |
5254 | if (obj3) { |
5255 | { | |
5256 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | } | |
d14a1e28 RD |
5260 | { |
5261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5262 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5263 | ||
5264 | wxPyEndAllowThreads(__tstate); | |
5265 | if (PyErr_Occurred()) SWIG_fail; | |
5266 | } | |
4d5c3d91 | 5267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5268 | return resultobj; |
5269 | fail: | |
5270 | return NULL; | |
5271 | } | |
5272 | ||
5273 | ||
5274 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5275 | PyObject *obj; | |
5276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5277 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5278 | Py_INCREF(obj); | |
5279 | return Py_BuildValue((char *)""); | |
5280 | } | |
5281 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxRegion *arg1 = 0 ; | |
5284 | wxRegionIterator *result; | |
5285 | PyObject * obj0 = 0 ; | |
5286 | char *kwnames[] = { | |
5287 | (char *) "region", NULL | |
5288 | }; | |
5289 | ||
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5292 | if (arg1 == NULL) { | |
5293 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5294 | } | |
5295 | { | |
5296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5297 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5298 | ||
5299 | wxPyEndAllowThreads(__tstate); | |
5300 | if (PyErr_Occurred()) SWIG_fail; | |
5301 | } | |
5302 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5303 | return resultobj; | |
5304 | fail: | |
5305 | return NULL; | |
5306 | } | |
5307 | ||
5308 | ||
5309 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5310 | PyObject *resultobj; | |
5311 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5312 | PyObject * obj0 = 0 ; | |
5313 | char *kwnames[] = { | |
5314 | (char *) "self", NULL | |
5315 | }; | |
5316 | ||
5317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5319 | { | |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5321 | delete arg1; | |
5322 | ||
5323 | wxPyEndAllowThreads(__tstate); | |
5324 | if (PyErr_Occurred()) SWIG_fail; | |
5325 | } | |
5326 | Py_INCREF(Py_None); resultobj = Py_None; | |
5327 | return resultobj; | |
5328 | fail: | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
5333 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5334 | PyObject *resultobj; | |
5335 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5336 | int result; |
d14a1e28 RD |
5337 | PyObject * obj0 = 0 ; |
5338 | char *kwnames[] = { | |
5339 | (char *) "self", NULL | |
5340 | }; | |
5341 | ||
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5344 | { | |
5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5346 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5347 | |
5348 | wxPyEndAllowThreads(__tstate); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
994141e6 | 5351 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5352 | return resultobj; |
5353 | fail: | |
5354 | return NULL; | |
5355 | } | |
5356 | ||
5357 | ||
5358 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5359 | PyObject *resultobj; | |
5360 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5361 | int result; |
d14a1e28 RD |
5362 | PyObject * obj0 = 0 ; |
5363 | char *kwnames[] = { | |
5364 | (char *) "self", NULL | |
5365 | }; | |
5366 | ||
5367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5369 | { | |
5370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5371 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5372 | |
5373 | wxPyEndAllowThreads(__tstate); | |
5374 | if (PyErr_Occurred()) SWIG_fail; | |
5375 | } | |
994141e6 | 5376 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5377 | return resultobj; |
5378 | fail: | |
5379 | return NULL; | |
5380 | } | |
5381 | ||
5382 | ||
5383 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5384 | PyObject *resultobj; | |
5385 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5386 | int result; |
d14a1e28 RD |
5387 | PyObject * obj0 = 0 ; |
5388 | char *kwnames[] = { | |
5389 | (char *) "self", NULL | |
5390 | }; | |
5391 | ||
5392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5394 | { | |
5395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5396 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5397 | |
5398 | wxPyEndAllowThreads(__tstate); | |
5399 | if (PyErr_Occurred()) SWIG_fail; | |
5400 | } | |
994141e6 | 5401 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5402 | return resultobj; |
5403 | fail: | |
5404 | return NULL; | |
5405 | } | |
5406 | ||
5407 | ||
5408 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5409 | PyObject *resultobj; | |
5410 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5411 | int result; |
d14a1e28 RD |
5412 | PyObject * obj0 = 0 ; |
5413 | char *kwnames[] = { | |
5414 | (char *) "self", NULL | |
5415 | }; | |
5416 | ||
5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5419 | { | |
5420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5421 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5422 | |
5423 | wxPyEndAllowThreads(__tstate); | |
5424 | if (PyErr_Occurred()) SWIG_fail; | |
5425 | } | |
994141e6 | 5426 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5427 | return resultobj; |
5428 | fail: | |
5429 | return NULL; | |
5430 | } | |
5431 | ||
5432 | ||
5433 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5434 | PyObject *resultobj; | |
5435 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5436 | int result; |
d14a1e28 RD |
5437 | PyObject * obj0 = 0 ; |
5438 | char *kwnames[] = { | |
5439 | (char *) "self", NULL | |
5440 | }; | |
5441 | ||
5442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5444 | { | |
5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5446 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5447 | |
5448 | wxPyEndAllowThreads(__tstate); | |
5449 | if (PyErr_Occurred()) SWIG_fail; | |
5450 | } | |
994141e6 | 5451 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5452 | return resultobj; |
5453 | fail: | |
5454 | return NULL; | |
5455 | } | |
5456 | ||
5457 | ||
5458 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5459 | PyObject *resultobj; | |
5460 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5461 | int result; |
d14a1e28 RD |
5462 | PyObject * obj0 = 0 ; |
5463 | char *kwnames[] = { | |
5464 | (char *) "self", NULL | |
5465 | }; | |
5466 | ||
5467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5469 | { | |
5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5471 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5472 | |
5473 | wxPyEndAllowThreads(__tstate); | |
5474 | if (PyErr_Occurred()) SWIG_fail; | |
5475 | } | |
994141e6 | 5476 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5477 | return resultobj; |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
5483 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject *resultobj; | |
5485 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5486 | wxRect result; | |
5487 | PyObject * obj0 = 0 ; | |
5488 | char *kwnames[] = { | |
5489 | (char *) "self", NULL | |
5490 | }; | |
5491 | ||
5492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5494 | { | |
5495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5496 | result = (arg1)->GetRect(); | |
5497 | ||
5498 | wxPyEndAllowThreads(__tstate); | |
5499 | if (PyErr_Occurred()) SWIG_fail; | |
5500 | } | |
5501 | { | |
5502 | wxRect * resultptr; | |
5503 | resultptr = new wxRect((wxRect &) result); | |
5504 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5505 | } | |
5506 | return resultobj; | |
5507 | fail: | |
5508 | return NULL; | |
5509 | } | |
5510 | ||
5511 | ||
5512 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5513 | PyObject *resultobj; | |
5514 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5515 | bool result; | |
5516 | PyObject * obj0 = 0 ; | |
5517 | char *kwnames[] = { | |
5518 | (char *) "self", NULL | |
5519 | }; | |
5520 | ||
5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5523 | { | |
5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5525 | result = (bool)(arg1)->HaveRects(); | |
5526 | ||
5527 | wxPyEndAllowThreads(__tstate); | |
5528 | if (PyErr_Occurred()) SWIG_fail; | |
5529 | } | |
4d5c3d91 | 5530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5531 | return resultobj; |
5532 | fail: | |
5533 | return NULL; | |
5534 | } | |
5535 | ||
5536 | ||
5537 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5538 | PyObject *resultobj; | |
5539 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5540 | PyObject * obj0 = 0 ; | |
5541 | char *kwnames[] = { | |
5542 | (char *) "self", NULL | |
5543 | }; | |
5544 | ||
5545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | (arg1)->Reset(); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | Py_INCREF(Py_None); resultobj = Py_None; | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject *resultobj; | |
5563 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5564 | PyObject * obj0 = 0 ; | |
5565 | char *kwnames[] = { | |
5566 | (char *) "self", NULL | |
5567 | }; | |
5568 | ||
5569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5571 | { | |
5572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5573 | wxRegionIterator_Next(arg1); | |
5574 | ||
5575 | wxPyEndAllowThreads(__tstate); | |
5576 | if (PyErr_Occurred()) SWIG_fail; | |
5577 | } | |
5578 | Py_INCREF(Py_None); resultobj = Py_None; | |
5579 | return resultobj; | |
5580 | fail: | |
5581 | return NULL; | |
5582 | } | |
5583 | ||
5584 | ||
5585 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5586 | PyObject *resultobj; | |
5587 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5588 | bool result; | |
5589 | PyObject * obj0 = 0 ; | |
5590 | char *kwnames[] = { | |
5591 | (char *) "self", NULL | |
5592 | }; | |
5593 | ||
5594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5596 | { | |
5597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5598 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5599 | ||
5600 | wxPyEndAllowThreads(__tstate); | |
5601 | if (PyErr_Occurred()) SWIG_fail; | |
5602 | } | |
4d5c3d91 | 5603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5604 | return resultobj; |
5605 | fail: | |
5606 | return NULL; | |
5607 | } | |
5608 | ||
5609 | ||
5610 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5611 | PyObject *obj; | |
5612 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5613 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5614 | Py_INCREF(obj); | |
5615 | return Py_BuildValue((char *)""); | |
5616 | } | |
5617 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5618 | PyObject *resultobj; | |
5619 | wxNativeFontInfo *result; | |
5620 | char *kwnames[] = { | |
5621 | NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5625 | { | |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
5632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5633 | return resultobj; | |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
5639 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5640 | PyObject *resultobj; | |
5641 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5642 | PyObject * obj0 = 0 ; | |
5643 | char *kwnames[] = { | |
5644 | (char *) "self", NULL | |
5645 | }; | |
5646 | ||
5647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5649 | { | |
5650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5651 | delete arg1; | |
5652 | ||
5653 | wxPyEndAllowThreads(__tstate); | |
5654 | if (PyErr_Occurred()) SWIG_fail; | |
5655 | } | |
5656 | Py_INCREF(Py_None); resultobj = Py_None; | |
5657 | return resultobj; | |
5658 | fail: | |
5659 | return NULL; | |
5660 | } | |
5661 | ||
5662 | ||
5663 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5664 | PyObject *resultobj; | |
5665 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5666 | PyObject * obj0 = 0 ; | |
5667 | char *kwnames[] = { | |
5668 | (char *) "self", NULL | |
5669 | }; | |
5670 | ||
5671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5673 | { | |
5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5675 | (arg1)->Init(); | |
5676 | ||
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
5680 | Py_INCREF(Py_None); resultobj = Py_None; | |
5681 | return resultobj; | |
5682 | fail: | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
5687 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5688 | PyObject *resultobj; | |
5689 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5690 | wxFont *arg2 = 0 ; | |
5691 | PyObject * obj0 = 0 ; | |
5692 | PyObject * obj1 = 0 ; | |
5693 | char *kwnames[] = { | |
5694 | (char *) "self",(char *) "font", NULL | |
5695 | }; | |
5696 | ||
5697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5699 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5700 | if (arg2 == NULL) { | |
5701 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5702 | } | |
5703 | { | |
5704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5705 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5706 | ||
5707 | wxPyEndAllowThreads(__tstate); | |
5708 | if (PyErr_Occurred()) SWIG_fail; | |
5709 | } | |
5710 | Py_INCREF(Py_None); resultobj = Py_None; | |
5711 | return resultobj; | |
5712 | fail: | |
5713 | return NULL; | |
5714 | } | |
5715 | ||
5716 | ||
5717 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5718 | PyObject *resultobj; | |
5719 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5720 | int result; | |
5721 | PyObject * obj0 = 0 ; | |
5722 | char *kwnames[] = { | |
5723 | (char *) "self", NULL | |
5724 | }; | |
5725 | ||
5726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5728 | { | |
5729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5730 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5731 | ||
5732 | wxPyEndAllowThreads(__tstate); | |
5733 | if (PyErr_Occurred()) SWIG_fail; | |
5734 | } | |
994141e6 | 5735 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5736 | return resultobj; |
5737 | fail: | |
5738 | return NULL; | |
5739 | } | |
5740 | ||
5741 | ||
5742 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject *resultobj; | |
5744 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5745 | int result; | |
5746 | PyObject * obj0 = 0 ; | |
5747 | char *kwnames[] = { | |
5748 | (char *) "self", NULL | |
5749 | }; | |
5750 | ||
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5753 | { | |
5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5755 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5756 | ||
5757 | wxPyEndAllowThreads(__tstate); | |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
5759 | } | |
994141e6 | 5760 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5761 | return resultobj; |
5762 | fail: | |
5763 | return NULL; | |
5764 | } | |
5765 | ||
5766 | ||
5767 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5768 | PyObject *resultobj; | |
5769 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5770 | int result; | |
5771 | PyObject * obj0 = 0 ; | |
5772 | char *kwnames[] = { | |
5773 | (char *) "self", NULL | |
5774 | }; | |
5775 | ||
5776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5778 | { | |
5779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5780 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5781 | ||
5782 | wxPyEndAllowThreads(__tstate); | |
5783 | if (PyErr_Occurred()) SWIG_fail; | |
5784 | } | |
994141e6 | 5785 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5786 | return resultobj; |
5787 | fail: | |
5788 | return NULL; | |
5789 | } | |
5790 | ||
5791 | ||
5792 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5793 | PyObject *resultobj; | |
5794 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5795 | bool result; | |
5796 | PyObject * obj0 = 0 ; | |
5797 | char *kwnames[] = { | |
5798 | (char *) "self", NULL | |
5799 | }; | |
5800 | ||
5801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5803 | { | |
5804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5805 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5806 | ||
5807 | wxPyEndAllowThreads(__tstate); | |
5808 | if (PyErr_Occurred()) SWIG_fail; | |
5809 | } | |
4d5c3d91 | 5810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5811 | return resultobj; |
5812 | fail: | |
5813 | return NULL; | |
5814 | } | |
5815 | ||
5816 | ||
5817 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5818 | PyObject *resultobj; | |
5819 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5820 | wxString result; | |
5821 | PyObject * obj0 = 0 ; | |
5822 | char *kwnames[] = { | |
5823 | (char *) "self", NULL | |
5824 | }; | |
5825 | ||
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5828 | { | |
5829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5830 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5831 | ||
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
5835 | { | |
5836 | #if wxUSE_UNICODE | |
5837 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5838 | #else | |
5839 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5840 | #endif | |
5841 | } | |
5842 | return resultobj; | |
5843 | fail: | |
5844 | return NULL; | |
5845 | } | |
5846 | ||
5847 | ||
5848 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5849 | PyObject *resultobj; | |
5850 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5851 | int result; | |
5852 | PyObject * obj0 = 0 ; | |
5853 | char *kwnames[] = { | |
5854 | (char *) "self", NULL | |
5855 | }; | |
5856 | ||
5857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5859 | { | |
5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5861 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5862 | ||
5863 | wxPyEndAllowThreads(__tstate); | |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
5865 | } | |
994141e6 | 5866 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5867 | return resultobj; |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj; | |
5875 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5876 | int result; | |
5877 | PyObject * obj0 = 0 ; | |
5878 | char *kwnames[] = { | |
5879 | (char *) "self", NULL | |
5880 | }; | |
5881 | ||
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5884 | { | |
5885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5886 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5887 | ||
5888 | wxPyEndAllowThreads(__tstate); | |
5889 | if (PyErr_Occurred()) SWIG_fail; | |
5890 | } | |
994141e6 | 5891 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5892 | return resultobj; |
5893 | fail: | |
5894 | return NULL; | |
5895 | } | |
5896 | ||
5897 | ||
5898 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5899 | PyObject *resultobj; | |
5900 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5901 | int arg2 ; | |
5902 | PyObject * obj0 = 0 ; | |
994141e6 | 5903 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5904 | char *kwnames[] = { |
5905 | (char *) "self",(char *) "pointsize", NULL | |
5906 | }; | |
5907 | ||
994141e6 | 5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5910 | { |
5911 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5912 | if (PyErr_Occurred()) SWIG_fail; | |
5913 | } | |
d14a1e28 RD |
5914 | { |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | (arg1)->SetPointSize(arg2); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | Py_INCREF(Py_None); resultobj = Py_None; | |
5922 | return resultobj; | |
5923 | fail: | |
5924 | return NULL; | |
5925 | } | |
5926 | ||
5927 | ||
5928 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5929 | PyObject *resultobj; | |
5930 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5931 | int arg2 ; | |
5932 | PyObject * obj0 = 0 ; | |
994141e6 | 5933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5934 | char *kwnames[] = { |
5935 | (char *) "self",(char *) "style", NULL | |
5936 | }; | |
5937 | ||
994141e6 | 5938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5940 | { |
5941 | arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1); | |
5942 | if (PyErr_Occurred()) SWIG_fail; | |
5943 | } | |
d14a1e28 RD |
5944 | { |
5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5946 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5947 | ||
5948 | wxPyEndAllowThreads(__tstate); | |
5949 | if (PyErr_Occurred()) SWIG_fail; | |
5950 | } | |
5951 | Py_INCREF(Py_None); resultobj = Py_None; | |
5952 | return resultobj; | |
5953 | fail: | |
5954 | return NULL; | |
5955 | } | |
5956 | ||
5957 | ||
5958 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5959 | PyObject *resultobj; | |
5960 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5961 | int arg2 ; | |
5962 | PyObject * obj0 = 0 ; | |
994141e6 | 5963 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5964 | char *kwnames[] = { |
5965 | (char *) "self",(char *) "weight", NULL | |
5966 | }; | |
5967 | ||
994141e6 | 5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5970 | { |
5971 | arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
d14a1e28 RD |
5974 | { |
5975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5976 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5977 | ||
5978 | wxPyEndAllowThreads(__tstate); | |
5979 | if (PyErr_Occurred()) SWIG_fail; | |
5980 | } | |
5981 | Py_INCREF(Py_None); resultobj = Py_None; | |
5982 | return resultobj; | |
5983 | fail: | |
5984 | return NULL; | |
5985 | } | |
5986 | ||
5987 | ||
5988 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5989 | PyObject *resultobj; | |
5990 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5991 | bool arg2 ; | |
5992 | PyObject * obj0 = 0 ; | |
5993 | PyObject * obj1 = 0 ; | |
5994 | char *kwnames[] = { | |
5995 | (char *) "self",(char *) "underlined", NULL | |
5996 | }; | |
5997 | ||
5998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
5999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 6000 | { |
994141e6 | 6001 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
6002 | if (PyErr_Occurred()) SWIG_fail; |
6003 | } | |
d14a1e28 RD |
6004 | { |
6005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6006 | (arg1)->SetUnderlined(arg2); | |
6007 | ||
6008 | wxPyEndAllowThreads(__tstate); | |
6009 | if (PyErr_Occurred()) SWIG_fail; | |
6010 | } | |
6011 | Py_INCREF(Py_None); resultobj = Py_None; | |
6012 | return resultobj; | |
6013 | fail: | |
6014 | return NULL; | |
6015 | } | |
6016 | ||
6017 | ||
6018 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject *resultobj; | |
6020 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6021 | wxString arg2 ; | |
d14a1e28 RD |
6022 | PyObject * obj0 = 0 ; |
6023 | PyObject * obj1 = 0 ; | |
6024 | char *kwnames[] = { | |
6025 | (char *) "self",(char *) "facename", NULL | |
6026 | }; | |
6027 | ||
6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce RD |
6030 | { |
6031 | wxString* sptr = wxString_in_helper(obj1); | |
6032 | if (sptr == NULL) SWIG_fail; | |
6033 | arg2 = *sptr; | |
6034 | delete sptr; | |
6035 | } | |
d14a1e28 RD |
6036 | { |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | (arg1)->SetFaceName(arg2); | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | Py_INCREF(Py_None); resultobj = Py_None; | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
6050 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject *resultobj; | |
6052 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6053 | int arg2 ; | |
6054 | PyObject * obj0 = 0 ; | |
994141e6 | 6055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6056 | char *kwnames[] = { |
6057 | (char *) "self",(char *) "family", NULL | |
6058 | }; | |
6059 | ||
994141e6 | 6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6062 | { |
6063 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
6064 | if (PyErr_Occurred()) SWIG_fail; | |
6065 | } | |
d14a1e28 RD |
6066 | { |
6067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6068 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6069 | ||
6070 | wxPyEndAllowThreads(__tstate); | |
6071 | if (PyErr_Occurred()) SWIG_fail; | |
6072 | } | |
6073 | Py_INCREF(Py_None); resultobj = Py_None; | |
6074 | return resultobj; | |
6075 | fail: | |
6076 | return NULL; | |
6077 | } | |
6078 | ||
6079 | ||
6080 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject *resultobj; | |
6082 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6083 | int arg2 ; | |
6084 | PyObject * obj0 = 0 ; | |
994141e6 | 6085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6086 | char *kwnames[] = { |
6087 | (char *) "self",(char *) "encoding", NULL | |
6088 | }; | |
6089 | ||
994141e6 | 6090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6092 | { |
6093 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
d14a1e28 RD |
6096 | { |
6097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6098 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6099 | ||
6100 | wxPyEndAllowThreads(__tstate); | |
6101 | if (PyErr_Occurred()) SWIG_fail; | |
6102 | } | |
6103 | Py_INCREF(Py_None); resultobj = Py_None; | |
6104 | return resultobj; | |
6105 | fail: | |
6106 | return NULL; | |
6107 | } | |
6108 | ||
6109 | ||
6110 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6111 | PyObject *resultobj; | |
6112 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6113 | wxString *arg2 = 0 ; | |
6114 | bool result; | |
e811c8ce | 6115 | bool temp2 = False ; |
d14a1e28 RD |
6116 | PyObject * obj0 = 0 ; |
6117 | PyObject * obj1 = 0 ; | |
6118 | char *kwnames[] = { | |
6119 | (char *) "self",(char *) "s", NULL | |
6120 | }; | |
6121 | ||
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6124 | { | |
6125 | arg2 = wxString_in_helper(obj1); | |
6126 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6127 | temp2 = True; |
d14a1e28 RD |
6128 | } |
6129 | { | |
6130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6131 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6132 | ||
6133 | wxPyEndAllowThreads(__tstate); | |
6134 | if (PyErr_Occurred()) SWIG_fail; | |
6135 | } | |
4d5c3d91 | 6136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6137 | { |
6138 | if (temp2) | |
6139 | delete arg2; | |
6140 | } | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | { | |
6144 | if (temp2) | |
6145 | delete arg2; | |
6146 | } | |
6147 | return NULL; | |
6148 | } | |
6149 | ||
6150 | ||
6151 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6152 | PyObject *resultobj; | |
6153 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6154 | wxString result; | |
6155 | PyObject * obj0 = 0 ; | |
6156 | char *kwnames[] = { | |
6157 | (char *) "self", NULL | |
6158 | }; | |
6159 | ||
6160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6162 | { | |
6163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6164 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6165 | ||
6166 | wxPyEndAllowThreads(__tstate); | |
6167 | if (PyErr_Occurred()) SWIG_fail; | |
6168 | } | |
6169 | { | |
6170 | #if wxUSE_UNICODE | |
6171 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6172 | #else | |
6173 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6174 | #endif | |
6175 | } | |
6176 | return resultobj; | |
6177 | fail: | |
6178 | return NULL; | |
6179 | } | |
6180 | ||
6181 | ||
6182 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6183 | PyObject *resultobj; | |
6184 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6185 | wxString result; | |
6186 | PyObject * obj0 = 0 ; | |
6187 | char *kwnames[] = { | |
6188 | (char *) "self", NULL | |
6189 | }; | |
6190 | ||
6191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6193 | { | |
6194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6195 | result = wxNativeFontInfo___str__(arg1); | |
6196 | ||
6197 | wxPyEndAllowThreads(__tstate); | |
6198 | if (PyErr_Occurred()) SWIG_fail; | |
6199 | } | |
6200 | { | |
6201 | #if wxUSE_UNICODE | |
6202 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6203 | #else | |
6204 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6205 | #endif | |
6206 | } | |
6207 | return resultobj; | |
6208 | fail: | |
6209 | return NULL; | |
6210 | } | |
6211 | ||
6212 | ||
6213 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject *resultobj; | |
6215 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6216 | wxString *arg2 = 0 ; | |
6217 | bool result; | |
e811c8ce | 6218 | bool temp2 = False ; |
d14a1e28 RD |
6219 | PyObject * obj0 = 0 ; |
6220 | PyObject * obj1 = 0 ; | |
6221 | char *kwnames[] = { | |
6222 | (char *) "self",(char *) "s", NULL | |
6223 | }; | |
6224 | ||
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6227 | { | |
6228 | arg2 = wxString_in_helper(obj1); | |
6229 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6230 | temp2 = True; |
d14a1e28 RD |
6231 | } |
6232 | { | |
6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6234 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6235 | ||
6236 | wxPyEndAllowThreads(__tstate); | |
6237 | if (PyErr_Occurred()) SWIG_fail; | |
6238 | } | |
4d5c3d91 | 6239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6240 | { |
6241 | if (temp2) | |
6242 | delete arg2; | |
6243 | } | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | { | |
6247 | if (temp2) | |
6248 | delete arg2; | |
6249 | } | |
6250 | return NULL; | |
6251 | } | |
6252 | ||
6253 | ||
6254 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6255 | PyObject *resultobj; | |
6256 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6257 | wxString result; | |
6258 | PyObject * obj0 = 0 ; | |
6259 | char *kwnames[] = { | |
6260 | (char *) "self", NULL | |
6261 | }; | |
6262 | ||
6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6265 | { | |
6266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6267 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6268 | ||
6269 | wxPyEndAllowThreads(__tstate); | |
6270 | if (PyErr_Occurred()) SWIG_fail; | |
6271 | } | |
6272 | { | |
6273 | #if wxUSE_UNICODE | |
6274 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6275 | #else | |
6276 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6277 | #endif | |
6278 | } | |
6279 | return resultobj; | |
6280 | fail: | |
6281 | return NULL; | |
6282 | } | |
6283 | ||
6284 | ||
6285 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6286 | PyObject *obj; | |
6287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6288 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6289 | Py_INCREF(obj); | |
6290 | return Py_BuildValue((char *)""); | |
6291 | } | |
6292 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6293 | PyObject *resultobj; | |
6294 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6295 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 6296 | bool temp2 = False ; |
d14a1e28 RD |
6297 | PyObject * obj0 = 0 ; |
6298 | PyObject * obj1 = 0 ; | |
6299 | char *kwnames[] = { | |
6300 | (char *) "self",(char *) "facename", NULL | |
6301 | }; | |
6302 | ||
6303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
6305 | { |
6306 | arg2 = wxString_in_helper(obj1); | |
6307 | if (arg2 == NULL) SWIG_fail; | |
6308 | temp2 = True; | |
6309 | } | |
196addbf | 6310 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6311 | |
6312 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6313 | { |
6314 | if (temp2) | |
6315 | delete arg2; | |
6316 | } | |
d14a1e28 RD |
6317 | return resultobj; |
6318 | fail: | |
7eae615b RD |
6319 | { |
6320 | if (temp2) | |
6321 | delete arg2; | |
6322 | } | |
d14a1e28 RD |
6323 | return NULL; |
6324 | } | |
6325 | ||
6326 | ||
6327 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6328 | PyObject *resultobj; | |
6329 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6330 | wxString *result; |
d14a1e28 RD |
6331 | PyObject * obj0 = 0 ; |
6332 | char *kwnames[] = { | |
6333 | (char *) "self", NULL | |
6334 | }; | |
6335 | ||
6336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 6338 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6339 | |
6340 | { | |
6341 | #if wxUSE_UNICODE | |
196addbf | 6342 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6343 | #else |
196addbf | 6344 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6345 | #endif |
6346 | } | |
6347 | return resultobj; | |
6348 | fail: | |
6349 | return NULL; | |
6350 | } | |
6351 | ||
6352 | ||
6353 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6354 | PyObject *resultobj; | |
6355 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6356 | int arg2 ; | |
6357 | PyObject * obj0 = 0 ; | |
994141e6 | 6358 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6359 | char *kwnames[] = { |
6360 | (char *) "self",(char *) "encoding", NULL | |
6361 | }; | |
6362 | ||
994141e6 | 6363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6365 | { |
6366 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6367 | if (PyErr_Occurred()) SWIG_fail; | |
6368 | } | |
d14a1e28 RD |
6369 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6370 | ||
6371 | Py_INCREF(Py_None); resultobj = Py_None; | |
6372 | return resultobj; | |
6373 | fail: | |
6374 | return NULL; | |
6375 | } | |
6376 | ||
6377 | ||
6378 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6379 | PyObject *resultobj; | |
6380 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6381 | int result; | |
6382 | PyObject * obj0 = 0 ; | |
6383 | char *kwnames[] = { | |
6384 | (char *) "self", NULL | |
6385 | }; | |
6386 | ||
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6389 | result = (int) ((arg1)->encoding); | |
6390 | ||
994141e6 | 6391 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6392 | return resultobj; |
6393 | fail: | |
6394 | return NULL; | |
6395 | } | |
6396 | ||
6397 | ||
6398 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject *resultobj; | |
6400 | wxNativeEncodingInfo *result; | |
6401 | char *kwnames[] = { | |
6402 | NULL | |
6403 | }; | |
6404 | ||
6405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6406 | { | |
6407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6408 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6409 | ||
6410 | wxPyEndAllowThreads(__tstate); | |
6411 | if (PyErr_Occurred()) SWIG_fail; | |
6412 | } | |
6413 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6414 | return resultobj; | |
6415 | fail: | |
6416 | return NULL; | |
6417 | } | |
6418 | ||
6419 | ||
6420 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6421 | PyObject *resultobj; | |
6422 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6423 | PyObject * obj0 = 0 ; | |
6424 | char *kwnames[] = { | |
6425 | (char *) "self", NULL | |
6426 | }; | |
6427 | ||
6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6430 | { | |
6431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6432 | delete arg1; | |
6433 | ||
6434 | wxPyEndAllowThreads(__tstate); | |
6435 | if (PyErr_Occurred()) SWIG_fail; | |
6436 | } | |
6437 | Py_INCREF(Py_None); resultobj = Py_None; | |
6438 | return resultobj; | |
6439 | fail: | |
6440 | return NULL; | |
6441 | } | |
6442 | ||
6443 | ||
6444 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6445 | PyObject *resultobj; | |
6446 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6447 | wxString *arg2 = 0 ; | |
6448 | bool result; | |
e811c8ce | 6449 | bool temp2 = False ; |
d14a1e28 RD |
6450 | PyObject * obj0 = 0 ; |
6451 | PyObject * obj1 = 0 ; | |
6452 | char *kwnames[] = { | |
6453 | (char *) "self",(char *) "s", NULL | |
6454 | }; | |
6455 | ||
6456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6458 | { | |
6459 | arg2 = wxString_in_helper(obj1); | |
6460 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6461 | temp2 = True; |
d14a1e28 RD |
6462 | } |
6463 | { | |
6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6465 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6466 | ||
6467 | wxPyEndAllowThreads(__tstate); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | } | |
4d5c3d91 | 6470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6471 | { |
6472 | if (temp2) | |
6473 | delete arg2; | |
6474 | } | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | { | |
6478 | if (temp2) | |
6479 | delete arg2; | |
6480 | } | |
6481 | return NULL; | |
6482 | } | |
6483 | ||
6484 | ||
6485 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6486 | PyObject *resultobj; | |
6487 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6488 | wxString result; | |
6489 | PyObject * obj0 = 0 ; | |
6490 | char *kwnames[] = { | |
6491 | (char *) "self", NULL | |
6492 | }; | |
6493 | ||
6494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6496 | { | |
6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6498 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6499 | ||
6500 | wxPyEndAllowThreads(__tstate); | |
6501 | if (PyErr_Occurred()) SWIG_fail; | |
6502 | } | |
6503 | { | |
6504 | #if wxUSE_UNICODE | |
6505 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6506 | #else | |
6507 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6508 | #endif | |
6509 | } | |
6510 | return resultobj; | |
6511 | fail: | |
6512 | return NULL; | |
6513 | } | |
6514 | ||
6515 | ||
6516 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6517 | PyObject *obj; | |
6518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6519 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6520 | Py_INCREF(obj); | |
6521 | return Py_BuildValue((char *)""); | |
6522 | } | |
6523 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject *resultobj; | |
6525 | int arg1 ; | |
6526 | wxNativeEncodingInfo *result; | |
994141e6 | 6527 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6528 | char *kwnames[] = { |
6529 | (char *) "encoding", NULL | |
6530 | }; | |
6531 | ||
994141e6 | 6532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
d14a1e28 | 6533 | { |
994141e6 RD |
6534 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); |
6535 | if (PyErr_Occurred()) SWIG_fail; | |
6536 | } | |
6537 | { | |
6538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6539 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
6540 | |
6541 | wxPyEndAllowThreads(__tstate); | |
6542 | if (PyErr_Occurred()) SWIG_fail; | |
6543 | } | |
6544 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | return NULL; | |
6548 | } | |
6549 | ||
6550 | ||
6551 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6552 | PyObject *resultobj; | |
6553 | wxNativeEncodingInfo *arg1 = 0 ; | |
6554 | bool result; | |
6555 | PyObject * obj0 = 0 ; | |
6556 | char *kwnames[] = { | |
6557 | (char *) "info", NULL | |
6558 | }; | |
6559 | ||
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6562 | if (arg1 == NULL) { | |
6563 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6564 | } | |
6565 | { | |
6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6567 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6568 | ||
6569 | wxPyEndAllowThreads(__tstate); | |
6570 | if (PyErr_Occurred()) SWIG_fail; | |
6571 | } | |
4d5c3d91 | 6572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6573 | return resultobj; |
6574 | fail: | |
6575 | return NULL; | |
6576 | } | |
6577 | ||
6578 | ||
6579 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6580 | PyObject *resultobj; | |
6581 | wxFontMapper *result; | |
6582 | char *kwnames[] = { | |
6583 | NULL | |
6584 | }; | |
6585 | ||
6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6587 | { | |
6588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6589 | result = (wxFontMapper *)new wxFontMapper(); | |
6590 | ||
6591 | wxPyEndAllowThreads(__tstate); | |
6592 | if (PyErr_Occurred()) SWIG_fail; | |
6593 | } | |
6594 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6595 | return resultobj; | |
6596 | fail: | |
6597 | return NULL; | |
6598 | } | |
6599 | ||
6600 | ||
6601 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6602 | PyObject *resultobj; | |
6603 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6604 | PyObject * obj0 = 0 ; | |
6605 | char *kwnames[] = { | |
6606 | (char *) "self", NULL | |
6607 | }; | |
6608 | ||
6609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6611 | { | |
6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6613 | delete arg1; | |
6614 | ||
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
6617 | } | |
6618 | Py_INCREF(Py_None); resultobj = Py_None; | |
6619 | return resultobj; | |
6620 | fail: | |
6621 | return NULL; | |
6622 | } | |
6623 | ||
6624 | ||
6625 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6626 | PyObject *resultobj; | |
6627 | wxFontMapper *result; | |
6628 | char *kwnames[] = { | |
6629 | NULL | |
6630 | }; | |
6631 | ||
6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6633 | { | |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6636 | ||
6637 | wxPyEndAllowThreads(__tstate); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | } | |
6640 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6641 | return resultobj; | |
6642 | fail: | |
6643 | return NULL; | |
6644 | } | |
6645 | ||
6646 | ||
6647 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6648 | PyObject *resultobj; | |
6649 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6650 | wxFontMapper *result; | |
6651 | PyObject * obj0 = 0 ; | |
6652 | char *kwnames[] = { | |
6653 | (char *) "mapper", NULL | |
6654 | }; | |
6655 | ||
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6658 | { | |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6661 | ||
6662 | wxPyEndAllowThreads(__tstate); | |
6663 | if (PyErr_Occurred()) SWIG_fail; | |
6664 | } | |
6665 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6666 | return resultobj; | |
6667 | fail: | |
6668 | return NULL; | |
6669 | } | |
6670 | ||
6671 | ||
6672 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6673 | PyObject *resultobj; | |
6674 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6675 | wxString *arg2 = 0 ; | |
e811c8ce | 6676 | bool arg3 = (bool) True ; |
d14a1e28 | 6677 | int result; |
e811c8ce | 6678 | bool temp2 = False ; |
d14a1e28 RD |
6679 | PyObject * obj0 = 0 ; |
6680 | PyObject * obj1 = 0 ; | |
6681 | PyObject * obj2 = 0 ; | |
6682 | char *kwnames[] = { | |
6683 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6684 | }; | |
6685 | ||
6686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6688 | { | |
6689 | arg2 = wxString_in_helper(obj1); | |
6690 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6691 | temp2 = True; |
d14a1e28 RD |
6692 | } |
6693 | if (obj2) { | |
a41e16b6 | 6694 | { |
994141e6 | 6695 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6696 | if (PyErr_Occurred()) SWIG_fail; |
6697 | } | |
d14a1e28 RD |
6698 | } |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
994141e6 | 6706 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6707 | { |
6708 | if (temp2) | |
6709 | delete arg2; | |
6710 | } | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | { | |
6714 | if (temp2) | |
6715 | delete arg2; | |
6716 | } | |
6717 | return NULL; | |
6718 | } | |
6719 | ||
6720 | ||
6721 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6722 | PyObject *resultobj; | |
6723 | size_t result; | |
6724 | char *kwnames[] = { | |
6725 | NULL | |
6726 | }; | |
6727 | ||
6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6729 | { | |
6730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6731 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6732 | ||
6733 | wxPyEndAllowThreads(__tstate); | |
6734 | if (PyErr_Occurred()) SWIG_fail; | |
6735 | } | |
994141e6 | 6736 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6737 | return resultobj; |
6738 | fail: | |
6739 | return NULL; | |
6740 | } | |
6741 | ||
6742 | ||
6743 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject *resultobj; | |
6745 | size_t arg1 ; | |
6746 | int result; | |
6747 | PyObject * obj0 = 0 ; | |
6748 | char *kwnames[] = { | |
6749 | (char *) "n", NULL | |
6750 | }; | |
6751 | ||
6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
a41e16b6 | 6753 | { |
994141e6 | 6754 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
6755 | if (PyErr_Occurred()) SWIG_fail; |
6756 | } | |
d14a1e28 RD |
6757 | { |
6758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6759 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6760 | ||
6761 | wxPyEndAllowThreads(__tstate); | |
6762 | if (PyErr_Occurred()) SWIG_fail; | |
6763 | } | |
994141e6 | 6764 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6765 | return resultobj; |
6766 | fail: | |
6767 | return NULL; | |
6768 | } | |
6769 | ||
6770 | ||
6771 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6772 | PyObject *resultobj; | |
6773 | int arg1 ; | |
6774 | wxString result; | |
994141e6 | 6775 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6776 | char *kwnames[] = { |
6777 | (char *) "encoding", NULL | |
6778 | }; | |
6779 | ||
994141e6 RD |
6780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
6781 | { | |
6782 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6783 | if (PyErr_Occurred()) SWIG_fail; | |
6784 | } | |
d14a1e28 RD |
6785 | { |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
6792 | { | |
6793 | #if wxUSE_UNICODE | |
6794 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6795 | #else | |
6796 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6797 | #endif | |
6798 | } | |
6799 | return resultobj; | |
6800 | fail: | |
6801 | return NULL; | |
6802 | } | |
6803 | ||
6804 | ||
6805 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6806 | PyObject *resultobj; | |
6807 | int arg1 ; | |
6808 | wxString result; | |
994141e6 | 6809 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6810 | char *kwnames[] = { |
6811 | (char *) "encoding", NULL | |
6812 | }; | |
6813 | ||
994141e6 RD |
6814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
6815 | { | |
6816 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6817 | if (PyErr_Occurred()) SWIG_fail; | |
6818 | } | |
d14a1e28 RD |
6819 | { |
6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6821 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6822 | ||
6823 | wxPyEndAllowThreads(__tstate); | |
6824 | if (PyErr_Occurred()) SWIG_fail; | |
6825 | } | |
6826 | { | |
6827 | #if wxUSE_UNICODE | |
6828 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6829 | #else | |
6830 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6831 | #endif | |
6832 | } | |
6833 | return resultobj; | |
6834 | fail: | |
6835 | return NULL; | |
6836 | } | |
6837 | ||
6838 | ||
6839 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6840 | PyObject *resultobj; | |
6841 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6842 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6843 | PyObject * obj0 = 0 ; | |
6844 | PyObject * obj1 = 0 ; | |
6845 | char *kwnames[] = { | |
6846 | (char *) "self",(char *) "config", NULL | |
6847 | }; | |
6848 | ||
6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6851 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6852 | { | |
6853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6854 | (arg1)->SetConfig(arg2); | |
6855 | ||
6856 | wxPyEndAllowThreads(__tstate); | |
6857 | if (PyErr_Occurred()) SWIG_fail; | |
6858 | } | |
6859 | Py_INCREF(Py_None); resultobj = Py_None; | |
6860 | return resultobj; | |
6861 | fail: | |
6862 | return NULL; | |
6863 | } | |
6864 | ||
6865 | ||
6866 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6867 | PyObject *resultobj; | |
6868 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6869 | wxString *arg2 = 0 ; | |
e811c8ce | 6870 | bool temp2 = False ; |
d14a1e28 RD |
6871 | PyObject * obj0 = 0 ; |
6872 | PyObject * obj1 = 0 ; | |
6873 | char *kwnames[] = { | |
6874 | (char *) "self",(char *) "prefix", NULL | |
6875 | }; | |
6876 | ||
6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6879 | { | |
6880 | arg2 = wxString_in_helper(obj1); | |
6881 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6882 | temp2 = True; |
d14a1e28 RD |
6883 | } |
6884 | { | |
6885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6886 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6887 | ||
6888 | wxPyEndAllowThreads(__tstate); | |
6889 | if (PyErr_Occurred()) SWIG_fail; | |
6890 | } | |
6891 | Py_INCREF(Py_None); resultobj = Py_None; | |
6892 | { | |
6893 | if (temp2) | |
6894 | delete arg2; | |
6895 | } | |
6896 | return resultobj; | |
6897 | fail: | |
6898 | { | |
6899 | if (temp2) | |
6900 | delete arg2; | |
6901 | } | |
6902 | return NULL; | |
6903 | } | |
6904 | ||
6905 | ||
6906 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6907 | PyObject *resultobj; | |
6908 | wxString result; | |
6909 | char *kwnames[] = { | |
6910 | NULL | |
6911 | }; | |
6912 | ||
6913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6914 | { | |
6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6916 | result = wxFontMapper::GetDefaultConfigPath(); | |
6917 | ||
6918 | wxPyEndAllowThreads(__tstate); | |
6919 | if (PyErr_Occurred()) SWIG_fail; | |
6920 | } | |
6921 | { | |
6922 | #if wxUSE_UNICODE | |
6923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6924 | #else | |
6925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6926 | #endif | |
6927 | } | |
6928 | return resultobj; | |
6929 | fail: | |
6930 | return NULL; | |
6931 | } | |
6932 | ||
6933 | ||
6934 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6935 | PyObject *resultobj; | |
6936 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6937 | int arg2 ; | |
6938 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6939 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 6940 | bool arg4 = (bool) True ; |
d14a1e28 | 6941 | PyObject *result; |
e811c8ce | 6942 | bool temp3 = False ; |
d14a1e28 | 6943 | PyObject * obj0 = 0 ; |
994141e6 | 6944 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6945 | PyObject * obj2 = 0 ; |
6946 | PyObject * obj3 = 0 ; | |
6947 | char *kwnames[] = { | |
6948 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6949 | }; | |
6950 | ||
994141e6 | 6951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6953 | { |
6954 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
d14a1e28 RD |
6957 | if (obj2) { |
6958 | { | |
6959 | arg3 = wxString_in_helper(obj2); | |
6960 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6961 | temp3 = True; |
d14a1e28 RD |
6962 | } |
6963 | } | |
6964 | if (obj3) { | |
a41e16b6 | 6965 | { |
994141e6 | 6966 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
6967 | if (PyErr_Occurred()) SWIG_fail; |
6968 | } | |
d14a1e28 RD |
6969 | } |
6970 | { | |
6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6972 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6973 | ||
6974 | wxPyEndAllowThreads(__tstate); | |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
6976 | } | |
6977 | resultobj = result; | |
6978 | { | |
6979 | if (temp3) | |
6980 | delete arg3; | |
6981 | } | |
6982 | return resultobj; | |
6983 | fail: | |
6984 | { | |
6985 | if (temp3) | |
6986 | delete arg3; | |
6987 | } | |
6988 | return NULL; | |
6989 | } | |
6990 | ||
6991 | ||
6992 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6993 | PyObject *resultobj; | |
6994 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6995 | int arg2 ; | |
6996 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6997 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6998 | bool result; | |
e811c8ce | 6999 | bool temp3 = False ; |
d14a1e28 | 7000 | PyObject * obj0 = 0 ; |
994141e6 | 7001 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7002 | PyObject * obj2 = 0 ; |
7003 | char *kwnames[] = { | |
7004 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7005 | }; | |
7006 | ||
994141e6 | 7007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7009 | { |
7010 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7011 | if (PyErr_Occurred()) SWIG_fail; | |
7012 | } | |
d14a1e28 RD |
7013 | if (obj2) { |
7014 | { | |
7015 | arg3 = wxString_in_helper(obj2); | |
7016 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7017 | temp3 = True; |
d14a1e28 RD |
7018 | } |
7019 | } | |
7020 | { | |
7021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7022 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7023 | ||
7024 | wxPyEndAllowThreads(__tstate); | |
7025 | if (PyErr_Occurred()) SWIG_fail; | |
7026 | } | |
4d5c3d91 | 7027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7028 | { |
7029 | if (temp3) | |
7030 | delete arg3; | |
7031 | } | |
7032 | return resultobj; | |
7033 | fail: | |
7034 | { | |
7035 | if (temp3) | |
7036 | delete arg3; | |
7037 | } | |
7038 | return NULL; | |
7039 | } | |
7040 | ||
7041 | ||
7042 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7043 | PyObject *resultobj; | |
7044 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7045 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7046 | PyObject * obj0 = 0 ; | |
7047 | PyObject * obj1 = 0 ; | |
7048 | char *kwnames[] = { | |
7049 | (char *) "self",(char *) "parent", NULL | |
7050 | }; | |
7051 | ||
7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7054 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7055 | { | |
7056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7057 | (arg1)->SetDialogParent(arg2); | |
7058 | ||
7059 | wxPyEndAllowThreads(__tstate); | |
7060 | if (PyErr_Occurred()) SWIG_fail; | |
7061 | } | |
7062 | Py_INCREF(Py_None); resultobj = Py_None; | |
7063 | return resultobj; | |
7064 | fail: | |
7065 | return NULL; | |
7066 | } | |
7067 | ||
7068 | ||
7069 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7070 | PyObject *resultobj; | |
7071 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7072 | wxString *arg2 = 0 ; | |
e811c8ce | 7073 | bool temp2 = False ; |
d14a1e28 RD |
7074 | PyObject * obj0 = 0 ; |
7075 | PyObject * obj1 = 0 ; | |
7076 | char *kwnames[] = { | |
7077 | (char *) "self",(char *) "title", NULL | |
7078 | }; | |
7079 | ||
7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7082 | { | |
7083 | arg2 = wxString_in_helper(obj1); | |
7084 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7085 | temp2 = True; |
d14a1e28 RD |
7086 | } |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | Py_INCREF(Py_None); resultobj = Py_None; | |
7095 | { | |
7096 | if (temp2) | |
7097 | delete arg2; | |
7098 | } | |
7099 | return resultobj; | |
7100 | fail: | |
7101 | { | |
7102 | if (temp2) | |
7103 | delete arg2; | |
7104 | } | |
7105 | return NULL; | |
7106 | } | |
7107 | ||
7108 | ||
7109 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7110 | PyObject *obj; | |
7111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7112 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7113 | Py_INCREF(obj); | |
7114 | return Py_BuildValue((char *)""); | |
7115 | } | |
7116 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7117 | PyObject *resultobj; | |
7118 | int arg1 ; | |
7119 | int arg2 ; | |
7120 | int arg3 ; | |
7121 | int arg4 ; | |
e811c8ce | 7122 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7123 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7124 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7125 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7126 | wxFont *result; | |
e811c8ce | 7127 | bool temp6 = False ; |
994141e6 RD |
7128 | PyObject * obj0 = 0 ; |
7129 | PyObject * obj1 = 0 ; | |
7130 | PyObject * obj2 = 0 ; | |
7131 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7132 | PyObject * obj4 = 0 ; |
7133 | PyObject * obj5 = 0 ; | |
994141e6 | 7134 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7135 | char *kwnames[] = { |
7136 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7137 | }; | |
7138 | ||
994141e6 RD |
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
7140 | { | |
7141 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
7143 | } | |
7144 | { | |
7145 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
7148 | { | |
7149 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
7152 | { | |
7153 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7154 | if (PyErr_Occurred()) SWIG_fail; | |
7155 | } | |
d14a1e28 | 7156 | if (obj4) { |
a41e16b6 | 7157 | { |
994141e6 | 7158 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
7159 | if (PyErr_Occurred()) SWIG_fail; |
7160 | } | |
d14a1e28 RD |
7161 | } |
7162 | if (obj5) { | |
7163 | { | |
7164 | arg6 = wxString_in_helper(obj5); | |
7165 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 7166 | temp6 = True; |
d14a1e28 RD |
7167 | } |
7168 | } | |
994141e6 RD |
7169 | if (obj6) { |
7170 | { | |
7171 | arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | } | |
d14a1e28 RD |
7175 | { |
7176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7177 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7178 | ||
7179 | wxPyEndAllowThreads(__tstate); | |
7180 | if (PyErr_Occurred()) SWIG_fail; | |
7181 | } | |
7182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7183 | { | |
7184 | if (temp6) | |
7185 | delete arg6; | |
7186 | } | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | { | |
7190 | if (temp6) | |
7191 | delete arg6; | |
7192 | } | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
7197 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7198 | PyObject *resultobj; | |
7199 | wxFont *arg1 = (wxFont *) 0 ; | |
7200 | PyObject * obj0 = 0 ; | |
7201 | char *kwnames[] = { | |
7202 | (char *) "self", NULL | |
7203 | }; | |
7204 | ||
7205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7207 | { | |
7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7209 | delete arg1; | |
7210 | ||
7211 | wxPyEndAllowThreads(__tstate); | |
7212 | if (PyErr_Occurred()) SWIG_fail; | |
7213 | } | |
7214 | Py_INCREF(Py_None); resultobj = Py_None; | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj; | |
7223 | wxNativeFontInfo *arg1 = 0 ; | |
7224 | wxFont *result; | |
7225 | PyObject * obj0 = 0 ; | |
7226 | char *kwnames[] = { | |
7227 | (char *) "info", NULL | |
7228 | }; | |
7229 | ||
7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7232 | if (arg1 == NULL) { | |
7233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7234 | } | |
7235 | { | |
7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7237 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7238 | ||
7239 | wxPyEndAllowThreads(__tstate); | |
7240 | if (PyErr_Occurred()) SWIG_fail; | |
7241 | } | |
7242 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7243 | return resultobj; | |
7244 | fail: | |
7245 | return NULL; | |
7246 | } | |
7247 | ||
7248 | ||
7249 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7250 | PyObject *resultobj; | |
7251 | wxString *arg1 = 0 ; | |
7252 | wxFont *result; | |
e811c8ce | 7253 | bool temp1 = False ; |
d14a1e28 RD |
7254 | PyObject * obj0 = 0 ; |
7255 | char *kwnames[] = { | |
7256 | (char *) "info", NULL | |
7257 | }; | |
7258 | ||
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7260 | { | |
7261 | arg1 = wxString_in_helper(obj0); | |
7262 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7263 | temp1 = True; |
d14a1e28 RD |
7264 | } |
7265 | { | |
7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7267 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7268 | ||
7269 | wxPyEndAllowThreads(__tstate); | |
7270 | if (PyErr_Occurred()) SWIG_fail; | |
7271 | } | |
7272 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7273 | { | |
7274 | if (temp1) | |
7275 | delete arg1; | |
7276 | } | |
7277 | return resultobj; | |
7278 | fail: | |
7279 | { | |
7280 | if (temp1) | |
7281 | delete arg1; | |
7282 | } | |
7283 | return NULL; | |
7284 | } | |
7285 | ||
7286 | ||
7287 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7288 | PyObject *resultobj; | |
7289 | int arg1 ; | |
7290 | int arg2 ; | |
7291 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7292 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7293 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7294 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7295 | wxFont *result; | |
e811c8ce | 7296 | bool temp4 = False ; |
994141e6 RD |
7297 | PyObject * obj0 = 0 ; |
7298 | PyObject * obj1 = 0 ; | |
7299 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7300 | PyObject * obj3 = 0 ; |
994141e6 | 7301 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7302 | char *kwnames[] = { |
7303 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7304 | }; | |
7305 | ||
994141e6 RD |
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7307 | { | |
7308 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | { | |
7312 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
7313 | if (PyErr_Occurred()) SWIG_fail; | |
7314 | } | |
7315 | if (obj2) { | |
7316 | { | |
7317 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7318 | if (PyErr_Occurred()) SWIG_fail; | |
7319 | } | |
7320 | } | |
d14a1e28 RD |
7321 | if (obj3) { |
7322 | { | |
7323 | arg4 = wxString_in_helper(obj3); | |
7324 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7325 | temp4 = True; |
d14a1e28 RD |
7326 | } |
7327 | } | |
994141e6 RD |
7328 | if (obj4) { |
7329 | { | |
7330 | arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4); | |
7331 | if (PyErr_Occurred()) SWIG_fail; | |
7332 | } | |
7333 | } | |
d14a1e28 RD |
7334 | { |
7335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7336 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7337 | ||
7338 | wxPyEndAllowThreads(__tstate); | |
7339 | if (PyErr_Occurred()) SWIG_fail; | |
7340 | } | |
7341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7342 | { | |
7343 | if (temp4) | |
7344 | delete arg4; | |
7345 | } | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | { | |
7349 | if (temp4) | |
7350 | delete arg4; | |
7351 | } | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
7356 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject *resultobj; | |
7358 | wxFont *arg1 = (wxFont *) 0 ; | |
7359 | bool result; | |
7360 | PyObject * obj0 = 0 ; | |
7361 | char *kwnames[] = { | |
7362 | (char *) "self", NULL | |
7363 | }; | |
7364 | ||
7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7367 | { | |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
4d5c3d91 | 7374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7375 | return resultobj; |
7376 | fail: | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj; | |
7383 | wxFont *arg1 = (wxFont *) 0 ; | |
7384 | wxFont *arg2 = 0 ; | |
7385 | bool result; | |
7386 | PyObject * obj0 = 0 ; | |
7387 | PyObject * obj1 = 0 ; | |
7388 | char *kwnames[] = { | |
7389 | (char *) "self",(char *) "font", NULL | |
7390 | }; | |
7391 | ||
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7394 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7395 | if (arg2 == NULL) { | |
7396 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7397 | } | |
7398 | { | |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
7401 | ||
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
4d5c3d91 | 7405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7406 | return resultobj; |
7407 | fail: | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
7412 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject *resultobj; | |
7414 | wxFont *arg1 = (wxFont *) 0 ; | |
7415 | wxFont *arg2 = 0 ; | |
7416 | bool result; | |
7417 | PyObject * obj0 = 0 ; | |
7418 | PyObject * obj1 = 0 ; | |
7419 | char *kwnames[] = { | |
7420 | (char *) "self",(char *) "font", NULL | |
7421 | }; | |
7422 | ||
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7425 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7426 | if (arg2 == NULL) { | |
7427 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7428 | } | |
7429 | { | |
7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7431 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
7432 | ||
7433 | wxPyEndAllowThreads(__tstate); | |
7434 | if (PyErr_Occurred()) SWIG_fail; | |
7435 | } | |
4d5c3d91 | 7436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7437 | return resultobj; |
7438 | fail: | |
7439 | return NULL; | |
7440 | } | |
7441 | ||
7442 | ||
7443 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject *resultobj; | |
7445 | wxFont *arg1 = (wxFont *) 0 ; | |
7446 | int result; | |
7447 | PyObject * obj0 = 0 ; | |
7448 | char *kwnames[] = { | |
7449 | (char *) "self", NULL | |
7450 | }; | |
7451 | ||
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7454 | { | |
7455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7456 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7457 | ||
7458 | wxPyEndAllowThreads(__tstate); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
994141e6 | 7461 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7462 | return resultobj; |
7463 | fail: | |
7464 | return NULL; | |
7465 | } | |
7466 | ||
7467 | ||
7468 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7469 | PyObject *resultobj; | |
7470 | wxFont *arg1 = (wxFont *) 0 ; | |
7471 | int result; | |
7472 | PyObject * obj0 = 0 ; | |
7473 | char *kwnames[] = { | |
7474 | (char *) "self", NULL | |
7475 | }; | |
7476 | ||
7477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7482 | ||
7483 | wxPyEndAllowThreads(__tstate); | |
7484 | if (PyErr_Occurred()) SWIG_fail; | |
7485 | } | |
994141e6 | 7486 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7487 | return resultobj; |
7488 | fail: | |
7489 | return NULL; | |
7490 | } | |
7491 | ||
7492 | ||
7493 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7494 | PyObject *resultobj; | |
7495 | wxFont *arg1 = (wxFont *) 0 ; | |
7496 | int result; | |
7497 | PyObject * obj0 = 0 ; | |
7498 | char *kwnames[] = { | |
7499 | (char *) "self", NULL | |
7500 | }; | |
7501 | ||
7502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7504 | { | |
7505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7506 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7507 | ||
7508 | wxPyEndAllowThreads(__tstate); | |
7509 | if (PyErr_Occurred()) SWIG_fail; | |
7510 | } | |
994141e6 | 7511 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7512 | return resultobj; |
7513 | fail: | |
7514 | return NULL; | |
7515 | } | |
7516 | ||
7517 | ||
7518 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7519 | PyObject *resultobj; | |
7520 | wxFont *arg1 = (wxFont *) 0 ; | |
7521 | int result; | |
7522 | PyObject * obj0 = 0 ; | |
7523 | char *kwnames[] = { | |
7524 | (char *) "self", NULL | |
7525 | }; | |
7526 | ||
7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7529 | { | |
7530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7531 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7532 | ||
7533 | wxPyEndAllowThreads(__tstate); | |
7534 | if (PyErr_Occurred()) SWIG_fail; | |
7535 | } | |
994141e6 | 7536 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7537 | return resultobj; |
7538 | fail: | |
7539 | return NULL; | |
7540 | } | |
7541 | ||
7542 | ||
7543 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7544 | PyObject *resultobj; | |
7545 | wxFont *arg1 = (wxFont *) 0 ; | |
7546 | bool result; | |
7547 | PyObject * obj0 = 0 ; | |
7548 | char *kwnames[] = { | |
7549 | (char *) "self", NULL | |
7550 | }; | |
7551 | ||
7552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7554 | { | |
7555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7556 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7557 | ||
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
4d5c3d91 | 7561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7562 | return resultobj; |
7563 | fail: | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject *resultobj; | |
7570 | wxFont *arg1 = (wxFont *) 0 ; | |
7571 | wxString result; | |
7572 | PyObject * obj0 = 0 ; | |
7573 | char *kwnames[] = { | |
7574 | (char *) "self", NULL | |
7575 | }; | |
7576 | ||
7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7579 | { | |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | { | |
7587 | #if wxUSE_UNICODE | |
7588 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7589 | #else | |
7590 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7591 | #endif | |
7592 | } | |
7593 | return resultobj; | |
7594 | fail: | |
7595 | return NULL; | |
7596 | } | |
7597 | ||
7598 | ||
7599 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7600 | PyObject *resultobj; | |
7601 | wxFont *arg1 = (wxFont *) 0 ; | |
7602 | int result; | |
7603 | PyObject * obj0 = 0 ; | |
7604 | char *kwnames[] = { | |
7605 | (char *) "self", NULL | |
7606 | }; | |
7607 | ||
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7610 | { | |
7611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7612 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7613 | ||
7614 | wxPyEndAllowThreads(__tstate); | |
7615 | if (PyErr_Occurred()) SWIG_fail; | |
7616 | } | |
994141e6 | 7617 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7618 | return resultobj; |
7619 | fail: | |
7620 | return NULL; | |
7621 | } | |
7622 | ||
7623 | ||
7624 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7625 | PyObject *resultobj; | |
7626 | wxFont *arg1 = (wxFont *) 0 ; | |
7627 | wxNativeFontInfo *result; | |
7628 | PyObject * obj0 = 0 ; | |
7629 | char *kwnames[] = { | |
7630 | (char *) "self", NULL | |
7631 | }; | |
7632 | ||
7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7635 | { | |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
7642 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
7649 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7650 | PyObject *resultobj; | |
7651 | wxFont *arg1 = (wxFont *) 0 ; | |
7652 | bool result; | |
7653 | PyObject * obj0 = 0 ; | |
7654 | char *kwnames[] = { | |
7655 | (char *) "self", NULL | |
7656 | }; | |
7657 | ||
7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7660 | { | |
7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7662 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7663 | ||
7664 | wxPyEndAllowThreads(__tstate); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | } | |
4d5c3d91 | 7667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7668 | return resultobj; |
7669 | fail: | |
7670 | return NULL; | |
7671 | } | |
7672 | ||
7673 | ||
7674 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7675 | PyObject *resultobj; | |
7676 | wxFont *arg1 = (wxFont *) 0 ; | |
7677 | wxString result; | |
7678 | PyObject * obj0 = 0 ; | |
7679 | char *kwnames[] = { | |
7680 | (char *) "self", NULL | |
7681 | }; | |
7682 | ||
7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7685 | { | |
7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7687 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7688 | ||
7689 | wxPyEndAllowThreads(__tstate); | |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
7691 | } | |
7692 | { | |
7693 | #if wxUSE_UNICODE | |
7694 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7695 | #else | |
7696 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7697 | #endif | |
7698 | } | |
7699 | return resultobj; | |
7700 | fail: | |
7701 | return NULL; | |
7702 | } | |
7703 | ||
7704 | ||
7705 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7706 | PyObject *resultobj; | |
7707 | wxFont *arg1 = (wxFont *) 0 ; | |
7708 | wxString result; | |
7709 | PyObject * obj0 = 0 ; | |
7710 | char *kwnames[] = { | |
7711 | (char *) "self", NULL | |
7712 | }; | |
7713 | ||
7714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7716 | { | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7719 | ||
7720 | wxPyEndAllowThreads(__tstate); | |
7721 | if (PyErr_Occurred()) SWIG_fail; | |
7722 | } | |
7723 | { | |
7724 | #if wxUSE_UNICODE | |
7725 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7726 | #else | |
7727 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7728 | #endif | |
7729 | } | |
7730 | return resultobj; | |
7731 | fail: | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7737 | PyObject *resultobj; | |
7738 | wxFont *arg1 = (wxFont *) 0 ; | |
7739 | int arg2 ; | |
7740 | PyObject * obj0 = 0 ; | |
994141e6 | 7741 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7742 | char *kwnames[] = { |
7743 | (char *) "self",(char *) "pointSize", NULL | |
7744 | }; | |
7745 | ||
994141e6 | 7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7748 | { |
7749 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7750 | if (PyErr_Occurred()) SWIG_fail; | |
7751 | } | |
d14a1e28 RD |
7752 | { |
7753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7754 | (arg1)->SetPointSize(arg2); | |
7755 | ||
7756 | wxPyEndAllowThreads(__tstate); | |
7757 | if (PyErr_Occurred()) SWIG_fail; | |
7758 | } | |
7759 | Py_INCREF(Py_None); resultobj = Py_None; | |
7760 | return resultobj; | |
7761 | fail: | |
7762 | return NULL; | |
7763 | } | |
7764 | ||
7765 | ||
7766 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7767 | PyObject *resultobj; | |
7768 | wxFont *arg1 = (wxFont *) 0 ; | |
7769 | int arg2 ; | |
7770 | PyObject * obj0 = 0 ; | |
994141e6 | 7771 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7772 | char *kwnames[] = { |
7773 | (char *) "self",(char *) "family", NULL | |
7774 | }; | |
7775 | ||
994141e6 | 7776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7778 | { |
7779 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7780 | if (PyErr_Occurred()) SWIG_fail; | |
7781 | } | |
d14a1e28 RD |
7782 | { |
7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7784 | (arg1)->SetFamily(arg2); | |
7785 | ||
7786 | wxPyEndAllowThreads(__tstate); | |
7787 | if (PyErr_Occurred()) SWIG_fail; | |
7788 | } | |
7789 | Py_INCREF(Py_None); resultobj = Py_None; | |
7790 | return resultobj; | |
7791 | fail: | |
7792 | return NULL; | |
7793 | } | |
7794 | ||
7795 | ||
7796 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7797 | PyObject *resultobj; | |
7798 | wxFont *arg1 = (wxFont *) 0 ; | |
7799 | int arg2 ; | |
7800 | PyObject * obj0 = 0 ; | |
994141e6 | 7801 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7802 | char *kwnames[] = { |
7803 | (char *) "self",(char *) "style", NULL | |
7804 | }; | |
7805 | ||
994141e6 | 7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7808 | { |
7809 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7810 | if (PyErr_Occurred()) SWIG_fail; | |
7811 | } | |
d14a1e28 RD |
7812 | { |
7813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7814 | (arg1)->SetStyle(arg2); | |
7815 | ||
7816 | wxPyEndAllowThreads(__tstate); | |
7817 | if (PyErr_Occurred()) SWIG_fail; | |
7818 | } | |
7819 | Py_INCREF(Py_None); resultobj = Py_None; | |
7820 | return resultobj; | |
7821 | fail: | |
7822 | return NULL; | |
7823 | } | |
7824 | ||
7825 | ||
7826 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject *resultobj; | |
7828 | wxFont *arg1 = (wxFont *) 0 ; | |
7829 | int arg2 ; | |
7830 | PyObject * obj0 = 0 ; | |
994141e6 | 7831 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7832 | char *kwnames[] = { |
7833 | (char *) "self",(char *) "weight", NULL | |
7834 | }; | |
7835 | ||
994141e6 | 7836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7838 | { |
7839 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7840 | if (PyErr_Occurred()) SWIG_fail; | |
7841 | } | |
d14a1e28 RD |
7842 | { |
7843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7844 | (arg1)->SetWeight(arg2); | |
7845 | ||
7846 | wxPyEndAllowThreads(__tstate); | |
7847 | if (PyErr_Occurred()) SWIG_fail; | |
7848 | } | |
7849 | Py_INCREF(Py_None); resultobj = Py_None; | |
7850 | return resultobj; | |
7851 | fail: | |
7852 | return NULL; | |
7853 | } | |
7854 | ||
7855 | ||
7856 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7857 | PyObject *resultobj; | |
7858 | wxFont *arg1 = (wxFont *) 0 ; | |
7859 | wxString *arg2 = 0 ; | |
e811c8ce | 7860 | bool temp2 = False ; |
d14a1e28 RD |
7861 | PyObject * obj0 = 0 ; |
7862 | PyObject * obj1 = 0 ; | |
7863 | char *kwnames[] = { | |
7864 | (char *) "self",(char *) "faceName", NULL | |
7865 | }; | |
7866 | ||
7867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7869 | { | |
7870 | arg2 = wxString_in_helper(obj1); | |
7871 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7872 | temp2 = True; |
d14a1e28 RD |
7873 | } |
7874 | { | |
7875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7876 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7877 | ||
7878 | wxPyEndAllowThreads(__tstate); | |
7879 | if (PyErr_Occurred()) SWIG_fail; | |
7880 | } | |
7881 | Py_INCREF(Py_None); resultobj = Py_None; | |
7882 | { | |
7883 | if (temp2) | |
7884 | delete arg2; | |
7885 | } | |
7886 | return resultobj; | |
7887 | fail: | |
7888 | { | |
7889 | if (temp2) | |
7890 | delete arg2; | |
7891 | } | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
7896 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7897 | PyObject *resultobj; | |
7898 | wxFont *arg1 = (wxFont *) 0 ; | |
7899 | bool arg2 ; | |
7900 | PyObject * obj0 = 0 ; | |
7901 | PyObject * obj1 = 0 ; | |
7902 | char *kwnames[] = { | |
7903 | (char *) "self",(char *) "underlined", NULL | |
7904 | }; | |
7905 | ||
7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 7908 | { |
994141e6 | 7909 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
7910 | if (PyErr_Occurred()) SWIG_fail; |
7911 | } | |
d14a1e28 RD |
7912 | { |
7913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7914 | (arg1)->SetUnderlined(arg2); | |
7915 | ||
7916 | wxPyEndAllowThreads(__tstate); | |
7917 | if (PyErr_Occurred()) SWIG_fail; | |
7918 | } | |
7919 | Py_INCREF(Py_None); resultobj = Py_None; | |
7920 | return resultobj; | |
7921 | fail: | |
7922 | return NULL; | |
7923 | } | |
7924 | ||
7925 | ||
7926 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7927 | PyObject *resultobj; | |
7928 | wxFont *arg1 = (wxFont *) 0 ; | |
7929 | int arg2 ; | |
7930 | PyObject * obj0 = 0 ; | |
994141e6 | 7931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7932 | char *kwnames[] = { |
7933 | (char *) "self",(char *) "encoding", NULL | |
7934 | }; | |
7935 | ||
994141e6 | 7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7938 | { |
7939 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7940 | if (PyErr_Occurred()) SWIG_fail; | |
7941 | } | |
d14a1e28 RD |
7942 | { |
7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7944 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7945 | ||
7946 | wxPyEndAllowThreads(__tstate); | |
7947 | if (PyErr_Occurred()) SWIG_fail; | |
7948 | } | |
7949 | Py_INCREF(Py_None); resultobj = Py_None; | |
7950 | return resultobj; | |
7951 | fail: | |
7952 | return NULL; | |
7953 | } | |
7954 | ||
7955 | ||
7956 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7957 | PyObject *resultobj; | |
7958 | wxFont *arg1 = (wxFont *) 0 ; | |
7959 | wxNativeFontInfo *arg2 = 0 ; | |
7960 | PyObject * obj0 = 0 ; | |
7961 | PyObject * obj1 = 0 ; | |
7962 | char *kwnames[] = { | |
7963 | (char *) "self",(char *) "info", NULL | |
7964 | }; | |
7965 | ||
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7968 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7969 | if (arg2 == NULL) { | |
7970 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7971 | } | |
7972 | { | |
7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7974 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7975 | ||
7976 | wxPyEndAllowThreads(__tstate); | |
7977 | if (PyErr_Occurred()) SWIG_fail; | |
7978 | } | |
7979 | Py_INCREF(Py_None); resultobj = Py_None; | |
7980 | return resultobj; | |
7981 | fail: | |
7982 | return NULL; | |
7983 | } | |
7984 | ||
7985 | ||
7986 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7987 | PyObject *resultobj; | |
7988 | wxFont *arg1 = (wxFont *) 0 ; | |
7989 | wxString *arg2 = 0 ; | |
e811c8ce | 7990 | bool temp2 = False ; |
d14a1e28 RD |
7991 | PyObject * obj0 = 0 ; |
7992 | PyObject * obj1 = 0 ; | |
7993 | char *kwnames[] = { | |
7994 | (char *) "self",(char *) "info", NULL | |
7995 | }; | |
7996 | ||
7997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7999 | { | |
8000 | arg2 = wxString_in_helper(obj1); | |
8001 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8002 | temp2 = True; |
d14a1e28 RD |
8003 | } |
8004 | { | |
8005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8006 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8007 | ||
8008 | wxPyEndAllowThreads(__tstate); | |
8009 | if (PyErr_Occurred()) SWIG_fail; | |
8010 | } | |
8011 | Py_INCREF(Py_None); resultobj = Py_None; | |
8012 | { | |
8013 | if (temp2) | |
8014 | delete arg2; | |
8015 | } | |
8016 | return resultobj; | |
8017 | fail: | |
8018 | { | |
8019 | if (temp2) | |
8020 | delete arg2; | |
8021 | } | |
8022 | return NULL; | |
8023 | } | |
8024 | ||
8025 | ||
8026 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8027 | PyObject *resultobj; | |
8028 | wxFont *arg1 = (wxFont *) 0 ; | |
8029 | wxString *arg2 = 0 ; | |
e811c8ce | 8030 | bool temp2 = False ; |
d14a1e28 RD |
8031 | PyObject * obj0 = 0 ; |
8032 | PyObject * obj1 = 0 ; | |
8033 | char *kwnames[] = { | |
8034 | (char *) "self",(char *) "info", NULL | |
8035 | }; | |
8036 | ||
8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8039 | { | |
8040 | arg2 = wxString_in_helper(obj1); | |
8041 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8042 | temp2 = True; |
d14a1e28 RD |
8043 | } |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | Py_INCREF(Py_None); resultobj = Py_None; | |
8052 | { | |
8053 | if (temp2) | |
8054 | delete arg2; | |
8055 | } | |
8056 | return resultobj; | |
8057 | fail: | |
8058 | { | |
8059 | if (temp2) | |
8060 | delete arg2; | |
8061 | } | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
8066 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject *resultobj; | |
8068 | wxFont *arg1 = (wxFont *) 0 ; | |
8069 | wxString result; | |
8070 | PyObject * obj0 = 0 ; | |
8071 | char *kwnames[] = { | |
8072 | (char *) "self", NULL | |
8073 | }; | |
8074 | ||
8075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8077 | { | |
8078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8079 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8080 | ||
8081 | wxPyEndAllowThreads(__tstate); | |
8082 | if (PyErr_Occurred()) SWIG_fail; | |
8083 | } | |
8084 | { | |
8085 | #if wxUSE_UNICODE | |
8086 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8087 | #else | |
8088 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8089 | #endif | |
8090 | } | |
8091 | return resultobj; | |
8092 | fail: | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
8097 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject *resultobj; | |
8099 | wxFont *arg1 = (wxFont *) 0 ; | |
8100 | wxString result; | |
8101 | PyObject * obj0 = 0 ; | |
8102 | char *kwnames[] = { | |
8103 | (char *) "self", NULL | |
8104 | }; | |
8105 | ||
8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8108 | { | |
8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8110 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8111 | ||
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
8115 | { | |
8116 | #if wxUSE_UNICODE | |
8117 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8118 | #else | |
8119 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8120 | #endif | |
8121 | } | |
8122 | return resultobj; | |
8123 | fail: | |
8124 | return NULL; | |
8125 | } | |
8126 | ||
8127 | ||
8128 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8129 | PyObject *resultobj; | |
8130 | wxFont *arg1 = (wxFont *) 0 ; | |
8131 | wxString result; | |
8132 | PyObject * obj0 = 0 ; | |
8133 | char *kwnames[] = { | |
8134 | (char *) "self", NULL | |
8135 | }; | |
8136 | ||
8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8139 | { | |
8140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8141 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8142 | ||
8143 | wxPyEndAllowThreads(__tstate); | |
8144 | if (PyErr_Occurred()) SWIG_fail; | |
8145 | } | |
8146 | { | |
8147 | #if wxUSE_UNICODE | |
8148 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8149 | #else | |
8150 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8151 | #endif | |
8152 | } | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | return NULL; | |
8156 | } | |
8157 | ||
8158 | ||
8159 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8160 | PyObject *resultobj; | |
8161 | wxFont *arg1 = (wxFont *) 0 ; | |
e811c8ce | 8162 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8163 | PyObject * obj0 = 0 ; |
8164 | PyObject * obj1 = 0 ; | |
8165 | char *kwnames[] = { | |
8166 | (char *) "self",(char *) "no", NULL | |
8167 | }; | |
8168 | ||
8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8171 | if (obj1) { | |
a41e16b6 | 8172 | { |
994141e6 | 8173 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
8174 | if (PyErr_Occurred()) SWIG_fail; |
8175 | } | |
d14a1e28 RD |
8176 | } |
8177 | { | |
8178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8179 | (arg1)->SetNoAntiAliasing(arg2); | |
8180 | ||
8181 | wxPyEndAllowThreads(__tstate); | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | } | |
8184 | Py_INCREF(Py_None); resultobj = Py_None; | |
8185 | return resultobj; | |
8186 | fail: | |
8187 | return NULL; | |
8188 | } | |
8189 | ||
8190 | ||
8191 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject *resultobj; | |
8193 | wxFont *arg1 = (wxFont *) 0 ; | |
8194 | bool result; | |
8195 | PyObject * obj0 = 0 ; | |
8196 | char *kwnames[] = { | |
8197 | (char *) "self", NULL | |
8198 | }; | |
8199 | ||
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8202 | { | |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8204 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
8207 | if (PyErr_Occurred()) SWIG_fail; | |
8208 | } | |
4d5c3d91 | 8209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8210 | return resultobj; |
8211 | fail: | |
8212 | return NULL; | |
8213 | } | |
8214 | ||
8215 | ||
8216 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8217 | PyObject *resultobj; | |
8218 | int result; | |
8219 | char *kwnames[] = { | |
8220 | NULL | |
8221 | }; | |
8222 | ||
8223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8224 | { | |
8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8226 | result = (int)wxFont::GetDefaultEncoding(); | |
8227 | ||
8228 | wxPyEndAllowThreads(__tstate); | |
8229 | if (PyErr_Occurred()) SWIG_fail; | |
8230 | } | |
994141e6 | 8231 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8232 | return resultobj; |
8233 | fail: | |
8234 | return NULL; | |
8235 | } | |
8236 | ||
8237 | ||
8238 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8239 | PyObject *resultobj; | |
8240 | int arg1 ; | |
994141e6 | 8241 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8242 | char *kwnames[] = { |
8243 | (char *) "encoding", NULL | |
8244 | }; | |
8245 | ||
994141e6 RD |
8246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
8247 | { | |
8248 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
8249 | if (PyErr_Occurred()) SWIG_fail; | |
8250 | } | |
d14a1e28 RD |
8251 | { |
8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8253 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8254 | ||
8255 | wxPyEndAllowThreads(__tstate); | |
8256 | if (PyErr_Occurred()) SWIG_fail; | |
8257 | } | |
8258 | Py_INCREF(Py_None); resultobj = Py_None; | |
8259 | return resultobj; | |
8260 | fail: | |
8261 | return NULL; | |
8262 | } | |
8263 | ||
8264 | ||
8265 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8266 | PyObject *obj; | |
8267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8268 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8269 | Py_INCREF(obj); | |
8270 | return Py_BuildValue((char *)""); | |
8271 | } | |
8272 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8273 | PyObject *resultobj; | |
8274 | wxPyFontEnumerator *result; | |
8275 | char *kwnames[] = { | |
8276 | NULL | |
8277 | }; | |
8278 | ||
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8280 | { | |
8281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8282 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8283 | ||
8284 | wxPyEndAllowThreads(__tstate); | |
8285 | if (PyErr_Occurred()) SWIG_fail; | |
8286 | } | |
8287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8288 | return resultobj; | |
8289 | fail: | |
8290 | return NULL; | |
8291 | } | |
8292 | ||
8293 | ||
8294 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject *resultobj; | |
8296 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8297 | PyObject * obj0 = 0 ; | |
8298 | char *kwnames[] = { | |
8299 | (char *) "self", NULL | |
8300 | }; | |
8301 | ||
8302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8304 | { | |
8305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8306 | delete arg1; | |
8307 | ||
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
8311 | Py_INCREF(Py_None); resultobj = Py_None; | |
8312 | return resultobj; | |
8313 | fail: | |
8314 | return NULL; | |
8315 | } | |
8316 | ||
8317 | ||
8318 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8319 | PyObject *resultobj; | |
8320 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8321 | PyObject *arg2 = (PyObject *) 0 ; | |
8322 | PyObject *arg3 = (PyObject *) 0 ; | |
8323 | bool arg4 ; | |
8324 | PyObject * obj0 = 0 ; | |
8325 | PyObject * obj1 = 0 ; | |
8326 | PyObject * obj2 = 0 ; | |
8327 | PyObject * obj3 = 0 ; | |
8328 | char *kwnames[] = { | |
8329 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8330 | }; | |
8331 | ||
8332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8334 | arg2 = obj1; | |
8335 | arg3 = obj2; | |
a41e16b6 | 8336 | { |
994141e6 | 8337 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
8338 | if (PyErr_Occurred()) SWIG_fail; |
8339 | } | |
d14a1e28 RD |
8340 | { |
8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8342 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8343 | ||
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) SWIG_fail; | |
8346 | } | |
8347 | Py_INCREF(Py_None); resultobj = Py_None; | |
8348 | return resultobj; | |
8349 | fail: | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj; | |
8356 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8357 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
e811c8ce | 8358 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8359 | bool result; |
8360 | PyObject * obj0 = 0 ; | |
994141e6 | 8361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8362 | PyObject * obj2 = 0 ; |
8363 | char *kwnames[] = { | |
8364 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8365 | }; | |
8366 | ||
994141e6 | 8367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8369 | if (obj1) { |
8370 | { | |
8371 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8372 | if (PyErr_Occurred()) SWIG_fail; | |
8373 | } | |
8374 | } | |
d14a1e28 | 8375 | if (obj2) { |
a41e16b6 | 8376 | { |
994141e6 | 8377 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
8378 | if (PyErr_Occurred()) SWIG_fail; |
8379 | } | |
d14a1e28 RD |
8380 | } |
8381 | { | |
8382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8383 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8384 | ||
8385 | wxPyEndAllowThreads(__tstate); | |
8386 | if (PyErr_Occurred()) SWIG_fail; | |
8387 | } | |
4d5c3d91 | 8388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8389 | return resultobj; |
8390 | fail: | |
8391 | return NULL; | |
8392 | } | |
8393 | ||
8394 | ||
8395 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8396 | PyObject *resultobj; | |
8397 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8398 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8399 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8400 | bool result; | |
e811c8ce | 8401 | bool temp2 = False ; |
d14a1e28 RD |
8402 | PyObject * obj0 = 0 ; |
8403 | PyObject * obj1 = 0 ; | |
8404 | char *kwnames[] = { | |
8405 | (char *) "self",(char *) "facename", NULL | |
8406 | }; | |
8407 | ||
8408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8410 | if (obj1) { | |
8411 | { | |
8412 | arg2 = wxString_in_helper(obj1); | |
8413 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8414 | temp2 = True; |
d14a1e28 RD |
8415 | } |
8416 | } | |
8417 | { | |
8418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8419 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8420 | ||
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
4d5c3d91 | 8424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8425 | { |
8426 | if (temp2) | |
8427 | delete arg2; | |
8428 | } | |
8429 | return resultobj; | |
8430 | fail: | |
8431 | { | |
8432 | if (temp2) | |
8433 | delete arg2; | |
8434 | } | |
8435 | return NULL; | |
8436 | } | |
8437 | ||
8438 | ||
8439 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8440 | PyObject *resultobj; | |
8441 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8442 | PyObject *result; | |
8443 | PyObject * obj0 = 0 ; | |
8444 | char *kwnames[] = { | |
8445 | (char *) "self", NULL | |
8446 | }; | |
8447 | ||
8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8450 | { | |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8453 | ||
8454 | wxPyEndAllowThreads(__tstate); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | resultobj = result; | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8465 | PyObject *resultobj; | |
8466 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8467 | PyObject *result; | |
8468 | PyObject * obj0 = 0 ; | |
8469 | char *kwnames[] = { | |
8470 | (char *) "self", NULL | |
8471 | }; | |
8472 | ||
8473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8475 | { | |
8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8477 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8478 | ||
8479 | wxPyEndAllowThreads(__tstate); | |
8480 | if (PyErr_Occurred()) SWIG_fail; | |
8481 | } | |
8482 | resultobj = result; | |
8483 | return resultobj; | |
8484 | fail: | |
8485 | return NULL; | |
8486 | } | |
8487 | ||
8488 | ||
8489 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8490 | PyObject *obj; | |
8491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8492 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8493 | Py_INCREF(obj); | |
8494 | return Py_BuildValue((char *)""); | |
8495 | } | |
8496 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8497 | PyObject *resultobj; | |
8498 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8499 | int arg2 ; | |
8500 | PyObject * obj0 = 0 ; | |
994141e6 | 8501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8502 | char *kwnames[] = { |
8503 | (char *) "self",(char *) "Language", NULL | |
8504 | }; | |
8505 | ||
994141e6 | 8506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8508 | { |
8509 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | } | |
d14a1e28 RD |
8512 | if (arg1) (arg1)->Language = arg2; |
8513 | ||
8514 | Py_INCREF(Py_None); resultobj = Py_None; | |
8515 | return resultobj; | |
8516 | fail: | |
8517 | return NULL; | |
8518 | } | |
8519 | ||
8520 | ||
8521 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8522 | PyObject *resultobj; | |
8523 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8524 | int result; | |
8525 | PyObject * obj0 = 0 ; | |
8526 | char *kwnames[] = { | |
8527 | (char *) "self", NULL | |
8528 | }; | |
8529 | ||
8530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8532 | result = (int) ((arg1)->Language); | |
8533 | ||
994141e6 | 8534 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8535 | return resultobj; |
8536 | fail: | |
8537 | return NULL; | |
8538 | } | |
8539 | ||
8540 | ||
8541 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8542 | PyObject *resultobj; | |
8543 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8544 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8545 | bool temp2 = False ; |
d14a1e28 RD |
8546 | PyObject * obj0 = 0 ; |
8547 | PyObject * obj1 = 0 ; | |
8548 | char *kwnames[] = { | |
8549 | (char *) "self",(char *) "CanonicalName", NULL | |
8550 | }; | |
8551 | ||
8552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8554 | { |
8555 | arg2 = wxString_in_helper(obj1); | |
8556 | if (arg2 == NULL) SWIG_fail; | |
8557 | temp2 = True; | |
8558 | } | |
196addbf | 8559 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8560 | |
8561 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8562 | { |
8563 | if (temp2) | |
8564 | delete arg2; | |
8565 | } | |
d14a1e28 RD |
8566 | return resultobj; |
8567 | fail: | |
7eae615b RD |
8568 | { |
8569 | if (temp2) | |
8570 | delete arg2; | |
8571 | } | |
d14a1e28 RD |
8572 | return NULL; |
8573 | } | |
8574 | ||
8575 | ||
8576 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8577 | PyObject *resultobj; | |
8578 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8579 | wxString *result; |
d14a1e28 RD |
8580 | PyObject * obj0 = 0 ; |
8581 | char *kwnames[] = { | |
8582 | (char *) "self", NULL | |
8583 | }; | |
8584 | ||
8585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8587 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8588 | |
8589 | { | |
8590 | #if wxUSE_UNICODE | |
196addbf | 8591 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8592 | #else |
196addbf | 8593 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8594 | #endif |
8595 | } | |
8596 | return resultobj; | |
8597 | fail: | |
8598 | return NULL; | |
8599 | } | |
8600 | ||
8601 | ||
8602 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8603 | PyObject *resultobj; | |
8604 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8605 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8606 | bool temp2 = False ; |
d14a1e28 RD |
8607 | PyObject * obj0 = 0 ; |
8608 | PyObject * obj1 = 0 ; | |
8609 | char *kwnames[] = { | |
8610 | (char *) "self",(char *) "Description", NULL | |
8611 | }; | |
8612 | ||
8613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8615 | { |
8616 | arg2 = wxString_in_helper(obj1); | |
8617 | if (arg2 == NULL) SWIG_fail; | |
8618 | temp2 = True; | |
8619 | } | |
196addbf | 8620 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8621 | |
8622 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8623 | { |
8624 | if (temp2) | |
8625 | delete arg2; | |
8626 | } | |
d14a1e28 RD |
8627 | return resultobj; |
8628 | fail: | |
7eae615b RD |
8629 | { |
8630 | if (temp2) | |
8631 | delete arg2; | |
8632 | } | |
d14a1e28 RD |
8633 | return NULL; |
8634 | } | |
8635 | ||
8636 | ||
8637 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8638 | PyObject *resultobj; | |
8639 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8640 | wxString *result; |
d14a1e28 RD |
8641 | PyObject * obj0 = 0 ; |
8642 | char *kwnames[] = { | |
8643 | (char *) "self", NULL | |
8644 | }; | |
8645 | ||
8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8648 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8649 | |
8650 | { | |
8651 | #if wxUSE_UNICODE | |
196addbf | 8652 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8653 | #else |
196addbf | 8654 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8655 | #endif |
8656 | } | |
8657 | return resultobj; | |
8658 | fail: | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
8663 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8664 | PyObject *obj; | |
8665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8666 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8667 | Py_INCREF(obj); | |
8668 | return Py_BuildValue((char *)""); | |
8669 | } | |
8670 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj; | |
8672 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8673 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8674 | wxLocale *result; | |
994141e6 RD |
8675 | PyObject * obj0 = 0 ; |
8676 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8677 | char *kwnames[] = { |
8678 | (char *) "language",(char *) "flags", NULL | |
8679 | }; | |
8680 | ||
994141e6 RD |
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
8682 | if (obj0) { | |
8683 | { | |
8684 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | } | |
8688 | if (obj1) { | |
8689 | { | |
8690 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8691 | if (PyErr_Occurred()) SWIG_fail; | |
8692 | } | |
8693 | } | |
d14a1e28 RD |
8694 | { |
8695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8696 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8697 | ||
8698 | wxPyEndAllowThreads(__tstate); | |
8699 | if (PyErr_Occurred()) SWIG_fail; | |
8700 | } | |
8701 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8702 | return resultobj; | |
8703 | fail: | |
8704 | return NULL; | |
8705 | } | |
8706 | ||
8707 | ||
8708 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8709 | PyObject *resultobj; | |
8710 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8711 | PyObject * obj0 = 0 ; | |
8712 | char *kwnames[] = { | |
8713 | (char *) "self", NULL | |
8714 | }; | |
8715 | ||
8716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8718 | { | |
8719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8720 | delete arg1; | |
8721 | ||
8722 | wxPyEndAllowThreads(__tstate); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
8725 | Py_INCREF(Py_None); resultobj = Py_None; | |
8726 | return resultobj; | |
8727 | fail: | |
8728 | return NULL; | |
8729 | } | |
8730 | ||
8731 | ||
8732 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8733 | PyObject *resultobj; | |
8734 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8735 | wxString *arg2 = 0 ; | |
8736 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8737 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8738 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8739 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
e811c8ce RD |
8740 | bool arg5 = (bool) True ; |
8741 | bool arg6 = (bool) False ; | |
d14a1e28 | 8742 | bool result; |
e811c8ce RD |
8743 | bool temp2 = False ; |
8744 | bool temp3 = False ; | |
8745 | bool temp4 = False ; | |
d14a1e28 RD |
8746 | PyObject * obj0 = 0 ; |
8747 | PyObject * obj1 = 0 ; | |
8748 | PyObject * obj2 = 0 ; | |
8749 | PyObject * obj3 = 0 ; | |
8750 | PyObject * obj4 = 0 ; | |
8751 | PyObject * obj5 = 0 ; | |
8752 | char *kwnames[] = { | |
8753 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8754 | }; | |
8755 | ||
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8758 | { | |
8759 | arg2 = wxString_in_helper(obj1); | |
8760 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8761 | temp2 = True; |
d14a1e28 RD |
8762 | } |
8763 | if (obj2) { | |
8764 | { | |
8765 | arg3 = wxString_in_helper(obj2); | |
8766 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8767 | temp3 = True; |
d14a1e28 RD |
8768 | } |
8769 | } | |
8770 | if (obj3) { | |
8771 | { | |
8772 | arg4 = wxString_in_helper(obj3); | |
8773 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8774 | temp4 = True; |
d14a1e28 RD |
8775 | } |
8776 | } | |
8777 | if (obj4) { | |
a41e16b6 | 8778 | { |
994141e6 | 8779 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
8780 | if (PyErr_Occurred()) SWIG_fail; |
8781 | } | |
d14a1e28 RD |
8782 | } |
8783 | if (obj5) { | |
a41e16b6 | 8784 | { |
994141e6 | 8785 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
a41e16b6 RD |
8786 | if (PyErr_Occurred()) SWIG_fail; |
8787 | } | |
d14a1e28 RD |
8788 | } |
8789 | { | |
8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8791 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8792 | ||
8793 | wxPyEndAllowThreads(__tstate); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | } | |
4d5c3d91 | 8796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8797 | { |
8798 | if (temp2) | |
8799 | delete arg2; | |
8800 | } | |
8801 | { | |
8802 | if (temp3) | |
8803 | delete arg3; | |
8804 | } | |
8805 | { | |
8806 | if (temp4) | |
8807 | delete arg4; | |
8808 | } | |
8809 | return resultobj; | |
8810 | fail: | |
8811 | { | |
8812 | if (temp2) | |
8813 | delete arg2; | |
8814 | } | |
8815 | { | |
8816 | if (temp3) | |
8817 | delete arg3; | |
8818 | } | |
8819 | { | |
8820 | if (temp4) | |
8821 | delete arg4; | |
8822 | } | |
8823 | return NULL; | |
8824 | } | |
8825 | ||
8826 | ||
8827 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8828 | PyObject *resultobj; | |
8829 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8830 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8831 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8832 | bool result; | |
8833 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8834 | PyObject * obj1 = 0 ; |
8835 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8836 | char *kwnames[] = { |
8837 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8838 | }; | |
8839 | ||
994141e6 | 8840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8842 | if (obj1) { |
8843 | { | |
8844 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8845 | if (PyErr_Occurred()) SWIG_fail; | |
8846 | } | |
8847 | } | |
8848 | if (obj2) { | |
8849 | { | |
8850 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8851 | if (PyErr_Occurred()) SWIG_fail; | |
8852 | } | |
8853 | } | |
d14a1e28 RD |
8854 | { |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | result = (bool)(arg1)->Init(arg2,arg3); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
4d5c3d91 | 8861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8862 | return resultobj; |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | static PyObject *_wrap_Locale_GetSystemLanguage(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_GetSystemLanguage",kwnames)) goto fail; | |
8876 | { | |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | result = (int)wxLocale::GetSystemLanguage(); | |
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_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8891 | PyObject *resultobj; | |
8892 | int result; | |
8893 | char *kwnames[] = { | |
8894 | NULL | |
8895 | }; | |
8896 | ||
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | result = (int)wxLocale::GetSystemEncoding(); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
994141e6 | 8905 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8906 | return resultobj; |
8907 | fail: | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
8912 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject *resultobj; | |
8914 | wxString result; | |
8915 | char *kwnames[] = { | |
8916 | NULL | |
8917 | }; | |
8918 | ||
8919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8920 | { | |
8921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8922 | result = wxLocale::GetSystemEncodingName(); | |
8923 | ||
8924 | wxPyEndAllowThreads(__tstate); | |
8925 | if (PyErr_Occurred()) SWIG_fail; | |
8926 | } | |
8927 | { | |
8928 | #if wxUSE_UNICODE | |
8929 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8930 | #else | |
8931 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8932 | #endif | |
8933 | } | |
8934 | return resultobj; | |
8935 | fail: | |
8936 | return NULL; | |
8937 | } | |
8938 | ||
8939 | ||
8940 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8941 | PyObject *resultobj; | |
8942 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8943 | bool result; | |
8944 | PyObject * obj0 = 0 ; | |
8945 | char *kwnames[] = { | |
8946 | (char *) "self", NULL | |
8947 | }; | |
8948 | ||
8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8951 | { | |
8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8953 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8954 | ||
8955 | wxPyEndAllowThreads(__tstate); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | } | |
4d5c3d91 | 8958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8959 | return resultobj; |
8960 | fail: | |
8961 | return NULL; | |
8962 | } | |
8963 | ||
8964 | ||
8965 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8966 | PyObject *resultobj; | |
8967 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8968 | wxString result; | |
8969 | PyObject * obj0 = 0 ; | |
8970 | char *kwnames[] = { | |
8971 | (char *) "self", NULL | |
8972 | }; | |
8973 | ||
8974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8976 | { | |
8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8978 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8979 | ||
8980 | wxPyEndAllowThreads(__tstate); | |
8981 | if (PyErr_Occurred()) SWIG_fail; | |
8982 | } | |
8983 | { | |
8984 | #if wxUSE_UNICODE | |
8985 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8986 | #else | |
8987 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8988 | #endif | |
8989 | } | |
8990 | return resultobj; | |
8991 | fail: | |
8992 | return NULL; | |
8993 | } | |
8994 | ||
8995 | ||
8996 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject *resultobj; | |
8998 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8999 | int result; | |
9000 | PyObject * obj0 = 0 ; | |
9001 | char *kwnames[] = { | |
9002 | (char *) "self", NULL | |
9003 | }; | |
9004 | ||
9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9007 | { | |
9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9009 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9010 | ||
9011 | wxPyEndAllowThreads(__tstate); | |
9012 | if (PyErr_Occurred()) SWIG_fail; | |
9013 | } | |
994141e6 | 9014 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9015 | return resultobj; |
9016 | fail: | |
9017 | return NULL; | |
9018 | } | |
9019 | ||
9020 | ||
9021 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9022 | PyObject *resultobj; | |
9023 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9024 | wxString result; | |
9025 | PyObject * obj0 = 0 ; | |
9026 | char *kwnames[] = { | |
9027 | (char *) "self", NULL | |
9028 | }; | |
9029 | ||
9030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9032 | { | |
9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9034 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9035 | ||
9036 | wxPyEndAllowThreads(__tstate); | |
9037 | if (PyErr_Occurred()) SWIG_fail; | |
9038 | } | |
9039 | { | |
9040 | #if wxUSE_UNICODE | |
9041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9042 | #else | |
9043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9044 | #endif | |
9045 | } | |
9046 | return resultobj; | |
9047 | fail: | |
9048 | return NULL; | |
9049 | } | |
9050 | ||
9051 | ||
9052 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9053 | PyObject *resultobj; | |
9054 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9055 | wxString result; | |
9056 | PyObject * obj0 = 0 ; | |
9057 | char *kwnames[] = { | |
9058 | (char *) "self", NULL | |
9059 | }; | |
9060 | ||
9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9063 | { | |
9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9065 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9066 | ||
9067 | wxPyEndAllowThreads(__tstate); | |
9068 | if (PyErr_Occurred()) SWIG_fail; | |
9069 | } | |
9070 | { | |
9071 | #if wxUSE_UNICODE | |
9072 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9073 | #else | |
9074 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9075 | #endif | |
9076 | } | |
9077 | return resultobj; | |
9078 | fail: | |
9079 | return NULL; | |
9080 | } | |
9081 | ||
9082 | ||
9083 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9084 | PyObject *resultobj; | |
9085 | wxString *arg1 = 0 ; | |
e811c8ce | 9086 | bool temp1 = False ; |
d14a1e28 RD |
9087 | PyObject * obj0 = 0 ; |
9088 | char *kwnames[] = { | |
9089 | (char *) "prefix", NULL | |
9090 | }; | |
9091 | ||
9092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9093 | { | |
9094 | arg1 = wxString_in_helper(obj0); | |
9095 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9096 | temp1 = True; |
d14a1e28 RD |
9097 | } |
9098 | { | |
9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9100 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9101 | ||
9102 | wxPyEndAllowThreads(__tstate); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | } | |
9105 | Py_INCREF(Py_None); resultobj = Py_None; | |
9106 | { | |
9107 | if (temp1) | |
9108 | delete arg1; | |
9109 | } | |
9110 | return resultobj; | |
9111 | fail: | |
9112 | { | |
9113 | if (temp1) | |
9114 | delete arg1; | |
9115 | } | |
9116 | return NULL; | |
9117 | } | |
9118 | ||
9119 | ||
9120 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9121 | PyObject *resultobj; | |
9122 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9123 | wxString *arg2 = 0 ; | |
9124 | bool result; | |
e811c8ce | 9125 | bool temp2 = False ; |
d14a1e28 RD |
9126 | PyObject * obj0 = 0 ; |
9127 | PyObject * obj1 = 0 ; | |
9128 | char *kwnames[] = { | |
9129 | (char *) "self",(char *) "szDomain", NULL | |
9130 | }; | |
9131 | ||
9132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9134 | { | |
9135 | arg2 = wxString_in_helper(obj1); | |
9136 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9137 | temp2 = True; |
d14a1e28 RD |
9138 | } |
9139 | { | |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
4d5c3d91 | 9146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9147 | { |
9148 | if (temp2) | |
9149 | delete arg2; | |
9150 | } | |
9151 | return resultobj; | |
9152 | fail: | |
9153 | { | |
9154 | if (temp2) | |
9155 | delete arg2; | |
9156 | } | |
9157 | return NULL; | |
9158 | } | |
9159 | ||
9160 | ||
9161 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9162 | PyObject *resultobj; | |
9163 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9164 | wxString *arg2 = 0 ; | |
9165 | bool result; | |
e811c8ce | 9166 | bool temp2 = False ; |
d14a1e28 RD |
9167 | PyObject * obj0 = 0 ; |
9168 | PyObject * obj1 = 0 ; | |
9169 | char *kwnames[] = { | |
9170 | (char *) "self",(char *) "szDomain", NULL | |
9171 | }; | |
9172 | ||
9173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9175 | { | |
9176 | arg2 = wxString_in_helper(obj1); | |
9177 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9178 | temp2 = True; |
d14a1e28 RD |
9179 | } |
9180 | { | |
9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9182 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9183 | ||
9184 | wxPyEndAllowThreads(__tstate); | |
9185 | if (PyErr_Occurred()) SWIG_fail; | |
9186 | } | |
4d5c3d91 | 9187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9188 | { |
9189 | if (temp2) | |
9190 | delete arg2; | |
9191 | } | |
9192 | return resultobj; | |
9193 | fail: | |
9194 | { | |
9195 | if (temp2) | |
9196 | delete arg2; | |
9197 | } | |
9198 | return NULL; | |
9199 | } | |
9200 | ||
9201 | ||
9202 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9203 | PyObject *resultobj; | |
9204 | int arg1 ; | |
9205 | wxLanguageInfo *result; | |
994141e6 | 9206 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9207 | char *kwnames[] = { |
9208 | (char *) "lang", NULL | |
9209 | }; | |
9210 | ||
994141e6 RD |
9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
9212 | { | |
9213 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9214 | if (PyErr_Occurred()) SWIG_fail; | |
9215 | } | |
d14a1e28 RD |
9216 | { |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9219 | ||
9220 | wxPyEndAllowThreads(__tstate); | |
9221 | if (PyErr_Occurred()) SWIG_fail; | |
9222 | } | |
9223 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9224 | return resultobj; | |
9225 | fail: | |
9226 | return NULL; | |
9227 | } | |
9228 | ||
9229 | ||
9230 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject *resultobj; | |
9232 | int arg1 ; | |
9233 | wxString result; | |
994141e6 | 9234 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9235 | char *kwnames[] = { |
9236 | (char *) "lang", NULL | |
9237 | }; | |
9238 | ||
994141e6 RD |
9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
9240 | { | |
9241 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9242 | if (PyErr_Occurred()) SWIG_fail; | |
9243 | } | |
d14a1e28 RD |
9244 | { |
9245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9246 | result = wxLocale::GetLanguageName(arg1); | |
9247 | ||
9248 | wxPyEndAllowThreads(__tstate); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
9251 | { | |
9252 | #if wxUSE_UNICODE | |
9253 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9254 | #else | |
9255 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9256 | #endif | |
9257 | } | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
9264 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9265 | PyObject *resultobj; | |
9266 | wxString *arg1 = 0 ; | |
9267 | wxLanguageInfo *result; | |
e811c8ce | 9268 | bool temp1 = False ; |
d14a1e28 RD |
9269 | PyObject * obj0 = 0 ; |
9270 | char *kwnames[] = { | |
9271 | (char *) "locale", NULL | |
9272 | }; | |
9273 | ||
9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9275 | { | |
9276 | arg1 = wxString_in_helper(obj0); | |
9277 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9278 | temp1 = True; |
d14a1e28 RD |
9279 | } |
9280 | { | |
9281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9282 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9283 | ||
9284 | wxPyEndAllowThreads(__tstate); | |
9285 | if (PyErr_Occurred()) SWIG_fail; | |
9286 | } | |
9287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9288 | { | |
9289 | if (temp1) | |
9290 | delete arg1; | |
9291 | } | |
9292 | return resultobj; | |
9293 | fail: | |
9294 | { | |
9295 | if (temp1) | |
9296 | delete arg1; | |
9297 | } | |
9298 | return NULL; | |
9299 | } | |
9300 | ||
9301 | ||
9302 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9303 | PyObject *resultobj; | |
9304 | wxLanguageInfo *arg1 = 0 ; | |
9305 | PyObject * obj0 = 0 ; | |
9306 | char *kwnames[] = { | |
9307 | (char *) "info", NULL | |
9308 | }; | |
9309 | ||
9310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
9311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9312 | if (arg1 == NULL) { | |
9313 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9314 | } | |
9315 | { | |
9316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9317 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9318 | ||
9319 | wxPyEndAllowThreads(__tstate); | |
9320 | if (PyErr_Occurred()) SWIG_fail; | |
9321 | } | |
9322 | Py_INCREF(Py_None); resultobj = Py_None; | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | return NULL; | |
9326 | } | |
9327 | ||
9328 | ||
9329 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9330 | PyObject *resultobj; | |
9331 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9332 | wxString *arg2 = 0 ; | |
9333 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9334 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9335 | wxString result; | |
e811c8ce RD |
9336 | bool temp2 = False ; |
9337 | bool temp3 = False ; | |
d14a1e28 RD |
9338 | PyObject * obj0 = 0 ; |
9339 | PyObject * obj1 = 0 ; | |
9340 | PyObject * obj2 = 0 ; | |
9341 | char *kwnames[] = { | |
9342 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9343 | }; | |
9344 | ||
9345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9347 | { | |
9348 | arg2 = wxString_in_helper(obj1); | |
9349 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9350 | temp2 = True; |
d14a1e28 RD |
9351 | } |
9352 | if (obj2) { | |
9353 | { | |
9354 | arg3 = wxString_in_helper(obj2); | |
9355 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9356 | temp3 = True; |
d14a1e28 RD |
9357 | } |
9358 | } | |
9359 | { | |
9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9361 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9362 | ||
9363 | wxPyEndAllowThreads(__tstate); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | } | |
9366 | { | |
9367 | #if wxUSE_UNICODE | |
9368 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9369 | #else | |
9370 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9371 | #endif | |
9372 | } | |
9373 | { | |
9374 | if (temp2) | |
9375 | delete arg2; | |
9376 | } | |
9377 | { | |
9378 | if (temp3) | |
9379 | delete arg3; | |
9380 | } | |
9381 | return resultobj; | |
9382 | fail: | |
9383 | { | |
9384 | if (temp2) | |
9385 | delete arg2; | |
9386 | } | |
9387 | { | |
9388 | if (temp3) | |
9389 | delete arg3; | |
9390 | } | |
9391 | return NULL; | |
9392 | } | |
9393 | ||
9394 | ||
9395 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9396 | PyObject *resultobj; | |
9397 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9398 | wxString *result; | |
9399 | PyObject * obj0 = 0 ; | |
9400 | char *kwnames[] = { | |
9401 | (char *) "self", NULL | |
9402 | }; | |
9403 | ||
9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | { | |
9409 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9410 | result = (wxString *) &_result_ref; | |
9411 | } | |
9412 | ||
9413 | wxPyEndAllowThreads(__tstate); | |
9414 | if (PyErr_Occurred()) SWIG_fail; | |
9415 | } | |
cc6dd355 RD |
9416 | { |
9417 | #if wxUSE_UNICODE | |
9418 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9419 | #else | |
9420 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9421 | #endif | |
9422 | } | |
d14a1e28 RD |
9423 | return resultobj; |
9424 | fail: | |
9425 | return NULL; | |
9426 | } | |
9427 | ||
9428 | ||
9429 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9430 | PyObject *obj; | |
9431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9432 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9433 | Py_INCREF(obj); | |
9434 | return Py_BuildValue((char *)""); | |
9435 | } | |
9436 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9437 | PyObject *resultobj; | |
9438 | wxLocale *result; | |
9439 | char *kwnames[] = { | |
9440 | NULL | |
9441 | }; | |
9442 | ||
9443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | result = (wxLocale *)wxGetLocale(); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9452 | return resultobj; | |
9453 | fail: | |
9454 | return NULL; | |
9455 | } | |
9456 | ||
9457 | ||
9458 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9459 | PyObject *resultobj; | |
9460 | wxString *arg1 = 0 ; | |
9461 | wxString result; | |
e811c8ce | 9462 | bool temp1 = False ; |
d14a1e28 RD |
9463 | PyObject * obj0 = 0 ; |
9464 | ||
9465 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9466 | { | |
9467 | arg1 = wxString_in_helper(obj0); | |
9468 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9469 | temp1 = True; |
d14a1e28 RD |
9470 | } |
9471 | { | |
9472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9473 | result = wxGetTranslation((wxString const &)*arg1); | |
9474 | ||
9475 | wxPyEndAllowThreads(__tstate); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | } | |
9478 | { | |
9479 | #if wxUSE_UNICODE | |
9480 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9481 | #else | |
9482 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9483 | #endif | |
9484 | } | |
9485 | { | |
9486 | if (temp1) | |
9487 | delete arg1; | |
9488 | } | |
9489 | return resultobj; | |
9490 | fail: | |
9491 | { | |
9492 | if (temp1) | |
9493 | delete arg1; | |
9494 | } | |
9495 | return NULL; | |
9496 | } | |
9497 | ||
9498 | ||
9499 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9500 | PyObject *resultobj; | |
9501 | wxString *arg1 = 0 ; | |
9502 | wxString *arg2 = 0 ; | |
9503 | size_t arg3 ; | |
9504 | wxString result; | |
e811c8ce RD |
9505 | bool temp1 = False ; |
9506 | bool temp2 = False ; | |
d14a1e28 RD |
9507 | PyObject * obj0 = 0 ; |
9508 | PyObject * obj1 = 0 ; | |
9509 | PyObject * obj2 = 0 ; | |
9510 | ||
9511 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9512 | { | |
9513 | arg1 = wxString_in_helper(obj0); | |
9514 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9515 | temp1 = True; |
d14a1e28 RD |
9516 | } |
9517 | { | |
9518 | arg2 = wxString_in_helper(obj1); | |
9519 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9520 | temp2 = True; |
d14a1e28 | 9521 | } |
a41e16b6 | 9522 | { |
994141e6 | 9523 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
9524 | if (PyErr_Occurred()) SWIG_fail; |
9525 | } | |
d14a1e28 RD |
9526 | { |
9527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9528 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9529 | ||
9530 | wxPyEndAllowThreads(__tstate); | |
9531 | if (PyErr_Occurred()) SWIG_fail; | |
9532 | } | |
9533 | { | |
9534 | #if wxUSE_UNICODE | |
9535 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9536 | #else | |
9537 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9538 | #endif | |
9539 | } | |
9540 | { | |
9541 | if (temp1) | |
9542 | delete arg1; | |
9543 | } | |
9544 | { | |
9545 | if (temp2) | |
9546 | delete arg2; | |
9547 | } | |
9548 | return resultobj; | |
9549 | fail: | |
9550 | { | |
9551 | if (temp1) | |
9552 | delete arg1; | |
9553 | } | |
9554 | { | |
9555 | if (temp2) | |
9556 | delete arg2; | |
9557 | } | |
9558 | return NULL; | |
9559 | } | |
9560 | ||
9561 | ||
9562 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9563 | int argc; | |
9564 | PyObject *argv[4]; | |
9565 | int ii; | |
9566 | ||
9567 | argc = PyObject_Length(args); | |
9568 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9569 | argv[ii] = PyTuple_GetItem(args,ii); | |
9570 | } | |
9571 | if (argc == 1) { | |
9572 | int _v; | |
9573 | { | |
4d5c3d91 | 9574 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9575 | } |
9576 | if (_v) { | |
9577 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9578 | } | |
9579 | } | |
9580 | if (argc == 3) { | |
9581 | int _v; | |
9582 | { | |
4d5c3d91 | 9583 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9584 | } |
9585 | if (_v) { | |
9586 | { | |
4d5c3d91 | 9587 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
9588 | } |
9589 | if (_v) { | |
9590 | { | |
994141e6 | 9591 | SWIG_PyObj_AsUnsignedLong(argv[2]); |
a41e16b6 RD |
9592 | if (PyErr_Occurred()) { |
9593 | _v = 0; | |
9594 | PyErr_Clear(); | |
9595 | } else { | |
9596 | _v = 1; | |
9597 | } | |
d14a1e28 RD |
9598 | } |
9599 | if (_v) { | |
9600 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9601 | } | |
9602 | } | |
9603 | } | |
9604 | } | |
9605 | ||
9606 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9607 | return NULL; | |
9608 | } | |
9609 | ||
9610 | ||
9611 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject *resultobj; | |
9613 | wxEncodingConverter *result; | |
9614 | char *kwnames[] = { | |
9615 | NULL | |
9616 | }; | |
9617 | ||
9618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9619 | { | |
9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9621 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9622 | ||
9623 | wxPyEndAllowThreads(__tstate); | |
9624 | if (PyErr_Occurred()) SWIG_fail; | |
9625 | } | |
9626 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9627 | return resultobj; | |
9628 | fail: | |
9629 | return NULL; | |
9630 | } | |
9631 | ||
9632 | ||
9633 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9634 | PyObject *resultobj; | |
9635 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9636 | PyObject * obj0 = 0 ; | |
9637 | char *kwnames[] = { | |
9638 | (char *) "self", NULL | |
9639 | }; | |
9640 | ||
9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9643 | { | |
9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9645 | delete arg1; | |
9646 | ||
9647 | wxPyEndAllowThreads(__tstate); | |
9648 | if (PyErr_Occurred()) SWIG_fail; | |
9649 | } | |
9650 | Py_INCREF(Py_None); resultobj = Py_None; | |
9651 | return resultobj; | |
9652 | fail: | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
9657 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject *resultobj; | |
9659 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9660 | int arg2 ; | |
9661 | int arg3 ; | |
9662 | int arg4 = (int) wxCONVERT_STRICT ; | |
9663 | bool result; | |
9664 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9665 | PyObject * obj1 = 0 ; |
9666 | PyObject * obj2 = 0 ; | |
9667 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9668 | char *kwnames[] = { |
9669 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9670 | }; | |
9671 | ||
994141e6 | 9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 9673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9674 | { |
9675 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9676 | if (PyErr_Occurred()) SWIG_fail; | |
9677 | } | |
9678 | { | |
9679 | arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | if (obj3) { | |
9683 | { | |
9684 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
9687 | } | |
d14a1e28 RD |
9688 | { |
9689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9690 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9691 | ||
9692 | wxPyEndAllowThreads(__tstate); | |
9693 | if (PyErr_Occurred()) SWIG_fail; | |
9694 | } | |
4d5c3d91 | 9695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9696 | return resultobj; |
9697 | fail: | |
9698 | return NULL; | |
9699 | } | |
9700 | ||
9701 | ||
9702 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9703 | PyObject *resultobj; | |
9704 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9705 | wxString *arg2 = 0 ; | |
9706 | wxString result; | |
e811c8ce | 9707 | bool temp2 = False ; |
d14a1e28 RD |
9708 | PyObject * obj0 = 0 ; |
9709 | PyObject * obj1 = 0 ; | |
9710 | char *kwnames[] = { | |
9711 | (char *) "self",(char *) "input", NULL | |
9712 | }; | |
9713 | ||
9714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9716 | { | |
9717 | arg2 = wxString_in_helper(obj1); | |
9718 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9719 | temp2 = True; |
d14a1e28 RD |
9720 | } |
9721 | { | |
9722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9723 | result = (arg1)->Convert((wxString const &)*arg2); | |
9724 | ||
9725 | wxPyEndAllowThreads(__tstate); | |
9726 | if (PyErr_Occurred()) SWIG_fail; | |
9727 | } | |
9728 | { | |
9729 | #if wxUSE_UNICODE | |
9730 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9731 | #else | |
9732 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9733 | #endif | |
9734 | } | |
9735 | { | |
9736 | if (temp2) | |
9737 | delete arg2; | |
9738 | } | |
9739 | return resultobj; | |
9740 | fail: | |
9741 | { | |
9742 | if (temp2) | |
9743 | delete arg2; | |
9744 | } | |
9745 | return NULL; | |
9746 | } | |
9747 | ||
9748 | ||
9749 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9750 | PyObject *resultobj; | |
9751 | int arg1 ; | |
9752 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9753 | wxFontEncodingArray result; | |
994141e6 RD |
9754 | PyObject * obj0 = 0 ; |
9755 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9756 | char *kwnames[] = { |
9757 | (char *) "enc",(char *) "platform", NULL | |
9758 | }; | |
9759 | ||
994141e6 RD |
9760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
9761 | { | |
9762 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9763 | if (PyErr_Occurred()) SWIG_fail; | |
9764 | } | |
9765 | if (obj1) { | |
9766 | { | |
9767 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
9770 | } | |
d14a1e28 RD |
9771 | { |
9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9773 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9774 | ||
9775 | wxPyEndAllowThreads(__tstate); | |
9776 | if (PyErr_Occurred()) SWIG_fail; | |
9777 | } | |
9778 | { | |
9779 | resultobj = PyList_New(0); | |
9780 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9781 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9782 | PyList_Append(resultobj, number); | |
9783 | Py_DECREF(number); | |
9784 | } | |
9785 | } | |
9786 | return resultobj; | |
9787 | fail: | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
9792 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9793 | PyObject *resultobj; | |
9794 | int arg1 ; | |
9795 | wxFontEncodingArray result; | |
994141e6 | 9796 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9797 | char *kwnames[] = { |
9798 | (char *) "enc", NULL | |
9799 | }; | |
9800 | ||
994141e6 RD |
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
9802 | { | |
9803 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | } | |
d14a1e28 RD |
9806 | { |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9809 | ||
9810 | wxPyEndAllowThreads(__tstate); | |
9811 | if (PyErr_Occurred()) SWIG_fail; | |
9812 | } | |
9813 | { | |
9814 | resultobj = PyList_New(0); | |
9815 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9816 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9817 | PyList_Append(resultobj, number); | |
9818 | Py_DECREF(number); | |
9819 | } | |
9820 | } | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
9827 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9828 | PyObject *resultobj; | |
9829 | int arg1 ; | |
9830 | int arg2 ; | |
9831 | bool result; | |
994141e6 RD |
9832 | PyObject * obj0 = 0 ; |
9833 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9834 | char *kwnames[] = { |
9835 | (char *) "encIn",(char *) "encOut", NULL | |
9836 | }; | |
9837 | ||
994141e6 RD |
9838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
9839 | { | |
9840 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9841 | if (PyErr_Occurred()) SWIG_fail; | |
9842 | } | |
9843 | { | |
9844 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
d14a1e28 RD |
9847 | { |
9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9849 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9850 | ||
9851 | wxPyEndAllowThreads(__tstate); | |
9852 | if (PyErr_Occurred()) SWIG_fail; | |
9853 | } | |
4d5c3d91 | 9854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9855 | return resultobj; |
9856 | fail: | |
9857 | return NULL; | |
9858 | } | |
9859 | ||
9860 | ||
9861 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9862 | PyObject *obj; | |
9863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9864 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9865 | Py_INCREF(obj); | |
9866 | return Py_BuildValue((char *)""); | |
9867 | } | |
9868 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9869 | PyObject *resultobj; | |
9870 | wxDC *arg1 = (wxDC *) 0 ; | |
9871 | PyObject * obj0 = 0 ; | |
9872 | char *kwnames[] = { | |
9873 | (char *) "self", NULL | |
9874 | }; | |
9875 | ||
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9878 | { | |
9879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9880 | delete arg1; | |
9881 | ||
9882 | wxPyEndAllowThreads(__tstate); | |
9883 | if (PyErr_Occurred()) SWIG_fail; | |
9884 | } | |
9885 | Py_INCREF(Py_None); resultobj = Py_None; | |
9886 | return resultobj; | |
9887 | fail: | |
9888 | return NULL; | |
9889 | } | |
9890 | ||
9891 | ||
9892 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9893 | PyObject *resultobj; | |
9894 | wxDC *arg1 = (wxDC *) 0 ; | |
9895 | PyObject * obj0 = 0 ; | |
9896 | char *kwnames[] = { | |
9897 | (char *) "self", NULL | |
9898 | }; | |
9899 | ||
9900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9904 | (arg1)->BeginDrawing(); | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) SWIG_fail; | |
9908 | } | |
9909 | Py_INCREF(Py_None); resultobj = Py_None; | |
9910 | return resultobj; | |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
9916 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9917 | PyObject *resultobj; | |
9918 | wxDC *arg1 = (wxDC *) 0 ; | |
9919 | PyObject * obj0 = 0 ; | |
9920 | char *kwnames[] = { | |
9921 | (char *) "self", NULL | |
9922 | }; | |
9923 | ||
9924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9926 | { | |
9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9928 | (arg1)->EndDrawing(); | |
9929 | ||
9930 | wxPyEndAllowThreads(__tstate); | |
9931 | if (PyErr_Occurred()) SWIG_fail; | |
9932 | } | |
9933 | Py_INCREF(Py_None); resultobj = Py_None; | |
9934 | return resultobj; | |
9935 | fail: | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
9940 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9941 | PyObject *resultobj; | |
9942 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
9943 | int arg2 ; |
9944 | int arg3 ; | |
d14a1e28 RD |
9945 | wxColour *arg4 = 0 ; |
9946 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9947 | bool result; | |
9948 | wxColour temp4 ; | |
9949 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9950 | PyObject * obj1 = 0 ; |
9951 | PyObject * obj2 = 0 ; | |
d14a1e28 | 9952 | PyObject * obj3 = 0 ; |
994141e6 | 9953 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9954 | char *kwnames[] = { |
9955 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9956 | }; | |
9957 | ||
994141e6 | 9958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 9959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9960 | { |
9961 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9962 | if (PyErr_Occurred()) SWIG_fail; | |
9963 | } | |
9964 | { | |
9965 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9966 | if (PyErr_Occurred()) SWIG_fail; | |
9967 | } | |
d14a1e28 RD |
9968 | { |
9969 | arg4 = &temp4; | |
9970 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9971 | } | |
994141e6 RD |
9972 | if (obj4) { |
9973 | { | |
9974 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
9977 | } | |
d14a1e28 RD |
9978 | { |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
4d5c3d91 | 9985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9986 | return resultobj; |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9993 | PyObject *resultobj; | |
9994 | wxDC *arg1 = (wxDC *) 0 ; | |
9995 | wxPoint *arg2 = 0 ; | |
9996 | wxColour *arg3 = 0 ; | |
9997 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9998 | bool result; | |
9999 | wxPoint temp2 ; | |
10000 | wxColour temp3 ; | |
10001 | PyObject * obj0 = 0 ; | |
10002 | PyObject * obj1 = 0 ; | |
10003 | PyObject * obj2 = 0 ; | |
994141e6 | 10004 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10005 | char *kwnames[] = { |
10006 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10007 | }; | |
10008 | ||
994141e6 | 10009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10011 | { | |
10012 | arg2 = &temp2; | |
10013 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10014 | } | |
10015 | { | |
10016 | arg3 = &temp3; | |
10017 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10018 | } | |
994141e6 RD |
10019 | if (obj3) { |
10020 | { | |
10021 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | } | |
10024 | } | |
d14a1e28 RD |
10025 | { |
10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10027 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10028 | ||
10029 | wxPyEndAllowThreads(__tstate); | |
10030 | if (PyErr_Occurred()) SWIG_fail; | |
10031 | } | |
4d5c3d91 | 10032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10033 | return resultobj; |
10034 | fail: | |
10035 | return NULL; | |
10036 | } | |
10037 | ||
10038 | ||
10039 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10040 | PyObject *resultobj; | |
10041 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10042 | int arg2 ; |
10043 | int arg3 ; | |
d14a1e28 RD |
10044 | wxColour result; |
10045 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10046 | PyObject * obj1 = 0 ; |
10047 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10048 | char *kwnames[] = { |
10049 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10050 | }; | |
10051 | ||
994141e6 | 10052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10054 | { |
10055 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10056 | if (PyErr_Occurred()) SWIG_fail; | |
10057 | } | |
10058 | { | |
10059 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
d14a1e28 RD |
10062 | { |
10063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10064 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10065 | ||
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
10069 | { | |
10070 | wxColour * resultptr; | |
10071 | resultptr = new wxColour((wxColour &) result); | |
10072 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10073 | } | |
10074 | return resultobj; | |
10075 | fail: | |
10076 | return NULL; | |
10077 | } | |
10078 | ||
10079 | ||
10080 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10081 | PyObject *resultobj; | |
10082 | wxDC *arg1 = (wxDC *) 0 ; | |
10083 | wxPoint *arg2 = 0 ; | |
10084 | wxColour result; | |
10085 | wxPoint temp2 ; | |
10086 | PyObject * obj0 = 0 ; | |
10087 | PyObject * obj1 = 0 ; | |
10088 | char *kwnames[] = { | |
10089 | (char *) "self",(char *) "pt", NULL | |
10090 | }; | |
10091 | ||
10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
10093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10094 | { | |
10095 | arg2 = &temp2; | |
10096 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10097 | } | |
10098 | { | |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10101 | ||
10102 | wxPyEndAllowThreads(__tstate); | |
10103 | if (PyErr_Occurred()) SWIG_fail; | |
10104 | } | |
10105 | { | |
10106 | wxColour * resultptr; | |
10107 | resultptr = new wxColour((wxColour &) result); | |
10108 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10109 | } | |
10110 | return resultobj; | |
10111 | fail: | |
10112 | return NULL; | |
10113 | } | |
10114 | ||
10115 | ||
10116 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject *resultobj; | |
10118 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10119 | int arg2 ; |
10120 | int arg3 ; | |
10121 | int arg4 ; | |
10122 | int arg5 ; | |
d14a1e28 | 10123 | PyObject * obj0 = 0 ; |
994141e6 RD |
10124 | PyObject * obj1 = 0 ; |
10125 | PyObject * obj2 = 0 ; | |
10126 | PyObject * obj3 = 0 ; | |
10127 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10128 | char *kwnames[] = { |
10129 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10130 | }; | |
10131 | ||
994141e6 | 10132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10134 | { |
10135 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10136 | if (PyErr_Occurred()) SWIG_fail; | |
10137 | } | |
10138 | { | |
10139 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
10142 | { | |
10143 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10144 | if (PyErr_Occurred()) SWIG_fail; | |
10145 | } | |
10146 | { | |
10147 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10148 | if (PyErr_Occurred()) SWIG_fail; | |
10149 | } | |
d14a1e28 RD |
10150 | { |
10151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10152 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10153 | ||
10154 | wxPyEndAllowThreads(__tstate); | |
10155 | if (PyErr_Occurred()) SWIG_fail; | |
10156 | } | |
10157 | Py_INCREF(Py_None); resultobj = Py_None; | |
10158 | return resultobj; | |
10159 | fail: | |
10160 | return NULL; | |
10161 | } | |
10162 | ||
10163 | ||
10164 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10165 | PyObject *resultobj; | |
10166 | wxDC *arg1 = (wxDC *) 0 ; | |
10167 | wxPoint *arg2 = 0 ; | |
10168 | wxPoint *arg3 = 0 ; | |
10169 | wxPoint temp2 ; | |
10170 | wxPoint temp3 ; | |
10171 | PyObject * obj0 = 0 ; | |
10172 | PyObject * obj1 = 0 ; | |
10173 | PyObject * obj2 = 0 ; | |
10174 | char *kwnames[] = { | |
10175 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10176 | }; | |
10177 | ||
10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10180 | { | |
10181 | arg2 = &temp2; | |
10182 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10183 | } | |
10184 | { | |
10185 | arg3 = &temp3; | |
10186 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10187 | } | |
10188 | { | |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | Py_INCREF(Py_None); resultobj = Py_None; | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
10202 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10203 | PyObject *resultobj; | |
10204 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10205 | int arg2 ; |
10206 | int arg3 ; | |
d14a1e28 | 10207 | PyObject * obj0 = 0 ; |
994141e6 RD |
10208 | PyObject * obj1 = 0 ; |
10209 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10210 | char *kwnames[] = { |
10211 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10212 | }; | |
10213 | ||
994141e6 | 10214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10216 | { |
10217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | { | |
10221 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | } | |
d14a1e28 RD |
10224 | { |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | (arg1)->CrossHair(arg2,arg3); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
10231 | Py_INCREF(Py_None); resultobj = Py_None; | |
10232 | return resultobj; | |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
10238 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10239 | PyObject *resultobj; | |
10240 | wxDC *arg1 = (wxDC *) 0 ; | |
10241 | wxPoint *arg2 = 0 ; | |
10242 | wxPoint temp2 ; | |
10243 | PyObject * obj0 = 0 ; | |
10244 | PyObject * obj1 = 0 ; | |
10245 | char *kwnames[] = { | |
10246 | (char *) "self",(char *) "pt", NULL | |
10247 | }; | |
10248 | ||
10249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
10250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10251 | { | |
10252 | arg2 = &temp2; | |
10253 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10254 | } | |
10255 | { | |
10256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10257 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10258 | ||
10259 | wxPyEndAllowThreads(__tstate); | |
10260 | if (PyErr_Occurred()) SWIG_fail; | |
10261 | } | |
10262 | Py_INCREF(Py_None); resultobj = Py_None; | |
10263 | return resultobj; | |
10264 | fail: | |
10265 | return NULL; | |
10266 | } | |
10267 | ||
10268 | ||
10269 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10270 | PyObject *resultobj; | |
10271 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10272 | int arg2 ; |
10273 | int arg3 ; | |
10274 | int arg4 ; | |
10275 | int arg5 ; | |
10276 | int arg6 ; | |
10277 | int arg7 ; | |
d14a1e28 | 10278 | PyObject * obj0 = 0 ; |
994141e6 RD |
10279 | PyObject * obj1 = 0 ; |
10280 | PyObject * obj2 = 0 ; | |
10281 | PyObject * obj3 = 0 ; | |
10282 | PyObject * obj4 = 0 ; | |
10283 | PyObject * obj5 = 0 ; | |
10284 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10285 | char *kwnames[] = { |
10286 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10287 | }; | |
10288 | ||
994141e6 | 10289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10291 | { |
10292 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | { | |
10296 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10297 | if (PyErr_Occurred()) SWIG_fail; | |
10298 | } | |
10299 | { | |
10300 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
10303 | { | |
10304 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | { | |
10308 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
10310 | } | |
10311 | { | |
10312 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
d14a1e28 RD |
10315 | { |
10316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10317 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10318 | ||
10319 | wxPyEndAllowThreads(__tstate); | |
10320 | if (PyErr_Occurred()) SWIG_fail; | |
10321 | } | |
10322 | Py_INCREF(Py_None); resultobj = Py_None; | |
10323 | return resultobj; | |
10324 | fail: | |
10325 | return NULL; | |
10326 | } | |
10327 | ||
10328 | ||
10329 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10330 | PyObject *resultobj; | |
10331 | wxDC *arg1 = (wxDC *) 0 ; | |
10332 | wxPoint *arg2 = 0 ; | |
10333 | wxPoint *arg3 = 0 ; | |
10334 | wxPoint *arg4 = 0 ; | |
10335 | wxPoint temp2 ; | |
10336 | wxPoint temp3 ; | |
10337 | wxPoint temp4 ; | |
10338 | PyObject * obj0 = 0 ; | |
10339 | PyObject * obj1 = 0 ; | |
10340 | PyObject * obj2 = 0 ; | |
10341 | PyObject * obj3 = 0 ; | |
10342 | char *kwnames[] = { | |
10343 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10344 | }; | |
10345 | ||
10346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10348 | { | |
10349 | arg2 = &temp2; | |
10350 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10351 | } | |
10352 | { | |
10353 | arg3 = &temp3; | |
10354 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10355 | } | |
10356 | { | |
10357 | arg4 = &temp4; | |
10358 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10359 | } | |
10360 | { | |
10361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10362 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10363 | ||
10364 | wxPyEndAllowThreads(__tstate); | |
10365 | if (PyErr_Occurred()) SWIG_fail; | |
10366 | } | |
10367 | Py_INCREF(Py_None); resultobj = Py_None; | |
10368 | return resultobj; | |
10369 | fail: | |
10370 | return NULL; | |
10371 | } | |
10372 | ||
10373 | ||
10374 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10375 | PyObject *resultobj; | |
10376 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10377 | int arg2 ; |
10378 | int arg3 ; | |
10379 | int arg4 ; | |
10380 | int arg5 ; | |
d14a1e28 | 10381 | PyObject * obj0 = 0 ; |
994141e6 RD |
10382 | PyObject * obj1 = 0 ; |
10383 | PyObject * obj2 = 0 ; | |
10384 | PyObject * obj3 = 0 ; | |
10385 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10386 | char *kwnames[] = { |
10387 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10388 | }; | |
10389 | ||
994141e6 | 10390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10392 | { | |
994141e6 | 10393 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
d14a1e28 RD |
10394 | if (PyErr_Occurred()) SWIG_fail; |
10395 | } | |
994141e6 RD |
10396 | { |
10397 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
10399 | } | |
10400 | { | |
10401 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
10404 | { | |
10405 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10406 | if (PyErr_Occurred()) SWIG_fail; | |
10407 | } | |
10408 | { | |
10409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10410 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10411 | ||
10412 | wxPyEndAllowThreads(__tstate); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | } | |
10415 | Py_INCREF(Py_None); resultobj = Py_None; | |
10416 | return resultobj; | |
10417 | fail: | |
10418 | return NULL; | |
10419 | } | |
10420 | ||
10421 | ||
d14a1e28 RD |
10422 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
10423 | PyObject *resultobj; | |
10424 | wxDC *arg1 = (wxDC *) 0 ; | |
10425 | wxRect *arg2 = 0 ; | |
10426 | wxRect temp2 ; | |
10427 | PyObject * obj0 = 0 ; | |
10428 | PyObject * obj1 = 0 ; | |
10429 | char *kwnames[] = { | |
10430 | (char *) "self",(char *) "rect", NULL | |
10431 | }; | |
10432 | ||
10433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
10434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10435 | { | |
10436 | arg2 = &temp2; | |
10437 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10438 | } | |
10439 | { | |
10440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10441 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10442 | ||
10443 | wxPyEndAllowThreads(__tstate); | |
10444 | if (PyErr_Occurred()) SWIG_fail; | |
10445 | } | |
10446 | Py_INCREF(Py_None); resultobj = Py_None; | |
10447 | return resultobj; | |
10448 | fail: | |
10449 | return NULL; | |
10450 | } | |
10451 | ||
10452 | ||
10453 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10454 | PyObject *resultobj; | |
10455 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10456 | int arg2 ; |
10457 | int arg3 ; | |
10458 | int arg4 ; | |
10459 | int arg5 ; | |
d14a1e28 RD |
10460 | double arg6 ; |
10461 | double arg7 ; | |
10462 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10463 | PyObject * obj1 = 0 ; |
10464 | PyObject * obj2 = 0 ; | |
10465 | PyObject * obj3 = 0 ; | |
10466 | PyObject * obj4 = 0 ; | |
10467 | PyObject * obj5 = 0 ; | |
10468 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10469 | char *kwnames[] = { |
10470 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10471 | }; | |
10472 | ||
994141e6 | 10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10475 | { |
10476 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | } | |
10479 | { | |
10480 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | { | |
10484 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
10486 | } | |
10487 | { | |
10488 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10489 | if (PyErr_Occurred()) SWIG_fail; | |
10490 | } | |
10491 | { | |
10492 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
10495 | { | |
10496 | arg7 = (double) SWIG_PyObj_AsDouble(obj6); | |
10497 | if (PyErr_Occurred()) SWIG_fail; | |
10498 | } | |
d14a1e28 RD |
10499 | { |
10500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10501 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10502 | ||
10503 | wxPyEndAllowThreads(__tstate); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | } | |
10506 | Py_INCREF(Py_None); resultobj = Py_None; | |
10507 | return resultobj; | |
10508 | fail: | |
10509 | return NULL; | |
10510 | } | |
10511 | ||
10512 | ||
10513 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10514 | PyObject *resultobj; | |
10515 | wxDC *arg1 = (wxDC *) 0 ; | |
10516 | wxPoint *arg2 = 0 ; | |
10517 | wxSize *arg3 = 0 ; | |
10518 | double arg4 ; | |
10519 | double arg5 ; | |
10520 | wxPoint temp2 ; | |
10521 | wxSize temp3 ; | |
10522 | PyObject * obj0 = 0 ; | |
10523 | PyObject * obj1 = 0 ; | |
10524 | PyObject * obj2 = 0 ; | |
994141e6 RD |
10525 | PyObject * obj3 = 0 ; |
10526 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10527 | char *kwnames[] = { |
10528 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10529 | }; | |
10530 | ||
994141e6 | 10531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10533 | { | |
10534 | arg2 = &temp2; | |
10535 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10536 | } | |
10537 | { | |
10538 | arg3 = &temp3; | |
10539 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10540 | } | |
994141e6 RD |
10541 | { |
10542 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10543 | if (PyErr_Occurred()) SWIG_fail; | |
10544 | } | |
10545 | { | |
10546 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
10547 | if (PyErr_Occurred()) SWIG_fail; | |
10548 | } | |
d14a1e28 RD |
10549 | { |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
10556 | Py_INCREF(Py_None); resultobj = Py_None; | |
10557 | return resultobj; | |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10564 | PyObject *resultobj; | |
10565 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10566 | int arg2 ; |
10567 | int arg3 ; | |
d14a1e28 | 10568 | PyObject * obj0 = 0 ; |
994141e6 RD |
10569 | PyObject * obj1 = 0 ; |
10570 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10571 | char *kwnames[] = { |
10572 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10573 | }; | |
10574 | ||
994141e6 | 10575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10577 | { |
10578 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
10580 | } | |
10581 | { | |
10582 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10583 | if (PyErr_Occurred()) SWIG_fail; | |
10584 | } | |
d14a1e28 RD |
10585 | { |
10586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10587 | (arg1)->DrawPoint(arg2,arg3); | |
10588 | ||
10589 | wxPyEndAllowThreads(__tstate); | |
10590 | if (PyErr_Occurred()) SWIG_fail; | |
10591 | } | |
10592 | Py_INCREF(Py_None); resultobj = Py_None; | |
10593 | return resultobj; | |
10594 | fail: | |
10595 | return NULL; | |
10596 | } | |
10597 | ||
10598 | ||
10599 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10600 | PyObject *resultobj; | |
10601 | wxDC *arg1 = (wxDC *) 0 ; | |
10602 | wxPoint *arg2 = 0 ; | |
10603 | wxPoint temp2 ; | |
10604 | PyObject * obj0 = 0 ; | |
10605 | PyObject * obj1 = 0 ; | |
10606 | char *kwnames[] = { | |
10607 | (char *) "self",(char *) "pt", NULL | |
10608 | }; | |
10609 | ||
10610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10612 | { | |
10613 | arg2 = &temp2; | |
10614 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10615 | } | |
10616 | { | |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10619 | ||
10620 | wxPyEndAllowThreads(__tstate); | |
10621 | if (PyErr_Occurred()) SWIG_fail; | |
10622 | } | |
10623 | Py_INCREF(Py_None); resultobj = Py_None; | |
10624 | return resultobj; | |
10625 | fail: | |
10626 | return NULL; | |
10627 | } | |
10628 | ||
10629 | ||
10630 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10631 | PyObject *resultobj; | |
10632 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10633 | int arg2 ; |
10634 | int arg3 ; | |
10635 | int arg4 ; | |
10636 | int arg5 ; | |
d14a1e28 | 10637 | PyObject * obj0 = 0 ; |
994141e6 RD |
10638 | PyObject * obj1 = 0 ; |
10639 | PyObject * obj2 = 0 ; | |
10640 | PyObject * obj3 = 0 ; | |
10641 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10642 | char *kwnames[] = { |
10643 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10644 | }; | |
10645 | ||
994141e6 | 10646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10648 | { |
10649 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
10651 | } | |
10652 | { | |
10653 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
10656 | { | |
10657 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
10660 | { | |
10661 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10662 | if (PyErr_Occurred()) SWIG_fail; | |
10663 | } | |
d14a1e28 RD |
10664 | { |
10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10666 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10667 | ||
10668 | wxPyEndAllowThreads(__tstate); | |
10669 | if (PyErr_Occurred()) SWIG_fail; | |
10670 | } | |
10671 | Py_INCREF(Py_None); resultobj = Py_None; | |
10672 | return resultobj; | |
10673 | fail: | |
10674 | return NULL; | |
10675 | } | |
10676 | ||
10677 | ||
10678 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10679 | PyObject *resultobj; | |
10680 | wxDC *arg1 = (wxDC *) 0 ; | |
10681 | wxPoint *arg2 = 0 ; | |
10682 | wxSize *arg3 = 0 ; | |
10683 | wxPoint temp2 ; | |
10684 | wxSize temp3 ; | |
10685 | PyObject * obj0 = 0 ; | |
10686 | PyObject * obj1 = 0 ; | |
10687 | PyObject * obj2 = 0 ; | |
10688 | char *kwnames[] = { | |
10689 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10690 | }; | |
10691 | ||
10692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10694 | { | |
10695 | arg2 = &temp2; | |
10696 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10697 | } | |
10698 | { | |
10699 | arg3 = &temp3; | |
10700 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10701 | } | |
10702 | { | |
10703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10704 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10705 | ||
10706 | wxPyEndAllowThreads(__tstate); | |
10707 | if (PyErr_Occurred()) SWIG_fail; | |
10708 | } | |
10709 | Py_INCREF(Py_None); resultobj = Py_None; | |
10710 | return resultobj; | |
10711 | fail: | |
10712 | return NULL; | |
10713 | } | |
10714 | ||
10715 | ||
10716 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10717 | PyObject *resultobj; | |
10718 | wxDC *arg1 = (wxDC *) 0 ; | |
10719 | wxRect *arg2 = 0 ; | |
10720 | wxRect temp2 ; | |
10721 | PyObject * obj0 = 0 ; | |
10722 | PyObject * obj1 = 0 ; | |
10723 | char *kwnames[] = { | |
10724 | (char *) "self",(char *) "rect", NULL | |
10725 | }; | |
10726 | ||
10727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10729 | { | |
10730 | arg2 = &temp2; | |
10731 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10732 | } | |
10733 | { | |
10734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10735 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10736 | ||
10737 | wxPyEndAllowThreads(__tstate); | |
10738 | if (PyErr_Occurred()) SWIG_fail; | |
10739 | } | |
10740 | Py_INCREF(Py_None); resultobj = Py_None; | |
10741 | return resultobj; | |
10742 | fail: | |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
10747 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10748 | PyObject *resultobj; | |
10749 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10750 | int arg2 ; |
10751 | int arg3 ; | |
10752 | int arg4 ; | |
10753 | int arg5 ; | |
d14a1e28 RD |
10754 | double arg6 ; |
10755 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10756 | PyObject * obj1 = 0 ; |
10757 | PyObject * obj2 = 0 ; | |
10758 | PyObject * obj3 = 0 ; | |
10759 | PyObject * obj4 = 0 ; | |
10760 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
10761 | char *kwnames[] = { |
10762 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10763 | }; | |
10764 | ||
994141e6 | 10765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 10766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10767 | { |
10768 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10769 | if (PyErr_Occurred()) SWIG_fail; | |
10770 | } | |
10771 | { | |
10772 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | } | |
10775 | { | |
10776 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10777 | if (PyErr_Occurred()) SWIG_fail; | |
10778 | } | |
10779 | { | |
10780 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | } | |
10783 | { | |
10784 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10785 | if (PyErr_Occurred()) SWIG_fail; | |
10786 | } | |
d14a1e28 RD |
10787 | { |
10788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10789 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10790 | ||
10791 | wxPyEndAllowThreads(__tstate); | |
10792 | if (PyErr_Occurred()) SWIG_fail; | |
10793 | } | |
10794 | Py_INCREF(Py_None); resultobj = Py_None; | |
10795 | return resultobj; | |
10796 | fail: | |
10797 | return NULL; | |
10798 | } | |
10799 | ||
10800 | ||
10801 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10802 | PyObject *resultobj; | |
10803 | wxDC *arg1 = (wxDC *) 0 ; | |
10804 | wxPoint *arg2 = 0 ; | |
10805 | wxSize *arg3 = 0 ; | |
10806 | double arg4 ; | |
10807 | wxPoint temp2 ; | |
10808 | wxSize temp3 ; | |
10809 | PyObject * obj0 = 0 ; | |
10810 | PyObject * obj1 = 0 ; | |
10811 | PyObject * obj2 = 0 ; | |
994141e6 | 10812 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10813 | char *kwnames[] = { |
10814 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10815 | }; | |
10816 | ||
994141e6 | 10817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10819 | { | |
10820 | arg2 = &temp2; | |
10821 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10822 | } | |
10823 | { | |
10824 | arg3 = &temp3; | |
10825 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10826 | } | |
994141e6 RD |
10827 | { |
10828 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10829 | if (PyErr_Occurred()) SWIG_fail; | |
10830 | } | |
d14a1e28 RD |
10831 | { |
10832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10833 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10834 | ||
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | } | |
10838 | Py_INCREF(Py_None); resultobj = Py_None; | |
10839 | return resultobj; | |
10840 | fail: | |
10841 | return NULL; | |
10842 | } | |
10843 | ||
10844 | ||
10845 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10846 | PyObject *resultobj; | |
10847 | wxDC *arg1 = (wxDC *) 0 ; | |
10848 | wxRect *arg2 = 0 ; | |
10849 | double arg3 ; | |
10850 | wxRect temp2 ; | |
10851 | PyObject * obj0 = 0 ; | |
10852 | PyObject * obj1 = 0 ; | |
994141e6 | 10853 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10854 | char *kwnames[] = { |
10855 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10856 | }; | |
10857 | ||
994141e6 | 10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10860 | { | |
10861 | arg2 = &temp2; | |
10862 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10863 | } | |
994141e6 RD |
10864 | { |
10865 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
d14a1e28 RD |
10868 | { |
10869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10870 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10871 | ||
10872 | wxPyEndAllowThreads(__tstate); | |
10873 | if (PyErr_Occurred()) SWIG_fail; | |
10874 | } | |
10875 | Py_INCREF(Py_None); resultobj = Py_None; | |
10876 | return resultobj; | |
10877 | fail: | |
10878 | return NULL; | |
10879 | } | |
10880 | ||
10881 | ||
10882 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10883 | PyObject *resultobj; | |
10884 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10885 | int arg2 ; |
10886 | int arg3 ; | |
10887 | int arg4 ; | |
d14a1e28 | 10888 | PyObject * obj0 = 0 ; |
994141e6 RD |
10889 | PyObject * obj1 = 0 ; |
10890 | PyObject * obj2 = 0 ; | |
10891 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10892 | char *kwnames[] = { |
10893 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10894 | }; | |
10895 | ||
994141e6 | 10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 10897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10898 | { |
10899 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10900 | if (PyErr_Occurred()) SWIG_fail; | |
10901 | } | |
10902 | { | |
10903 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10904 | if (PyErr_Occurred()) SWIG_fail; | |
10905 | } | |
10906 | { | |
10907 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10908 | if (PyErr_Occurred()) SWIG_fail; | |
10909 | } | |
d14a1e28 RD |
10910 | { |
10911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10912 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
10913 | ||
10914 | wxPyEndAllowThreads(__tstate); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | } | |
10917 | Py_INCREF(Py_None); resultobj = Py_None; | |
10918 | return resultobj; | |
10919 | fail: | |
10920 | return NULL; | |
10921 | } | |
10922 | ||
10923 | ||
10924 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10925 | PyObject *resultobj; | |
10926 | wxDC *arg1 = (wxDC *) 0 ; | |
10927 | wxPoint *arg2 = 0 ; | |
e811c8ce | 10928 | int arg3 ; |
d14a1e28 RD |
10929 | wxPoint temp2 ; |
10930 | PyObject * obj0 = 0 ; | |
10931 | PyObject * obj1 = 0 ; | |
994141e6 | 10932 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10933 | char *kwnames[] = { |
10934 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10935 | }; | |
10936 | ||
994141e6 | 10937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10939 | { | |
10940 | arg2 = &temp2; | |
10941 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10942 | } | |
994141e6 RD |
10943 | { |
10944 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10945 | if (PyErr_Occurred()) SWIG_fail; | |
10946 | } | |
d14a1e28 RD |
10947 | { |
10948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10949 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10950 | ||
10951 | wxPyEndAllowThreads(__tstate); | |
10952 | if (PyErr_Occurred()) SWIG_fail; | |
10953 | } | |
10954 | Py_INCREF(Py_None); resultobj = Py_None; | |
10955 | return resultobj; | |
10956 | fail: | |
10957 | return NULL; | |
10958 | } | |
10959 | ||
10960 | ||
10961 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10962 | PyObject *resultobj; | |
10963 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10964 | int arg2 ; |
10965 | int arg3 ; | |
10966 | int arg4 ; | |
10967 | int arg5 ; | |
d14a1e28 | 10968 | PyObject * obj0 = 0 ; |
994141e6 RD |
10969 | PyObject * obj1 = 0 ; |
10970 | PyObject * obj2 = 0 ; | |
10971 | PyObject * obj3 = 0 ; | |
10972 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10973 | char *kwnames[] = { |
10974 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10975 | }; | |
10976 | ||
994141e6 | 10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10979 | { |
10980 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | } | |
10983 | { | |
10984 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
10987 | { | |
10988 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10989 | if (PyErr_Occurred()) SWIG_fail; | |
10990 | } | |
10991 | { | |
10992 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
d14a1e28 RD |
10995 | { |
10996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10997 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
10998 | ||
10999 | wxPyEndAllowThreads(__tstate); | |
11000 | if (PyErr_Occurred()) SWIG_fail; | |
11001 | } | |
11002 | Py_INCREF(Py_None); resultobj = Py_None; | |
11003 | return resultobj; | |
11004 | fail: | |
11005 | return NULL; | |
11006 | } | |
11007 | ||
11008 | ||
11009 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11010 | PyObject *resultobj; | |
11011 | wxDC *arg1 = (wxDC *) 0 ; | |
11012 | wxPoint *arg2 = 0 ; | |
11013 | wxSize *arg3 = 0 ; | |
11014 | wxPoint temp2 ; | |
11015 | wxSize temp3 ; | |
11016 | PyObject * obj0 = 0 ; | |
11017 | PyObject * obj1 = 0 ; | |
11018 | PyObject * obj2 = 0 ; | |
11019 | char *kwnames[] = { | |
11020 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11021 | }; | |
11022 | ||
11023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11025 | { | |
11026 | arg2 = &temp2; | |
11027 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11028 | } | |
11029 | { | |
11030 | arg3 = &temp3; | |
11031 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11032 | } | |
11033 | { | |
11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11035 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | Py_INCREF(Py_None); resultobj = Py_None; | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
11047 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject *resultobj; | |
11049 | wxDC *arg1 = (wxDC *) 0 ; | |
11050 | wxRect *arg2 = 0 ; | |
11051 | wxRect temp2 ; | |
11052 | PyObject * obj0 = 0 ; | |
11053 | PyObject * obj1 = 0 ; | |
11054 | char *kwnames[] = { | |
11055 | (char *) "self",(char *) "rect", NULL | |
11056 | }; | |
11057 | ||
11058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
11059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11060 | { | |
11061 | arg2 = &temp2; | |
11062 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11063 | } | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11067 | ||
11068 | wxPyEndAllowThreads(__tstate); | |
11069 | if (PyErr_Occurred()) SWIG_fail; | |
11070 | } | |
11071 | Py_INCREF(Py_None); resultobj = Py_None; | |
11072 | return resultobj; | |
11073 | fail: | |
11074 | return NULL; | |
11075 | } | |
11076 | ||
11077 | ||
11078 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11079 | PyObject *resultobj; | |
11080 | wxDC *arg1 = (wxDC *) 0 ; | |
11081 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11082 | int arg3 ; |
11083 | int arg4 ; | |
d14a1e28 RD |
11084 | PyObject * obj0 = 0 ; |
11085 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11086 | PyObject * obj2 = 0 ; |
11087 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11088 | char *kwnames[] = { |
11089 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11090 | }; | |
11091 | ||
994141e6 | 11092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11094 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11095 | if (arg2 == NULL) { | |
11096 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11097 | } | |
994141e6 RD |
11098 | { |
11099 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
11102 | { | |
11103 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11104 | if (PyErr_Occurred()) SWIG_fail; | |
11105 | } | |
d14a1e28 RD |
11106 | { |
11107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11108 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11109 | ||
11110 | wxPyEndAllowThreads(__tstate); | |
11111 | if (PyErr_Occurred()) SWIG_fail; | |
11112 | } | |
11113 | Py_INCREF(Py_None); resultobj = Py_None; | |
11114 | return resultobj; | |
11115 | fail: | |
11116 | return NULL; | |
11117 | } | |
11118 | ||
11119 | ||
11120 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11121 | PyObject *resultobj; | |
11122 | wxDC *arg1 = (wxDC *) 0 ; | |
11123 | wxIcon *arg2 = 0 ; | |
11124 | wxPoint *arg3 = 0 ; | |
11125 | wxPoint temp3 ; | |
11126 | PyObject * obj0 = 0 ; | |
11127 | PyObject * obj1 = 0 ; | |
11128 | PyObject * obj2 = 0 ; | |
11129 | char *kwnames[] = { | |
11130 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11131 | }; | |
11132 | ||
11133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11135 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11136 | if (arg2 == NULL) { | |
11137 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11138 | } | |
11139 | { | |
11140 | arg3 = &temp3; | |
11141 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11142 | } | |
11143 | { | |
11144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11145 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11146 | ||
11147 | wxPyEndAllowThreads(__tstate); | |
11148 | if (PyErr_Occurred()) SWIG_fail; | |
11149 | } | |
11150 | Py_INCREF(Py_None); resultobj = Py_None; | |
11151 | return resultobj; | |
11152 | fail: | |
11153 | return NULL; | |
11154 | } | |
11155 | ||
11156 | ||
11157 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11158 | PyObject *resultobj; | |
11159 | wxDC *arg1 = (wxDC *) 0 ; | |
11160 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11161 | int arg3 ; |
11162 | int arg4 ; | |
11163 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11164 | PyObject * obj0 = 0 ; |
11165 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11166 | PyObject * obj2 = 0 ; |
11167 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11168 | PyObject * obj4 = 0 ; |
11169 | char *kwnames[] = { | |
11170 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11171 | }; | |
11172 | ||
994141e6 | 11173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11175 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11176 | if (arg2 == NULL) { | |
11177 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11178 | } | |
994141e6 RD |
11179 | { |
11180 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
11183 | { | |
11184 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11185 | if (PyErr_Occurred()) SWIG_fail; | |
11186 | } | |
d14a1e28 | 11187 | if (obj4) { |
a41e16b6 | 11188 | { |
994141e6 | 11189 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
11190 | if (PyErr_Occurred()) SWIG_fail; |
11191 | } | |
d14a1e28 RD |
11192 | } |
11193 | { | |
11194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11195 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11196 | ||
11197 | wxPyEndAllowThreads(__tstate); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | } | |
11200 | Py_INCREF(Py_None); resultobj = Py_None; | |
11201 | return resultobj; | |
11202 | fail: | |
11203 | return NULL; | |
11204 | } | |
11205 | ||
11206 | ||
11207 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11208 | PyObject *resultobj; | |
11209 | wxDC *arg1 = (wxDC *) 0 ; | |
11210 | wxBitmap *arg2 = 0 ; | |
11211 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11212 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11213 | wxPoint temp3 ; |
11214 | PyObject * obj0 = 0 ; | |
11215 | PyObject * obj1 = 0 ; | |
11216 | PyObject * obj2 = 0 ; | |
11217 | PyObject * obj3 = 0 ; | |
11218 | char *kwnames[] = { | |
11219 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11220 | }; | |
11221 | ||
11222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11224 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11225 | if (arg2 == NULL) { | |
11226 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11227 | } | |
11228 | { | |
11229 | arg3 = &temp3; | |
11230 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11231 | } | |
11232 | if (obj3) { | |
a41e16b6 | 11233 | { |
994141e6 | 11234 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
11235 | if (PyErr_Occurred()) SWIG_fail; |
11236 | } | |
d14a1e28 RD |
11237 | } |
11238 | { | |
11239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11240 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11241 | ||
11242 | wxPyEndAllowThreads(__tstate); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | } | |
11245 | Py_INCREF(Py_None); resultobj = Py_None; | |
11246 | return resultobj; | |
11247 | fail: | |
11248 | return NULL; | |
11249 | } | |
11250 | ||
11251 | ||
11252 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11253 | PyObject *resultobj; | |
11254 | wxDC *arg1 = (wxDC *) 0 ; | |
11255 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11256 | int arg3 ; |
11257 | int arg4 ; | |
11258 | bool temp2 = False ; | |
d14a1e28 RD |
11259 | PyObject * obj0 = 0 ; |
11260 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11261 | PyObject * obj2 = 0 ; |
11262 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11263 | char *kwnames[] = { |
11264 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11265 | }; | |
11266 | ||
994141e6 | 11267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11269 | { | |
11270 | arg2 = wxString_in_helper(obj1); | |
11271 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11272 | temp2 = True; |
d14a1e28 | 11273 | } |
994141e6 RD |
11274 | { |
11275 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | { | |
11279 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11280 | if (PyErr_Occurred()) SWIG_fail; | |
11281 | } | |
d14a1e28 RD |
11282 | { |
11283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11284 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11285 | ||
11286 | wxPyEndAllowThreads(__tstate); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
11288 | } | |
11289 | Py_INCREF(Py_None); resultobj = Py_None; | |
11290 | { | |
11291 | if (temp2) | |
11292 | delete arg2; | |
11293 | } | |
11294 | return resultobj; | |
11295 | fail: | |
11296 | { | |
11297 | if (temp2) | |
11298 | delete arg2; | |
11299 | } | |
11300 | return NULL; | |
11301 | } | |
11302 | ||
11303 | ||
11304 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11305 | PyObject *resultobj; | |
11306 | wxDC *arg1 = (wxDC *) 0 ; | |
11307 | wxString *arg2 = 0 ; | |
11308 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11309 | bool temp2 = False ; |
d14a1e28 RD |
11310 | wxPoint temp3 ; |
11311 | PyObject * obj0 = 0 ; | |
11312 | PyObject * obj1 = 0 ; | |
11313 | PyObject * obj2 = 0 ; | |
11314 | char *kwnames[] = { | |
11315 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11316 | }; | |
11317 | ||
11318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11320 | { | |
11321 | arg2 = wxString_in_helper(obj1); | |
11322 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11323 | temp2 = True; |
d14a1e28 RD |
11324 | } |
11325 | { | |
11326 | arg3 = &temp3; | |
11327 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11328 | } | |
11329 | { | |
11330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11331 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11332 | ||
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | Py_INCREF(Py_None); resultobj = Py_None; | |
11337 | { | |
11338 | if (temp2) | |
11339 | delete arg2; | |
11340 | } | |
11341 | return resultobj; | |
11342 | fail: | |
11343 | { | |
11344 | if (temp2) | |
11345 | delete arg2; | |
11346 | } | |
11347 | return NULL; | |
11348 | } | |
11349 | ||
11350 | ||
11351 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11352 | PyObject *resultobj; | |
11353 | wxDC *arg1 = (wxDC *) 0 ; | |
11354 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11355 | int arg3 ; |
11356 | int arg4 ; | |
d14a1e28 | 11357 | double arg5 ; |
e811c8ce | 11358 | bool temp2 = False ; |
d14a1e28 RD |
11359 | PyObject * obj0 = 0 ; |
11360 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11361 | PyObject * obj2 = 0 ; |
11362 | PyObject * obj3 = 0 ; | |
11363 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11364 | char *kwnames[] = { |
11365 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11366 | }; | |
11367 | ||
994141e6 | 11368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11370 | { | |
11371 | arg2 = wxString_in_helper(obj1); | |
11372 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11373 | temp2 = True; |
d14a1e28 | 11374 | } |
994141e6 RD |
11375 | { |
11376 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11377 | if (PyErr_Occurred()) SWIG_fail; | |
11378 | } | |
11379 | { | |
11380 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11381 | if (PyErr_Occurred()) SWIG_fail; | |
11382 | } | |
11383 | { | |
11384 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
11385 | if (PyErr_Occurred()) SWIG_fail; | |
11386 | } | |
d14a1e28 RD |
11387 | { |
11388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11389 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11390 | ||
11391 | wxPyEndAllowThreads(__tstate); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
11394 | Py_INCREF(Py_None); resultobj = Py_None; | |
11395 | { | |
11396 | if (temp2) | |
11397 | delete arg2; | |
11398 | } | |
11399 | return resultobj; | |
11400 | fail: | |
11401 | { | |
11402 | if (temp2) | |
11403 | delete arg2; | |
11404 | } | |
11405 | return NULL; | |
11406 | } | |
11407 | ||
11408 | ||
11409 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11410 | PyObject *resultobj; | |
11411 | wxDC *arg1 = (wxDC *) 0 ; | |
11412 | wxString *arg2 = 0 ; | |
11413 | wxPoint *arg3 = 0 ; | |
11414 | double arg4 ; | |
e811c8ce | 11415 | bool temp2 = False ; |
d14a1e28 RD |
11416 | wxPoint temp3 ; |
11417 | PyObject * obj0 = 0 ; | |
11418 | PyObject * obj1 = 0 ; | |
11419 | PyObject * obj2 = 0 ; | |
994141e6 | 11420 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11421 | char *kwnames[] = { |
11422 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11423 | }; | |
11424 | ||
994141e6 | 11425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11427 | { | |
11428 | arg2 = wxString_in_helper(obj1); | |
11429 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11430 | temp2 = True; |
d14a1e28 RD |
11431 | } |
11432 | { | |
11433 | arg3 = &temp3; | |
11434 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11435 | } | |
994141e6 RD |
11436 | { |
11437 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
d14a1e28 RD |
11440 | { |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11443 | ||
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
11447 | Py_INCREF(Py_None); resultobj = Py_None; | |
11448 | { | |
11449 | if (temp2) | |
11450 | delete arg2; | |
11451 | } | |
11452 | return resultobj; | |
11453 | fail: | |
11454 | { | |
11455 | if (temp2) | |
11456 | delete arg2; | |
11457 | } | |
11458 | return NULL; | |
11459 | } | |
11460 | ||
11461 | ||
11462 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11463 | PyObject *resultobj; | |
11464 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11465 | int arg2 ; |
11466 | int arg3 ; | |
11467 | int arg4 ; | |
11468 | int arg5 ; | |
d14a1e28 | 11469 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
11470 | int arg7 ; |
11471 | int arg8 ; | |
d14a1e28 | 11472 | int arg9 = (int) wxCOPY ; |
e811c8ce RD |
11473 | bool arg10 = (bool) False ; |
11474 | int arg11 = (int) -1 ; | |
11475 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11476 | bool result; |
11477 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11478 | PyObject * obj1 = 0 ; |
11479 | PyObject * obj2 = 0 ; | |
11480 | PyObject * obj3 = 0 ; | |
11481 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11482 | PyObject * obj5 = 0 ; |
994141e6 RD |
11483 | PyObject * obj6 = 0 ; |
11484 | PyObject * obj7 = 0 ; | |
11485 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11486 | PyObject * obj9 = 0 ; |
994141e6 RD |
11487 | PyObject * obj10 = 0 ; |
11488 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11489 | char *kwnames[] = { |
11490 | (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 | |
11491 | }; | |
11492 | ||
994141e6 | 11493 | 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 | 11494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11495 | { |
11496 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11497 | if (PyErr_Occurred()) SWIG_fail; | |
11498 | } | |
11499 | { | |
11500 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11501 | if (PyErr_Occurred()) SWIG_fail; | |
11502 | } | |
11503 | { | |
11504 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11505 | if (PyErr_Occurred()) SWIG_fail; | |
11506 | } | |
11507 | { | |
11508 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
11510 | } | |
d14a1e28 | 11511 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11512 | { |
11513 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | { | |
11517 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
11520 | if (obj8) { | |
11521 | { | |
11522 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
11525 | } | |
d14a1e28 | 11526 | if (obj9) { |
a41e16b6 | 11527 | { |
994141e6 RD |
11528 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
11529 | if (PyErr_Occurred()) SWIG_fail; | |
11530 | } | |
11531 | } | |
11532 | if (obj10) { | |
11533 | { | |
11534 | arg11 = (int) SWIG_PyObj_AsInt(obj10); | |
11535 | if (PyErr_Occurred()) SWIG_fail; | |
11536 | } | |
11537 | } | |
11538 | if (obj11) { | |
11539 | { | |
11540 | arg12 = (int) SWIG_PyObj_AsInt(obj11); | |
a41e16b6 RD |
11541 | if (PyErr_Occurred()) SWIG_fail; |
11542 | } | |
d14a1e28 RD |
11543 | } |
11544 | { | |
11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11546 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11547 | ||
11548 | wxPyEndAllowThreads(__tstate); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | } | |
4d5c3d91 | 11551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11552 | return resultobj; |
11553 | fail: | |
11554 | return NULL; | |
11555 | } | |
11556 | ||
11557 | ||
11558 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11559 | PyObject *resultobj; | |
11560 | wxDC *arg1 = (wxDC *) 0 ; | |
11561 | wxPoint *arg2 = 0 ; | |
11562 | wxSize *arg3 = 0 ; | |
11563 | wxDC *arg4 = (wxDC *) 0 ; | |
11564 | wxPoint *arg5 = 0 ; | |
11565 | int arg6 = (int) wxCOPY ; | |
e811c8ce | 11566 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11567 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11568 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11569 | bool result; | |
11570 | wxPoint temp2 ; | |
11571 | wxSize temp3 ; | |
11572 | wxPoint temp5 ; | |
11573 | wxPoint temp8 ; | |
11574 | PyObject * obj0 = 0 ; | |
11575 | PyObject * obj1 = 0 ; | |
11576 | PyObject * obj2 = 0 ; | |
11577 | PyObject * obj3 = 0 ; | |
11578 | PyObject * obj4 = 0 ; | |
994141e6 | 11579 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11580 | PyObject * obj6 = 0 ; |
11581 | PyObject * obj7 = 0 ; | |
11582 | char *kwnames[] = { | |
11583 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11584 | }; | |
11585 | ||
994141e6 | 11586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
11587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11588 | { | |
11589 | arg2 = &temp2; | |
11590 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11591 | } | |
11592 | { | |
11593 | arg3 = &temp3; | |
11594 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11595 | } | |
11596 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11597 | { | |
11598 | arg5 = &temp5; | |
11599 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11600 | } | |
994141e6 RD |
11601 | if (obj5) { |
11602 | { | |
11603 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | } | |
d14a1e28 | 11607 | if (obj6) { |
a41e16b6 | 11608 | { |
994141e6 | 11609 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
11610 | if (PyErr_Occurred()) SWIG_fail; |
11611 | } | |
d14a1e28 RD |
11612 | } |
11613 | if (obj7) { | |
11614 | { | |
11615 | arg8 = &temp8; | |
11616 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11617 | } | |
11618 | } | |
11619 | { | |
11620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11621 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11622 | ||
11623 | wxPyEndAllowThreads(__tstate); | |
11624 | if (PyErr_Occurred()) SWIG_fail; | |
11625 | } | |
4d5c3d91 | 11626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11627 | return resultobj; |
11628 | fail: | |
11629 | return NULL; | |
11630 | } | |
11631 | ||
11632 | ||
11633 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11634 | PyObject *resultobj; | |
11635 | wxDC *arg1 = (wxDC *) 0 ; | |
11636 | int arg2 ; | |
11637 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11638 | int arg4 = (int) 0 ; |
11639 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11640 | PyObject * obj0 = 0 ; |
11641 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11642 | PyObject * obj2 = 0 ; |
11643 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11644 | char *kwnames[] = { |
11645 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11646 | }; | |
11647 | ||
994141e6 | 11648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11650 | { | |
11651 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11652 | if (arg3 == NULL) SWIG_fail; | |
11653 | } | |
994141e6 RD |
11654 | if (obj2) { |
11655 | { | |
11656 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11657 | if (PyErr_Occurred()) SWIG_fail; | |
11658 | } | |
11659 | } | |
11660 | if (obj3) { | |
11661 | { | |
11662 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11663 | if (PyErr_Occurred()) SWIG_fail; | |
11664 | } | |
11665 | } | |
d14a1e28 RD |
11666 | { |
11667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11668 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11669 | ||
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) SWIG_fail; | |
11672 | } | |
11673 | Py_INCREF(Py_None); resultobj = Py_None; | |
11674 | { | |
11675 | if (arg3) delete [] arg3; | |
11676 | } | |
11677 | return resultobj; | |
11678 | fail: | |
11679 | { | |
11680 | if (arg3) delete [] arg3; | |
11681 | } | |
11682 | return NULL; | |
11683 | } | |
11684 | ||
11685 | ||
11686 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11687 | PyObject *resultobj; | |
11688 | wxDC *arg1 = (wxDC *) 0 ; | |
11689 | int arg2 ; | |
11690 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11691 | int arg4 = (int) 0 ; |
11692 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11693 | int arg6 = (int) wxODDEVEN_RULE ; |
11694 | PyObject * obj0 = 0 ; | |
11695 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11696 | PyObject * obj2 = 0 ; |
11697 | PyObject * obj3 = 0 ; | |
11698 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11699 | char *kwnames[] = { |
11700 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11701 | }; | |
11702 | ||
994141e6 | 11703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11705 | { | |
11706 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11707 | if (arg3 == NULL) SWIG_fail; | |
11708 | } | |
994141e6 RD |
11709 | if (obj2) { |
11710 | { | |
11711 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | } | |
11715 | if (obj3) { | |
11716 | { | |
11717 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11718 | if (PyErr_Occurred()) SWIG_fail; | |
11719 | } | |
11720 | } | |
11721 | if (obj4) { | |
11722 | { | |
11723 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
11725 | } | |
11726 | } | |
d14a1e28 RD |
11727 | { |
11728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11729 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11730 | ||
11731 | wxPyEndAllowThreads(__tstate); | |
11732 | if (PyErr_Occurred()) SWIG_fail; | |
11733 | } | |
11734 | Py_INCREF(Py_None); resultobj = Py_None; | |
11735 | { | |
11736 | if (arg3) delete [] arg3; | |
11737 | } | |
11738 | return resultobj; | |
11739 | fail: | |
11740 | { | |
11741 | if (arg3) delete [] arg3; | |
11742 | } | |
11743 | return NULL; | |
11744 | } | |
11745 | ||
11746 | ||
11747 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11748 | PyObject *resultobj; | |
11749 | wxDC *arg1 = (wxDC *) 0 ; | |
11750 | wxString *arg2 = 0 ; | |
11751 | wxRect *arg3 = 0 ; | |
11752 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11753 | int arg5 = (int) -1 ; | |
e811c8ce | 11754 | bool temp2 = False ; |
d14a1e28 RD |
11755 | wxRect temp3 ; |
11756 | PyObject * obj0 = 0 ; | |
11757 | PyObject * obj1 = 0 ; | |
11758 | PyObject * obj2 = 0 ; | |
994141e6 RD |
11759 | PyObject * obj3 = 0 ; |
11760 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11761 | char *kwnames[] = { |
11762 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11763 | }; | |
11764 | ||
994141e6 | 11765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11767 | { | |
11768 | arg2 = wxString_in_helper(obj1); | |
11769 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11770 | temp2 = True; |
d14a1e28 RD |
11771 | } |
11772 | { | |
11773 | arg3 = &temp3; | |
11774 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11775 | } | |
994141e6 RD |
11776 | if (obj3) { |
11777 | { | |
11778 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11779 | if (PyErr_Occurred()) SWIG_fail; | |
11780 | } | |
11781 | } | |
11782 | if (obj4) { | |
11783 | { | |
11784 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11785 | if (PyErr_Occurred()) SWIG_fail; | |
11786 | } | |
11787 | } | |
11788 | { | |
11789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11790 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
11791 | |
11792 | wxPyEndAllowThreads(__tstate); | |
11793 | if (PyErr_Occurred()) SWIG_fail; | |
11794 | } | |
11795 | Py_INCREF(Py_None); resultobj = Py_None; | |
11796 | { | |
11797 | if (temp2) | |
11798 | delete arg2; | |
11799 | } | |
11800 | return resultobj; | |
11801 | fail: | |
11802 | { | |
11803 | if (temp2) | |
11804 | delete arg2; | |
11805 | } | |
11806 | return NULL; | |
11807 | } | |
11808 | ||
11809 | ||
11810 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11811 | PyObject *resultobj; | |
11812 | wxDC *arg1 = (wxDC *) 0 ; | |
11813 | wxString *arg2 = 0 ; | |
11814 | wxBitmap *arg3 = 0 ; | |
11815 | wxRect *arg4 = 0 ; | |
11816 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11817 | int arg6 = (int) -1 ; | |
11818 | wxRect result; | |
e811c8ce | 11819 | bool temp2 = False ; |
d14a1e28 RD |
11820 | wxRect temp4 ; |
11821 | PyObject * obj0 = 0 ; | |
11822 | PyObject * obj1 = 0 ; | |
11823 | PyObject * obj2 = 0 ; | |
11824 | PyObject * obj3 = 0 ; | |
994141e6 RD |
11825 | PyObject * obj4 = 0 ; |
11826 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11827 | char *kwnames[] = { |
11828 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11829 | }; | |
11830 | ||
994141e6 | 11831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
11832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11833 | { | |
11834 | arg2 = wxString_in_helper(obj1); | |
11835 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11836 | temp2 = True; |
d14a1e28 RD |
11837 | } |
11838 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11839 | if (arg3 == NULL) { | |
11840 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | arg4 = &temp4; | |
11844 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11845 | } | |
994141e6 RD |
11846 | if (obj4) { |
11847 | { | |
11848 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
11851 | } | |
11852 | if (obj5) { | |
11853 | { | |
11854 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11855 | if (PyErr_Occurred()) SWIG_fail; | |
11856 | } | |
11857 | } | |
d14a1e28 RD |
11858 | { |
11859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11860 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
11861 | ||
11862 | wxPyEndAllowThreads(__tstate); | |
11863 | if (PyErr_Occurred()) SWIG_fail; | |
11864 | } | |
11865 | { | |
11866 | wxRect * resultptr; | |
11867 | resultptr = new wxRect((wxRect &) result); | |
11868 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11869 | } | |
11870 | { | |
11871 | if (temp2) | |
11872 | delete arg2; | |
11873 | } | |
11874 | return resultobj; | |
11875 | fail: | |
11876 | { | |
11877 | if (temp2) | |
11878 | delete arg2; | |
11879 | } | |
11880 | return NULL; | |
11881 | } | |
11882 | ||
11883 | ||
11884 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11885 | PyObject *resultobj; | |
11886 | wxDC *arg1 = (wxDC *) 0 ; | |
11887 | int arg2 ; | |
11888 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11889 | PyObject * obj0 = 0 ; | |
11890 | PyObject * obj1 = 0 ; | |
11891 | char *kwnames[] = { | |
11892 | (char *) "self",(char *) "points", NULL | |
11893 | }; | |
11894 | ||
11895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11897 | { | |
11898 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11899 | if (arg3 == NULL) SWIG_fail; | |
11900 | } | |
11901 | { | |
11902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11903 | (arg1)->DrawSpline(arg2,arg3); | |
11904 | ||
11905 | wxPyEndAllowThreads(__tstate); | |
11906 | if (PyErr_Occurred()) SWIG_fail; | |
11907 | } | |
11908 | Py_INCREF(Py_None); resultobj = Py_None; | |
11909 | { | |
11910 | if (arg3) delete [] arg3; | |
11911 | } | |
11912 | return resultobj; | |
11913 | fail: | |
11914 | { | |
11915 | if (arg3) delete [] arg3; | |
11916 | } | |
11917 | return NULL; | |
11918 | } | |
11919 | ||
11920 | ||
11921 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11922 | PyObject *resultobj; | |
11923 | wxDC *arg1 = (wxDC *) 0 ; | |
11924 | PyObject * obj0 = 0 ; | |
11925 | char *kwnames[] = { | |
11926 | (char *) "self", NULL | |
11927 | }; | |
11928 | ||
11929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11931 | { | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11933 | (arg1)->Clear(); | |
11934 | ||
11935 | wxPyEndAllowThreads(__tstate); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
11938 | Py_INCREF(Py_None); resultobj = Py_None; | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
11945 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11946 | PyObject *resultobj; | |
11947 | wxDC *arg1 = (wxDC *) 0 ; | |
11948 | wxString *arg2 = 0 ; | |
11949 | bool result; | |
e811c8ce | 11950 | bool temp2 = False ; |
d14a1e28 RD |
11951 | PyObject * obj0 = 0 ; |
11952 | PyObject * obj1 = 0 ; | |
11953 | char *kwnames[] = { | |
11954 | (char *) "self",(char *) "message", NULL | |
11955 | }; | |
11956 | ||
11957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11959 | { | |
11960 | arg2 = wxString_in_helper(obj1); | |
11961 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11962 | temp2 = True; |
d14a1e28 RD |
11963 | } |
11964 | { | |
11965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11966 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11967 | ||
11968 | wxPyEndAllowThreads(__tstate); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
4d5c3d91 | 11971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11972 | { |
11973 | if (temp2) | |
11974 | delete arg2; | |
11975 | } | |
11976 | return resultobj; | |
11977 | fail: | |
11978 | { | |
11979 | if (temp2) | |
11980 | delete arg2; | |
11981 | } | |
11982 | return NULL; | |
11983 | } | |
11984 | ||
11985 | ||
11986 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11987 | PyObject *resultobj; | |
11988 | wxDC *arg1 = (wxDC *) 0 ; | |
11989 | PyObject * obj0 = 0 ; | |
11990 | char *kwnames[] = { | |
11991 | (char *) "self", NULL | |
11992 | }; | |
11993 | ||
11994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
11995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11996 | { | |
11997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11998 | (arg1)->EndDoc(); | |
11999 | ||
12000 | wxPyEndAllowThreads(__tstate); | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
12002 | } | |
12003 | Py_INCREF(Py_None); resultobj = Py_None; | |
12004 | return resultobj; | |
12005 | fail: | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
12010 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12011 | PyObject *resultobj; | |
12012 | wxDC *arg1 = (wxDC *) 0 ; | |
12013 | PyObject * obj0 = 0 ; | |
12014 | char *kwnames[] = { | |
12015 | (char *) "self", NULL | |
12016 | }; | |
12017 | ||
12018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12020 | { | |
12021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12022 | (arg1)->StartPage(); | |
12023 | ||
12024 | wxPyEndAllowThreads(__tstate); | |
12025 | if (PyErr_Occurred()) SWIG_fail; | |
12026 | } | |
12027 | Py_INCREF(Py_None); resultobj = Py_None; | |
12028 | return resultobj; | |
12029 | fail: | |
12030 | return NULL; | |
12031 | } | |
12032 | ||
12033 | ||
12034 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12035 | PyObject *resultobj; | |
12036 | wxDC *arg1 = (wxDC *) 0 ; | |
12037 | PyObject * obj0 = 0 ; | |
12038 | char *kwnames[] = { | |
12039 | (char *) "self", NULL | |
12040 | }; | |
12041 | ||
12042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12044 | { | |
12045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12046 | (arg1)->EndPage(); | |
12047 | ||
12048 | wxPyEndAllowThreads(__tstate); | |
12049 | if (PyErr_Occurred()) SWIG_fail; | |
12050 | } | |
12051 | Py_INCREF(Py_None); resultobj = Py_None; | |
12052 | return resultobj; | |
12053 | fail: | |
12054 | return NULL; | |
12055 | } | |
12056 | ||
12057 | ||
12058 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12059 | PyObject *resultobj; | |
12060 | wxDC *arg1 = (wxDC *) 0 ; | |
12061 | wxFont *arg2 = 0 ; | |
12062 | PyObject * obj0 = 0 ; | |
12063 | PyObject * obj1 = 0 ; | |
12064 | char *kwnames[] = { | |
12065 | (char *) "self",(char *) "font", NULL | |
12066 | }; | |
12067 | ||
12068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
12069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12071 | if (arg2 == NULL) { | |
12072 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12073 | } | |
12074 | { | |
12075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12076 | (arg1)->SetFont((wxFont const &)*arg2); | |
12077 | ||
12078 | wxPyEndAllowThreads(__tstate); | |
12079 | if (PyErr_Occurred()) SWIG_fail; | |
12080 | } | |
12081 | Py_INCREF(Py_None); resultobj = Py_None; | |
12082 | return resultobj; | |
12083 | fail: | |
12084 | return NULL; | |
12085 | } | |
12086 | ||
12087 | ||
12088 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12089 | PyObject *resultobj; | |
12090 | wxDC *arg1 = (wxDC *) 0 ; | |
12091 | wxPen *arg2 = 0 ; | |
12092 | PyObject * obj0 = 0 ; | |
12093 | PyObject * obj1 = 0 ; | |
12094 | char *kwnames[] = { | |
12095 | (char *) "self",(char *) "pen", NULL | |
12096 | }; | |
12097 | ||
12098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
12099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12100 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12101 | if (arg2 == NULL) { | |
12102 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12103 | } | |
12104 | { | |
12105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12106 | (arg1)->SetPen((wxPen const &)*arg2); | |
12107 | ||
12108 | wxPyEndAllowThreads(__tstate); | |
12109 | if (PyErr_Occurred()) SWIG_fail; | |
12110 | } | |
12111 | Py_INCREF(Py_None); resultobj = Py_None; | |
12112 | return resultobj; | |
12113 | fail: | |
12114 | return NULL; | |
12115 | } | |
12116 | ||
12117 | ||
12118 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12119 | PyObject *resultobj; | |
12120 | wxDC *arg1 = (wxDC *) 0 ; | |
12121 | wxBrush *arg2 = 0 ; | |
12122 | PyObject * obj0 = 0 ; | |
12123 | PyObject * obj1 = 0 ; | |
12124 | char *kwnames[] = { | |
12125 | (char *) "self",(char *) "brush", NULL | |
12126 | }; | |
12127 | ||
12128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
12129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12130 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12131 | if (arg2 == NULL) { | |
12132 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12133 | } | |
12134 | { | |
12135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12136 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12137 | ||
12138 | wxPyEndAllowThreads(__tstate); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
12141 | Py_INCREF(Py_None); resultobj = Py_None; | |
12142 | return resultobj; | |
12143 | fail: | |
12144 | return NULL; | |
12145 | } | |
12146 | ||
12147 | ||
12148 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12149 | PyObject *resultobj; | |
12150 | wxDC *arg1 = (wxDC *) 0 ; | |
12151 | wxBrush *arg2 = 0 ; | |
12152 | PyObject * obj0 = 0 ; | |
12153 | PyObject * obj1 = 0 ; | |
12154 | char *kwnames[] = { | |
12155 | (char *) "self",(char *) "brush", NULL | |
12156 | }; | |
12157 | ||
12158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
12159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12160 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12161 | if (arg2 == NULL) { | |
12162 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12163 | } | |
12164 | { | |
12165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12166 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12167 | ||
12168 | wxPyEndAllowThreads(__tstate); | |
12169 | if (PyErr_Occurred()) SWIG_fail; | |
12170 | } | |
12171 | Py_INCREF(Py_None); resultobj = Py_None; | |
12172 | return resultobj; | |
12173 | fail: | |
12174 | return NULL; | |
12175 | } | |
12176 | ||
12177 | ||
12178 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12179 | PyObject *resultobj; | |
12180 | wxDC *arg1 = (wxDC *) 0 ; | |
12181 | int arg2 ; | |
12182 | PyObject * obj0 = 0 ; | |
994141e6 | 12183 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12184 | char *kwnames[] = { |
12185 | (char *) "self",(char *) "mode", NULL | |
12186 | }; | |
12187 | ||
994141e6 | 12188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12190 | { |
12191 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
d14a1e28 RD |
12194 | { |
12195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12196 | (arg1)->SetBackgroundMode(arg2); | |
12197 | ||
12198 | wxPyEndAllowThreads(__tstate); | |
12199 | if (PyErr_Occurred()) SWIG_fail; | |
12200 | } | |
12201 | Py_INCREF(Py_None); resultobj = Py_None; | |
12202 | return resultobj; | |
12203 | fail: | |
12204 | return NULL; | |
12205 | } | |
12206 | ||
12207 | ||
12208 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12209 | PyObject *resultobj; | |
12210 | wxDC *arg1 = (wxDC *) 0 ; | |
12211 | wxPalette *arg2 = 0 ; | |
12212 | PyObject * obj0 = 0 ; | |
12213 | PyObject * obj1 = 0 ; | |
12214 | char *kwnames[] = { | |
12215 | (char *) "self",(char *) "palette", NULL | |
12216 | }; | |
12217 | ||
12218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
12219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12220 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12221 | if (arg2 == NULL) { | |
12222 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12223 | } | |
12224 | { | |
12225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12226 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12227 | ||
12228 | wxPyEndAllowThreads(__tstate); | |
12229 | if (PyErr_Occurred()) SWIG_fail; | |
12230 | } | |
12231 | Py_INCREF(Py_None); resultobj = Py_None; | |
12232 | return resultobj; | |
12233 | fail: | |
12234 | return NULL; | |
12235 | } | |
12236 | ||
12237 | ||
242b7b46 | 12238 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12239 | PyObject *resultobj; |
12240 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12241 | int arg2 ; |
12242 | int arg3 ; | |
12243 | int arg4 ; | |
12244 | int arg5 ; | |
d14a1e28 | 12245 | PyObject * obj0 = 0 ; |
994141e6 RD |
12246 | PyObject * obj1 = 0 ; |
12247 | PyObject * obj2 = 0 ; | |
12248 | PyObject * obj3 = 0 ; | |
12249 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12250 | char *kwnames[] = { |
12251 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12252 | }; | |
12253 | ||
994141e6 | 12254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12256 | { |
12257 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12258 | if (PyErr_Occurred()) SWIG_fail; | |
12259 | } | |
12260 | { | |
12261 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | { | |
12265 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12266 | if (PyErr_Occurred()) SWIG_fail; | |
12267 | } | |
12268 | { | |
12269 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12270 | if (PyErr_Occurred()) SWIG_fail; | |
12271 | } | |
d14a1e28 RD |
12272 | { |
12273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12274 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12275 | ||
12276 | wxPyEndAllowThreads(__tstate); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
12279 | Py_INCREF(Py_None); resultobj = Py_None; | |
12280 | return resultobj; | |
12281 | fail: | |
12282 | return NULL; | |
12283 | } | |
12284 | ||
12285 | ||
242b7b46 RD |
12286 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12287 | PyObject *resultobj; | |
12288 | wxDC *arg1 = (wxDC *) 0 ; | |
12289 | wxPoint *arg2 = 0 ; | |
12290 | wxSize *arg3 = 0 ; | |
12291 | wxPoint temp2 ; | |
12292 | wxSize temp3 ; | |
12293 | PyObject * obj0 = 0 ; | |
12294 | PyObject * obj1 = 0 ; | |
12295 | PyObject * obj2 = 0 ; | |
12296 | char *kwnames[] = { | |
12297 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12298 | }; | |
12299 | ||
12300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12302 | { | |
12303 | arg2 = &temp2; | |
12304 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12305 | } | |
12306 | { | |
12307 | arg3 = &temp3; | |
12308 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12309 | } | |
12310 | { | |
12311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12312 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12313 | ||
12314 | wxPyEndAllowThreads(__tstate); | |
12315 | if (PyErr_Occurred()) SWIG_fail; | |
12316 | } | |
12317 | Py_INCREF(Py_None); resultobj = Py_None; | |
12318 | return resultobj; | |
12319 | fail: | |
12320 | return NULL; | |
12321 | } | |
12322 | ||
12323 | ||
d14a1e28 RD |
12324 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
12325 | PyObject *resultobj; | |
12326 | wxDC *arg1 = (wxDC *) 0 ; | |
12327 | wxRect *arg2 = 0 ; | |
12328 | wxRect temp2 ; | |
12329 | PyObject * obj0 = 0 ; | |
12330 | PyObject * obj1 = 0 ; | |
12331 | char *kwnames[] = { | |
12332 | (char *) "self",(char *) "rect", NULL | |
12333 | }; | |
12334 | ||
12335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12337 | { | |
12338 | arg2 = &temp2; | |
12339 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12340 | } | |
12341 | { | |
12342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12343 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12344 | ||
12345 | wxPyEndAllowThreads(__tstate); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | Py_INCREF(Py_None); resultobj = Py_None; | |
12349 | return resultobj; | |
12350 | fail: | |
12351 | return NULL; | |
12352 | } | |
12353 | ||
12354 | ||
12355 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12356 | PyObject *resultobj; | |
12357 | wxDC *arg1 = (wxDC *) 0 ; | |
12358 | wxRegion *arg2 = 0 ; | |
12359 | PyObject * obj0 = 0 ; | |
12360 | PyObject * obj1 = 0 ; | |
12361 | char *kwnames[] = { | |
12362 | (char *) "self",(char *) "region", NULL | |
12363 | }; | |
12364 | ||
12365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12367 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12368 | if (arg2 == NULL) { | |
12369 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12370 | } | |
12371 | { | |
12372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12373 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12374 | ||
12375 | wxPyEndAllowThreads(__tstate); | |
12376 | if (PyErr_Occurred()) SWIG_fail; | |
12377 | } | |
12378 | Py_INCREF(Py_None); resultobj = Py_None; | |
12379 | return resultobj; | |
12380 | fail: | |
12381 | return NULL; | |
12382 | } | |
12383 | ||
12384 | ||
12385 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12386 | PyObject *resultobj; | |
12387 | wxDC *arg1 = (wxDC *) 0 ; | |
12388 | PyObject * obj0 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "self", NULL | |
12391 | }; | |
12392 | ||
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
12394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12395 | { | |
12396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12397 | (arg1)->DestroyClippingRegion(); | |
12398 | ||
12399 | wxPyEndAllowThreads(__tstate); | |
12400 | if (PyErr_Occurred()) SWIG_fail; | |
12401 | } | |
12402 | Py_INCREF(Py_None); resultobj = Py_None; | |
12403 | return resultobj; | |
12404 | fail: | |
12405 | return NULL; | |
12406 | } | |
12407 | ||
12408 | ||
12409 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12410 | PyObject *resultobj; | |
12411 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12412 | int *arg2 = (int *) 0 ; |
12413 | int *arg3 = (int *) 0 ; | |
12414 | int *arg4 = (int *) 0 ; | |
12415 | int *arg5 = (int *) 0 ; | |
12416 | int temp2 ; | |
12417 | int temp3 ; | |
12418 | int temp4 ; | |
12419 | int temp5 ; | |
d14a1e28 RD |
12420 | PyObject * obj0 = 0 ; |
12421 | char *kwnames[] = { | |
12422 | (char *) "self", NULL | |
12423 | }; | |
12424 | ||
12425 | arg2 = &temp2; | |
12426 | arg3 = &temp3; | |
12427 | arg4 = &temp4; | |
12428 | arg5 = &temp5; | |
12429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
12430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12434 | ||
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
12438 | Py_INCREF(Py_None); resultobj = Py_None; | |
12439 | { | |
12440 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12441 | resultobj = t_output_helper(resultobj,o); | |
12442 | } | |
12443 | { | |
12444 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12445 | resultobj = t_output_helper(resultobj,o); | |
12446 | } | |
12447 | { | |
12448 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12449 | resultobj = t_output_helper(resultobj,o); | |
12450 | } | |
12451 | { | |
12452 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12453 | resultobj = t_output_helper(resultobj,o); | |
12454 | } | |
12455 | return resultobj; | |
12456 | fail: | |
12457 | return NULL; | |
12458 | } | |
12459 | ||
12460 | ||
12461 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12462 | PyObject *resultobj; | |
12463 | wxDC *arg1 = (wxDC *) 0 ; | |
12464 | wxRect result; | |
12465 | PyObject * obj0 = 0 ; | |
12466 | char *kwnames[] = { | |
12467 | (char *) "self", NULL | |
12468 | }; | |
12469 | ||
12470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
12471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12472 | { | |
12473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12474 | result = wxDC_GetClippingRect(arg1); | |
12475 | ||
12476 | wxPyEndAllowThreads(__tstate); | |
12477 | if (PyErr_Occurred()) SWIG_fail; | |
12478 | } | |
12479 | { | |
12480 | wxRect * resultptr; | |
12481 | resultptr = new wxRect((wxRect &) result); | |
12482 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
12483 | } | |
12484 | return resultobj; | |
12485 | fail: | |
12486 | return NULL; | |
12487 | } | |
12488 | ||
12489 | ||
12490 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12491 | PyObject *resultobj; | |
12492 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12493 | int result; |
d14a1e28 RD |
12494 | PyObject * obj0 = 0 ; |
12495 | char *kwnames[] = { | |
12496 | (char *) "self", NULL | |
12497 | }; | |
12498 | ||
12499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
12500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12501 | { | |
12502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12503 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12504 | |
12505 | wxPyEndAllowThreads(__tstate); | |
12506 | if (PyErr_Occurred()) SWIG_fail; | |
12507 | } | |
994141e6 | 12508 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12509 | return resultobj; |
12510 | fail: | |
12511 | return NULL; | |
12512 | } | |
12513 | ||
12514 | ||
12515 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12516 | PyObject *resultobj; | |
12517 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12518 | int result; |
d14a1e28 RD |
12519 | PyObject * obj0 = 0 ; |
12520 | char *kwnames[] = { | |
12521 | (char *) "self", NULL | |
12522 | }; | |
12523 | ||
12524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
12525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12526 | { | |
12527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12528 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12529 | |
12530 | wxPyEndAllowThreads(__tstate); | |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | } | |
994141e6 | 12533 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12534 | return resultobj; |
12535 | fail: | |
12536 | return NULL; | |
12537 | } | |
12538 | ||
12539 | ||
12540 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12541 | PyObject *resultobj; | |
12542 | wxDC *arg1 = (wxDC *) 0 ; | |
12543 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12544 | int *arg3 = (int *) 0 ; |
12545 | int *arg4 = (int *) 0 ; | |
12546 | bool temp2 = False ; | |
12547 | int temp3 ; | |
12548 | int temp4 ; | |
d14a1e28 RD |
12549 | PyObject * obj0 = 0 ; |
12550 | PyObject * obj1 = 0 ; | |
12551 | char *kwnames[] = { | |
12552 | (char *) "self",(char *) "string", NULL | |
12553 | }; | |
12554 | ||
12555 | arg3 = &temp3; | |
12556 | arg4 = &temp4; | |
12557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
12558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12559 | { | |
12560 | arg2 = wxString_in_helper(obj1); | |
12561 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12562 | temp2 = True; |
d14a1e28 RD |
12563 | } |
12564 | { | |
12565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12566 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12567 | ||
12568 | wxPyEndAllowThreads(__tstate); | |
12569 | if (PyErr_Occurred()) SWIG_fail; | |
12570 | } | |
12571 | Py_INCREF(Py_None); resultobj = Py_None; | |
12572 | { | |
12573 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12574 | resultobj = t_output_helper(resultobj,o); | |
12575 | } | |
12576 | { | |
12577 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12578 | resultobj = t_output_helper(resultobj,o); | |
12579 | } | |
12580 | { | |
12581 | if (temp2) | |
12582 | delete arg2; | |
12583 | } | |
12584 | return resultobj; | |
12585 | fail: | |
12586 | { | |
12587 | if (temp2) | |
12588 | delete arg2; | |
12589 | } | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12595 | PyObject *resultobj; | |
12596 | wxDC *arg1 = (wxDC *) 0 ; | |
12597 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12598 | int *arg3 = (int *) 0 ; |
12599 | int *arg4 = (int *) 0 ; | |
12600 | int *arg5 = (int *) 0 ; | |
12601 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12602 | wxFont *arg7 = (wxFont *) NULL ; |
e811c8ce RD |
12603 | bool temp2 = False ; |
12604 | int temp3 ; | |
12605 | int temp4 ; | |
12606 | int temp5 ; | |
12607 | int temp6 ; | |
d14a1e28 RD |
12608 | PyObject * obj0 = 0 ; |
12609 | PyObject * obj1 = 0 ; | |
12610 | PyObject * obj2 = 0 ; | |
12611 | char *kwnames[] = { | |
12612 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12613 | }; | |
12614 | ||
12615 | arg3 = &temp3; | |
12616 | arg4 = &temp4; | |
12617 | arg5 = &temp5; | |
12618 | arg6 = &temp6; | |
12619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12621 | { | |
12622 | arg2 = wxString_in_helper(obj1); | |
12623 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12624 | temp2 = True; |
d14a1e28 RD |
12625 | } |
12626 | if (obj2) { | |
12627 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12628 | } | |
12629 | { | |
12630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12631 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12632 | ||
12633 | wxPyEndAllowThreads(__tstate); | |
12634 | if (PyErr_Occurred()) SWIG_fail; | |
12635 | } | |
12636 | Py_INCREF(Py_None); resultobj = Py_None; | |
12637 | { | |
12638 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12639 | resultobj = t_output_helper(resultobj,o); | |
12640 | } | |
12641 | { | |
12642 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12643 | resultobj = t_output_helper(resultobj,o); | |
12644 | } | |
12645 | { | |
12646 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12647 | resultobj = t_output_helper(resultobj,o); | |
12648 | } | |
12649 | { | |
12650 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12651 | resultobj = t_output_helper(resultobj,o); | |
12652 | } | |
12653 | { | |
12654 | if (temp2) | |
12655 | delete arg2; | |
12656 | } | |
12657 | return resultobj; | |
12658 | fail: | |
12659 | { | |
12660 | if (temp2) | |
12661 | delete arg2; | |
12662 | } | |
12663 | return NULL; | |
12664 | } | |
12665 | ||
12666 | ||
12667 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12668 | PyObject *resultobj; | |
12669 | wxDC *arg1 = (wxDC *) 0 ; | |
12670 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12671 | int *arg3 = (int *) 0 ; |
12672 | int *arg4 = (int *) 0 ; | |
12673 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12674 | wxFont *arg6 = (wxFont *) NULL ; |
e811c8ce RD |
12675 | bool temp2 = False ; |
12676 | int temp3 ; | |
12677 | int temp4 ; | |
12678 | int temp5 ; | |
d14a1e28 RD |
12679 | PyObject * obj0 = 0 ; |
12680 | PyObject * obj1 = 0 ; | |
12681 | PyObject * obj2 = 0 ; | |
12682 | char *kwnames[] = { | |
12683 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12684 | }; | |
12685 | ||
12686 | arg3 = &temp3; | |
12687 | arg4 = &temp4; | |
12688 | arg5 = &temp5; | |
12689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12691 | { | |
12692 | arg2 = wxString_in_helper(obj1); | |
12693 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12694 | temp2 = True; |
d14a1e28 RD |
12695 | } |
12696 | if (obj2) { | |
12697 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12698 | } | |
12699 | { | |
12700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12701 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12702 | ||
12703 | wxPyEndAllowThreads(__tstate); | |
12704 | if (PyErr_Occurred()) SWIG_fail; | |
12705 | } | |
12706 | Py_INCREF(Py_None); resultobj = Py_None; | |
12707 | { | |
12708 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12709 | resultobj = t_output_helper(resultobj,o); | |
12710 | } | |
12711 | { | |
12712 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12713 | resultobj = t_output_helper(resultobj,o); | |
12714 | } | |
12715 | { | |
12716 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12717 | resultobj = t_output_helper(resultobj,o); | |
12718 | } | |
12719 | { | |
12720 | if (temp2) | |
12721 | delete arg2; | |
12722 | } | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | { | |
12726 | if (temp2) | |
12727 | delete arg2; | |
12728 | } | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
322913ce RD |
12733 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
12734 | PyObject *resultobj; | |
12735 | wxDC *arg1 = (wxDC *) 0 ; | |
12736 | wxSize result; | |
12737 | PyObject * obj0 = 0 ; | |
12738 | char *kwnames[] = { | |
12739 | (char *) "self", NULL | |
12740 | }; | |
12741 | ||
12742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
12743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12744 | { | |
12745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12746 | result = (arg1)->GetSize(); | |
12747 | ||
12748 | wxPyEndAllowThreads(__tstate); | |
12749 | if (PyErr_Occurred()) SWIG_fail; | |
12750 | } | |
12751 | { | |
12752 | wxSize * resultptr; | |
12753 | resultptr = new wxSize((wxSize &) result); | |
12754 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12755 | } | |
12756 | return resultobj; | |
12757 | fail: | |
12758 | return NULL; | |
12759 | } | |
12760 | ||
12761 | ||
d14a1e28 RD |
12762 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
12763 | PyObject *resultobj; | |
12764 | wxDC *arg1 = (wxDC *) 0 ; | |
12765 | int *arg2 = (int *) 0 ; | |
12766 | int *arg3 = (int *) 0 ; | |
12767 | int temp2 ; | |
12768 | int temp3 ; | |
12769 | PyObject * obj0 = 0 ; | |
12770 | char *kwnames[] = { | |
12771 | (char *) "self", NULL | |
12772 | }; | |
12773 | ||
12774 | arg2 = &temp2; | |
12775 | arg3 = &temp3; | |
12776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
12777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12778 | { | |
12779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12780 | (arg1)->GetSize(arg2,arg3); | |
12781 | ||
12782 | wxPyEndAllowThreads(__tstate); | |
12783 | if (PyErr_Occurred()) SWIG_fail; | |
12784 | } | |
12785 | Py_INCREF(Py_None); resultobj = Py_None; | |
12786 | { | |
12787 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12788 | resultobj = t_output_helper(resultobj,o); | |
12789 | } | |
12790 | { | |
12791 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12792 | resultobj = t_output_helper(resultobj,o); | |
12793 | } | |
12794 | return resultobj; | |
12795 | fail: | |
12796 | return NULL; | |
12797 | } | |
12798 | ||
12799 | ||
322913ce | 12800 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12801 | PyObject *resultobj; |
12802 | wxDC *arg1 = (wxDC *) 0 ; | |
12803 | wxSize result; | |
12804 | PyObject * obj0 = 0 ; | |
12805 | char *kwnames[] = { | |
12806 | (char *) "self", NULL | |
12807 | }; | |
12808 | ||
322913ce | 12809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12811 | { | |
12812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 12813 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
12814 | |
12815 | wxPyEndAllowThreads(__tstate); | |
12816 | if (PyErr_Occurred()) SWIG_fail; | |
12817 | } | |
12818 | { | |
12819 | wxSize * resultptr; | |
12820 | resultptr = new wxSize((wxSize &) result); | |
12821 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12822 | } | |
12823 | return resultobj; | |
12824 | fail: | |
12825 | return NULL; | |
12826 | } | |
12827 | ||
12828 | ||
322913ce | 12829 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12830 | PyObject *resultobj; |
12831 | wxDC *arg1 = (wxDC *) 0 ; | |
12832 | int *arg2 = (int *) 0 ; | |
12833 | int *arg3 = (int *) 0 ; | |
12834 | int temp2 ; | |
12835 | int temp3 ; | |
12836 | PyObject * obj0 = 0 ; | |
12837 | char *kwnames[] = { | |
12838 | (char *) "self", NULL | |
12839 | }; | |
12840 | ||
12841 | arg2 = &temp2; | |
12842 | arg3 = &temp3; | |
322913ce | 12843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12845 | { | |
12846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12847 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
12848 | ||
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
12852 | Py_INCREF(Py_None); resultobj = Py_None; | |
12853 | { | |
12854 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12855 | resultobj = t_output_helper(resultobj,o); | |
12856 | } | |
12857 | { | |
12858 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12859 | resultobj = t_output_helper(resultobj,o); | |
12860 | } | |
12861 | return resultobj; | |
12862 | fail: | |
12863 | return NULL; | |
12864 | } | |
12865 | ||
12866 | ||
d14a1e28 RD |
12867 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
12868 | PyObject *resultobj; | |
12869 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12870 | int arg2 ; |
12871 | int result; | |
d14a1e28 | 12872 | PyObject * obj0 = 0 ; |
994141e6 | 12873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12874 | char *kwnames[] = { |
12875 | (char *) "self",(char *) "x", NULL | |
12876 | }; | |
12877 | ||
994141e6 | 12878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12880 | { |
12881 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
d14a1e28 RD |
12884 | { |
12885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12886 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
12887 | |
12888 | wxPyEndAllowThreads(__tstate); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
994141e6 | 12891 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12892 | return resultobj; |
12893 | fail: | |
12894 | return NULL; | |
12895 | } | |
12896 | ||
12897 | ||
12898 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12899 | PyObject *resultobj; | |
12900 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12901 | int arg2 ; |
12902 | int result; | |
d14a1e28 | 12903 | PyObject * obj0 = 0 ; |
994141e6 | 12904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12905 | char *kwnames[] = { |
12906 | (char *) "self",(char *) "y", NULL | |
12907 | }; | |
12908 | ||
994141e6 | 12909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12911 | { |
12912 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12913 | if (PyErr_Occurred()) SWIG_fail; | |
12914 | } | |
d14a1e28 RD |
12915 | { |
12916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12917 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
12918 | |
12919 | wxPyEndAllowThreads(__tstate); | |
12920 | if (PyErr_Occurred()) SWIG_fail; | |
12921 | } | |
994141e6 | 12922 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12923 | return resultobj; |
12924 | fail: | |
12925 | return NULL; | |
12926 | } | |
12927 | ||
12928 | ||
12929 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12930 | PyObject *resultobj; | |
12931 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12932 | int arg2 ; |
12933 | int result; | |
d14a1e28 | 12934 | PyObject * obj0 = 0 ; |
994141e6 | 12935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12936 | char *kwnames[] = { |
12937 | (char *) "self",(char *) "x", NULL | |
12938 | }; | |
12939 | ||
994141e6 | 12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12942 | { |
12943 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
12945 | } | |
d14a1e28 RD |
12946 | { |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12948 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
12949 | |
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
994141e6 | 12953 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12954 | return resultobj; |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12961 | PyObject *resultobj; | |
12962 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12963 | int arg2 ; |
12964 | int result; | |
d14a1e28 | 12965 | PyObject * obj0 = 0 ; |
994141e6 | 12966 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12967 | char *kwnames[] = { |
12968 | (char *) "self",(char *) "y", NULL | |
12969 | }; | |
12970 | ||
994141e6 | 12971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12973 | { |
12974 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
12976 | } | |
d14a1e28 RD |
12977 | { |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12979 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
12980 | |
12981 | wxPyEndAllowThreads(__tstate); | |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
12983 | } | |
994141e6 | 12984 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12985 | return resultobj; |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12992 | PyObject *resultobj; | |
12993 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12994 | int arg2 ; |
12995 | int result; | |
d14a1e28 | 12996 | PyObject * obj0 = 0 ; |
994141e6 | 12997 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12998 | char *kwnames[] = { |
12999 | (char *) "self",(char *) "x", NULL | |
13000 | }; | |
13001 | ||
994141e6 | 13002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13004 | { |
13005 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13006 | if (PyErr_Occurred()) SWIG_fail; | |
13007 | } | |
d14a1e28 RD |
13008 | { |
13009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13010 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13011 | |
13012 | wxPyEndAllowThreads(__tstate); | |
13013 | if (PyErr_Occurred()) SWIG_fail; | |
13014 | } | |
994141e6 | 13015 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13016 | return resultobj; |
13017 | fail: | |
13018 | return NULL; | |
13019 | } | |
13020 | ||
13021 | ||
13022 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13023 | PyObject *resultobj; | |
13024 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13025 | int arg2 ; |
13026 | int result; | |
d14a1e28 | 13027 | PyObject * obj0 = 0 ; |
994141e6 | 13028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13029 | char *kwnames[] = { |
13030 | (char *) "self",(char *) "y", NULL | |
13031 | }; | |
13032 | ||
994141e6 | 13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13035 | { |
13036 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13037 | if (PyErr_Occurred()) SWIG_fail; | |
13038 | } | |
d14a1e28 RD |
13039 | { |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13041 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13042 | |
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
994141e6 | 13046 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13047 | return resultobj; |
13048 | fail: | |
13049 | return NULL; | |
13050 | } | |
13051 | ||
13052 | ||
13053 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13054 | PyObject *resultobj; | |
13055 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13056 | int arg2 ; |
13057 | int result; | |
d14a1e28 | 13058 | PyObject * obj0 = 0 ; |
994141e6 | 13059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13060 | char *kwnames[] = { |
13061 | (char *) "self",(char *) "x", NULL | |
13062 | }; | |
13063 | ||
994141e6 | 13064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13066 | { |
13067 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13068 | if (PyErr_Occurred()) SWIG_fail; | |
13069 | } | |
d14a1e28 RD |
13070 | { |
13071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13072 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13073 | |
13074 | wxPyEndAllowThreads(__tstate); | |
13075 | if (PyErr_Occurred()) SWIG_fail; | |
13076 | } | |
994141e6 | 13077 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13078 | return resultobj; |
13079 | fail: | |
13080 | return NULL; | |
13081 | } | |
13082 | ||
13083 | ||
13084 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13085 | PyObject *resultobj; | |
13086 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13087 | int arg2 ; |
13088 | int result; | |
d14a1e28 | 13089 | PyObject * obj0 = 0 ; |
994141e6 | 13090 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13091 | char *kwnames[] = { |
13092 | (char *) "self",(char *) "y", NULL | |
13093 | }; | |
13094 | ||
994141e6 | 13095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13097 | { |
13098 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13099 | if (PyErr_Occurred()) SWIG_fail; | |
13100 | } | |
d14a1e28 RD |
13101 | { |
13102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13103 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13104 | |
13105 | wxPyEndAllowThreads(__tstate); | |
13106 | if (PyErr_Occurred()) SWIG_fail; | |
13107 | } | |
994141e6 | 13108 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13109 | return resultobj; |
13110 | fail: | |
13111 | return NULL; | |
13112 | } | |
13113 | ||
13114 | ||
13115 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13116 | PyObject *resultobj; | |
13117 | wxDC *arg1 = (wxDC *) 0 ; | |
13118 | bool result; | |
13119 | PyObject * obj0 = 0 ; | |
13120 | char *kwnames[] = { | |
13121 | (char *) "self", NULL | |
13122 | }; | |
13123 | ||
13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13126 | { | |
13127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13128 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13129 | ||
13130 | wxPyEndAllowThreads(__tstate); | |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
13132 | } | |
4d5c3d91 | 13133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13134 | return resultobj; |
13135 | fail: | |
13136 | return NULL; | |
13137 | } | |
13138 | ||
13139 | ||
13140 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13141 | PyObject *resultobj; | |
13142 | wxDC *arg1 = (wxDC *) 0 ; | |
13143 | bool result; | |
13144 | PyObject * obj0 = 0 ; | |
13145 | char *kwnames[] = { | |
13146 | (char *) "self", NULL | |
13147 | }; | |
13148 | ||
13149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13151 | { | |
13152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13153 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13154 | ||
13155 | wxPyEndAllowThreads(__tstate); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
4d5c3d91 | 13158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13159 | return resultobj; |
13160 | fail: | |
13161 | return NULL; | |
13162 | } | |
13163 | ||
13164 | ||
13165 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13166 | PyObject *resultobj; | |
13167 | wxDC *arg1 = (wxDC *) 0 ; | |
13168 | int result; | |
13169 | PyObject * obj0 = 0 ; | |
13170 | char *kwnames[] = { | |
13171 | (char *) "self", NULL | |
13172 | }; | |
13173 | ||
13174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
13175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13176 | { | |
13177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13178 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13179 | ||
13180 | wxPyEndAllowThreads(__tstate); | |
13181 | if (PyErr_Occurred()) SWIG_fail; | |
13182 | } | |
994141e6 | 13183 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13184 | return resultobj; |
13185 | fail: | |
13186 | return NULL; | |
13187 | } | |
13188 | ||
13189 | ||
13190 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13191 | PyObject *resultobj; | |
13192 | wxDC *arg1 = (wxDC *) 0 ; | |
13193 | wxSize result; | |
13194 | PyObject * obj0 = 0 ; | |
13195 | char *kwnames[] = { | |
13196 | (char *) "self", NULL | |
13197 | }; | |
13198 | ||
13199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
13200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13201 | { | |
13202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13203 | result = ((wxDC const *)arg1)->GetPPI(); | |
13204 | ||
13205 | wxPyEndAllowThreads(__tstate); | |
13206 | if (PyErr_Occurred()) SWIG_fail; | |
13207 | } | |
13208 | { | |
13209 | wxSize * resultptr; | |
13210 | resultptr = new wxSize((wxSize &) result); | |
13211 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13212 | } | |
13213 | return resultobj; | |
13214 | fail: | |
13215 | return NULL; | |
13216 | } | |
13217 | ||
13218 | ||
13219 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13220 | PyObject *resultobj; | |
13221 | wxDC *arg1 = (wxDC *) 0 ; | |
13222 | bool result; | |
13223 | PyObject * obj0 = 0 ; | |
13224 | char *kwnames[] = { | |
13225 | (char *) "self", NULL | |
13226 | }; | |
13227 | ||
13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
13229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13230 | { | |
13231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13232 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13233 | ||
13234 | wxPyEndAllowThreads(__tstate); | |
13235 | if (PyErr_Occurred()) SWIG_fail; | |
13236 | } | |
4d5c3d91 | 13237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13238 | return resultobj; |
13239 | fail: | |
13240 | return NULL; | |
13241 | } | |
13242 | ||
13243 | ||
13244 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13245 | PyObject *resultobj; | |
13246 | wxDC *arg1 = (wxDC *) 0 ; | |
13247 | int result; | |
13248 | PyObject * obj0 = 0 ; | |
13249 | char *kwnames[] = { | |
13250 | (char *) "self", NULL | |
13251 | }; | |
13252 | ||
13253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
13254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13255 | { | |
13256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13257 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13258 | ||
13259 | wxPyEndAllowThreads(__tstate); | |
13260 | if (PyErr_Occurred()) SWIG_fail; | |
13261 | } | |
994141e6 | 13262 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13263 | return resultobj; |
13264 | fail: | |
13265 | return NULL; | |
13266 | } | |
13267 | ||
13268 | ||
13269 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13270 | PyObject *resultobj; | |
13271 | wxDC *arg1 = (wxDC *) 0 ; | |
13272 | wxBrush *result; | |
13273 | PyObject * obj0 = 0 ; | |
13274 | char *kwnames[] = { | |
13275 | (char *) "self", NULL | |
13276 | }; | |
13277 | ||
13278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
13279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13280 | { | |
13281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13282 | { | |
13283 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13284 | result = (wxBrush *) &_result_ref; | |
13285 | } | |
13286 | ||
13287 | wxPyEndAllowThreads(__tstate); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | } | |
13290 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13291 | return resultobj; | |
13292 | fail: | |
13293 | return NULL; | |
13294 | } | |
13295 | ||
13296 | ||
13297 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13298 | PyObject *resultobj; | |
13299 | wxDC *arg1 = (wxDC *) 0 ; | |
13300 | wxBrush *result; | |
13301 | PyObject * obj0 = 0 ; | |
13302 | char *kwnames[] = { | |
13303 | (char *) "self", NULL | |
13304 | }; | |
13305 | ||
13306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
13307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13308 | { | |
13309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13310 | { | |
13311 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13312 | result = (wxBrush *) &_result_ref; | |
13313 | } | |
13314 | ||
13315 | wxPyEndAllowThreads(__tstate); | |
13316 | if (PyErr_Occurred()) SWIG_fail; | |
13317 | } | |
13318 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13319 | return resultobj; | |
13320 | fail: | |
13321 | return NULL; | |
13322 | } | |
13323 | ||
13324 | ||
13325 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13326 | PyObject *resultobj; | |
13327 | wxDC *arg1 = (wxDC *) 0 ; | |
13328 | wxFont *result; | |
13329 | PyObject * obj0 = 0 ; | |
13330 | char *kwnames[] = { | |
13331 | (char *) "self", NULL | |
13332 | }; | |
13333 | ||
13334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
13335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13336 | { | |
13337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13338 | { | |
13339 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13340 | result = (wxFont *) &_result_ref; | |
13341 | } | |
13342 | ||
13343 | wxPyEndAllowThreads(__tstate); | |
13344 | if (PyErr_Occurred()) SWIG_fail; | |
13345 | } | |
13346 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
13347 | return resultobj; | |
13348 | fail: | |
13349 | return NULL; | |
13350 | } | |
13351 | ||
13352 | ||
13353 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13354 | PyObject *resultobj; | |
13355 | wxDC *arg1 = (wxDC *) 0 ; | |
13356 | wxPen *result; | |
13357 | PyObject * obj0 = 0 ; | |
13358 | char *kwnames[] = { | |
13359 | (char *) "self", NULL | |
13360 | }; | |
13361 | ||
13362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
13363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13364 | { | |
13365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13366 | { | |
13367 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13368 | result = (wxPen *) &_result_ref; | |
13369 | } | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
13375 | return resultobj; | |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxDC *arg1 = (wxDC *) 0 ; | |
13384 | wxColour *result; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | char *kwnames[] = { | |
13387 | (char *) "self", NULL | |
13388 | }; | |
13389 | ||
13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
13391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13392 | { | |
13393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13394 | { | |
13395 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13396 | result = (wxColour *) &_result_ref; | |
13397 | } | |
13398 | ||
13399 | wxPyEndAllowThreads(__tstate); | |
13400 | if (PyErr_Occurred()) SWIG_fail; | |
13401 | } | |
13402 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13403 | return resultobj; | |
13404 | fail: | |
13405 | return NULL; | |
13406 | } | |
13407 | ||
13408 | ||
13409 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13410 | PyObject *resultobj; | |
13411 | wxDC *arg1 = (wxDC *) 0 ; | |
13412 | wxColour *result; | |
13413 | PyObject * obj0 = 0 ; | |
13414 | char *kwnames[] = { | |
13415 | (char *) "self", NULL | |
13416 | }; | |
13417 | ||
13418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
13419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13420 | { | |
13421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13422 | { | |
13423 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13424 | result = (wxColour *) &_result_ref; | |
13425 | } | |
13426 | ||
13427 | wxPyEndAllowThreads(__tstate); | |
13428 | if (PyErr_Occurred()) SWIG_fail; | |
13429 | } | |
13430 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13431 | return resultobj; | |
13432 | fail: | |
13433 | return NULL; | |
13434 | } | |
13435 | ||
13436 | ||
13437 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13438 | PyObject *resultobj; | |
13439 | wxDC *arg1 = (wxDC *) 0 ; | |
13440 | wxColour *arg2 = 0 ; | |
13441 | wxColour temp2 ; | |
13442 | PyObject * obj0 = 0 ; | |
13443 | PyObject * obj1 = 0 ; | |
13444 | char *kwnames[] = { | |
13445 | (char *) "self",(char *) "colour", NULL | |
13446 | }; | |
13447 | ||
13448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
13449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13450 | { | |
13451 | arg2 = &temp2; | |
13452 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13453 | } | |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13457 | ||
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
13461 | Py_INCREF(Py_None); resultobj = Py_None; | |
13462 | return resultobj; | |
13463 | fail: | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
13468 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13469 | PyObject *resultobj; | |
13470 | wxDC *arg1 = (wxDC *) 0 ; | |
13471 | wxColour *arg2 = 0 ; | |
13472 | wxColour temp2 ; | |
13473 | PyObject * obj0 = 0 ; | |
13474 | PyObject * obj1 = 0 ; | |
13475 | char *kwnames[] = { | |
13476 | (char *) "self",(char *) "colour", NULL | |
13477 | }; | |
13478 | ||
13479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
13480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13481 | { | |
13482 | arg2 = &temp2; | |
13483 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13484 | } | |
13485 | { | |
13486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13487 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13488 | ||
13489 | wxPyEndAllowThreads(__tstate); | |
13490 | if (PyErr_Occurred()) SWIG_fail; | |
13491 | } | |
13492 | Py_INCREF(Py_None); resultobj = Py_None; | |
13493 | return resultobj; | |
13494 | fail: | |
13495 | return NULL; | |
13496 | } | |
13497 | ||
13498 | ||
13499 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13500 | PyObject *resultobj; | |
13501 | wxDC *arg1 = (wxDC *) 0 ; | |
13502 | int result; | |
13503 | PyObject * obj0 = 0 ; | |
13504 | char *kwnames[] = { | |
13505 | (char *) "self", NULL | |
13506 | }; | |
13507 | ||
13508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
13509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13513 | ||
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
994141e6 | 13517 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13518 | return resultobj; |
13519 | fail: | |
13520 | return NULL; | |
13521 | } | |
13522 | ||
13523 | ||
13524 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13525 | PyObject *resultobj; | |
13526 | wxDC *arg1 = (wxDC *) 0 ; | |
13527 | int arg2 ; | |
13528 | PyObject * obj0 = 0 ; | |
994141e6 | 13529 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13530 | char *kwnames[] = { |
13531 | (char *) "self",(char *) "mode", NULL | |
13532 | }; | |
13533 | ||
994141e6 | 13534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13536 | { |
13537 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13538 | if (PyErr_Occurred()) SWIG_fail; | |
13539 | } | |
d14a1e28 RD |
13540 | { |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13542 | (arg1)->SetMapMode(arg2); | |
13543 | ||
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
13547 | Py_INCREF(Py_None); resultobj = Py_None; | |
13548 | return resultobj; | |
13549 | fail: | |
13550 | return NULL; | |
13551 | } | |
13552 | ||
13553 | ||
13554 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13555 | PyObject *resultobj; | |
13556 | wxDC *arg1 = (wxDC *) 0 ; | |
13557 | double *arg2 = (double *) 0 ; | |
13558 | double *arg3 = (double *) 0 ; | |
13559 | double temp2 ; | |
13560 | double temp3 ; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | char *kwnames[] = { | |
13563 | (char *) "self", NULL | |
13564 | }; | |
13565 | ||
13566 | arg2 = &temp2; | |
13567 | arg3 = &temp3; | |
13568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
13569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13570 | { | |
13571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13572 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13573 | ||
13574 | wxPyEndAllowThreads(__tstate); | |
13575 | if (PyErr_Occurred()) SWIG_fail; | |
13576 | } | |
13577 | Py_INCREF(Py_None); resultobj = Py_None; | |
13578 | { | |
13579 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13580 | resultobj = t_output_helper(resultobj,o); | |
13581 | } | |
13582 | { | |
13583 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13584 | resultobj = t_output_helper(resultobj,o); | |
13585 | } | |
13586 | return resultobj; | |
13587 | fail: | |
13588 | return NULL; | |
13589 | } | |
13590 | ||
13591 | ||
13592 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13593 | PyObject *resultobj; | |
13594 | wxDC *arg1 = (wxDC *) 0 ; | |
13595 | double arg2 ; | |
13596 | double arg3 ; | |
13597 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13598 | PyObject * obj1 = 0 ; |
13599 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13600 | char *kwnames[] = { |
13601 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13602 | }; | |
13603 | ||
994141e6 | 13604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13606 | { |
13607 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13608 | if (PyErr_Occurred()) SWIG_fail; | |
13609 | } | |
13610 | { | |
13611 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13612 | if (PyErr_Occurred()) SWIG_fail; | |
13613 | } | |
d14a1e28 RD |
13614 | { |
13615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13616 | (arg1)->SetUserScale(arg2,arg3); | |
13617 | ||
13618 | wxPyEndAllowThreads(__tstate); | |
13619 | if (PyErr_Occurred()) SWIG_fail; | |
13620 | } | |
13621 | Py_INCREF(Py_None); resultobj = Py_None; | |
13622 | return resultobj; | |
13623 | fail: | |
13624 | return NULL; | |
13625 | } | |
13626 | ||
13627 | ||
13628 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13629 | PyObject *resultobj; | |
13630 | wxDC *arg1 = (wxDC *) 0 ; | |
13631 | double *arg2 = (double *) 0 ; | |
13632 | double *arg3 = (double *) 0 ; | |
13633 | double temp2 ; | |
13634 | double temp3 ; | |
13635 | PyObject * obj0 = 0 ; | |
13636 | char *kwnames[] = { | |
13637 | (char *) "self", NULL | |
13638 | }; | |
13639 | ||
13640 | arg2 = &temp2; | |
13641 | arg3 = &temp3; | |
13642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
13643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13644 | { | |
13645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13646 | (arg1)->GetLogicalScale(arg2,arg3); | |
13647 | ||
13648 | wxPyEndAllowThreads(__tstate); | |
13649 | if (PyErr_Occurred()) SWIG_fail; | |
13650 | } | |
13651 | Py_INCREF(Py_None); resultobj = Py_None; | |
13652 | { | |
13653 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13654 | resultobj = t_output_helper(resultobj,o); | |
13655 | } | |
13656 | { | |
13657 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13658 | resultobj = t_output_helper(resultobj,o); | |
13659 | } | |
13660 | return resultobj; | |
13661 | fail: | |
13662 | return NULL; | |
13663 | } | |
13664 | ||
13665 | ||
13666 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13667 | PyObject *resultobj; | |
13668 | wxDC *arg1 = (wxDC *) 0 ; | |
13669 | double arg2 ; | |
13670 | double arg3 ; | |
13671 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13672 | PyObject * obj1 = 0 ; |
13673 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13674 | char *kwnames[] = { |
13675 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13676 | }; | |
13677 | ||
994141e6 | 13678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13680 | { |
13681 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13682 | if (PyErr_Occurred()) SWIG_fail; | |
13683 | } | |
13684 | { | |
13685 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13686 | if (PyErr_Occurred()) SWIG_fail; | |
13687 | } | |
d14a1e28 RD |
13688 | { |
13689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13690 | (arg1)->SetLogicalScale(arg2,arg3); | |
13691 | ||
13692 | wxPyEndAllowThreads(__tstate); | |
13693 | if (PyErr_Occurred()) SWIG_fail; | |
13694 | } | |
13695 | Py_INCREF(Py_None); resultobj = Py_None; | |
13696 | return resultobj; | |
13697 | fail: | |
13698 | return NULL; | |
13699 | } | |
13700 | ||
13701 | ||
322913ce | 13702 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13703 | PyObject *resultobj; |
13704 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13705 | wxPoint result; |
d14a1e28 RD |
13706 | PyObject * obj0 = 0 ; |
13707 | char *kwnames[] = { | |
13708 | (char *) "self", NULL | |
13709 | }; | |
13710 | ||
322913ce | 13711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13713 | { | |
13714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13715 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
13716 | |
13717 | wxPyEndAllowThreads(__tstate); | |
13718 | if (PyErr_Occurred()) SWIG_fail; | |
13719 | } | |
d14a1e28 | 13720 | { |
322913ce RD |
13721 | wxPoint * resultptr; |
13722 | resultptr = new wxPoint((wxPoint &) result); | |
13723 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13724 | } |
13725 | return resultobj; | |
13726 | fail: | |
13727 | return NULL; | |
13728 | } | |
13729 | ||
13730 | ||
322913ce | 13731 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13732 | PyObject *resultobj; |
13733 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
13734 | int *arg2 = (int *) 0 ; |
13735 | int *arg3 = (int *) 0 ; | |
13736 | int temp2 ; | |
13737 | int temp3 ; | |
d14a1e28 RD |
13738 | PyObject * obj0 = 0 ; |
13739 | char *kwnames[] = { | |
13740 | (char *) "self", NULL | |
13741 | }; | |
13742 | ||
322913ce RD |
13743 | arg2 = &temp2; |
13744 | arg3 = &temp3; | |
13745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13747 | { | |
13748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13749 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
13750 | |
13751 | wxPyEndAllowThreads(__tstate); | |
13752 | if (PyErr_Occurred()) SWIG_fail; | |
13753 | } | |
322913ce | 13754 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13755 | { |
322913ce RD |
13756 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13757 | resultobj = t_output_helper(resultobj,o); | |
13758 | } | |
13759 | { | |
13760 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13761 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13762 | } |
13763 | return resultobj; | |
13764 | fail: | |
13765 | return NULL; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13770 | PyObject *resultobj; | |
13771 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13772 | int arg2 ; |
13773 | int arg3 ; | |
d14a1e28 | 13774 | PyObject * obj0 = 0 ; |
994141e6 RD |
13775 | PyObject * obj1 = 0 ; |
13776 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13777 | char *kwnames[] = { |
13778 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13779 | }; | |
13780 | ||
994141e6 | 13781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13783 | { |
13784 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13785 | if (PyErr_Occurred()) SWIG_fail; | |
13786 | } | |
13787 | { | |
13788 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13789 | if (PyErr_Occurred()) SWIG_fail; | |
13790 | } | |
d14a1e28 RD |
13791 | { |
13792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13793 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
13794 | ||
13795 | wxPyEndAllowThreads(__tstate); | |
13796 | if (PyErr_Occurred()) SWIG_fail; | |
13797 | } | |
13798 | Py_INCREF(Py_None); resultobj = Py_None; | |
13799 | return resultobj; | |
13800 | fail: | |
13801 | return NULL; | |
13802 | } | |
13803 | ||
13804 | ||
322913ce | 13805 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13806 | PyObject *resultobj; |
13807 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13808 | wxPoint result; |
d14a1e28 RD |
13809 | PyObject * obj0 = 0 ; |
13810 | char *kwnames[] = { | |
13811 | (char *) "self", NULL | |
13812 | }; | |
13813 | ||
322913ce | 13814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13816 | { | |
13817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13818 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
13819 | |
13820 | wxPyEndAllowThreads(__tstate); | |
13821 | if (PyErr_Occurred()) SWIG_fail; | |
13822 | } | |
d14a1e28 | 13823 | { |
322913ce RD |
13824 | wxPoint * resultptr; |
13825 | resultptr = new wxPoint((wxPoint &) result); | |
13826 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13827 | } |
13828 | return resultobj; | |
13829 | fail: | |
13830 | return NULL; | |
13831 | } | |
13832 | ||
13833 | ||
322913ce | 13834 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13835 | PyObject *resultobj; |
13836 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
13837 | int *arg2 = (int *) 0 ; |
13838 | int *arg3 = (int *) 0 ; | |
13839 | int temp2 ; | |
13840 | int temp3 ; | |
d14a1e28 RD |
13841 | PyObject * obj0 = 0 ; |
13842 | char *kwnames[] = { | |
13843 | (char *) "self", NULL | |
13844 | }; | |
13845 | ||
322913ce RD |
13846 | arg2 = &temp2; |
13847 | arg3 = &temp3; | |
13848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13850 | { | |
13851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13852 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
13853 | |
13854 | wxPyEndAllowThreads(__tstate); | |
13855 | if (PyErr_Occurred()) SWIG_fail; | |
13856 | } | |
322913ce | 13857 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13858 | { |
322913ce RD |
13859 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13860 | resultobj = t_output_helper(resultobj,o); | |
13861 | } | |
13862 | { | |
13863 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13864 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13865 | } |
13866 | return resultobj; | |
13867 | fail: | |
13868 | return NULL; | |
13869 | } | |
13870 | ||
13871 | ||
13872 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13873 | PyObject *resultobj; | |
13874 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13875 | int arg2 ; |
13876 | int arg3 ; | |
d14a1e28 | 13877 | PyObject * obj0 = 0 ; |
994141e6 RD |
13878 | PyObject * obj1 = 0 ; |
13879 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13880 | char *kwnames[] = { |
13881 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13882 | }; | |
13883 | ||
994141e6 | 13884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13886 | { |
13887 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | { | |
13891 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13892 | if (PyErr_Occurred()) SWIG_fail; | |
13893 | } | |
d14a1e28 RD |
13894 | { |
13895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13896 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
13897 | ||
13898 | wxPyEndAllowThreads(__tstate); | |
13899 | if (PyErr_Occurred()) SWIG_fail; | |
13900 | } | |
13901 | Py_INCREF(Py_None); resultobj = Py_None; | |
13902 | return resultobj; | |
13903 | fail: | |
13904 | return NULL; | |
13905 | } | |
13906 | ||
13907 | ||
13908 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13909 | PyObject *resultobj; | |
13910 | wxDC *arg1 = (wxDC *) 0 ; | |
13911 | bool arg2 ; | |
13912 | bool arg3 ; | |
13913 | PyObject * obj0 = 0 ; | |
13914 | PyObject * obj1 = 0 ; | |
13915 | PyObject * obj2 = 0 ; | |
13916 | char *kwnames[] = { | |
13917 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
13918 | }; | |
13919 | ||
13920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13922 | { |
994141e6 | 13923 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
13924 | if (PyErr_Occurred()) SWIG_fail; |
13925 | } | |
13926 | { | |
994141e6 | 13927 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
13928 | if (PyErr_Occurred()) SWIG_fail; |
13929 | } | |
d14a1e28 RD |
13930 | { |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | (arg1)->SetAxisOrientation(arg2,arg3); | |
13933 | ||
13934 | wxPyEndAllowThreads(__tstate); | |
13935 | if (PyErr_Occurred()) SWIG_fail; | |
13936 | } | |
13937 | Py_INCREF(Py_None); resultobj = Py_None; | |
13938 | return resultobj; | |
13939 | fail: | |
13940 | return NULL; | |
13941 | } | |
13942 | ||
13943 | ||
13944 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13945 | PyObject *resultobj; | |
13946 | wxDC *arg1 = (wxDC *) 0 ; | |
13947 | int result; | |
13948 | PyObject * obj0 = 0 ; | |
13949 | char *kwnames[] = { | |
13950 | (char *) "self", NULL | |
13951 | }; | |
13952 | ||
13953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
13954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13955 | { | |
13956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13957 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
13958 | ||
13959 | wxPyEndAllowThreads(__tstate); | |
13960 | if (PyErr_Occurred()) SWIG_fail; | |
13961 | } | |
994141e6 | 13962 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13963 | return resultobj; |
13964 | fail: | |
13965 | return NULL; | |
13966 | } | |
13967 | ||
13968 | ||
13969 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13970 | PyObject *resultobj; | |
13971 | wxDC *arg1 = (wxDC *) 0 ; | |
13972 | int arg2 ; | |
13973 | PyObject * obj0 = 0 ; | |
994141e6 | 13974 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13975 | char *kwnames[] = { |
13976 | (char *) "self",(char *) "function", NULL | |
13977 | }; | |
13978 | ||
994141e6 | 13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13981 | { |
13982 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13983 | if (PyErr_Occurred()) SWIG_fail; | |
13984 | } | |
d14a1e28 RD |
13985 | { |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13987 | (arg1)->SetLogicalFunction(arg2); | |
13988 | ||
13989 | wxPyEndAllowThreads(__tstate); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | } | |
13992 | Py_INCREF(Py_None); resultobj = Py_None; | |
13993 | return resultobj; | |
13994 | fail: | |
13995 | return NULL; | |
13996 | } | |
13997 | ||
13998 | ||
13999 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14000 | PyObject *resultobj; | |
14001 | wxDC *arg1 = (wxDC *) 0 ; | |
14002 | bool arg2 ; | |
14003 | PyObject * obj0 = 0 ; | |
14004 | PyObject * obj1 = 0 ; | |
14005 | char *kwnames[] = { | |
14006 | (char *) "self",(char *) "opt", NULL | |
14007 | }; | |
14008 | ||
14009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
14010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14011 | { |
994141e6 | 14012 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14013 | if (PyErr_Occurred()) SWIG_fail; |
14014 | } | |
d14a1e28 RD |
14015 | { |
14016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14017 | (arg1)->SetOptimization(arg2); | |
14018 | ||
14019 | wxPyEndAllowThreads(__tstate); | |
14020 | if (PyErr_Occurred()) SWIG_fail; | |
14021 | } | |
14022 | Py_INCREF(Py_None); resultobj = Py_None; | |
14023 | return resultobj; | |
14024 | fail: | |
14025 | return NULL; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14030 | PyObject *resultobj; | |
14031 | wxDC *arg1 = (wxDC *) 0 ; | |
14032 | bool result; | |
14033 | PyObject * obj0 = 0 ; | |
14034 | char *kwnames[] = { | |
14035 | (char *) "self", NULL | |
14036 | }; | |
14037 | ||
14038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
14039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14040 | { | |
14041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14042 | result = (bool)(arg1)->GetOptimization(); | |
14043 | ||
14044 | wxPyEndAllowThreads(__tstate); | |
14045 | if (PyErr_Occurred()) SWIG_fail; | |
14046 | } | |
4d5c3d91 | 14047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14048 | return resultobj; |
14049 | fail: | |
14050 | return NULL; | |
14051 | } | |
14052 | ||
14053 | ||
14054 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14055 | PyObject *resultobj; | |
14056 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14057 | int arg2 ; |
14058 | int arg3 ; | |
d14a1e28 | 14059 | PyObject * obj0 = 0 ; |
994141e6 RD |
14060 | PyObject * obj1 = 0 ; |
14061 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14062 | char *kwnames[] = { |
14063 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14064 | }; | |
14065 | ||
994141e6 | 14066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14068 | { |
14069 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14070 | if (PyErr_Occurred()) SWIG_fail; | |
14071 | } | |
14072 | { | |
14073 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14074 | if (PyErr_Occurred()) SWIG_fail; | |
14075 | } | |
d14a1e28 RD |
14076 | { |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14079 | ||
14080 | wxPyEndAllowThreads(__tstate); | |
14081 | if (PyErr_Occurred()) SWIG_fail; | |
14082 | } | |
14083 | Py_INCREF(Py_None); resultobj = Py_None; | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | return NULL; | |
14087 | } | |
14088 | ||
14089 | ||
14090 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14091 | PyObject *resultobj; | |
14092 | wxDC *arg1 = (wxDC *) 0 ; | |
14093 | PyObject * obj0 = 0 ; | |
14094 | char *kwnames[] = { | |
14095 | (char *) "self", NULL | |
14096 | }; | |
14097 | ||
14098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
14099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14100 | { | |
14101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14102 | (arg1)->ResetBoundingBox(); | |
14103 | ||
14104 | wxPyEndAllowThreads(__tstate); | |
14105 | if (PyErr_Occurred()) SWIG_fail; | |
14106 | } | |
14107 | Py_INCREF(Py_None); resultobj = Py_None; | |
14108 | return resultobj; | |
14109 | fail: | |
14110 | return NULL; | |
14111 | } | |
14112 | ||
14113 | ||
14114 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14115 | PyObject *resultobj; | |
14116 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14117 | int result; |
d14a1e28 RD |
14118 | PyObject * obj0 = 0 ; |
14119 | char *kwnames[] = { | |
14120 | (char *) "self", NULL | |
14121 | }; | |
14122 | ||
14123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
14124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14125 | { | |
14126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14127 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14128 | |
14129 | wxPyEndAllowThreads(__tstate); | |
14130 | if (PyErr_Occurred()) SWIG_fail; | |
14131 | } | |
994141e6 | 14132 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14133 | return resultobj; |
14134 | fail: | |
14135 | return NULL; | |
14136 | } | |
14137 | ||
14138 | ||
14139 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14140 | PyObject *resultobj; | |
14141 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14142 | int result; |
d14a1e28 RD |
14143 | PyObject * obj0 = 0 ; |
14144 | char *kwnames[] = { | |
14145 | (char *) "self", NULL | |
14146 | }; | |
14147 | ||
14148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
14149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14150 | { | |
14151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14152 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14153 | |
14154 | wxPyEndAllowThreads(__tstate); | |
14155 | if (PyErr_Occurred()) SWIG_fail; | |
14156 | } | |
994141e6 | 14157 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14158 | return resultobj; |
14159 | fail: | |
14160 | return NULL; | |
14161 | } | |
14162 | ||
14163 | ||
14164 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14165 | PyObject *resultobj; | |
14166 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14167 | int result; |
d14a1e28 RD |
14168 | PyObject * obj0 = 0 ; |
14169 | char *kwnames[] = { | |
14170 | (char *) "self", NULL | |
14171 | }; | |
14172 | ||
14173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
14174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14175 | { | |
14176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14177 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14178 | |
14179 | wxPyEndAllowThreads(__tstate); | |
14180 | if (PyErr_Occurred()) SWIG_fail; | |
14181 | } | |
994141e6 | 14182 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14183 | return resultobj; |
14184 | fail: | |
14185 | return NULL; | |
14186 | } | |
14187 | ||
14188 | ||
14189 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14190 | PyObject *resultobj; | |
14191 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14192 | int result; |
d14a1e28 RD |
14193 | PyObject * obj0 = 0 ; |
14194 | char *kwnames[] = { | |
14195 | (char *) "self", NULL | |
14196 | }; | |
14197 | ||
14198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
14199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14200 | { | |
14201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14202 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14203 | |
14204 | wxPyEndAllowThreads(__tstate); | |
14205 | if (PyErr_Occurred()) SWIG_fail; | |
14206 | } | |
994141e6 | 14207 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14208 | return resultobj; |
14209 | fail: | |
14210 | return NULL; | |
14211 | } | |
14212 | ||
14213 | ||
14214 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14215 | PyObject *resultobj; | |
14216 | wxDC *arg1 = (wxDC *) 0 ; | |
14217 | int *arg2 = (int *) 0 ; | |
14218 | int *arg3 = (int *) 0 ; | |
14219 | int *arg4 = (int *) 0 ; | |
14220 | int *arg5 = (int *) 0 ; | |
14221 | int temp2 ; | |
14222 | int temp3 ; | |
14223 | int temp4 ; | |
14224 | int temp5 ; | |
14225 | PyObject * obj0 = 0 ; | |
14226 | char *kwnames[] = { | |
14227 | (char *) "self", NULL | |
14228 | }; | |
14229 | ||
14230 | arg2 = &temp2; | |
14231 | arg3 = &temp3; | |
14232 | arg4 = &temp4; | |
14233 | arg5 = &temp5; | |
14234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
14235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14236 | { | |
14237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14238 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14239 | ||
14240 | wxPyEndAllowThreads(__tstate); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
14243 | Py_INCREF(Py_None); resultobj = Py_None; | |
14244 | { | |
14245 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14246 | resultobj = t_output_helper(resultobj,o); | |
14247 | } | |
14248 | { | |
14249 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14250 | resultobj = t_output_helper(resultobj,o); | |
14251 | } | |
14252 | { | |
14253 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14254 | resultobj = t_output_helper(resultobj,o); | |
14255 | } | |
14256 | { | |
14257 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14258 | resultobj = t_output_helper(resultobj,o); | |
14259 | } | |
14260 | return resultobj; | |
14261 | fail: | |
14262 | return NULL; | |
14263 | } | |
14264 | ||
14265 | ||
14266 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14267 | PyObject *resultobj; | |
14268 | wxDC *arg1 = (wxDC *) 0 ; | |
14269 | PyObject *arg2 = (PyObject *) 0 ; | |
14270 | PyObject *arg3 = (PyObject *) 0 ; | |
14271 | PyObject *arg4 = (PyObject *) 0 ; | |
14272 | PyObject *result; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | PyObject * obj1 = 0 ; | |
14275 | PyObject * obj2 = 0 ; | |
14276 | PyObject * obj3 = 0 ; | |
14277 | char *kwnames[] = { | |
14278 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14279 | }; | |
14280 | ||
14281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14283 | arg2 = obj1; | |
14284 | arg3 = obj2; | |
14285 | arg4 = obj3; | |
14286 | { | |
14287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14288 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14289 | ||
14290 | wxPyEndAllowThreads(__tstate); | |
14291 | if (PyErr_Occurred()) SWIG_fail; | |
14292 | } | |
14293 | resultobj = result; | |
14294 | return resultobj; | |
14295 | fail: | |
14296 | return NULL; | |
14297 | } | |
14298 | ||
14299 | ||
14300 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14301 | PyObject *resultobj; | |
14302 | wxDC *arg1 = (wxDC *) 0 ; | |
14303 | PyObject *arg2 = (PyObject *) 0 ; | |
14304 | PyObject *arg3 = (PyObject *) 0 ; | |
14305 | PyObject *arg4 = (PyObject *) 0 ; | |
14306 | PyObject *result; | |
14307 | PyObject * obj0 = 0 ; | |
14308 | PyObject * obj1 = 0 ; | |
14309 | PyObject * obj2 = 0 ; | |
14310 | PyObject * obj3 = 0 ; | |
14311 | char *kwnames[] = { | |
14312 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14313 | }; | |
14314 | ||
14315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14317 | arg2 = obj1; | |
14318 | arg3 = obj2; | |
14319 | arg4 = obj3; | |
14320 | { | |
14321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14322 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14323 | ||
14324 | wxPyEndAllowThreads(__tstate); | |
14325 | if (PyErr_Occurred()) SWIG_fail; | |
14326 | } | |
14327 | resultobj = result; | |
14328 | return resultobj; | |
14329 | fail: | |
14330 | return NULL; | |
14331 | } | |
14332 | ||
14333 | ||
14334 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14335 | PyObject *resultobj; | |
14336 | wxDC *arg1 = (wxDC *) 0 ; | |
14337 | PyObject *arg2 = (PyObject *) 0 ; | |
14338 | PyObject *arg3 = (PyObject *) 0 ; | |
14339 | PyObject *arg4 = (PyObject *) 0 ; | |
14340 | PyObject *result; | |
14341 | PyObject * obj0 = 0 ; | |
14342 | PyObject * obj1 = 0 ; | |
14343 | PyObject * obj2 = 0 ; | |
14344 | PyObject * obj3 = 0 ; | |
14345 | char *kwnames[] = { | |
14346 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14347 | }; | |
14348 | ||
14349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14351 | arg2 = obj1; | |
14352 | arg3 = obj2; | |
14353 | arg4 = obj3; | |
14354 | { | |
14355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14356 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14357 | ||
14358 | wxPyEndAllowThreads(__tstate); | |
14359 | if (PyErr_Occurred()) SWIG_fail; | |
14360 | } | |
14361 | resultobj = result; | |
14362 | return resultobj; | |
14363 | fail: | |
14364 | return NULL; | |
14365 | } | |
14366 | ||
14367 | ||
14368 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14369 | PyObject *resultobj; | |
14370 | wxDC *arg1 = (wxDC *) 0 ; | |
14371 | PyObject *arg2 = (PyObject *) 0 ; | |
14372 | PyObject *arg3 = (PyObject *) 0 ; | |
14373 | PyObject *arg4 = (PyObject *) 0 ; | |
14374 | PyObject *result; | |
14375 | PyObject * obj0 = 0 ; | |
14376 | PyObject * obj1 = 0 ; | |
14377 | PyObject * obj2 = 0 ; | |
14378 | PyObject * obj3 = 0 ; | |
14379 | char *kwnames[] = { | |
14380 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14381 | }; | |
14382 | ||
14383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14385 | arg2 = obj1; | |
14386 | arg3 = obj2; | |
14387 | arg4 = obj3; | |
14388 | { | |
14389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14390 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14391 | ||
14392 | wxPyEndAllowThreads(__tstate); | |
14393 | if (PyErr_Occurred()) SWIG_fail; | |
14394 | } | |
14395 | resultobj = result; | |
14396 | return resultobj; | |
14397 | fail: | |
14398 | return NULL; | |
14399 | } | |
14400 | ||
14401 | ||
14402 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14403 | PyObject *resultobj; | |
14404 | wxDC *arg1 = (wxDC *) 0 ; | |
14405 | PyObject *arg2 = (PyObject *) 0 ; | |
14406 | PyObject *arg3 = (PyObject *) 0 ; | |
14407 | PyObject *arg4 = (PyObject *) 0 ; | |
14408 | PyObject *result; | |
14409 | PyObject * obj0 = 0 ; | |
14410 | PyObject * obj1 = 0 ; | |
14411 | PyObject * obj2 = 0 ; | |
14412 | PyObject * obj3 = 0 ; | |
14413 | char *kwnames[] = { | |
14414 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14415 | }; | |
14416 | ||
14417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14419 | arg2 = obj1; | |
14420 | arg3 = obj2; | |
14421 | arg4 = obj3; | |
14422 | { | |
14423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14424 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14425 | ||
14426 | wxPyEndAllowThreads(__tstate); | |
14427 | if (PyErr_Occurred()) SWIG_fail; | |
14428 | } | |
14429 | resultobj = result; | |
14430 | return resultobj; | |
14431 | fail: | |
14432 | return NULL; | |
14433 | } | |
14434 | ||
14435 | ||
14436 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14437 | PyObject *resultobj; | |
14438 | wxDC *arg1 = (wxDC *) 0 ; | |
14439 | PyObject *arg2 = (PyObject *) 0 ; | |
14440 | PyObject *arg3 = (PyObject *) 0 ; | |
14441 | PyObject *arg4 = (PyObject *) 0 ; | |
14442 | PyObject *arg5 = (PyObject *) 0 ; | |
14443 | PyObject *result; | |
14444 | PyObject * obj0 = 0 ; | |
14445 | PyObject * obj1 = 0 ; | |
14446 | PyObject * obj2 = 0 ; | |
14447 | PyObject * obj3 = 0 ; | |
14448 | PyObject * obj4 = 0 ; | |
14449 | char *kwnames[] = { | |
14450 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14451 | }; | |
14452 | ||
14453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14455 | arg2 = obj1; | |
14456 | arg3 = obj2; | |
14457 | arg4 = obj3; | |
14458 | arg5 = obj4; | |
14459 | { | |
14460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14461 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14462 | ||
14463 | wxPyEndAllowThreads(__tstate); | |
14464 | if (PyErr_Occurred()) SWIG_fail; | |
14465 | } | |
14466 | resultobj = result; | |
14467 | return resultobj; | |
14468 | fail: | |
14469 | return NULL; | |
14470 | } | |
14471 | ||
14472 | ||
14473 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14474 | PyObject *obj; | |
14475 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14476 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14477 | Py_INCREF(obj); | |
14478 | return Py_BuildValue((char *)""); | |
14479 | } | |
14480 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14481 | PyObject *resultobj; | |
14482 | wxMemoryDC *result; | |
14483 | char *kwnames[] = { | |
14484 | NULL | |
14485 | }; | |
14486 | ||
14487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14488 | { | |
14489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14490 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14491 | ||
14492 | wxPyEndAllowThreads(__tstate); | |
14493 | if (PyErr_Occurred()) SWIG_fail; | |
14494 | } | |
14495 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14496 | return resultobj; | |
14497 | fail: | |
14498 | return NULL; | |
14499 | } | |
14500 | ||
14501 | ||
14502 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14503 | PyObject *resultobj; | |
14504 | wxDC *arg1 = (wxDC *) 0 ; | |
14505 | wxMemoryDC *result; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | char *kwnames[] = { | |
14508 | (char *) "oldDC", NULL | |
14509 | }; | |
14510 | ||
14511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
14512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14513 | { | |
14514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14515 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14516 | ||
14517 | wxPyEndAllowThreads(__tstate); | |
14518 | if (PyErr_Occurred()) SWIG_fail; | |
14519 | } | |
14520 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14521 | return resultobj; | |
14522 | fail: | |
14523 | return NULL; | |
14524 | } | |
14525 | ||
14526 | ||
14527 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14528 | PyObject *resultobj; | |
14529 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14530 | wxBitmap *arg2 = 0 ; | |
14531 | PyObject * obj0 = 0 ; | |
14532 | PyObject * obj1 = 0 ; | |
14533 | char *kwnames[] = { | |
14534 | (char *) "self",(char *) "bitmap", NULL | |
14535 | }; | |
14536 | ||
14537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
14538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14539 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14540 | if (arg2 == NULL) { | |
14541 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14542 | } | |
14543 | { | |
14544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14545 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14546 | ||
14547 | wxPyEndAllowThreads(__tstate); | |
14548 | if (PyErr_Occurred()) SWIG_fail; | |
14549 | } | |
14550 | Py_INCREF(Py_None); resultobj = Py_None; | |
14551 | return resultobj; | |
14552 | fail: | |
14553 | return NULL; | |
14554 | } | |
14555 | ||
14556 | ||
14557 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
14558 | PyObject *obj; | |
14559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14560 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14561 | Py_INCREF(obj); | |
14562 | return Py_BuildValue((char *)""); | |
14563 | } | |
3adfb63b | 14564 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14565 | PyObject *resultobj; |
14566 | wxDC *arg1 = (wxDC *) 0 ; | |
14567 | wxBitmap *arg2 = 0 ; | |
14568 | wxBufferedDC *result; | |
14569 | PyObject * obj0 = 0 ; | |
14570 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14571 | |
3adfb63b | 14572 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14575 | if (arg2 == NULL) { | |
14576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14577 | } | |
14578 | { | |
14579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14580 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
14581 | ||
14582 | wxPyEndAllowThreads(__tstate); | |
14583 | if (PyErr_Occurred()) SWIG_fail; | |
14584 | } | |
14585 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14586 | return resultobj; | |
14587 | fail: | |
14588 | return NULL; | |
14589 | } | |
14590 | ||
14591 | ||
3adfb63b | 14592 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14593 | PyObject *resultobj; |
14594 | wxDC *arg1 = (wxDC *) 0 ; | |
14595 | wxSize *arg2 = 0 ; | |
3adfb63b | 14596 | int arg3 = (int) wxBUFFER_DC_DEFAULT ; |
d14a1e28 RD |
14597 | wxBufferedDC *result; |
14598 | wxSize temp2 ; | |
14599 | PyObject * obj0 = 0 ; | |
14600 | PyObject * obj1 = 0 ; | |
3adfb63b RD |
14601 | PyObject * obj2 = 0 ; |
14602 | ||
14603 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) 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 | if (obj2) { | |
14610 | { | |
14611 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14612 | if (PyErr_Occurred()) SWIG_fail; | |
14613 | } | |
14614 | } | |
14615 | { | |
14616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14617 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
14618 | ||
14619 | wxPyEndAllowThreads(__tstate); | |
14620 | if (PyErr_Occurred()) SWIG_fail; | |
14621 | } | |
14622 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14623 | return resultobj; | |
14624 | fail: | |
14625 | return NULL; | |
14626 | } | |
14627 | ||
14628 | ||
14629 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
14630 | int argc; | |
14631 | PyObject *argv[4]; | |
14632 | int ii; | |
14633 | ||
14634 | argc = PyObject_Length(args); | |
14635 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
14636 | argv[ii] = PyTuple_GetItem(args,ii); | |
14637 | } | |
14638 | if (argc == 2) { | |
14639 | int _v; | |
14640 | { | |
14641 | void *ptr; | |
14642 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14643 | _v = 0; | |
14644 | PyErr_Clear(); | |
14645 | } else { | |
14646 | _v = 1; | |
14647 | } | |
14648 | } | |
14649 | if (_v) { | |
14650 | { | |
14651 | void *ptr; | |
14652 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
14653 | _v = 0; | |
14654 | PyErr_Clear(); | |
14655 | } else { | |
14656 | _v = 1; | |
14657 | } | |
14658 | } | |
14659 | if (_v) { | |
14660 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
14661 | } | |
14662 | } | |
14663 | } | |
14664 | if ((argc >= 2) && (argc <= 3)) { | |
14665 | int _v; | |
14666 | { | |
14667 | void *ptr; | |
14668 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14669 | _v = 0; | |
14670 | PyErr_Clear(); | |
14671 | } else { | |
14672 | _v = 1; | |
14673 | } | |
14674 | } | |
14675 | if (_v) { | |
14676 | { | |
14677 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
14678 | } | |
14679 | if (_v) { | |
14680 | if (argc <= 2) { | |
14681 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
14682 | } | |
14683 | { | |
14684 | SWIG_PyObj_AsInt(argv[2]); | |
14685 | if (PyErr_Occurred()) { | |
14686 | _v = 0; | |
14687 | PyErr_Clear(); | |
14688 | } else { | |
14689 | _v = 1; | |
14690 | } | |
14691 | } | |
14692 | if (_v) { | |
14693 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
14694 | } | |
14695 | } | |
14696 | } | |
14697 | } | |
14698 | ||
14699 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
14700 | return NULL; | |
14701 | } | |
14702 | ||
14703 | ||
14704 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
14705 | PyObject *resultobj; | |
14706 | wxDC *arg1 = (wxDC *) 0 ; | |
14707 | wxSize *arg2 = 0 ; | |
14708 | int arg3 = (int) wxBUFFER_DC_DEFAULT ; | |
14709 | wxBufferedDC *result; | |
14710 | wxSize temp2 ; | |
14711 | PyObject * obj0 = 0 ; | |
14712 | PyObject * obj1 = 0 ; | |
14713 | PyObject * obj2 = 0 ; | |
d14a1e28 | 14714 | |
3adfb63b | 14715 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDCInternalBuffer",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
14716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14717 | { | |
14718 | arg2 = &temp2; | |
14719 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14720 | } | |
3adfb63b RD |
14721 | if (obj2) { |
14722 | { | |
14723 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14724 | if (PyErr_Occurred()) SWIG_fail; | |
14725 | } | |
14726 | } | |
d14a1e28 RD |
14727 | { |
14728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 14729 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); |
d14a1e28 RD |
14730 | |
14731 | wxPyEndAllowThreads(__tstate); | |
14732 | if (PyErr_Occurred()) SWIG_fail; | |
14733 | } | |
14734 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14735 | return resultobj; | |
14736 | fail: | |
14737 | return NULL; | |
14738 | } | |
14739 | ||
14740 | ||
14741 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14742 | PyObject *resultobj; | |
14743 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
14744 | PyObject * obj0 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "self", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
14750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14751 | { | |
14752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14753 | (arg1)->UnMask(); | |
14754 | ||
14755 | wxPyEndAllowThreads(__tstate); | |
14756 | if (PyErr_Occurred()) SWIG_fail; | |
14757 | } | |
14758 | Py_INCREF(Py_None); resultobj = Py_None; | |
14759 | return resultobj; | |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
14765 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
14766 | PyObject *obj; | |
14767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14768 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
14769 | Py_INCREF(obj); | |
14770 | return Py_BuildValue((char *)""); | |
14771 | } | |
3adfb63b | 14772 | static PyObject *_wrap_new_BufferedPaintDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14773 | PyObject *resultobj; |
14774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3adfb63b RD |
14775 | wxBitmap *arg2 = 0 ; |
14776 | wxBufferedPaintDC *result; | |
14777 | PyObject * obj0 = 0 ; | |
14778 | PyObject * obj1 = 0 ; | |
14779 | ||
14780 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedPaintDC",&obj0,&obj1)) goto fail; | |
14781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14782 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14783 | if (arg2 == NULL) { | |
14784 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14785 | } | |
14786 | { | |
14787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14788 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
14789 | ||
14790 | wxPyEndAllowThreads(__tstate); | |
14791 | if (PyErr_Occurred()) SWIG_fail; | |
14792 | } | |
14793 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14794 | return resultobj; | |
14795 | fail: | |
14796 | return NULL; | |
14797 | } | |
14798 | ||
14799 | ||
14800 | static PyObject *_wrap_new_BufferedPaintDC__SWIG_1(PyObject *self, PyObject *args) { | |
14801 | PyObject *resultobj; | |
14802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14803 | int arg2 = (int) wxBUFFER_DC_DEFAULT ; | |
d14a1e28 RD |
14804 | wxBufferedPaintDC *result; |
14805 | PyObject * obj0 = 0 ; | |
14806 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14807 | |
3adfb63b | 14808 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_BufferedPaintDC",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14810 | if (obj1) { | |
3adfb63b RD |
14811 | { |
14812 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14814 | } |
14815 | } | |
14816 | { | |
14817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 14818 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,arg2); |
d14a1e28 RD |
14819 | |
14820 | wxPyEndAllowThreads(__tstate); | |
14821 | if (PyErr_Occurred()) SWIG_fail; | |
14822 | } | |
14823 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14824 | return resultobj; | |
14825 | fail: | |
14826 | return NULL; | |
14827 | } | |
14828 | ||
14829 | ||
3adfb63b RD |
14830 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args) { |
14831 | int argc; | |
14832 | PyObject *argv[3]; | |
14833 | int ii; | |
14834 | ||
14835 | argc = PyObject_Length(args); | |
14836 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
14837 | argv[ii] = PyTuple_GetItem(args,ii); | |
14838 | } | |
14839 | if ((argc >= 1) && (argc <= 2)) { | |
14840 | int _v; | |
14841 | { | |
14842 | void *ptr; | |
14843 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
14844 | _v = 0; | |
14845 | PyErr_Clear(); | |
14846 | } else { | |
14847 | _v = 1; | |
14848 | } | |
14849 | } | |
14850 | if (_v) { | |
14851 | if (argc <= 1) { | |
14852 | return _wrap_new_BufferedPaintDC__SWIG_1(self,args); | |
14853 | } | |
14854 | { | |
14855 | SWIG_PyObj_AsInt(argv[1]); | |
14856 | if (PyErr_Occurred()) { | |
14857 | _v = 0; | |
14858 | PyErr_Clear(); | |
14859 | } else { | |
14860 | _v = 1; | |
14861 | } | |
14862 | } | |
14863 | if (_v) { | |
14864 | return _wrap_new_BufferedPaintDC__SWIG_1(self,args); | |
14865 | } | |
14866 | } | |
14867 | } | |
14868 | if (argc == 2) { | |
14869 | int _v; | |
14870 | { | |
14871 | void *ptr; | |
14872 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
14873 | _v = 0; | |
14874 | PyErr_Clear(); | |
14875 | } else { | |
14876 | _v = 1; | |
14877 | } | |
14878 | } | |
14879 | if (_v) { | |
14880 | { | |
14881 | void *ptr; | |
14882 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
14883 | _v = 0; | |
14884 | PyErr_Clear(); | |
14885 | } else { | |
14886 | _v = 1; | |
14887 | } | |
14888 | } | |
14889 | if (_v) { | |
14890 | return _wrap_new_BufferedPaintDC__SWIG_0(self,args); | |
14891 | } | |
14892 | } | |
14893 | } | |
14894 | ||
14895 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedPaintDC'"); | |
14896 | return NULL; | |
14897 | } | |
14898 | ||
14899 | ||
d14a1e28 RD |
14900 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { |
14901 | PyObject *obj; | |
14902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14903 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
14904 | Py_INCREF(obj); | |
14905 | return Py_BuildValue((char *)""); | |
14906 | } | |
14907 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14908 | PyObject *resultobj; | |
14909 | wxScreenDC *result; | |
14910 | char *kwnames[] = { | |
14911 | NULL | |
14912 | }; | |
14913 | ||
14914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
14915 | { | |
14916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14917 | result = (wxScreenDC *)new wxScreenDC(); | |
14918 | ||
14919 | wxPyEndAllowThreads(__tstate); | |
14920 | if (PyErr_Occurred()) SWIG_fail; | |
14921 | } | |
14922 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
14923 | return resultobj; | |
14924 | fail: | |
14925 | return NULL; | |
14926 | } | |
14927 | ||
14928 | ||
14929 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14930 | PyObject *resultobj; | |
14931 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14932 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14933 | bool result; | |
14934 | PyObject * obj0 = 0 ; | |
14935 | PyObject * obj1 = 0 ; | |
14936 | char *kwnames[] = { | |
14937 | (char *) "self",(char *) "window", NULL | |
14938 | }; | |
14939 | ||
14940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
14941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14942 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14943 | { | |
14944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14945 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
14946 | ||
14947 | wxPyEndAllowThreads(__tstate); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
4d5c3d91 | 14950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14951 | return resultobj; |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14958 | PyObject *resultobj; | |
14959 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14960 | wxRect *arg2 = (wxRect *) NULL ; | |
14961 | bool result; | |
14962 | PyObject * obj0 = 0 ; | |
14963 | PyObject * obj1 = 0 ; | |
14964 | char *kwnames[] = { | |
14965 | (char *) "self",(char *) "rect", NULL | |
14966 | }; | |
14967 | ||
14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
14969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14970 | if (obj1) { | |
14971 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14972 | } | |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
4d5c3d91 | 14980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14981 | return resultobj; |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14990 | bool result; | |
14991 | PyObject * obj0 = 0 ; | |
14992 | char *kwnames[] = { | |
14993 | (char *) "self", NULL | |
14994 | }; | |
14995 | ||
14996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
14997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14998 | { | |
14999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15000 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15001 | ||
15002 | wxPyEndAllowThreads(__tstate); | |
15003 | if (PyErr_Occurred()) SWIG_fail; | |
15004 | } | |
4d5c3d91 | 15005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15006 | return resultobj; |
15007 | fail: | |
15008 | return NULL; | |
15009 | } | |
15010 | ||
15011 | ||
15012 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15013 | PyObject *obj; | |
15014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15015 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15016 | Py_INCREF(obj); | |
15017 | return Py_BuildValue((char *)""); | |
15018 | } | |
15019 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15020 | PyObject *resultobj; | |
15021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15022 | wxClientDC *result; | |
15023 | PyObject * obj0 = 0 ; | |
15024 | char *kwnames[] = { | |
15025 | (char *) "win", NULL | |
15026 | }; | |
15027 | ||
15028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | result = (wxClientDC *)new wxClientDC(arg1); | |
15033 | ||
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
15037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
15038 | return resultobj; | |
15039 | fail: | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15045 | PyObject *obj; | |
15046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15047 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15048 | Py_INCREF(obj); | |
15049 | return Py_BuildValue((char *)""); | |
15050 | } | |
15051 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15052 | PyObject *resultobj; | |
15053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15054 | wxPaintDC *result; | |
15055 | PyObject * obj0 = 0 ; | |
15056 | char *kwnames[] = { | |
15057 | (char *) "win", NULL | |
15058 | }; | |
15059 | ||
15060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15062 | { | |
15063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15064 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15065 | ||
15066 | wxPyEndAllowThreads(__tstate); | |
15067 | if (PyErr_Occurred()) SWIG_fail; | |
15068 | } | |
15069 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
15070 | return resultobj; | |
15071 | fail: | |
15072 | return NULL; | |
15073 | } | |
15074 | ||
15075 | ||
15076 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15077 | PyObject *obj; | |
15078 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15079 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15080 | Py_INCREF(obj); | |
15081 | return Py_BuildValue((char *)""); | |
15082 | } | |
15083 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15084 | PyObject *resultobj; | |
15085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15086 | wxWindowDC *result; | |
15087 | PyObject * obj0 = 0 ; | |
15088 | char *kwnames[] = { | |
15089 | (char *) "win", NULL | |
15090 | }; | |
15091 | ||
15092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15094 | { | |
15095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15096 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15097 | ||
15098 | wxPyEndAllowThreads(__tstate); | |
15099 | if (PyErr_Occurred()) SWIG_fail; | |
15100 | } | |
15101 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
15102 | return resultobj; | |
15103 | fail: | |
15104 | return NULL; | |
15105 | } | |
15106 | ||
15107 | ||
15108 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15109 | PyObject *obj; | |
15110 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15111 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15112 | Py_INCREF(obj); | |
15113 | return Py_BuildValue((char *)""); | |
15114 | } | |
15115 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15116 | PyObject *resultobj; | |
15117 | wxDC *arg1 = 0 ; | |
15118 | bool arg2 ; | |
15119 | wxMirrorDC *result; | |
15120 | PyObject * obj0 = 0 ; | |
15121 | PyObject * obj1 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "dc",(char *) "mirror", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15128 | if (arg1 == NULL) { | |
15129 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15130 | } | |
a41e16b6 | 15131 | { |
994141e6 | 15132 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15133 | if (PyErr_Occurred()) SWIG_fail; |
15134 | } | |
d14a1e28 RD |
15135 | { |
15136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15137 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15138 | ||
15139 | wxPyEndAllowThreads(__tstate); | |
15140 | if (PyErr_Occurred()) SWIG_fail; | |
15141 | } | |
15142 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
15143 | return resultobj; | |
15144 | fail: | |
15145 | return NULL; | |
15146 | } | |
15147 | ||
15148 | ||
15149 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15150 | PyObject *obj; | |
15151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15152 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15153 | Py_INCREF(obj); | |
15154 | return Py_BuildValue((char *)""); | |
15155 | } | |
15156 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15157 | PyObject *resultobj; | |
15158 | wxPrintData *arg1 = 0 ; | |
15159 | wxPostScriptDC *result; | |
15160 | PyObject * obj0 = 0 ; | |
15161 | char *kwnames[] = { | |
15162 | (char *) "printData", NULL | |
15163 | }; | |
15164 | ||
15165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15167 | if (arg1 == NULL) { | |
15168 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15169 | } | |
15170 | { | |
15171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15172 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15173 | ||
15174 | wxPyEndAllowThreads(__tstate); | |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
15176 | } | |
15177 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
15178 | return resultobj; | |
15179 | fail: | |
15180 | return NULL; | |
15181 | } | |
15182 | ||
15183 | ||
15184 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15185 | PyObject *resultobj; | |
15186 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15187 | wxPrintData *result; | |
15188 | PyObject * obj0 = 0 ; | |
15189 | char *kwnames[] = { | |
15190 | (char *) "self", NULL | |
15191 | }; | |
15192 | ||
15193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | { | |
15198 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15199 | result = (wxPrintData *) &_result_ref; | |
15200 | } | |
15201 | ||
15202 | wxPyEndAllowThreads(__tstate); | |
15203 | if (PyErr_Occurred()) SWIG_fail; | |
15204 | } | |
15205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
15206 | return resultobj; | |
15207 | fail: | |
15208 | return NULL; | |
15209 | } | |
15210 | ||
15211 | ||
15212 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15213 | PyObject *resultobj; | |
15214 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15215 | wxPrintData *arg2 = 0 ; | |
15216 | PyObject * obj0 = 0 ; | |
15217 | PyObject * obj1 = 0 ; | |
15218 | char *kwnames[] = { | |
15219 | (char *) "self",(char *) "data", NULL | |
15220 | }; | |
15221 | ||
15222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15224 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15225 | if (arg2 == NULL) { | |
15226 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15227 | } | |
15228 | { | |
15229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15230 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15231 | ||
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
15235 | Py_INCREF(Py_None); resultobj = Py_None; | |
15236 | return resultobj; | |
15237 | fail: | |
15238 | return NULL; | |
15239 | } | |
15240 | ||
15241 | ||
15242 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15243 | PyObject *resultobj; | |
15244 | int arg1 ; | |
994141e6 | 15245 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15246 | char *kwnames[] = { |
15247 | (char *) "ppi", NULL | |
15248 | }; | |
15249 | ||
994141e6 RD |
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15251 | { | |
15252 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
d14a1e28 RD |
15255 | { |
15256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15257 | wxPostScriptDC::SetResolution(arg1); | |
15258 | ||
15259 | wxPyEndAllowThreads(__tstate); | |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
15261 | } | |
15262 | Py_INCREF(Py_None); resultobj = Py_None; | |
15263 | return resultobj; | |
15264 | fail: | |
15265 | return NULL; | |
15266 | } | |
15267 | ||
15268 | ||
15269 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15270 | PyObject *resultobj; | |
15271 | int result; | |
15272 | char *kwnames[] = { | |
15273 | NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15277 | { | |
15278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15279 | result = (int)wxPostScriptDC::GetResolution(); | |
15280 | ||
15281 | wxPyEndAllowThreads(__tstate); | |
15282 | if (PyErr_Occurred()) SWIG_fail; | |
15283 | } | |
994141e6 | 15284 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15285 | return resultobj; |
15286 | fail: | |
15287 | return NULL; | |
15288 | } | |
15289 | ||
15290 | ||
15291 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15292 | PyObject *obj; | |
15293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15294 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15295 | Py_INCREF(obj); | |
15296 | return Py_BuildValue((char *)""); | |
15297 | } | |
15298 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15299 | PyObject *resultobj; | |
15300 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15301 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15302 | wxMetaFile *result; | |
e811c8ce | 15303 | bool temp1 = False ; |
d14a1e28 RD |
15304 | PyObject * obj0 = 0 ; |
15305 | char *kwnames[] = { | |
15306 | (char *) "filename", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15310 | if (obj0) { | |
15311 | { | |
15312 | arg1 = wxString_in_helper(obj0); | |
15313 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15314 | temp1 = True; |
d14a1e28 RD |
15315 | } |
15316 | } | |
15317 | { | |
15318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15319 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15320 | ||
15321 | wxPyEndAllowThreads(__tstate); | |
15322 | if (PyErr_Occurred()) SWIG_fail; | |
15323 | } | |
15324 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
15325 | { | |
15326 | if (temp1) | |
15327 | delete arg1; | |
15328 | } | |
15329 | return resultobj; | |
15330 | fail: | |
15331 | { | |
15332 | if (temp1) | |
15333 | delete arg1; | |
15334 | } | |
15335 | return NULL; | |
15336 | } | |
15337 | ||
15338 | ||
15339 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15340 | PyObject *obj; | |
15341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15342 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15343 | Py_INCREF(obj); | |
15344 | return Py_BuildValue((char *)""); | |
15345 | } | |
15346 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15347 | PyObject *resultobj; | |
15348 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15349 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15350 | int arg2 = (int) 0 ; | |
15351 | int arg3 = (int) 0 ; | |
15352 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15353 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15354 | wxMetaFileDC *result; | |
e811c8ce RD |
15355 | bool temp1 = False ; |
15356 | bool temp4 = False ; | |
d14a1e28 | 15357 | PyObject * obj0 = 0 ; |
994141e6 RD |
15358 | PyObject * obj1 = 0 ; |
15359 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15360 | PyObject * obj3 = 0 ; |
15361 | char *kwnames[] = { | |
15362 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15363 | }; | |
15364 | ||
994141e6 | 15365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15366 | if (obj0) { |
15367 | { | |
15368 | arg1 = wxString_in_helper(obj0); | |
15369 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15370 | temp1 = True; |
d14a1e28 RD |
15371 | } |
15372 | } | |
994141e6 RD |
15373 | if (obj1) { |
15374 | { | |
15375 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
15378 | } | |
15379 | if (obj2) { | |
15380 | { | |
15381 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15382 | if (PyErr_Occurred()) SWIG_fail; | |
15383 | } | |
15384 | } | |
d14a1e28 RD |
15385 | if (obj3) { |
15386 | { | |
15387 | arg4 = wxString_in_helper(obj3); | |
15388 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15389 | temp4 = True; |
d14a1e28 RD |
15390 | } |
15391 | } | |
15392 | { | |
15393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15394 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15395 | ||
15396 | wxPyEndAllowThreads(__tstate); | |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
15398 | } | |
15399 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
15400 | { | |
15401 | if (temp1) | |
15402 | delete arg1; | |
15403 | } | |
15404 | { | |
15405 | if (temp4) | |
15406 | delete arg4; | |
15407 | } | |
15408 | return resultobj; | |
15409 | fail: | |
15410 | { | |
15411 | if (temp1) | |
15412 | delete arg1; | |
15413 | } | |
15414 | { | |
15415 | if (temp4) | |
15416 | delete arg4; | |
15417 | } | |
15418 | return NULL; | |
15419 | } | |
15420 | ||
15421 | ||
15422 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15423 | PyObject *obj; | |
15424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15425 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15426 | Py_INCREF(obj); | |
15427 | return Py_BuildValue((char *)""); | |
15428 | } | |
15429 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15430 | PyObject *resultobj; | |
15431 | wxPrintData *arg1 = 0 ; | |
15432 | wxPrinterDC *result; | |
15433 | PyObject * obj0 = 0 ; | |
15434 | char *kwnames[] = { | |
15435 | (char *) "printData", NULL | |
15436 | }; | |
15437 | ||
15438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15440 | if (arg1 == NULL) { | |
15441 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15442 | } | |
15443 | { | |
15444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15445 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15446 | ||
15447 | wxPyEndAllowThreads(__tstate); | |
15448 | if (PyErr_Occurred()) SWIG_fail; | |
15449 | } | |
15450 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
15451 | return resultobj; | |
15452 | fail: | |
15453 | return NULL; | |
15454 | } | |
15455 | ||
15456 | ||
15457 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
15458 | PyObject *obj; | |
15459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15460 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15461 | Py_INCREF(obj); | |
15462 | return Py_BuildValue((char *)""); | |
15463 | } | |
15464 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj; | |
15466 | int arg1 ; | |
15467 | int arg2 ; | |
e811c8ce | 15468 | int arg3 = (int) True ; |
d14a1e28 RD |
15469 | int arg4 = (int) 1 ; |
15470 | wxImageList *result; | |
994141e6 RD |
15471 | PyObject * obj0 = 0 ; |
15472 | PyObject * obj1 = 0 ; | |
15473 | PyObject * obj2 = 0 ; | |
15474 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15475 | char *kwnames[] = { |
15476 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15477 | }; | |
15478 | ||
994141e6 RD |
15479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15480 | { | |
15481 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15482 | if (PyErr_Occurred()) SWIG_fail; | |
15483 | } | |
15484 | { | |
15485 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15486 | if (PyErr_Occurred()) SWIG_fail; | |
15487 | } | |
15488 | if (obj2) { | |
15489 | { | |
15490 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15491 | if (PyErr_Occurred()) SWIG_fail; | |
15492 | } | |
15493 | } | |
15494 | if (obj3) { | |
15495 | { | |
15496 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15497 | if (PyErr_Occurred()) SWIG_fail; | |
15498 | } | |
15499 | } | |
d14a1e28 RD |
15500 | { |
15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15502 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15503 | ||
15504 | wxPyEndAllowThreads(__tstate); | |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
15506 | } | |
15507 | { | |
15508 | resultobj = wxPyMake_wxObject(result); | |
15509 | } | |
15510 | return resultobj; | |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
15516 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15517 | PyObject *resultobj; | |
15518 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15519 | PyObject * obj0 = 0 ; | |
15520 | char *kwnames[] = { | |
15521 | (char *) "self", NULL | |
15522 | }; | |
15523 | ||
15524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15526 | { | |
15527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15528 | delete arg1; | |
15529 | ||
15530 | wxPyEndAllowThreads(__tstate); | |
15531 | if (PyErr_Occurred()) SWIG_fail; | |
15532 | } | |
15533 | Py_INCREF(Py_None); resultobj = Py_None; | |
15534 | return resultobj; | |
15535 | fail: | |
15536 | return NULL; | |
15537 | } | |
15538 | ||
15539 | ||
15540 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15541 | PyObject *resultobj; | |
15542 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15543 | wxBitmap *arg2 = 0 ; | |
15544 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15545 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15546 | int result; | |
15547 | PyObject * obj0 = 0 ; | |
15548 | PyObject * obj1 = 0 ; | |
15549 | PyObject * obj2 = 0 ; | |
15550 | char *kwnames[] = { | |
15551 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15552 | }; | |
15553 | ||
15554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15557 | if (arg2 == NULL) { | |
15558 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15559 | } | |
15560 | if (obj2) { | |
15561 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15562 | if (arg3 == NULL) { | |
15563 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15564 | } | |
15565 | } | |
15566 | { | |
15567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15568 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15569 | ||
15570 | wxPyEndAllowThreads(__tstate); | |
15571 | if (PyErr_Occurred()) SWIG_fail; | |
15572 | } | |
994141e6 | 15573 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15574 | return resultobj; |
15575 | fail: | |
15576 | return NULL; | |
15577 | } | |
15578 | ||
15579 | ||
15580 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15581 | PyObject *resultobj; | |
15582 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15583 | wxBitmap *arg2 = 0 ; | |
15584 | wxColour *arg3 = 0 ; | |
15585 | int result; | |
15586 | wxColour temp3 ; | |
15587 | PyObject * obj0 = 0 ; | |
15588 | PyObject * obj1 = 0 ; | |
15589 | PyObject * obj2 = 0 ; | |
15590 | char *kwnames[] = { | |
15591 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
15592 | }; | |
15593 | ||
15594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15596 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15597 | if (arg2 == NULL) { | |
15598 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15599 | } | |
15600 | { | |
15601 | arg3 = &temp3; | |
15602 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15603 | } | |
15604 | { | |
15605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15606 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
15607 | ||
15608 | wxPyEndAllowThreads(__tstate); | |
15609 | if (PyErr_Occurred()) SWIG_fail; | |
15610 | } | |
994141e6 | 15611 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15612 | return resultobj; |
15613 | fail: | |
15614 | return NULL; | |
15615 | } | |
15616 | ||
15617 | ||
15618 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15619 | PyObject *resultobj; | |
15620 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15621 | wxIcon *arg2 = 0 ; | |
15622 | int result; | |
15623 | PyObject * obj0 = 0 ; | |
15624 | PyObject * obj1 = 0 ; | |
15625 | char *kwnames[] = { | |
15626 | (char *) "self",(char *) "icon", NULL | |
15627 | }; | |
15628 | ||
15629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15631 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15632 | if (arg2 == NULL) { | |
15633 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15634 | } | |
15635 | { | |
15636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15637 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
15638 | ||
15639 | wxPyEndAllowThreads(__tstate); | |
15640 | if (PyErr_Occurred()) SWIG_fail; | |
15641 | } | |
994141e6 | 15642 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15643 | return resultobj; |
15644 | fail: | |
15645 | return NULL; | |
15646 | } | |
15647 | ||
15648 | ||
15649 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15650 | PyObject *resultobj; | |
15651 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15652 | int arg2 ; | |
15653 | wxBitmap *arg3 = 0 ; | |
15654 | bool result; | |
15655 | PyObject * obj0 = 0 ; | |
994141e6 | 15656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15657 | PyObject * obj2 = 0 ; |
15658 | char *kwnames[] = { | |
15659 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
15660 | }; | |
15661 | ||
994141e6 | 15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15664 | { |
15665 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
d14a1e28 RD |
15668 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15669 | if (arg3 == NULL) { | |
15670 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15671 | } | |
15672 | { | |
15673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15674 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
15675 | ||
15676 | wxPyEndAllowThreads(__tstate); | |
15677 | if (PyErr_Occurred()) SWIG_fail; | |
15678 | } | |
4d5c3d91 | 15679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15680 | return resultobj; |
15681 | fail: | |
15682 | return NULL; | |
15683 | } | |
15684 | ||
15685 | ||
15686 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15687 | PyObject *resultobj; | |
15688 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15689 | int arg2 ; | |
15690 | wxDC *arg3 = 0 ; | |
15691 | int arg4 ; | |
15692 | int arg5 ; | |
15693 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
e811c8ce | 15694 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15695 | bool result; |
15696 | PyObject * obj0 = 0 ; | |
994141e6 | 15697 | PyObject * obj1 = 0 ; |
d14a1e28 | 15698 | PyObject * obj2 = 0 ; |
994141e6 RD |
15699 | PyObject * obj3 = 0 ; |
15700 | PyObject * obj4 = 0 ; | |
15701 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15702 | PyObject * obj6 = 0 ; |
15703 | char *kwnames[] = { | |
15704 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15705 | }; | |
15706 | ||
994141e6 | 15707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 15708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15709 | { |
15710 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
d14a1e28 RD |
15713 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15714 | if (arg3 == NULL) { | |
15715 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15716 | } | |
994141e6 RD |
15717 | { |
15718 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15719 | if (PyErr_Occurred()) SWIG_fail; | |
15720 | } | |
15721 | { | |
15722 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15723 | if (PyErr_Occurred()) SWIG_fail; | |
15724 | } | |
15725 | if (obj5) { | |
15726 | { | |
15727 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15728 | if (PyErr_Occurred()) SWIG_fail; | |
15729 | } | |
15730 | } | |
d14a1e28 | 15731 | if (obj6) { |
a41e16b6 | 15732 | { |
994141e6 | 15733 | arg7 = (bool const) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
15734 | if (PyErr_Occurred()) SWIG_fail; |
15735 | } | |
d14a1e28 RD |
15736 | } |
15737 | { | |
15738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15739 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15740 | ||
15741 | wxPyEndAllowThreads(__tstate); | |
15742 | if (PyErr_Occurred()) SWIG_fail; | |
15743 | } | |
4d5c3d91 | 15744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15745 | return resultobj; |
15746 | fail: | |
15747 | return NULL; | |
15748 | } | |
15749 | ||
15750 | ||
15751 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15752 | PyObject *resultobj; | |
15753 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15754 | int result; | |
15755 | PyObject * obj0 = 0 ; | |
15756 | char *kwnames[] = { | |
15757 | (char *) "self", NULL | |
15758 | }; | |
15759 | ||
15760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15762 | { | |
15763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15764 | result = (int)(arg1)->GetImageCount(); | |
15765 | ||
15766 | wxPyEndAllowThreads(__tstate); | |
15767 | if (PyErr_Occurred()) SWIG_fail; | |
15768 | } | |
994141e6 | 15769 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15770 | return resultobj; |
15771 | fail: | |
15772 | return NULL; | |
15773 | } | |
15774 | ||
15775 | ||
15776 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15777 | PyObject *resultobj; | |
15778 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15779 | int arg2 ; | |
15780 | bool result; | |
15781 | PyObject * obj0 = 0 ; | |
994141e6 | 15782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15783 | char *kwnames[] = { |
15784 | (char *) "self",(char *) "index", NULL | |
15785 | }; | |
15786 | ||
994141e6 | 15787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15789 | { |
15790 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15791 | if (PyErr_Occurred()) SWIG_fail; | |
15792 | } | |
d14a1e28 RD |
15793 | { |
15794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15795 | result = (bool)(arg1)->Remove(arg2); | |
15796 | ||
15797 | wxPyEndAllowThreads(__tstate); | |
15798 | if (PyErr_Occurred()) SWIG_fail; | |
15799 | } | |
4d5c3d91 | 15800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15801 | return resultobj; |
15802 | fail: | |
15803 | return NULL; | |
15804 | } | |
15805 | ||
15806 | ||
15807 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15808 | PyObject *resultobj; | |
15809 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15810 | bool result; | |
15811 | PyObject * obj0 = 0 ; | |
15812 | char *kwnames[] = { | |
15813 | (char *) "self", NULL | |
15814 | }; | |
15815 | ||
15816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15818 | { | |
15819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15820 | result = (bool)(arg1)->RemoveAll(); | |
15821 | ||
15822 | wxPyEndAllowThreads(__tstate); | |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
4d5c3d91 | 15825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15826 | return resultobj; |
15827 | fail: | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj; | |
15834 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15835 | int arg2 ; | |
15836 | int *arg3 = 0 ; | |
15837 | int *arg4 = 0 ; | |
15838 | int temp3 ; | |
15839 | int temp4 ; | |
15840 | PyObject * obj0 = 0 ; | |
994141e6 | 15841 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15842 | char *kwnames[] = { |
15843 | (char *) "self",(char *) "index", NULL | |
15844 | }; | |
15845 | ||
15846 | arg3 = &temp3; | |
15847 | arg4 = &temp4; | |
994141e6 | 15848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15850 | { |
15851 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15852 | if (PyErr_Occurred()) SWIG_fail; | |
15853 | } | |
d14a1e28 RD |
15854 | { |
15855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15856 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
15857 | ||
15858 | wxPyEndAllowThreads(__tstate); | |
15859 | if (PyErr_Occurred()) SWIG_fail; | |
15860 | } | |
15861 | Py_INCREF(Py_None); resultobj = Py_None; | |
15862 | { | |
15863 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15864 | resultobj = t_output_helper(resultobj,o); | |
15865 | } | |
15866 | { | |
15867 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15868 | resultobj = t_output_helper(resultobj,o); | |
15869 | } | |
15870 | return resultobj; | |
15871 | fail: | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
15877 | PyObject *obj; | |
15878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15879 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
15880 | Py_INCREF(obj); | |
15881 | return Py_BuildValue((char *)""); | |
15882 | } | |
994141e6 RD |
15883 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { |
15884 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15885 | return 1; | |
d14a1e28 RD |
15886 | } |
15887 | ||
15888 | ||
994141e6 RD |
15889 | static PyObject *_wrap_NORMAL_FONT_get() { |
15890 | PyObject *pyobj; | |
d14a1e28 | 15891 | |
994141e6 RD |
15892 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); |
15893 | return pyobj; | |
d14a1e28 RD |
15894 | } |
15895 | ||
15896 | ||
994141e6 RD |
15897 | static int _wrap_SMALL_FONT_set(PyObject *_val) { |
15898 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15899 | return 1; | |
d14a1e28 RD |
15900 | } |
15901 | ||
15902 | ||
994141e6 RD |
15903 | static PyObject *_wrap_SMALL_FONT_get() { |
15904 | PyObject *pyobj; | |
d14a1e28 | 15905 | |
994141e6 RD |
15906 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); |
15907 | return pyobj; | |
d14a1e28 RD |
15908 | } |
15909 | ||
15910 | ||
994141e6 RD |
15911 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { |
15912 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15913 | return 1; | |
d14a1e28 | 15914 | } |
994141e6 RD |
15915 | |
15916 | ||
15917 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15918 | PyObject *pyobj; | |
d14a1e28 | 15919 | |
994141e6 RD |
15920 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); |
15921 | return pyobj; | |
d14a1e28 RD |
15922 | } |
15923 | ||
15924 | ||
994141e6 RD |
15925 | static int _wrap_SWISS_FONT_set(PyObject *_val) { |
15926 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15927 | return 1; | |
d14a1e28 RD |
15928 | } |
15929 | ||
15930 | ||
994141e6 RD |
15931 | static PyObject *_wrap_SWISS_FONT_get() { |
15932 | PyObject *pyobj; | |
d14a1e28 | 15933 | |
994141e6 RD |
15934 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); |
15935 | return pyobj; | |
d14a1e28 RD |
15936 | } |
15937 | ||
15938 | ||
994141e6 RD |
15939 | static int _wrap_RED_PEN_set(PyObject *_val) { |
15940 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15941 | return 1; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_RED_PEN_get() { | |
15946 | PyObject *pyobj; | |
d14a1e28 | 15947 | |
994141e6 RD |
15948 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); |
15949 | return pyobj; | |
d14a1e28 RD |
15950 | } |
15951 | ||
15952 | ||
994141e6 RD |
15953 | static int _wrap_CYAN_PEN_set(PyObject *_val) { |
15954 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
15955 | return 1; | |
d14a1e28 | 15956 | } |
994141e6 RD |
15957 | |
15958 | ||
15959 | static PyObject *_wrap_CYAN_PEN_get() { | |
15960 | PyObject *pyobj; | |
d14a1e28 | 15961 | |
994141e6 RD |
15962 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); |
15963 | return pyobj; | |
d14a1e28 RD |
15964 | } |
15965 | ||
15966 | ||
994141e6 RD |
15967 | static int _wrap_GREEN_PEN_set(PyObject *_val) { |
15968 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
15969 | return 1; | |
15970 | } | |
15971 | ||
15972 | ||
15973 | static PyObject *_wrap_GREEN_PEN_get() { | |
15974 | PyObject *pyobj; | |
d14a1e28 | 15975 | |
994141e6 RD |
15976 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); |
15977 | return pyobj; | |
d14a1e28 RD |
15978 | } |
15979 | ||
15980 | ||
994141e6 RD |
15981 | static int _wrap_BLACK_PEN_set(PyObject *_val) { |
15982 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
15983 | return 1; | |
15984 | } | |
15985 | ||
15986 | ||
15987 | static PyObject *_wrap_BLACK_PEN_get() { | |
15988 | PyObject *pyobj; | |
d14a1e28 | 15989 | |
994141e6 RD |
15990 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); |
15991 | return pyobj; | |
d14a1e28 RD |
15992 | } |
15993 | ||
15994 | ||
994141e6 RD |
15995 | static int _wrap_WHITE_PEN_set(PyObject *_val) { |
15996 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
15997 | return 1; | |
d14a1e28 RD |
15998 | } |
15999 | ||
16000 | ||
994141e6 RD |
16001 | static PyObject *_wrap_WHITE_PEN_get() { |
16002 | PyObject *pyobj; | |
d14a1e28 | 16003 | |
994141e6 RD |
16004 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); |
16005 | return pyobj; | |
d14a1e28 RD |
16006 | } |
16007 | ||
16008 | ||
994141e6 RD |
16009 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { |
16010 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16011 | return 1; | |
d14a1e28 RD |
16012 | } |
16013 | ||
16014 | ||
994141e6 RD |
16015 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
16016 | PyObject *pyobj; | |
d14a1e28 | 16017 | |
994141e6 RD |
16018 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); |
16019 | return pyobj; | |
d14a1e28 RD |
16020 | } |
16021 | ||
16022 | ||
994141e6 RD |
16023 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { |
16024 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16025 | return 1; | |
d14a1e28 RD |
16026 | } |
16027 | ||
16028 | ||
994141e6 RD |
16029 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
16030 | PyObject *pyobj; | |
d14a1e28 | 16031 | |
994141e6 RD |
16032 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); |
16033 | return pyobj; | |
d14a1e28 RD |
16034 | } |
16035 | ||
16036 | ||
994141e6 RD |
16037 | static int _wrap_GREY_PEN_set(PyObject *_val) { |
16038 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16039 | return 1; | |
d14a1e28 RD |
16040 | } |
16041 | ||
16042 | ||
994141e6 RD |
16043 | static PyObject *_wrap_GREY_PEN_get() { |
16044 | PyObject *pyobj; | |
16045 | ||
16046 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
16047 | return pyobj; | |
d14a1e28 | 16048 | } |
994141e6 RD |
16049 | |
16050 | ||
16051 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
16052 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
16053 | return 1; |
16054 | } | |
16055 | ||
16056 | ||
994141e6 | 16057 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
16058 | PyObject *pyobj; |
16059 | ||
994141e6 | 16060 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16061 | return pyobj; |
16062 | } | |
16063 | ||
16064 | ||
994141e6 RD |
16065 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { |
16066 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
d14a1e28 RD |
16067 | return 1; |
16068 | } | |
16069 | ||
16070 | ||
994141e6 | 16071 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
16072 | PyObject *pyobj; |
16073 | ||
994141e6 | 16074 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16075 | return pyobj; |
16076 | } | |
16077 | ||
16078 | ||
994141e6 RD |
16079 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { |
16080 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16081 | return 1; |
16082 | } | |
16083 | ||
16084 | ||
994141e6 | 16085 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16086 | PyObject *pyobj; |
16087 | ||
994141e6 | 16088 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16089 | return pyobj; |
16090 | } | |
16091 | ||
16092 | ||
994141e6 RD |
16093 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { |
16094 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16095 | return 1; |
16096 | } | |
16097 | ||
16098 | ||
994141e6 | 16099 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16100 | PyObject *pyobj; |
16101 | ||
994141e6 | 16102 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16103 | return pyobj; |
16104 | } | |
16105 | ||
16106 | ||
994141e6 RD |
16107 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { |
16108 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16109 | return 1; |
16110 | } | |
16111 | ||
16112 | ||
994141e6 | 16113 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16114 | PyObject *pyobj; |
16115 | ||
994141e6 | 16116 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16117 | return pyobj; |
16118 | } | |
16119 | ||
16120 | ||
994141e6 RD |
16121 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { |
16122 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16123 | return 1; |
16124 | } | |
16125 | ||
16126 | ||
994141e6 | 16127 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16128 | PyObject *pyobj; |
16129 | ||
994141e6 | 16130 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16131 | return pyobj; |
16132 | } | |
16133 | ||
16134 | ||
994141e6 RD |
16135 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { |
16136 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
16137 | return 1; |
16138 | } | |
16139 | ||
16140 | ||
994141e6 | 16141 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16142 | PyObject *pyobj; |
16143 | ||
994141e6 | 16144 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16145 | return pyobj; |
16146 | } | |
16147 | ||
16148 | ||
994141e6 RD |
16149 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { |
16150 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
16151 | return 1; |
16152 | } | |
16153 | ||
16154 | ||
994141e6 | 16155 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16156 | PyObject *pyobj; |
16157 | ||
994141e6 | 16158 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16159 | return pyobj; |
16160 | } | |
16161 | ||
16162 | ||
994141e6 RD |
16163 | static int _wrap_RED_BRUSH_set(PyObject *_val) { |
16164 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
16165 | return 1; |
16166 | } | |
16167 | ||
16168 | ||
994141e6 | 16169 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16170 | PyObject *pyobj; |
16171 | ||
994141e6 | 16172 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16173 | return pyobj; |
16174 | } | |
16175 | ||
16176 | ||
994141e6 RD |
16177 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { |
16178 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16179 | return 1; |
16180 | } | |
16181 | ||
16182 | ||
994141e6 | 16183 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16184 | PyObject *pyobj; |
16185 | ||
994141e6 | 16186 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16187 | return pyobj; |
16188 | } | |
16189 | ||
16190 | ||
994141e6 RD |
16191 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { |
16192 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16193 | return 1; |
16194 | } | |
16195 | ||
16196 | ||
994141e6 | 16197 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
16198 | PyObject *pyobj; |
16199 | ||
994141e6 | 16200 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16201 | return pyobj; |
16202 | } | |
16203 | ||
16204 | ||
994141e6 RD |
16205 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { |
16206 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16207 | return 1; |
16208 | } | |
16209 | ||
16210 | ||
994141e6 | 16211 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16212 | PyObject *pyobj; |
16213 | ||
994141e6 | 16214 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16215 | return pyobj; |
16216 | } | |
16217 | ||
16218 | ||
994141e6 RD |
16219 | static int _wrap_BLACK_set(PyObject *_val) { |
16220 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16221 | return 1; |
16222 | } | |
16223 | ||
16224 | ||
994141e6 | 16225 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16226 | PyObject *pyobj; |
16227 | ||
994141e6 | 16228 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16229 | return pyobj; |
16230 | } | |
16231 | ||
16232 | ||
994141e6 RD |
16233 | static int _wrap_WHITE_set(PyObject *_val) { |
16234 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16235 | return 1; |
16236 | } | |
16237 | ||
16238 | ||
994141e6 | 16239 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16240 | PyObject *pyobj; |
16241 | ||
994141e6 | 16242 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16243 | return pyobj; |
16244 | } | |
16245 | ||
16246 | ||
994141e6 RD |
16247 | static int _wrap_RED_set(PyObject *_val) { |
16248 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16249 | return 1; |
16250 | } | |
16251 | ||
16252 | ||
994141e6 | 16253 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16254 | PyObject *pyobj; |
16255 | ||
994141e6 | 16256 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16257 | return pyobj; |
16258 | } | |
16259 | ||
16260 | ||
994141e6 RD |
16261 | static int _wrap_BLUE_set(PyObject *_val) { |
16262 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16263 | return 1; |
16264 | } | |
16265 | ||
16266 | ||
994141e6 | 16267 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16268 | PyObject *pyobj; |
16269 | ||
994141e6 | 16270 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16271 | return pyobj; |
16272 | } | |
16273 | ||
16274 | ||
994141e6 RD |
16275 | static int _wrap_GREEN_set(PyObject *_val) { |
16276 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16277 | return 1; |
16278 | } | |
16279 | ||
16280 | ||
994141e6 | 16281 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16282 | PyObject *pyobj; |
16283 | ||
994141e6 | 16284 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16285 | return pyobj; |
16286 | } | |
16287 | ||
16288 | ||
994141e6 RD |
16289 | static int _wrap_CYAN_set(PyObject *_val) { |
16290 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16291 | return 1; |
16292 | } | |
16293 | ||
16294 | ||
994141e6 | 16295 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16296 | PyObject *pyobj; |
16297 | ||
994141e6 | 16298 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16299 | return pyobj; |
16300 | } | |
16301 | ||
16302 | ||
994141e6 RD |
16303 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { |
16304 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16305 | return 1; |
16306 | } | |
16307 | ||
16308 | ||
994141e6 | 16309 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16310 | PyObject *pyobj; |
16311 | ||
994141e6 | 16312 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16313 | return pyobj; |
16314 | } | |
16315 | ||
16316 | ||
994141e6 RD |
16317 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { |
16318 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16319 | return 1; |
16320 | } | |
16321 | ||
16322 | ||
994141e6 | 16323 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16324 | PyObject *pyobj; |
16325 | ||
994141e6 | 16326 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16327 | return pyobj; |
16328 | } | |
16329 | ||
16330 | ||
994141e6 RD |
16331 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { |
16332 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16333 | return 1; |
16334 | } | |
16335 | ||
16336 | ||
994141e6 | 16337 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16338 | PyObject *pyobj; |
16339 | ||
994141e6 | 16340 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16341 | return pyobj; |
16342 | } | |
16343 | ||
16344 | ||
994141e6 RD |
16345 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { |
16346 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16347 | return 1; |
16348 | } | |
16349 | ||
16350 | ||
994141e6 | 16351 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16352 | PyObject *pyobj; |
16353 | ||
994141e6 | 16354 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16355 | return pyobj; |
16356 | } | |
16357 | ||
16358 | ||
994141e6 RD |
16359 | static int _wrap_NullBitmap_set(PyObject *_val) { |
16360 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16361 | return 1; |
16362 | } | |
16363 | ||
16364 | ||
994141e6 | 16365 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16366 | PyObject *pyobj; |
16367 | ||
994141e6 | 16368 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16369 | return pyobj; |
16370 | } | |
16371 | ||
16372 | ||
994141e6 RD |
16373 | static int _wrap_NullIcon_set(PyObject *_val) { |
16374 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16375 | return 1; |
16376 | } | |
16377 | ||
16378 | ||
994141e6 | 16379 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16380 | PyObject *pyobj; |
16381 | ||
994141e6 | 16382 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16383 | return pyobj; |
16384 | } | |
16385 | ||
16386 | ||
994141e6 RD |
16387 | static int _wrap_NullCursor_set(PyObject *_val) { |
16388 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16389 | return 1; |
16390 | } | |
16391 | ||
16392 | ||
994141e6 | 16393 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16394 | PyObject *pyobj; |
16395 | ||
994141e6 | 16396 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16397 | return pyobj; |
16398 | } | |
16399 | ||
16400 | ||
994141e6 RD |
16401 | static int _wrap_NullPen_set(PyObject *_val) { |
16402 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16403 | return 1; |
16404 | } | |
16405 | ||
16406 | ||
994141e6 | 16407 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16408 | PyObject *pyobj; |
16409 | ||
994141e6 | 16410 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16411 | return pyobj; |
16412 | } | |
16413 | ||
16414 | ||
994141e6 RD |
16415 | static int _wrap_NullBrush_set(PyObject *_val) { |
16416 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16417 | return 1; |
16418 | } | |
16419 | ||
16420 | ||
994141e6 | 16421 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16422 | PyObject *pyobj; |
16423 | ||
994141e6 | 16424 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16425 | return pyobj; |
16426 | } | |
16427 | ||
16428 | ||
994141e6 RD |
16429 | static int _wrap_NullPalette_set(PyObject *_val) { |
16430 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16431 | return 1; |
16432 | } | |
16433 | ||
16434 | ||
994141e6 | 16435 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16436 | PyObject *pyobj; |
16437 | ||
994141e6 | 16438 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16439 | return pyobj; |
16440 | } | |
16441 | ||
16442 | ||
994141e6 RD |
16443 | static int _wrap_NullFont_set(PyObject *_val) { |
16444 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16445 | return 1; |
16446 | } | |
16447 | ||
16448 | ||
994141e6 | 16449 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16450 | PyObject *pyobj; |
16451 | ||
994141e6 | 16452 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16453 | return pyobj; |
16454 | } | |
16455 | ||
16456 | ||
994141e6 RD |
16457 | static int _wrap_NullColour_set(PyObject *_val) { |
16458 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16459 | return 1; |
16460 | } | |
16461 | ||
16462 | ||
994141e6 | 16463 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16464 | PyObject *pyobj; |
16465 | ||
994141e6 | 16466 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16467 | return pyobj; |
16468 | } | |
16469 | ||
16470 | ||
994141e6 RD |
16471 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16472 | PyObject *resultobj; | |
16473 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16474 | wxPen *arg2 = (wxPen *) 0 ; | |
16475 | PyObject * obj0 = 0 ; | |
16476 | PyObject * obj1 = 0 ; | |
16477 | char *kwnames[] = { | |
16478 | (char *) "self",(char *) "pen", NULL | |
16479 | }; | |
16480 | ||
16481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
16482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16483 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16484 | { | |
16485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16486 | (arg1)->AddPen(arg2); | |
16487 | ||
16488 | wxPyEndAllowThreads(__tstate); | |
16489 | if (PyErr_Occurred()) SWIG_fail; | |
16490 | } | |
16491 | Py_INCREF(Py_None); resultobj = Py_None; | |
16492 | return resultobj; | |
16493 | fail: | |
16494 | return NULL; | |
d14a1e28 RD |
16495 | } |
16496 | ||
16497 | ||
994141e6 RD |
16498 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16499 | PyObject *resultobj; | |
16500 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16501 | wxColour *arg2 = 0 ; | |
16502 | int arg3 ; | |
16503 | int arg4 ; | |
16504 | wxPen *result; | |
16505 | wxColour temp2 ; | |
16506 | PyObject * obj0 = 0 ; | |
16507 | PyObject * obj1 = 0 ; | |
16508 | PyObject * obj2 = 0 ; | |
16509 | PyObject * obj3 = 0 ; | |
16510 | char *kwnames[] = { | |
16511 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16512 | }; | |
d14a1e28 | 16513 | |
994141e6 RD |
16514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
16515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16516 | { | |
16517 | arg2 = &temp2; | |
16518 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16519 | } | |
16520 | { | |
16521 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16522 | if (PyErr_Occurred()) SWIG_fail; | |
16523 | } | |
16524 | { | |
16525 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
16528 | { | |
16529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16530 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16531 | ||
16532 | wxPyEndAllowThreads(__tstate); | |
16533 | if (PyErr_Occurred()) SWIG_fail; | |
16534 | } | |
16535 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
16536 | return resultobj; | |
16537 | fail: | |
16538 | return NULL; | |
d14a1e28 RD |
16539 | } |
16540 | ||
16541 | ||
994141e6 RD |
16542 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16543 | PyObject *resultobj; | |
16544 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16545 | wxPen *arg2 = (wxPen *) 0 ; | |
16546 | PyObject * obj0 = 0 ; | |
16547 | PyObject * obj1 = 0 ; | |
16548 | char *kwnames[] = { | |
16549 | (char *) "self",(char *) "pen", NULL | |
16550 | }; | |
16551 | ||
16552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
16553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16554 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16555 | { | |
16556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16557 | (arg1)->RemovePen(arg2); | |
16558 | ||
16559 | wxPyEndAllowThreads(__tstate); | |
16560 | if (PyErr_Occurred()) SWIG_fail; | |
16561 | } | |
16562 | Py_INCREF(Py_None); resultobj = Py_None; | |
16563 | return resultobj; | |
16564 | fail: | |
16565 | return NULL; | |
d14a1e28 RD |
16566 | } |
16567 | ||
16568 | ||
994141e6 RD |
16569 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16570 | PyObject *resultobj; | |
16571 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16572 | int result; | |
16573 | PyObject * obj0 = 0 ; | |
16574 | char *kwnames[] = { | |
16575 | (char *) "self", NULL | |
16576 | }; | |
d14a1e28 | 16577 | |
994141e6 RD |
16578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
16579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16580 | { | |
16581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16582 | result = (int)(arg1)->GetCount(); | |
16583 | ||
16584 | wxPyEndAllowThreads(__tstate); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | } | |
16587 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16588 | return resultobj; | |
16589 | fail: | |
16590 | return NULL; | |
d14a1e28 RD |
16591 | } |
16592 | ||
16593 | ||
994141e6 RD |
16594 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
16595 | PyObject *obj; | |
16596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16597 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
16598 | Py_INCREF(obj); | |
16599 | return Py_BuildValue((char *)""); | |
16600 | } | |
16601 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16602 | PyObject *resultobj; | |
16603 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16604 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16605 | PyObject * obj0 = 0 ; | |
16606 | PyObject * obj1 = 0 ; | |
16607 | char *kwnames[] = { | |
16608 | (char *) "self",(char *) "brush", NULL | |
16609 | }; | |
16610 | ||
16611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
16612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16613 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16614 | { | |
16615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16616 | (arg1)->AddBrush(arg2); | |
16617 | ||
16618 | wxPyEndAllowThreads(__tstate); | |
16619 | if (PyErr_Occurred()) SWIG_fail; | |
16620 | } | |
16621 | Py_INCREF(Py_None); resultobj = Py_None; | |
16622 | return resultobj; | |
16623 | fail: | |
16624 | return NULL; | |
16625 | } | |
16626 | ||
16627 | ||
16628 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16629 | PyObject *resultobj; | |
16630 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16631 | wxColour *arg2 = 0 ; | |
16632 | int arg3 ; | |
16633 | wxBrush *result; | |
16634 | wxColour temp2 ; | |
16635 | PyObject * obj0 = 0 ; | |
16636 | PyObject * obj1 = 0 ; | |
16637 | PyObject * obj2 = 0 ; | |
16638 | char *kwnames[] = { | |
16639 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
16640 | }; | |
16641 | ||
16642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16644 | { | |
16645 | arg2 = &temp2; | |
16646 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16647 | } | |
16648 | { | |
16649 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16650 | if (PyErr_Occurred()) SWIG_fail; | |
16651 | } | |
16652 | { | |
16653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16654 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
16655 | ||
16656 | wxPyEndAllowThreads(__tstate); | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
16660 | return resultobj; | |
16661 | fail: | |
16662 | return NULL; | |
d14a1e28 RD |
16663 | } |
16664 | ||
16665 | ||
994141e6 RD |
16666 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16667 | PyObject *resultobj; | |
16668 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16669 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16670 | PyObject * obj0 = 0 ; | |
16671 | PyObject * obj1 = 0 ; | |
16672 | char *kwnames[] = { | |
16673 | (char *) "self",(char *) "brush", NULL | |
16674 | }; | |
d14a1e28 | 16675 | |
994141e6 RD |
16676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
16677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16678 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16679 | { | |
16680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16681 | (arg1)->RemoveBrush(arg2); | |
16682 | ||
16683 | wxPyEndAllowThreads(__tstate); | |
16684 | if (PyErr_Occurred()) SWIG_fail; | |
16685 | } | |
16686 | Py_INCREF(Py_None); resultobj = Py_None; | |
16687 | return resultobj; | |
16688 | fail: | |
16689 | return NULL; | |
d14a1e28 RD |
16690 | } |
16691 | ||
16692 | ||
994141e6 RD |
16693 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16694 | PyObject *resultobj; | |
16695 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16696 | int result; | |
16697 | PyObject * obj0 = 0 ; | |
16698 | char *kwnames[] = { | |
16699 | (char *) "self", NULL | |
16700 | }; | |
d14a1e28 | 16701 | |
994141e6 RD |
16702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
16703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16704 | { | |
16705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16706 | result = (int)(arg1)->GetCount(); | |
16707 | ||
16708 | wxPyEndAllowThreads(__tstate); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
16710 | } | |
16711 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
d14a1e28 RD |
16715 | } |
16716 | ||
16717 | ||
994141e6 RD |
16718 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
16719 | PyObject *obj; | |
16720 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16721 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
16722 | Py_INCREF(obj); | |
16723 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16724 | } |
994141e6 RD |
16725 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16726 | PyObject *resultobj; | |
16727 | wxColourDatabase *result; | |
16728 | char *kwnames[] = { | |
16729 | NULL | |
16730 | }; | |
d14a1e28 | 16731 | |
994141e6 RD |
16732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
16733 | { | |
16734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16735 | result = (wxColourDatabase *)new wxColourDatabase(); | |
16736 | ||
16737 | wxPyEndAllowThreads(__tstate); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | } | |
16740 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
16741 | return resultobj; | |
16742 | fail: | |
16743 | return NULL; | |
d14a1e28 RD |
16744 | } |
16745 | ||
16746 | ||
994141e6 RD |
16747 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16748 | PyObject *resultobj; | |
16749 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16750 | PyObject * obj0 = 0 ; | |
16751 | char *kwnames[] = { | |
16752 | (char *) "self", NULL | |
16753 | }; | |
d14a1e28 | 16754 | |
994141e6 RD |
16755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
16756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16757 | { | |
16758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16759 | delete arg1; | |
16760 | ||
16761 | wxPyEndAllowThreads(__tstate); | |
16762 | if (PyErr_Occurred()) SWIG_fail; | |
16763 | } | |
16764 | Py_INCREF(Py_None); resultobj = Py_None; | |
16765 | return resultobj; | |
16766 | fail: | |
16767 | return NULL; | |
d14a1e28 RD |
16768 | } |
16769 | ||
16770 | ||
994141e6 RD |
16771 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
16772 | PyObject *resultobj; | |
16773 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16774 | wxString *arg2 = 0 ; | |
16775 | wxColour result; | |
16776 | bool temp2 = False ; | |
16777 | PyObject * obj0 = 0 ; | |
16778 | PyObject * obj1 = 0 ; | |
16779 | char *kwnames[] = { | |
16780 | (char *) "self",(char *) "name", NULL | |
16781 | }; | |
16782 | ||
16783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
16784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16785 | { | |
16786 | arg2 = wxString_in_helper(obj1); | |
16787 | if (arg2 == NULL) SWIG_fail; | |
16788 | temp2 = True; | |
16789 | } | |
16790 | { | |
16791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16792 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
16793 | ||
16794 | wxPyEndAllowThreads(__tstate); | |
16795 | if (PyErr_Occurred()) SWIG_fail; | |
16796 | } | |
16797 | { | |
16798 | wxColour * resultptr; | |
16799 | resultptr = new wxColour((wxColour &) result); | |
16800 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16801 | } | |
16802 | { | |
16803 | if (temp2) | |
16804 | delete arg2; | |
16805 | } | |
16806 | return resultobj; | |
16807 | fail: | |
16808 | { | |
16809 | if (temp2) | |
16810 | delete arg2; | |
16811 | } | |
16812 | return NULL; | |
d14a1e28 RD |
16813 | } |
16814 | ||
16815 | ||
994141e6 RD |
16816 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
16817 | PyObject *resultobj; | |
16818 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16819 | wxColour *arg2 = 0 ; | |
16820 | wxString result; | |
16821 | wxColour temp2 ; | |
16822 | PyObject * obj0 = 0 ; | |
16823 | PyObject * obj1 = 0 ; | |
16824 | char *kwnames[] = { | |
16825 | (char *) "self",(char *) "colour", NULL | |
16826 | }; | |
d14a1e28 | 16827 | |
994141e6 RD |
16828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
16829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16830 | { | |
16831 | arg2 = &temp2; | |
16832 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16833 | } | |
16834 | { | |
16835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16836 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
16837 | ||
16838 | wxPyEndAllowThreads(__tstate); | |
16839 | if (PyErr_Occurred()) SWIG_fail; | |
16840 | } | |
16841 | { | |
16842 | #if wxUSE_UNICODE | |
16843 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16844 | #else | |
16845 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16846 | #endif | |
16847 | } | |
16848 | return resultobj; | |
16849 | fail: | |
16850 | return NULL; | |
d14a1e28 RD |
16851 | } |
16852 | ||
16853 | ||
994141e6 RD |
16854 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
16855 | PyObject *resultobj; | |
16856 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16857 | wxString *arg2 = 0 ; | |
16858 | wxColour *arg3 = 0 ; | |
16859 | bool temp2 = False ; | |
16860 | wxColour temp3 ; | |
16861 | PyObject * obj0 = 0 ; | |
16862 | PyObject * obj1 = 0 ; | |
16863 | PyObject * obj2 = 0 ; | |
16864 | char *kwnames[] = { | |
16865 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
16866 | }; | |
16867 | ||
16868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16870 | { | |
16871 | arg2 = wxString_in_helper(obj1); | |
16872 | if (arg2 == NULL) SWIG_fail; | |
16873 | temp2 = True; | |
16874 | } | |
16875 | { | |
16876 | arg3 = &temp3; | |
16877 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16878 | } | |
16879 | { | |
16880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16881 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
16882 | ||
16883 | wxPyEndAllowThreads(__tstate); | |
16884 | if (PyErr_Occurred()) SWIG_fail; | |
16885 | } | |
16886 | Py_INCREF(Py_None); resultobj = Py_None; | |
16887 | { | |
16888 | if (temp2) | |
16889 | delete arg2; | |
16890 | } | |
16891 | return resultobj; | |
16892 | fail: | |
16893 | { | |
16894 | if (temp2) | |
16895 | delete arg2; | |
16896 | } | |
16897 | return NULL; | |
d14a1e28 RD |
16898 | } |
16899 | ||
16900 | ||
994141e6 RD |
16901 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
16902 | PyObject *resultobj; | |
16903 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16904 | wxString *arg2 = 0 ; | |
16905 | int arg3 ; | |
16906 | int arg4 ; | |
16907 | int arg5 ; | |
16908 | bool temp2 = False ; | |
16909 | PyObject * obj0 = 0 ; | |
16910 | PyObject * obj1 = 0 ; | |
16911 | PyObject * obj2 = 0 ; | |
16912 | PyObject * obj3 = 0 ; | |
16913 | PyObject * obj4 = 0 ; | |
16914 | char *kwnames[] = { | |
16915 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
16916 | }; | |
d14a1e28 | 16917 | |
994141e6 RD |
16918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
16919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16920 | { | |
16921 | arg2 = wxString_in_helper(obj1); | |
16922 | if (arg2 == NULL) SWIG_fail; | |
16923 | temp2 = True; | |
16924 | } | |
16925 | { | |
16926 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16927 | if (PyErr_Occurred()) SWIG_fail; | |
16928 | } | |
16929 | { | |
16930 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16931 | if (PyErr_Occurred()) SWIG_fail; | |
16932 | } | |
16933 | { | |
16934 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
16935 | if (PyErr_Occurred()) SWIG_fail; | |
16936 | } | |
16937 | { | |
16938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16939 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
16940 | ||
16941 | wxPyEndAllowThreads(__tstate); | |
16942 | if (PyErr_Occurred()) SWIG_fail; | |
16943 | } | |
16944 | Py_INCREF(Py_None); resultobj = Py_None; | |
16945 | { | |
16946 | if (temp2) | |
16947 | delete arg2; | |
16948 | } | |
16949 | return resultobj; | |
16950 | fail: | |
16951 | { | |
16952 | if (temp2) | |
16953 | delete arg2; | |
16954 | } | |
16955 | return NULL; | |
d14a1e28 RD |
16956 | } |
16957 | ||
16958 | ||
994141e6 RD |
16959 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
16960 | PyObject *obj; | |
16961 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16962 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
16963 | Py_INCREF(obj); | |
16964 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16965 | } |
994141e6 RD |
16966 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
16967 | PyObject *resultobj; | |
16968 | wxFontList *arg1 = (wxFontList *) 0 ; | |
16969 | wxFont *arg2 = (wxFont *) 0 ; | |
16970 | PyObject * obj0 = 0 ; | |
16971 | PyObject * obj1 = 0 ; | |
16972 | char *kwnames[] = { | |
16973 | (char *) "self",(char *) "font", NULL | |
16974 | }; | |
d14a1e28 | 16975 | |
994141e6 RD |
16976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
16977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16978 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16979 | { | |
16980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16981 | (arg1)->AddFont(arg2); | |
16982 | ||
16983 | wxPyEndAllowThreads(__tstate); | |
16984 | if (PyErr_Occurred()) SWIG_fail; | |
16985 | } | |
16986 | Py_INCREF(Py_None); resultobj = Py_None; | |
16987 | return resultobj; | |
16988 | fail: | |
16989 | return NULL; | |
d14a1e28 RD |
16990 | } |
16991 | ||
16992 | ||
994141e6 RD |
16993 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
16994 | PyObject *resultobj; | |
16995 | wxFontList *arg1 = (wxFontList *) 0 ; | |
16996 | int arg2 ; | |
16997 | int arg3 ; | |
16998 | int arg4 ; | |
16999 | int arg5 ; | |
17000 | bool arg6 = (bool) False ; | |
17001 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17002 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17003 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17004 | wxFont *result; | |
17005 | bool temp7 = False ; | |
17006 | PyObject * obj0 = 0 ; | |
17007 | PyObject * obj1 = 0 ; | |
17008 | PyObject * obj2 = 0 ; | |
17009 | PyObject * obj3 = 0 ; | |
17010 | PyObject * obj4 = 0 ; | |
17011 | PyObject * obj5 = 0 ; | |
17012 | PyObject * obj6 = 0 ; | |
17013 | PyObject * obj7 = 0 ; | |
17014 | char *kwnames[] = { | |
17015 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17016 | }; | |
d14a1e28 | 17017 | |
994141e6 RD |
17018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
17019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17020 | { | |
17021 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
17024 | { | |
17025 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | { | |
17029 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | } | |
17032 | { | |
17033 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17034 | if (PyErr_Occurred()) SWIG_fail; | |
17035 | } | |
17036 | if (obj5) { | |
17037 | { | |
17038 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
17039 | if (PyErr_Occurred()) SWIG_fail; | |
17040 | } | |
17041 | } | |
17042 | if (obj6) { | |
17043 | { | |
17044 | arg7 = wxString_in_helper(obj6); | |
17045 | if (arg7 == NULL) SWIG_fail; | |
17046 | temp7 = True; | |
17047 | } | |
17048 | } | |
17049 | if (obj7) { | |
17050 | { | |
17051 | arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7); | |
17052 | if (PyErr_Occurred()) SWIG_fail; | |
17053 | } | |
17054 | } | |
17055 | { | |
17056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17057 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17058 | ||
17059 | wxPyEndAllowThreads(__tstate); | |
17060 | if (PyErr_Occurred()) SWIG_fail; | |
17061 | } | |
17062 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
17063 | { | |
17064 | if (temp7) | |
17065 | delete arg7; | |
17066 | } | |
17067 | return resultobj; | |
17068 | fail: | |
17069 | { | |
17070 | if (temp7) | |
17071 | delete arg7; | |
17072 | } | |
17073 | return NULL; | |
d14a1e28 RD |
17074 | } |
17075 | ||
17076 | ||
994141e6 RD |
17077 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17078 | PyObject *resultobj; | |
17079 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17080 | wxFont *arg2 = (wxFont *) 0 ; | |
17081 | PyObject * obj0 = 0 ; | |
17082 | PyObject * obj1 = 0 ; | |
17083 | char *kwnames[] = { | |
17084 | (char *) "self",(char *) "font", NULL | |
17085 | }; | |
d14a1e28 | 17086 | |
994141e6 RD |
17087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
17088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17090 | { | |
17091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17092 | (arg1)->RemoveFont(arg2); | |
17093 | ||
17094 | wxPyEndAllowThreads(__tstate); | |
17095 | if (PyErr_Occurred()) SWIG_fail; | |
17096 | } | |
17097 | Py_INCREF(Py_None); resultobj = Py_None; | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
d14a1e28 RD |
17101 | } |
17102 | ||
17103 | ||
994141e6 RD |
17104 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17105 | PyObject *resultobj; | |
17106 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17107 | int result; | |
17108 | PyObject * obj0 = 0 ; | |
17109 | char *kwnames[] = { | |
17110 | (char *) "self", NULL | |
17111 | }; | |
d14a1e28 | 17112 | |
994141e6 RD |
17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
17114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17115 | { | |
17116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17117 | result = (int)(arg1)->GetCount(); | |
17118 | ||
17119 | wxPyEndAllowThreads(__tstate); | |
17120 | if (PyErr_Occurred()) SWIG_fail; | |
17121 | } | |
17122 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17123 | return resultobj; | |
17124 | fail: | |
17125 | return NULL; | |
d14a1e28 RD |
17126 | } |
17127 | ||
17128 | ||
994141e6 RD |
17129 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
17130 | PyObject *obj; | |
17131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17132 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17133 | Py_INCREF(obj); | |
17134 | return Py_BuildValue((char *)""); | |
17135 | } | |
d14a1e28 RD |
17136 | static int _wrap_TheFontList_set(PyObject *_val) { |
17137 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
17138 | return 1; | |
17139 | } | |
17140 | ||
17141 | ||
17142 | static PyObject *_wrap_TheFontList_get() { | |
17143 | PyObject *pyobj; | |
17144 | ||
17145 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
17146 | return pyobj; | |
17147 | } | |
17148 | ||
17149 | ||
17150 | static int _wrap_ThePenList_set(PyObject *_val) { | |
17151 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
17152 | return 1; | |
17153 | } | |
17154 | ||
17155 | ||
17156 | static PyObject *_wrap_ThePenList_get() { | |
17157 | PyObject *pyobj; | |
17158 | ||
17159 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
17160 | return pyobj; | |
17161 | } | |
17162 | ||
17163 | ||
17164 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
17165 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
17166 | return 1; | |
17167 | } | |
17168 | ||
17169 | ||
17170 | static PyObject *_wrap_TheBrushList_get() { | |
17171 | PyObject *pyobj; | |
17172 | ||
17173 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
17174 | return pyobj; | |
17175 | } | |
17176 | ||
17177 | ||
17178 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
17179 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
17180 | return 1; | |
17181 | } | |
17182 | ||
17183 | ||
17184 | static PyObject *_wrap_TheColourDatabase_get() { | |
17185 | PyObject *pyobj; | |
17186 | ||
17187 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
17188 | return pyobj; | |
17189 | } | |
17190 | ||
17191 | ||
e811c8ce | 17192 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17193 | PyObject *resultobj; |
e811c8ce | 17194 | wxEffects *result; |
d14a1e28 | 17195 | char *kwnames[] = { |
e811c8ce | 17196 | NULL |
d14a1e28 RD |
17197 | }; |
17198 | ||
e811c8ce | 17199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
17200 | { |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17202 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
17203 | |
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
e811c8ce | 17207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
17208 | return resultobj; |
17209 | fail: | |
17210 | return NULL; | |
17211 | } | |
17212 | ||
17213 | ||
e811c8ce | 17214 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17215 | PyObject *resultobj; |
e811c8ce RD |
17216 | wxEffects *arg1 = (wxEffects *) 0 ; |
17217 | wxColour result; | |
d14a1e28 | 17218 | PyObject * obj0 = 0 ; |
d14a1e28 | 17219 | char *kwnames[] = { |
e811c8ce | 17220 | (char *) "self", NULL |
d14a1e28 RD |
17221 | }; |
17222 | ||
e811c8ce RD |
17223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
17224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17225 | { |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17227 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
17228 | |
17229 | wxPyEndAllowThreads(__tstate); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | } | |
e811c8ce RD |
17232 | { |
17233 | wxColour * resultptr; | |
17234 | resultptr = new wxColour((wxColour &) result); | |
17235 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17236 | } | |
d14a1e28 RD |
17237 | return resultobj; |
17238 | fail: | |
17239 | return NULL; | |
17240 | } | |
17241 | ||
17242 | ||
e811c8ce | 17243 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17244 | PyObject *resultobj; |
e811c8ce RD |
17245 | wxEffects *arg1 = (wxEffects *) 0 ; |
17246 | wxColour result; | |
d14a1e28 | 17247 | PyObject * obj0 = 0 ; |
d14a1e28 | 17248 | char *kwnames[] = { |
e811c8ce | 17249 | (char *) "self", NULL |
d14a1e28 RD |
17250 | }; |
17251 | ||
e811c8ce RD |
17252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
17253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17254 | { |
17255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17256 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17257 | |
17258 | wxPyEndAllowThreads(__tstate); | |
17259 | if (PyErr_Occurred()) SWIG_fail; | |
17260 | } | |
d14a1e28 | 17261 | { |
e811c8ce RD |
17262 | wxColour * resultptr; |
17263 | resultptr = new wxColour((wxColour &) result); | |
17264 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
17265 | } |
17266 | return resultobj; | |
17267 | fail: | |
d14a1e28 RD |
17268 | return NULL; |
17269 | } | |
17270 | ||
17271 | ||
e811c8ce | 17272 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17273 | PyObject *resultobj; |
e811c8ce RD |
17274 | wxEffects *arg1 = (wxEffects *) 0 ; |
17275 | wxColour result; | |
d14a1e28 | 17276 | PyObject * obj0 = 0 ; |
d14a1e28 | 17277 | char *kwnames[] = { |
e811c8ce | 17278 | (char *) "self", NULL |
d14a1e28 RD |
17279 | }; |
17280 | ||
e811c8ce RD |
17281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
17282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17283 | { |
17284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17285 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17286 | |
17287 | wxPyEndAllowThreads(__tstate); | |
17288 | if (PyErr_Occurred()) SWIG_fail; | |
17289 | } | |
e811c8ce RD |
17290 | { |
17291 | wxColour * resultptr; | |
17292 | resultptr = new wxColour((wxColour &) result); | |
17293 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17294 | } | |
d14a1e28 RD |
17295 | return resultobj; |
17296 | fail: | |
17297 | return NULL; | |
17298 | } | |
17299 | ||
17300 | ||
e811c8ce | 17301 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17302 | PyObject *resultobj; |
e811c8ce RD |
17303 | wxEffects *arg1 = (wxEffects *) 0 ; |
17304 | wxColour result; | |
d14a1e28 RD |
17305 | PyObject * obj0 = 0 ; |
17306 | char *kwnames[] = { | |
e811c8ce | 17307 | (char *) "self", NULL |
d14a1e28 RD |
17308 | }; |
17309 | ||
17310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
17311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17312 | { | |
17313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17314 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17315 | ||
17316 | wxPyEndAllowThreads(__tstate); | |
17317 | if (PyErr_Occurred()) SWIG_fail; | |
17318 | } | |
17319 | { | |
17320 | wxColour * resultptr; | |
17321 | resultptr = new wxColour((wxColour &) result); | |
17322 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17323 | } | |
17324 | return resultobj; | |
17325 | fail: | |
17326 | return NULL; | |
17327 | } | |
17328 | ||
17329 | ||
17330 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17331 | PyObject *resultobj; | |
17332 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17333 | wxColour result; | |
17334 | PyObject * obj0 = 0 ; | |
17335 | char *kwnames[] = { | |
17336 | (char *) "self", NULL | |
17337 | }; | |
17338 | ||
17339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
17340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17341 | { | |
17342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17343 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17344 | ||
17345 | wxPyEndAllowThreads(__tstate); | |
17346 | if (PyErr_Occurred()) SWIG_fail; | |
17347 | } | |
17348 | { | |
17349 | wxColour * resultptr; | |
17350 | resultptr = new wxColour((wxColour &) result); | |
17351 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17352 | } | |
17353 | return resultobj; | |
17354 | fail: | |
17355 | return NULL; | |
17356 | } | |
17357 | ||
17358 | ||
17359 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17360 | PyObject *resultobj; | |
17361 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17362 | wxColour *arg2 = 0 ; | |
17363 | wxColour temp2 ; | |
17364 | PyObject * obj0 = 0 ; | |
17365 | PyObject * obj1 = 0 ; | |
17366 | char *kwnames[] = { | |
17367 | (char *) "self",(char *) "c", NULL | |
17368 | }; | |
17369 | ||
17370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
17371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17372 | { | |
17373 | arg2 = &temp2; | |
17374 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17375 | } | |
17376 | { | |
17377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17378 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17379 | ||
17380 | wxPyEndAllowThreads(__tstate); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | Py_INCREF(Py_None); resultobj = Py_None; | |
17384 | return resultobj; | |
17385 | fail: | |
17386 | return NULL; | |
17387 | } | |
17388 | ||
17389 | ||
17390 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17391 | PyObject *resultobj; | |
17392 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17393 | wxColour *arg2 = 0 ; | |
17394 | wxColour temp2 ; | |
17395 | PyObject * obj0 = 0 ; | |
17396 | PyObject * obj1 = 0 ; | |
17397 | char *kwnames[] = { | |
17398 | (char *) "self",(char *) "c", NULL | |
17399 | }; | |
17400 | ||
17401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
17402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17403 | { | |
17404 | arg2 = &temp2; | |
17405 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17406 | } | |
17407 | { | |
17408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17409 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17410 | ||
17411 | wxPyEndAllowThreads(__tstate); | |
17412 | if (PyErr_Occurred()) SWIG_fail; | |
17413 | } | |
17414 | Py_INCREF(Py_None); resultobj = Py_None; | |
17415 | return resultobj; | |
17416 | fail: | |
17417 | return NULL; | |
17418 | } | |
17419 | ||
17420 | ||
17421 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17422 | PyObject *resultobj; | |
17423 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17424 | wxColour *arg2 = 0 ; | |
17425 | wxColour temp2 ; | |
17426 | PyObject * obj0 = 0 ; | |
17427 | PyObject * obj1 = 0 ; | |
17428 | char *kwnames[] = { | |
17429 | (char *) "self",(char *) "c", NULL | |
17430 | }; | |
17431 | ||
17432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
17433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17434 | { | |
17435 | arg2 = &temp2; | |
17436 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17437 | } | |
17438 | { | |
17439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17440 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17441 | ||
17442 | wxPyEndAllowThreads(__tstate); | |
17443 | if (PyErr_Occurred()) SWIG_fail; | |
17444 | } | |
17445 | Py_INCREF(Py_None); resultobj = Py_None; | |
17446 | return resultobj; | |
17447 | fail: | |
17448 | return NULL; | |
17449 | } | |
17450 | ||
17451 | ||
17452 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17453 | PyObject *resultobj; | |
17454 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17455 | wxColour *arg2 = 0 ; | |
17456 | wxColour temp2 ; | |
17457 | PyObject * obj0 = 0 ; | |
17458 | PyObject * obj1 = 0 ; | |
17459 | char *kwnames[] = { | |
17460 | (char *) "self",(char *) "c", NULL | |
17461 | }; | |
17462 | ||
17463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
17464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17465 | { | |
17466 | arg2 = &temp2; | |
17467 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17468 | } | |
17469 | { | |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17471 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
17476 | Py_INCREF(Py_None); resultobj = Py_None; | |
17477 | return resultobj; | |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
17483 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17484 | PyObject *resultobj; | |
17485 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17486 | wxColour *arg2 = 0 ; | |
17487 | wxColour temp2 ; | |
17488 | PyObject * obj0 = 0 ; | |
17489 | PyObject * obj1 = 0 ; | |
17490 | char *kwnames[] = { | |
17491 | (char *) "self",(char *) "c", NULL | |
17492 | }; | |
17493 | ||
17494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
17495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17496 | { | |
17497 | arg2 = &temp2; | |
17498 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17499 | } | |
17500 | { | |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17503 | ||
17504 | wxPyEndAllowThreads(__tstate); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | } | |
17507 | Py_INCREF(Py_None); resultobj = Py_None; | |
17508 | return resultobj; | |
17509 | fail: | |
17510 | return NULL; | |
17511 | } | |
17512 | ||
17513 | ||
17514 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17515 | PyObject *resultobj; | |
17516 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17517 | wxColour *arg2 = 0 ; | |
17518 | wxColour *arg3 = 0 ; | |
17519 | wxColour *arg4 = 0 ; | |
17520 | wxColour *arg5 = 0 ; | |
17521 | wxColour *arg6 = 0 ; | |
17522 | wxColour temp2 ; | |
17523 | wxColour temp3 ; | |
17524 | wxColour temp4 ; | |
17525 | wxColour temp5 ; | |
17526 | wxColour temp6 ; | |
17527 | PyObject * obj0 = 0 ; | |
17528 | PyObject * obj1 = 0 ; | |
17529 | PyObject * obj2 = 0 ; | |
17530 | PyObject * obj3 = 0 ; | |
17531 | PyObject * obj4 = 0 ; | |
17532 | PyObject * obj5 = 0 ; | |
17533 | char *kwnames[] = { | |
17534 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17535 | }; | |
17536 | ||
17537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17539 | { | |
17540 | arg2 = &temp2; | |
17541 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17542 | } | |
17543 | { | |
17544 | arg3 = &temp3; | |
17545 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17546 | } | |
17547 | { | |
17548 | arg4 = &temp4; | |
17549 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17550 | } | |
17551 | { | |
17552 | arg5 = &temp5; | |
17553 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17554 | } | |
17555 | { | |
17556 | arg6 = &temp6; | |
17557 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
17558 | } | |
17559 | { | |
17560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17561 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
17562 | ||
17563 | wxPyEndAllowThreads(__tstate); | |
17564 | if (PyErr_Occurred()) SWIG_fail; | |
17565 | } | |
17566 | Py_INCREF(Py_None); resultobj = Py_None; | |
17567 | return resultobj; | |
17568 | fail: | |
17569 | return NULL; | |
17570 | } | |
17571 | ||
17572 | ||
17573 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17574 | PyObject *resultobj; | |
17575 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17576 | wxDC *arg2 = 0 ; | |
17577 | wxRect *arg3 = 0 ; | |
17578 | int arg4 = (int) 1 ; | |
17579 | wxRect temp3 ; | |
17580 | PyObject * obj0 = 0 ; | |
17581 | PyObject * obj1 = 0 ; | |
17582 | PyObject * obj2 = 0 ; | |
994141e6 | 17583 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
17584 | char *kwnames[] = { |
17585 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17586 | }; | |
17587 | ||
994141e6 | 17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
17589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17590 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17591 | if (arg2 == NULL) { | |
17592 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17593 | } | |
17594 | { | |
17595 | arg3 = &temp3; | |
17596 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17597 | } | |
994141e6 RD |
17598 | if (obj3) { |
17599 | { | |
17600 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17601 | if (PyErr_Occurred()) SWIG_fail; | |
17602 | } | |
17603 | } | |
d14a1e28 RD |
17604 | { |
17605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17606 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17607 | ||
17608 | wxPyEndAllowThreads(__tstate); | |
17609 | if (PyErr_Occurred()) SWIG_fail; | |
17610 | } | |
17611 | Py_INCREF(Py_None); resultobj = Py_None; | |
17612 | return resultobj; | |
17613 | fail: | |
17614 | return NULL; | |
17615 | } | |
17616 | ||
17617 | ||
17618 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17619 | PyObject *resultobj; | |
17620 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17621 | wxRect *arg2 = 0 ; | |
17622 | wxDC *arg3 = 0 ; | |
17623 | wxBitmap *arg4 = 0 ; | |
17624 | bool result; | |
17625 | wxRect temp2 ; | |
17626 | PyObject * obj0 = 0 ; | |
17627 | PyObject * obj1 = 0 ; | |
17628 | PyObject * obj2 = 0 ; | |
17629 | PyObject * obj3 = 0 ; | |
17630 | char *kwnames[] = { | |
17631 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17632 | }; | |
17633 | ||
17634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17636 | { | |
17637 | arg2 = &temp2; | |
17638 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17639 | } | |
17640 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17641 | if (arg3 == NULL) { | |
17642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17643 | } | |
17644 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17645 | if (arg4 == NULL) { | |
17646 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17647 | } | |
17648 | { | |
17649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17650 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17651 | ||
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
4d5c3d91 | 17655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17656 | return resultobj; |
17657 | fail: | |
17658 | return NULL; | |
17659 | } | |
17660 | ||
17661 | ||
17662 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
17663 | PyObject *obj; | |
17664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17665 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17666 | Py_INCREF(obj); | |
17667 | return Py_BuildValue((char *)""); | |
17668 | } | |
17669 | static PyMethodDef SwigMethods[] = { | |
17670 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17671 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17672 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17673 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17674 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
17675 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
17676 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17677 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17678 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
17679 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
17680 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
17681 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
17682 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
17683 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17684 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17685 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17686 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
17687 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17688 | { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17689 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, |
17690 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
17691 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17692 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17693 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17694 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
17695 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17696 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
17697 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17698 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17699 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
17700 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17701 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17702 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17703 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17704 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17705 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
17706 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17707 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17708 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17709 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17710 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17711 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 17712 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
c9c7117a | 17713 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17714 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
17715 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17716 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17717 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17718 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
17719 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17720 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17721 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17722 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17723 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17724 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17725 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17726 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17727 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17728 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
17729 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17730 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17731 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17732 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17733 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17734 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17735 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17736 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17737 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17738 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17739 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17740 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
17741 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
17742 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
17743 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17744 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17745 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
17746 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17747 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17748 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17749 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17750 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17751 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
17752 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
17753 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17754 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
17755 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17756 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17757 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
17758 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
17759 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17760 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17761 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17762 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17763 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17764 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17765 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17766 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17767 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17768 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17769 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17770 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
17771 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17772 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17773 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17774 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17775 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17776 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17777 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17778 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
17779 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17780 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17781 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17782 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17783 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17784 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17785 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
17786 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
17787 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17788 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17789 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
17790 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17791 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17792 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17793 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
17794 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
17795 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17796 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
17797 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
17798 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17799 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
17800 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
17801 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
17802 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
17803 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
17804 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
17805 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
17806 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
17807 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
17808 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
17809 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
17810 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
17811 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
17812 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
17813 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
17814 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
17815 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
17816 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
17817 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
17818 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17819 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17820 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
17821 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17822 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17823 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
17824 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
17825 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
17826 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17827 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
17828 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17829 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
17830 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
17831 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
17832 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
17833 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
17834 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
17835 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17836 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17837 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
17838 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
17839 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17840 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17841 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17842 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17843 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17844 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17845 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17846 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17847 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17848 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17849 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17850 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17851 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17852 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17853 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17854 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17855 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
17856 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
17857 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
17858 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
17859 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
17860 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
17861 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
17862 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
17863 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17864 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17865 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17866 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17867 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
17868 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17869 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17870 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17871 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17872 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
17873 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
17874 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17875 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
17876 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17877 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17878 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
17879 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
17880 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17881 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17882 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17883 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
17884 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
17885 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
17886 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
17887 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
17888 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
17889 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
17890 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
17891 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
17892 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17893 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17894 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17895 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17896 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17897 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17898 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17899 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17900 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17901 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17902 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17903 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
17904 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
17905 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17906 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17907 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17908 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17909 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17910 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17911 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17912 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17913 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17914 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
17915 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17916 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
17917 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
17918 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
17919 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17920 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17921 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17922 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17923 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
17924 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17925 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17926 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
17927 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17928 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17929 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17930 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17931 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
17932 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
17933 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
17934 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
17935 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
17936 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
17937 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
17938 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
17939 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17940 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17941 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
17942 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
17943 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17944 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17945 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17946 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17947 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17948 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17949 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
17950 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
17951 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
17952 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
17953 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
17954 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17955 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
17956 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
17957 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
17958 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
17959 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
17960 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
17961 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
17962 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
17963 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17964 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
17965 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
17966 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
17967 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17968 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
17969 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
17970 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
17971 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
17972 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17973 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
17974 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
17975 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
17976 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
17977 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17978 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
17979 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
17980 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
17981 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
17982 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17983 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
17984 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
17985 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
17986 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
17987 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
17988 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
17989 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
17990 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17991 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17992 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17993 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
17994 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
17995 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
17996 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
17997 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
17998 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
17999 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
18000 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
18001 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
18002 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
18003 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
18004 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18005 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18006 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
18007 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18008 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
18009 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
18010 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
18011 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
18012 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18013 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18014 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18015 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18016 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18017 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18018 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18019 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18020 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18021 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18022 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18023 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18024 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18025 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18026 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
242b7b46 | 18027 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18028 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18029 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18030 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18031 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18032 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18033 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18034 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18035 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18036 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18037 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18038 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18039 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18040 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18041 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18042 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18043 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
18044 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18045 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18046 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18047 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18048 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18049 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18050 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18051 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18052 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18053 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18054 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18055 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18056 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18057 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18058 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18059 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18060 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18061 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18062 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18063 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18064 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18065 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18066 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18067 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18068 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18069 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18070 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18071 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18072 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18073 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18074 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18075 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18076 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
18077 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
18078 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18079 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18080 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18081 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18082 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18083 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18084 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18085 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18086 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18087 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18088 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18089 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18090 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18091 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18092 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18093 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18094 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18095 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18096 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18097 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18098 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18099 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
3adfb63b RD |
18100 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
18101 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
d14a1e28 RD |
18102 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
18103 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
3adfb63b | 18104 | { (char *)"new_BufferedPaintDC", _wrap_new_BufferedPaintDC, METH_VARARGS }, |
d14a1e28 RD |
18105 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
18106 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
18107 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
18108 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18109 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18110 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
18111 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
18112 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
18113 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18114 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
18115 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
18116 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
18117 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
18118 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
18119 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
18120 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18121 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18122 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18123 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18124 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
18125 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18126 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
18127 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
18128 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
18129 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
18130 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
18131 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18132 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18133 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
18134 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
18135 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18136 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
18137 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
18138 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
18139 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
18140 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
18141 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18142 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
18143 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
18144 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
18145 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
18146 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18147 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
18148 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
18149 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
18150 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
18151 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18152 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
18153 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18154 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18155 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
18156 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
18157 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
18158 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
18159 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
18160 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
18161 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
18162 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
18163 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18164 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
18165 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
18166 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18167 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18168 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18169 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18170 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18171 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18172 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18173 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18174 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18175 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18176 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
18177 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
18178 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18179 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
18180 | { NULL, NULL } | |
18181 | }; | |
18182 | ||
18183 | ||
18184 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18185 | ||
e811c8ce RD |
18186 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
18187 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18188 | } | |
18189 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18190 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18191 | } | |
18192 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18193 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18194 | } | |
d14a1e28 RD |
18195 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
18196 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18197 | } | |
18198 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18199 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18200 | } | |
d14a1e28 RD |
18201 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
18202 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18203 | } | |
18204 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18205 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18206 | } | |
18207 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18208 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18209 | } | |
18210 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18211 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18212 | } | |
18213 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18214 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18215 | } | |
18216 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18217 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18218 | } | |
18219 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18220 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18221 | } | |
18222 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18223 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18224 | } | |
18225 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18226 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18227 | } | |
18228 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18229 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18230 | } | |
18231 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18232 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18233 | } | |
18234 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18235 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18236 | } | |
18237 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18238 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18239 | } | |
18240 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18241 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18242 | } | |
18243 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18244 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18245 | } | |
18246 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18247 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18248 | } | |
18249 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18250 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18251 | } | |
18252 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18253 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18254 | } | |
18255 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18256 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18257 | } | |
18258 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18259 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18260 | } | |
18261 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18262 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18263 | } | |
18264 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18265 | return (void *)((wxObject *) ((wxDC *) x)); | |
18266 | } | |
18267 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18268 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18269 | } | |
18270 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18271 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18272 | } | |
18273 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18274 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18275 | } | |
18276 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18277 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18278 | } | |
18279 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18280 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18281 | } | |
18282 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18283 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18284 | } | |
18285 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18286 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18287 | } | |
18288 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18289 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18290 | } | |
18291 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18292 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18293 | } | |
18294 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18295 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18296 | } | |
18297 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18298 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18299 | } | |
18300 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18301 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18302 | } | |
18303 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18304 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18305 | } | |
18306 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18307 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18308 | } | |
18309 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18310 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18311 | } | |
18312 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18313 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18314 | } | |
18315 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18316 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18317 | } | |
18318 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18319 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18320 | } | |
18321 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18322 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18323 | } | |
18324 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18325 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18326 | } | |
18327 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18328 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18329 | } | |
18330 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18331 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18332 | } | |
18333 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18334 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18335 | } | |
18336 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18337 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18338 | } | |
18339 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18340 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18341 | } | |
18342 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18343 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18344 | } | |
18345 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18346 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18347 | } | |
18348 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18349 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18350 | } | |
18351 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18352 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18353 | } | |
18354 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18355 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18356 | } | |
18357 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18358 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18359 | } | |
18360 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18361 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18362 | } | |
18363 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18364 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18365 | } | |
18366 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18367 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18368 | } | |
18369 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18370 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18371 | } | |
18372 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18373 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18374 | } | |
18375 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18376 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18377 | } | |
18378 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18379 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18380 | } | |
18381 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18382 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18383 | } | |
18384 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18385 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18386 | } | |
18387 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18388 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18389 | } | |
18390 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18391 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18392 | } | |
18393 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18394 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18395 | } | |
18396 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18397 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18398 | } | |
1e0c8722 RD |
18399 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18400 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18401 | } | |
d14a1e28 RD |
18402 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18403 | return (void *)((wxObject *) ((wxImage *) x)); | |
18404 | } | |
18405 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18406 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18407 | } | |
d14a1e28 RD |
18408 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18409 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18410 | } | |
18411 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18412 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18413 | } | |
18414 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18415 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18416 | } | |
18417 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18418 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18419 | } | |
18420 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18421 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18422 | } | |
18423 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18424 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18425 | } | |
18426 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18427 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18428 | } | |
18429 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18430 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18431 | } | |
18432 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18433 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18434 | } | |
18435 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18436 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18437 | } | |
18438 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18439 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18440 | } | |
18441 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18442 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18443 | } | |
18444 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18445 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18446 | } | |
18447 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18448 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18449 | } | |
18450 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
18451 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
18452 | } | |
18453 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
18454 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18455 | } | |
18456 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18457 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18458 | } | |
18459 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18460 | return (void *)((wxObject *) ((wxMask *) x)); | |
18461 | } | |
18462 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18463 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18464 | } | |
18465 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18466 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18467 | } | |
18468 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18469 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18470 | } | |
18471 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18472 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18473 | } | |
18474 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18475 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18476 | } | |
18477 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18478 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18479 | } | |
18480 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18481 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18482 | } | |
18483 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18484 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18485 | } | |
18486 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18487 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18488 | } | |
18489 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18490 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18491 | } | |
18492 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18493 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18494 | } | |
18495 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18496 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18497 | } | |
18498 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18499 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18500 | } | |
18501 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18502 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18503 | } | |
18504 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18505 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18506 | } | |
18507 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18508 | return (void *)((wxObject *) ((wxColour *) x)); | |
18509 | } | |
18510 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18511 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18512 | } | |
18513 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18514 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18515 | } | |
18516 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18517 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18518 | } | |
e811c8ce RD |
18519 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18520 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18521 | } |
e811c8ce RD |
18522 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18523 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18524 | } |
e811c8ce RD |
18525 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18526 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18527 | } | |
18528 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18529 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18530 | } | |
18531 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18532 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18533 | } | |
18534 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18535 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18536 | } | |
18537 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18538 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18539 | } | |
18540 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
18541 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18542 | } | |
18543 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
18544 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
18545 | } | |
18546 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
18547 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
18548 | } | |
18549 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
18550 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
18551 | } | |
18552 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
18553 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
18554 | } | |
18555 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
18556 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
18557 | } | |
18558 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
18559 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
18560 | } | |
18561 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
18562 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
18563 | } | |
18564 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
18565 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
18566 | } | |
18567 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
18568 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
18569 | } | |
18570 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
18571 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
18572 | } | |
18573 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
18574 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
18575 | } | |
18576 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
18577 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
18578 | } | |
18579 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
18580 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
18581 | } | |
18582 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
18583 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
18584 | } |
18585 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
18586 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
18587 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
18588 | 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}}; |
18589 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
18590 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18591 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
994141e6 | 18592 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
18593 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; |
18594 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
18595 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
18596 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
18597 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
18598 | 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}}; | |
18599 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
18600 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
18601 | 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}}; | |
18602 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
18603 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
18604 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
18605 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
18606 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
1e0c8722 | 18607 | 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 |
18608 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
18609 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
18610 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
18611 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
18612 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
18613 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
18614 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
18615 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
18616 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
18617 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
18618 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
18619 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
18620 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18621 | 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 | 18622 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; |
994141e6 | 18623 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; |
d14a1e28 RD |
18624 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; |
18625 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
18626 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
18627 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
18628 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
18629 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
18630 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
18631 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
18632 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
18633 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
18634 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 18635 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
e811c8ce | 18636 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
18637 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
18638 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
18639 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
18640 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
18641 | ||
18642 | static swig_type_info *swig_types_initial[] = { | |
18643 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
18644 | _swigt__p_wxBrush, |
18645 | _swigt__p_wxColour, | |
d14a1e28 RD |
18646 | _swigt__p_wxDC, |
18647 | _swigt__p_wxMirrorDC, | |
18648 | _swigt__p_byte, | |
18649 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 18650 | _swigt__p_char, |
d14a1e28 RD |
18651 | _swigt__p_wxIconLocation, |
18652 | _swigt__p_wxImage, | |
18653 | _swigt__p_wxMetaFileDC, | |
18654 | _swigt__p_wxMask, | |
18655 | _swigt__p_wxFont, | |
18656 | _swigt__p_wxWindow, | |
18657 | _swigt__p_wxSize, | |
18658 | _swigt__p_double, | |
18659 | _swigt__p_wxMemoryDC, | |
18660 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
18661 | _swigt__p_wxEffects, |
18662 | _swigt__p_wxNativeEncodingInfo, | |
18663 | _swigt__p_wxPalette, | |
18664 | _swigt__p_wxBitmap, | |
18665 | _swigt__p_wxObject, | |
18666 | _swigt__p_wxRegionIterator, | |
18667 | _swigt__p_wxRect, | |
18668 | _swigt__p_wxString, | |
18669 | _swigt__p_wxPrinterDC, | |
18670 | _swigt__p_wxIconBundle, | |
18671 | _swigt__p_wxPoint, | |
18672 | _swigt__p_wxDash, | |
18673 | _swigt__p_wxScreenDC, | |
18674 | _swigt__p_wxCursor, | |
18675 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
18676 | _swigt__p_wxBufferedDC, |
18677 | _swigt__p_wxImageList, | |
18678 | _swigt__p_unsigned_char, | |
18679 | _swigt__p_wxGDIObject, | |
d14a1e28 | 18680 | _swigt__p_wxIcon, |
994141e6 | 18681 | _swigt__p_wxLocale, |
d14a1e28 RD |
18682 | _swigt__p_wxRegion, |
18683 | _swigt__p_wxLanguageInfo, | |
18684 | _swigt__p_wxConfigBase, | |
18685 | _swigt__p_wxWindowDC, | |
18686 | _swigt__p_wxPrintData, | |
18687 | _swigt__p_wxBrushList, | |
18688 | _swigt__p_wxFontList, | |
18689 | _swigt__p_wxPen, | |
18690 | _swigt__p_wxBufferedPaintDC, | |
18691 | _swigt__p_wxPaintDC, | |
18692 | _swigt__p_wxPenList, | |
d14a1e28 RD |
18693 | _swigt__p_wxPyPen, |
18694 | _swigt__p_int, | |
18695 | _swigt__p_wxMetaFile, | |
18696 | _swigt__p_wxNativeFontInfo, | |
18697 | _swigt__p_wxEncodingConverter, | |
18698 | _swigt__p_wxColourDatabase, | |
18699 | 0 | |
18700 | }; | |
18701 | ||
18702 | ||
18703 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18704 | ||
18705 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
18706 | {0}}; |
18707 | ||
18708 | #ifdef __cplusplus | |
18709 | } | |
18710 | #endif | |
18711 | ||
18712 | #ifdef __cplusplus | |
18713 | extern "C" | |
18714 | #endif | |
18715 | SWIGEXPORT(void) SWIG_init(void) { | |
18716 | static PyObject *SWIG_globals = 0; | |
18717 | static int typeinit = 0; | |
18718 | PyObject *m, *d; | |
18719 | int i; | |
18720 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18721 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18722 | d = PyModule_GetDict(m); | |
18723 | ||
18724 | if (!typeinit) { | |
18725 | for (i = 0; swig_types_initial[i]; i++) { | |
18726 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18727 | } | |
18728 | typeinit = 1; | |
18729 | } | |
18730 | SWIG_InstallConstants(d,swig_const_table); | |
18731 | ||
994141e6 RD |
18732 | PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion)); |
18733 | PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion)); | |
18734 | PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion)); | |
18735 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
18736 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
18737 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN)); | |
18738 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
18739 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS)); | |
18740 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN)); | |
18741 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
18742 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX)); | |
18743 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
18744 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL)); | |
18745 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC)); | |
18746 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT)); | |
18747 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX)); | |
18748 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
18749 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
18750 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD)); | |
18751 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX)); | |
18752 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT)); | |
18753 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC)); | |
18754 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT)); | |
18755 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT)); | |
18756 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD)); | |
18757 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
18758 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
18759 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
18760 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
18761 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK)); | |
18762 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM)); | |
18763 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT)); | |
18764 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
18765 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
18766 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
18767 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
18768 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
18769 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
18770 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
18771 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
18772 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
18773 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
18774 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
18775 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
18776 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
18777 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
18778 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
18779 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
18780 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8)); | |
18781 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
18782 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
18783 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437)); | |
18784 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850)); | |
18785 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852)); | |
18786 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855)); | |
18787 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866)); | |
18788 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874)); | |
18789 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932)); | |
18790 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936)); | |
18791 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949)); | |
18792 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950)); | |
18793 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250)); | |
18794 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251)); | |
18795 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252)); | |
18796 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253)); | |
18797 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254)); | |
18798 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255)); | |
18799 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256)); | |
18800 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257)); | |
18801 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
18802 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7)); | |
18803 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8)); | |
18804 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP)); | |
18805 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE)); | |
18806 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE)); | |
18807 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE)); | |
18808 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE)); | |
18809 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN)); | |
18810 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
18811 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
18812 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
18813 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC)); | |
18814 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
18815 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK)); | |
18816 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
18817 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
18818 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
18819 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
18820 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA)); | |
18821 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
18822 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
18823 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
18824 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
18825 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
18826 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
18827 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
18828 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER)); | |
18829 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI)); | |
18830 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
18831 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
18832 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
18833 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
18834 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
18835 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
18836 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
18837 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
18838 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
18839 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
18840 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
18841 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
18842 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
18843 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
18844 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
18845 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
18846 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
18847 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
18848 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
18849 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN)); | |
18850 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX)); | |
18851 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX)); | |
18852 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16)); | |
18853 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32)); | |
18854 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE)); | |
18855 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312)); | |
18856 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5)); | |
18857 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
18858 | |
18859 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18860 | ||
994141e6 RD |
18861 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT)); |
18862 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
18863 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
18864 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR)); | |
18865 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
18866 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
18867 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC)); | |
18868 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC)); | |
18869 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
18870 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
18871 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
18872 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
18873 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
18874 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
18875 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
18876 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
18877 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
18878 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
18879 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
18880 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
18881 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
18882 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
18883 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
18884 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
18885 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
18886 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
18887 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
18888 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA)); | |
18889 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI)); | |
18890 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
18891 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
18892 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR)); | |
18893 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE)); | |
18894 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
18895 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI)); | |
18896 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI)); | |
18897 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI)); | |
18898 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA)); | |
18899 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON)); | |
18900 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
18901 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE)); | |
18902 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
18903 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN)); | |
18904 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE)); | |
18905 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
18906 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
18907 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
18908 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
18909 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
18910 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
18911 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN)); | |
18912 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN)); | |
18913 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH)); | |
18914 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH)); | |
18915 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH)); | |
18916 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
18917 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH)); | |
18918 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
18919 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
18920 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
18921 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
18922 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
18923 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
18924 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
18925 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
18926 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
18927 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
18928 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
18929 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
18930 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
18931 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
18932 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
18933 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
18934 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
18935 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE)); | |
18936 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI)); | |
18937 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI)); | |
18938 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH)); | |
18939 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH)); | |
18940 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
18941 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
18942 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
18943 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
18944 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
18945 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN)); | |
18946 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN)); | |
18947 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
18948 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN)); | |
18949 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
18950 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
18951 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
18952 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
18953 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
18954 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK)); | |
18955 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
18956 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI)); | |
18957 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI)); | |
18958 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA)); | |
18959 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW)); | |
18960 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI)); | |
18961 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
18962 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
18963 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
18964 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
18965 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
18966 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
18967 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK)); | |
18968 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH)); | |
18969 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN)); | |
18970 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
18971 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE)); | |
18972 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE)); | |
18973 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA)); | |
18974 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
18975 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
18976 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH)); | |
18977 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
18978 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
18979 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
18980 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
18981 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI)); | |
18982 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN)); | |
18983 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH)); | |
18984 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
18985 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN)); | |
18986 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN)); | |
18987 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA)); | |
18988 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
18989 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
18990 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY)); | |
18991 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY)); | |
18992 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
18993 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
18994 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
18995 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE)); | |
18996 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI)); | |
18997 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI)); | |
18998 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI)); | |
18999 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19000 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19001 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU)); | |
19002 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI)); | |
19003 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19004 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19005 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19006 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19007 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA)); | |
19008 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO)); | |
19009 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO)); | |
19010 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH)); | |
19011 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19012 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19013 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19014 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19015 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19016 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19017 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19018 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19019 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19020 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO)); | |
19021 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19022 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19023 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19024 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19025 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19026 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19027 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19028 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19029 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA)); | |
19030 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI)); | |
19031 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19032 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI)); | |
19033 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19034 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19035 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI)); | |
19036 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH)); | |
19037 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19038 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19039 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19040 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19041 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19042 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19043 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19044 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19045 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19046 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19047 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19048 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19049 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19050 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19051 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19052 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19053 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19054 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19055 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19056 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19057 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19058 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19059 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19060 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19061 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19062 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK)); | |
19063 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL)); | |
19064 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR)); | |
19065 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU)); | |
19066 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI)); | |
19067 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19068 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19069 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA)); | |
19070 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA)); | |
19071 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH)); | |
19072 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19073 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI)); | |
19074 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19075 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19076 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU)); | |
19077 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19078 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19079 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK)); | |
19080 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19081 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19082 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19083 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19084 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH)); | |
19085 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF)); | |
19086 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA)); | |
19087 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19088 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA)); | |
19089 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19090 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU)); | |
19091 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19092 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19093 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE)); | |
19094 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19095 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX)); | |
19096 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19097 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19098 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19099 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19100 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT)); | |
19101 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19102 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT)); | |
19103 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX)); | |
19104 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS)); | |
19105 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2)); | |
19106 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC)); | |
3adfb63b RD |
19107 | PyDict_SetItemString(d,"BUFFER_DC_OVERWRITE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_OVERWRITE_BG)); |
19108 | PyDict_SetItemString(d,"BUFFER_DC_PRESERVE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_PRESERVE_BG)); | |
19109 | PyDict_SetItemString(d,"BUFFER_DC_DEFAULT", SWIG_PyObj_FromInt((int)wxBUFFER_DC_DEFAULT)); | |
994141e6 RD |
19110 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); |
19111 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19112 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19113 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19114 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19115 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19116 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19117 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19118 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19119 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19120 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19121 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19122 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19123 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19124 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19125 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19126 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19127 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19128 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19129 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19130 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19131 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19132 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19133 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19134 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19135 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19136 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19137 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19138 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19139 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19140 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19141 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19142 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19143 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19144 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19145 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19146 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19147 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19148 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19149 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19150 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19151 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19152 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19153 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19154 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19155 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19156 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19157 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19158 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19159 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19160 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19161 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19162 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19163 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
19164 | |
19165 | // Work around a chicken/egg problem in drawlist.cpp | |
19166 | wxPyDrawList_SetAPIPtr(); | |
19167 | ||
d14a1e28 RD |
19168 | } |
19169 |