]>
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 | } | |
22faec7d RD |
419 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; } |
420 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
421 | |
422 | wxPyPen::~wxPyPen() | |
423 | { | |
424 | if (m_dash) | |
425 | delete [] m_dash; | |
426 | } | |
427 | ||
428 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
429 | { | |
430 | if (m_dash) | |
431 | delete [] m_dash; | |
432 | m_dash = new wxDash[nb_dashes]; | |
433 | for (int i=0; i<nb_dashes; i++) { | |
434 | m_dash[i] = dash[i]; | |
435 | } | |
436 | wxPen::SetDashes(nb_dashes, m_dash); | |
437 | } | |
438 | ||
439 | ||
440 | #include <wx/image.h> | |
441 | ||
442 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
443 | char** cArray = NULL; | |
444 | int count; | |
445 | ||
446 | if (!PyList_Check(listOfStrings)) { | |
447 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
448 | return NULL; | |
449 | } | |
450 | count = PyList_Size(listOfStrings); | |
451 | cArray = new char*[count]; | |
452 | ||
453 | for(int x=0; x<count; x++) { | |
454 | // TODO: Need some validation and error checking here | |
455 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
456 | } | |
457 | return cArray; | |
458 | } | |
459 | ||
460 | ||
461 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
462 | char** cArray = NULL; | |
463 | wxBitmap* bmp; | |
464 | ||
465 | cArray = ConvertListOfStrings(listOfStrings); | |
466 | if (! cArray) | |
467 | return NULL; | |
468 | bmp = new wxBitmap(cArray); | |
469 | delete [] cArray; | |
470 | return bmp; | |
471 | } | |
472 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
473 | char* buf; | |
474 | int length; | |
475 | PyString_AsStringAndSize(bits, &buf, &length); | |
476 | return new wxBitmap(buf, width, height, depth); | |
477 | } | |
478 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
479 | wxMask *mask = new wxMask(*self, colour); | |
480 | self->SetMask(mask); | |
481 | } | |
0482c494 RD |
482 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
483 | if ( !colour.Ok() ) | |
484 | return new wxMask(bitmap, *wxBLACK); | |
485 | else | |
486 | return new wxMask(bitmap, colour); | |
487 | } | |
d14a1e28 RD |
488 | |
489 | #include <wx/iconbndl.h> | |
490 | ||
491 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
492 | wxIcon* icon = new wxIcon(); | |
493 | icon->CopyFromBitmap(bmp); | |
494 | return icon; | |
495 | } | |
496 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
497 | char** cArray = NULL; | |
498 | wxIcon* icon; | |
499 | ||
500 | cArray = ConvertListOfStrings(listOfStrings); | |
501 | if (! cArray) | |
502 | return NULL; | |
503 | icon = new wxIcon(cArray); | |
504 | delete [] cArray; | |
505 | return icon; | |
506 | } | |
507 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
508 | ||
509 | ||
510 | ||
511 | return new wxIconLocation(*filename); | |
512 | ||
513 | } | |
514 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
515 | ||
516 | ||
517 | ||
518 | // do nothing | |
519 | ||
520 | } | |
521 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
522 | ||
523 | ||
524 | ||
525 | return -1; | |
526 | ||
527 | } | |
994141e6 RD |
528 | |
529 | SWIGSTATIC(long) | |
530 | SWIG_PyObj_AsLong(PyObject * obj) | |
531 | { | |
532 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
533 | } | |
534 | ||
d14a1e28 RD |
535 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ |
536 | ||
e811c8ce | 537 | wxCHECK_MSG(False, NULL, |
d14a1e28 RD |
538 | wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead.")); |
539 | ||
540 | ||
541 | ||
542 | } | |
543 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
544 | char* bitsbuf; | |
545 | char* maskbuf = NULL; | |
546 | int length; | |
547 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
548 | if (maskBits) | |
549 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
550 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
551 | } | |
552 | ||
553 | ||
554 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
555 | (*self) ++; | |
556 | } | |
557 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
558 | return self->operator bool(); | |
559 | } | |
560 | ||
561 | #include <wx/fontutil.h> | |
562 | #include <wx/fontmap.h> | |
563 | #include <wx/fontenum.h> | |
564 | ||
565 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
566 | return self->ToString(); | |
567 | } | |
568 | ||
569 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
570 | static wxNativeEncodingInfo info; | |
571 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
572 | return &info; | |
573 | else | |
574 | return NULL; | |
575 | } | |
576 | ||
994141e6 RD |
577 | |
578 | SWIGSTATIC(PyObject* ) | |
579 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
580 | { | |
581 | return (value > (unsigned long)(LONG_MAX)) ? | |
582 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
583 | } | |
584 | ||
d14a1e28 RD |
585 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ |
586 | wxFontEncoding alt_enc; | |
587 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
588 | return PyInt_FromLong(alt_enc); | |
589 | else { | |
590 | Py_INCREF(Py_None); | |
591 | return Py_None; | |
592 | } | |
593 | } | |
594 | wxFont *new_wxFont(wxString const &info){ | |
595 | wxNativeFontInfo nfi; | |
596 | nfi.FromString(info); | |
597 | return new wxFont(nfi); | |
598 | } | |
599 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
600 | return wxFont::New(pointSize, family, flags, face, encoding); | |
601 | } | |
22faec7d RD |
602 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
603 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
604 | |
605 | class wxPyFontEnumerator : public wxFontEnumerator { | |
606 | public: | |
607 | wxPyFontEnumerator() {} | |
608 | ~wxPyFontEnumerator() {} | |
609 | ||
610 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
611 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
612 | ||
613 | PYPRIVATE; | |
614 | }; | |
615 | ||
616 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
617 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
618 | ||
619 | ||
620 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
621 | wxArrayString* arr = self->GetEncodings(); | |
622 | return wxArrayString2PyList_helper(*arr); | |
623 | } | |
624 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
625 | wxArrayString* arr = self->GetFacenames(); | |
626 | return wxArrayString2PyList_helper(*arr); | |
627 | } | |
628 | ||
629 | ||
630 | ||
631 | #include "wx/wxPython/pydrawxxx.h" | |
632 | ||
e811c8ce | 633 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
634 | wxColour col; |
635 | self->GetPixel(x, y, &col); | |
636 | return col; | |
637 | } | |
638 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
639 | wxColour col; | |
640 | self->GetPixel(pt, &col); | |
641 | return col; | |
642 | } | |
994141e6 RD |
643 | |
644 | SWIGSTATIC(double) | |
645 | SWIG_PyObj_AsDouble(PyObject *obj) | |
646 | { | |
647 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
648 | #if HAVE_LONG_LONG | |
649 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
650 | #else | |
651 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
652 | #endif | |
653 | if (PyErr_Occurred()) { | |
654 | PyErr_Clear(); | |
655 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
656 | } | |
657 | } | |
658 | ||
d14a1e28 RD |
659 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
660 | wxRect rv; | |
661 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
662 | return rv; | |
663 | } | |
664 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
665 | wxRect rect; | |
666 | self->GetClippingBox(rect); | |
667 | return rect; | |
668 | } | |
db914595 RD |
669 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
670 | wxArrayInt widths; | |
671 | self->GetPartialTextExtents(text, widths); | |
672 | return widths; | |
673 | } | |
d14a1e28 RD |
674 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
675 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
676 | } | |
677 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
678 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
679 | } | |
680 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
681 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
682 | } | |
683 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
684 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
685 | } | |
686 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
687 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
688 | } | |
689 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
690 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
691 | } | |
692 | ||
693 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
694 | *x1 = dc->MinX(); | |
695 | *y1 = dc->MinY(); | |
696 | *x2 = dc->MaxX(); | |
697 | *y2 = dc->MaxY(); | |
698 | } | |
699 | ||
700 | ||
701 | #include <wx/dcps.h> | |
702 | ||
703 | ||
704 | class wxMetaFile : public wxObject { | |
705 | public: | |
706 | wxMetaFile(const wxString&) | |
39f61e25 | 707 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
708 | }; |
709 | ||
710 | class wxMetaFileDC : public wxClientDC { | |
711 | public: | |
712 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 713 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
714 | }; |
715 | ||
716 | ||
717 | ||
718 | class wxPrinterDC : public wxClientDC { | |
719 | public: | |
720 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 721 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 722 | |
d14a1e28 | 723 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 724 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
725 | }; |
726 | ||
727 | ||
728 | ||
729 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
730 | self->AddColour(name, wxColour(red, green, blue)); | |
731 | } | |
732 | ||
d14a1e28 RD |
733 | #include <wx/effects.h> |
734 | ||
735 | #ifdef __cplusplus | |
736 | extern "C" { | |
737 | #endif | |
738 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
739 | PyObject *resultobj; | |
740 | wxGDIObject *result; | |
741 | char *kwnames[] = { | |
742 | NULL | |
743 | }; | |
744 | ||
745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
746 | { | |
747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
748 | result = (wxGDIObject *)new wxGDIObject(); | |
749 | ||
750 | wxPyEndAllowThreads(__tstate); | |
751 | if (PyErr_Occurred()) SWIG_fail; | |
752 | } | |
753 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
754 | return resultobj; | |
755 | fail: | |
756 | return NULL; | |
757 | } | |
758 | ||
759 | ||
760 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
761 | PyObject *resultobj; | |
762 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
763 | PyObject * obj0 = 0 ; | |
764 | char *kwnames[] = { | |
765 | (char *) "self", NULL | |
766 | }; | |
767 | ||
768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
770 | { | |
771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
772 | delete arg1; | |
773 | ||
774 | wxPyEndAllowThreads(__tstate); | |
775 | if (PyErr_Occurred()) SWIG_fail; | |
776 | } | |
777 | Py_INCREF(Py_None); resultobj = Py_None; | |
778 | return resultobj; | |
779 | fail: | |
780 | return NULL; | |
781 | } | |
782 | ||
783 | ||
784 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
785 | PyObject *resultobj; | |
786 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
787 | bool result; | |
788 | PyObject * obj0 = 0 ; | |
789 | char *kwnames[] = { | |
790 | (char *) "self", NULL | |
791 | }; | |
792 | ||
793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
795 | { | |
796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
797 | result = (bool)(arg1)->GetVisible(); | |
798 | ||
799 | wxPyEndAllowThreads(__tstate); | |
800 | if (PyErr_Occurred()) SWIG_fail; | |
801 | } | |
4d5c3d91 | 802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
803 | return resultobj; |
804 | fail: | |
805 | return NULL; | |
806 | } | |
807 | ||
808 | ||
809 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
810 | PyObject *resultobj; | |
811 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
812 | bool arg2 ; | |
813 | PyObject * obj0 = 0 ; | |
814 | PyObject * obj1 = 0 ; | |
815 | char *kwnames[] = { | |
816 | (char *) "self",(char *) "visible", NULL | |
817 | }; | |
818 | ||
819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 821 | { |
994141e6 | 822 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
823 | if (PyErr_Occurred()) SWIG_fail; |
824 | } | |
d14a1e28 RD |
825 | { |
826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
827 | (arg1)->SetVisible(arg2); | |
828 | ||
829 | wxPyEndAllowThreads(__tstate); | |
830 | if (PyErr_Occurred()) SWIG_fail; | |
831 | } | |
832 | Py_INCREF(Py_None); resultobj = Py_None; | |
833 | return resultobj; | |
834 | fail: | |
835 | return NULL; | |
836 | } | |
837 | ||
838 | ||
839 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
840 | PyObject *resultobj; | |
841 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
842 | bool result; | |
843 | PyObject * obj0 = 0 ; | |
844 | char *kwnames[] = { | |
845 | (char *) "self", NULL | |
846 | }; | |
847 | ||
848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
850 | { | |
851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
852 | result = (bool)(arg1)->IsNull(); | |
853 | ||
854 | wxPyEndAllowThreads(__tstate); | |
855 | if (PyErr_Occurred()) SWIG_fail; | |
856 | } | |
4d5c3d91 | 857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
858 | return resultobj; |
859 | fail: | |
860 | return NULL; | |
861 | } | |
862 | ||
863 | ||
864 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
865 | PyObject *obj; | |
866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
867 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
868 | Py_INCREF(obj); | |
869 | return Py_BuildValue((char *)""); | |
870 | } | |
871 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
872 | PyObject *resultobj; | |
873 | unsigned char arg1 = (unsigned char) 0 ; | |
874 | unsigned char arg2 = (unsigned char) 0 ; | |
875 | unsigned char arg3 = (unsigned char) 0 ; | |
876 | wxColour *result; | |
877 | PyObject * obj0 = 0 ; | |
878 | PyObject * obj1 = 0 ; | |
879 | PyObject * obj2 = 0 ; | |
880 | char *kwnames[] = { | |
881 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
882 | }; | |
883 | ||
884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
885 | if (obj0) { | |
a41e16b6 | 886 | { |
994141e6 | 887 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
a41e16b6 RD |
888 | if (PyErr_Occurred()) SWIG_fail; |
889 | } | |
d14a1e28 RD |
890 | } |
891 | if (obj1) { | |
a41e16b6 | 892 | { |
994141e6 | 893 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
894 | if (PyErr_Occurred()) SWIG_fail; |
895 | } | |
d14a1e28 RD |
896 | } |
897 | if (obj2) { | |
a41e16b6 | 898 | { |
994141e6 | 899 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
900 | if (PyErr_Occurred()) SWIG_fail; |
901 | } | |
d14a1e28 RD |
902 | } |
903 | { | |
904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
905 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
906 | ||
907 | wxPyEndAllowThreads(__tstate); | |
908 | if (PyErr_Occurred()) SWIG_fail; | |
909 | } | |
910 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
911 | return resultobj; | |
912 | fail: | |
913 | return NULL; | |
914 | } | |
915 | ||
916 | ||
917 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
918 | PyObject *resultobj; | |
919 | wxColour *arg1 = (wxColour *) 0 ; | |
920 | PyObject * obj0 = 0 ; | |
921 | char *kwnames[] = { | |
922 | (char *) "self", NULL | |
923 | }; | |
924 | ||
925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
927 | { | |
928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
929 | delete arg1; | |
930 | ||
931 | wxPyEndAllowThreads(__tstate); | |
932 | if (PyErr_Occurred()) SWIG_fail; | |
933 | } | |
934 | Py_INCREF(Py_None); resultobj = Py_None; | |
935 | return resultobj; | |
936 | fail: | |
937 | return NULL; | |
938 | } | |
939 | ||
940 | ||
941 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
942 | PyObject *resultobj; | |
943 | wxString *arg1 = 0 ; | |
944 | wxColour *result; | |
e811c8ce | 945 | bool temp1 = False ; |
d14a1e28 RD |
946 | PyObject * obj0 = 0 ; |
947 | char *kwnames[] = { | |
948 | (char *) "colorName", NULL | |
949 | }; | |
950 | ||
951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
952 | { | |
953 | arg1 = wxString_in_helper(obj0); | |
954 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 955 | temp1 = True; |
d14a1e28 RD |
956 | } |
957 | { | |
958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
959 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
960 | ||
961 | wxPyEndAllowThreads(__tstate); | |
962 | if (PyErr_Occurred()) SWIG_fail; | |
963 | } | |
964 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
965 | { | |
966 | if (temp1) | |
967 | delete arg1; | |
968 | } | |
969 | return resultobj; | |
970 | fail: | |
971 | { | |
972 | if (temp1) | |
973 | delete arg1; | |
974 | } | |
975 | return NULL; | |
976 | } | |
977 | ||
978 | ||
979 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
980 | PyObject *resultobj; | |
981 | unsigned long arg1 ; | |
982 | wxColour *result; | |
983 | PyObject * obj0 = 0 ; | |
984 | char *kwnames[] = { | |
985 | (char *) "colRGB", NULL | |
986 | }; | |
987 | ||
988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
a41e16b6 | 989 | { |
994141e6 | 990 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
991 | if (PyErr_Occurred()) SWIG_fail; |
992 | } | |
d14a1e28 RD |
993 | { |
994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
995 | result = (wxColour *)new wxColour(arg1); | |
996 | ||
997 | wxPyEndAllowThreads(__tstate); | |
998 | if (PyErr_Occurred()) SWIG_fail; | |
999 | } | |
1000 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
1001 | return resultobj; | |
1002 | fail: | |
1003 | return NULL; | |
1004 | } | |
1005 | ||
1006 | ||
1007 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1008 | PyObject *resultobj; | |
1009 | wxColour *arg1 = (wxColour *) 0 ; | |
1010 | unsigned char result; | |
1011 | PyObject * obj0 = 0 ; | |
1012 | char *kwnames[] = { | |
1013 | (char *) "self", NULL | |
1014 | }; | |
1015 | ||
1016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1018 | { | |
1019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1020 | result = (unsigned char)(arg1)->Red(); | |
1021 | ||
1022 | wxPyEndAllowThreads(__tstate); | |
1023 | if (PyErr_Occurred()) SWIG_fail; | |
1024 | } | |
994141e6 | 1025 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1026 | return resultobj; |
1027 | fail: | |
1028 | return NULL; | |
1029 | } | |
1030 | ||
1031 | ||
1032 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject *resultobj; | |
1034 | wxColour *arg1 = (wxColour *) 0 ; | |
1035 | unsigned char result; | |
1036 | PyObject * obj0 = 0 ; | |
1037 | char *kwnames[] = { | |
1038 | (char *) "self", NULL | |
1039 | }; | |
1040 | ||
1041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1043 | { | |
1044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1045 | result = (unsigned char)(arg1)->Green(); | |
1046 | ||
1047 | wxPyEndAllowThreads(__tstate); | |
1048 | if (PyErr_Occurred()) SWIG_fail; | |
1049 | } | |
994141e6 | 1050 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1051 | return resultobj; |
1052 | fail: | |
1053 | return NULL; | |
1054 | } | |
1055 | ||
1056 | ||
1057 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1058 | PyObject *resultobj; | |
1059 | wxColour *arg1 = (wxColour *) 0 ; | |
1060 | unsigned char result; | |
1061 | PyObject * obj0 = 0 ; | |
1062 | char *kwnames[] = { | |
1063 | (char *) "self", NULL | |
1064 | }; | |
1065 | ||
1066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1068 | { | |
1069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1070 | result = (unsigned char)(arg1)->Blue(); | |
1071 | ||
1072 | wxPyEndAllowThreads(__tstate); | |
1073 | if (PyErr_Occurred()) SWIG_fail; | |
1074 | } | |
994141e6 | 1075 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1076 | return resultobj; |
1077 | fail: | |
1078 | return NULL; | |
1079 | } | |
1080 | ||
1081 | ||
1082 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1083 | PyObject *resultobj; | |
1084 | wxColour *arg1 = (wxColour *) 0 ; | |
1085 | bool result; | |
1086 | PyObject * obj0 = 0 ; | |
1087 | char *kwnames[] = { | |
1088 | (char *) "self", NULL | |
1089 | }; | |
1090 | ||
1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1093 | { | |
1094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1095 | result = (bool)(arg1)->Ok(); | |
1096 | ||
1097 | wxPyEndAllowThreads(__tstate); | |
1098 | if (PyErr_Occurred()) SWIG_fail; | |
1099 | } | |
4d5c3d91 | 1100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1101 | return resultobj; |
1102 | fail: | |
1103 | return NULL; | |
1104 | } | |
1105 | ||
1106 | ||
1107 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1108 | PyObject *resultobj; | |
1109 | wxColour *arg1 = (wxColour *) 0 ; | |
1110 | unsigned char arg2 ; | |
1111 | unsigned char arg3 ; | |
1112 | unsigned char arg4 ; | |
1113 | PyObject * obj0 = 0 ; | |
1114 | PyObject * obj1 = 0 ; | |
1115 | PyObject * obj2 = 0 ; | |
1116 | PyObject * obj3 = 0 ; | |
1117 | char *kwnames[] = { | |
1118 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1119 | }; | |
1120 | ||
1121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1123 | { |
994141e6 | 1124 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1125 | if (PyErr_Occurred()) SWIG_fail; |
1126 | } | |
1127 | { | |
994141e6 | 1128 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1129 | if (PyErr_Occurred()) SWIG_fail; |
1130 | } | |
1131 | { | |
994141e6 | 1132 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1133 | if (PyErr_Occurred()) SWIG_fail; |
1134 | } | |
d14a1e28 RD |
1135 | { |
1136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1137 | (arg1)->Set(arg2,arg3,arg4); | |
1138 | ||
1139 | wxPyEndAllowThreads(__tstate); | |
1140 | if (PyErr_Occurred()) SWIG_fail; | |
1141 | } | |
1142 | Py_INCREF(Py_None); resultobj = Py_None; | |
1143 | return resultobj; | |
1144 | fail: | |
1145 | return NULL; | |
1146 | } | |
1147 | ||
1148 | ||
c9c7117a | 1149 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1150 | PyObject *resultobj; |
1151 | wxColour *arg1 = (wxColour *) 0 ; | |
1152 | unsigned long arg2 ; | |
1153 | PyObject * obj0 = 0 ; | |
1154 | PyObject * obj1 = 0 ; | |
1155 | char *kwnames[] = { | |
1156 | (char *) "self",(char *) "colRGB", NULL | |
1157 | }; | |
1158 | ||
c9c7117a | 1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 1161 | { |
994141e6 | 1162 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
1163 | if (PyErr_Occurred()) SWIG_fail; |
1164 | } | |
d14a1e28 RD |
1165 | { |
1166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1167 | (arg1)->Set(arg2); | |
1168 | ||
1169 | wxPyEndAllowThreads(__tstate); | |
1170 | if (PyErr_Occurred()) SWIG_fail; | |
1171 | } | |
1172 | Py_INCREF(Py_None); resultobj = Py_None; | |
1173 | return resultobj; | |
1174 | fail: | |
1175 | return NULL; | |
1176 | } | |
1177 | ||
1178 | ||
1179 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject *resultobj; | |
1181 | wxColour *arg1 = (wxColour *) 0 ; | |
1182 | wxColour *arg2 = 0 ; | |
1183 | bool result; | |
1184 | wxColour temp2 ; | |
1185 | PyObject * obj0 = 0 ; | |
1186 | PyObject * obj1 = 0 ; | |
1187 | char *kwnames[] = { | |
1188 | (char *) "self",(char *) "colour", NULL | |
1189 | }; | |
1190 | ||
1191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1193 | { | |
1194 | arg2 = &temp2; | |
1195 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1196 | } | |
1197 | { | |
1198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1199 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1200 | ||
1201 | wxPyEndAllowThreads(__tstate); | |
1202 | if (PyErr_Occurred()) SWIG_fail; | |
1203 | } | |
4d5c3d91 | 1204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1205 | return resultobj; |
1206 | fail: | |
1207 | return NULL; | |
1208 | } | |
1209 | ||
1210 | ||
1211 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1212 | PyObject *resultobj; | |
1213 | wxColour *arg1 = (wxColour *) 0 ; | |
1214 | wxColour *arg2 = 0 ; | |
1215 | bool result; | |
1216 | wxColour temp2 ; | |
1217 | PyObject * obj0 = 0 ; | |
1218 | PyObject * obj1 = 0 ; | |
1219 | char *kwnames[] = { | |
1220 | (char *) "self",(char *) "colour", NULL | |
1221 | }; | |
1222 | ||
1223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1225 | { | |
1226 | arg2 = &temp2; | |
1227 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1228 | } | |
1229 | { | |
1230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1231 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1232 | ||
1233 | wxPyEndAllowThreads(__tstate); | |
1234 | if (PyErr_Occurred()) SWIG_fail; | |
1235 | } | |
4d5c3d91 | 1236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1237 | return resultobj; |
1238 | fail: | |
1239 | return NULL; | |
1240 | } | |
1241 | ||
1242 | ||
c9c7117a RD |
1243 | static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1244 | PyObject *resultobj; | |
1245 | wxColour *arg1 = (wxColour *) 0 ; | |
1246 | wxString *arg2 = 0 ; | |
1247 | bool temp2 = False ; | |
1248 | PyObject * obj0 = 0 ; | |
1249 | PyObject * obj1 = 0 ; | |
1250 | char *kwnames[] = { | |
1251 | (char *) "self",(char *) "colourName", NULL | |
1252 | }; | |
1253 | ||
1254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail; | |
1255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1256 | { | |
1257 | arg2 = wxString_in_helper(obj1); | |
1258 | if (arg2 == NULL) SWIG_fail; | |
1259 | temp2 = True; | |
1260 | } | |
1261 | { | |
1262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1263 | (arg1)->InitFromName((wxString const &)*arg2); | |
1264 | ||
1265 | wxPyEndAllowThreads(__tstate); | |
1266 | if (PyErr_Occurred()) SWIG_fail; | |
1267 | } | |
1268 | Py_INCREF(Py_None); resultobj = Py_None; | |
1269 | { | |
1270 | if (temp2) | |
1271 | delete arg2; | |
1272 | } | |
1273 | return resultobj; | |
1274 | fail: | |
1275 | { | |
1276 | if (temp2) | |
1277 | delete arg2; | |
1278 | } | |
1279 | return NULL; | |
1280 | } | |
1281 | ||
1282 | ||
d14a1e28 RD |
1283 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
1284 | PyObject *resultobj; | |
1285 | wxColour *arg1 = (wxColour *) 0 ; | |
1286 | PyObject *result; | |
1287 | PyObject * obj0 = 0 ; | |
1288 | char *kwnames[] = { | |
1289 | (char *) "self", NULL | |
1290 | }; | |
1291 | ||
1292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1294 | { | |
1295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1296 | result = (PyObject *)wxColour_Get(arg1); | |
1297 | ||
1298 | wxPyEndAllowThreads(__tstate); | |
1299 | if (PyErr_Occurred()) SWIG_fail; | |
1300 | } | |
1301 | resultobj = result; | |
1302 | return resultobj; | |
1303 | fail: | |
1304 | return NULL; | |
1305 | } | |
1306 | ||
1307 | ||
1308 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1309 | PyObject *obj; | |
1310 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1311 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1312 | Py_INCREF(obj); | |
1313 | return Py_BuildValue((char *)""); | |
1314 | } | |
1315 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1316 | PyObject *resultobj; | |
1317 | int arg1 ; | |
1318 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1319 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1320 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1321 | wxPalette *result; | |
994141e6 | 1322 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1323 | PyObject * obj1 = 0 ; |
1324 | PyObject * obj2 = 0 ; | |
1325 | PyObject * obj3 = 0 ; | |
1326 | char *kwnames[] = { | |
1327 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1328 | }; | |
1329 | ||
994141e6 RD |
1330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
1331 | { | |
1332 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1333 | if (PyErr_Occurred()) SWIG_fail; | |
1334 | } | |
d14a1e28 RD |
1335 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1336 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1337 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1338 | { | |
1339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1340 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1341 | ||
1342 | wxPyEndAllowThreads(__tstate); | |
1343 | if (PyErr_Occurred()) SWIG_fail; | |
1344 | } | |
1345 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1346 | return resultobj; | |
1347 | fail: | |
1348 | return NULL; | |
1349 | } | |
1350 | ||
1351 | ||
1352 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1353 | PyObject *resultobj; | |
1354 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1355 | PyObject * obj0 = 0 ; | |
1356 | char *kwnames[] = { | |
1357 | (char *) "self", NULL | |
1358 | }; | |
1359 | ||
1360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1362 | { | |
1363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1364 | delete arg1; | |
1365 | ||
1366 | wxPyEndAllowThreads(__tstate); | |
1367 | if (PyErr_Occurred()) SWIG_fail; | |
1368 | } | |
1369 | Py_INCREF(Py_None); resultobj = Py_None; | |
1370 | return resultobj; | |
1371 | fail: | |
1372 | return NULL; | |
1373 | } | |
1374 | ||
1375 | ||
1376 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1377 | PyObject *resultobj; | |
1378 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1379 | byte arg2 ; | |
1380 | byte arg3 ; | |
1381 | byte arg4 ; | |
1382 | int result; | |
1383 | PyObject * obj0 = 0 ; | |
1384 | PyObject * obj1 = 0 ; | |
1385 | PyObject * obj2 = 0 ; | |
1386 | PyObject * obj3 = 0 ; | |
1387 | char *kwnames[] = { | |
1388 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1389 | }; | |
1390 | ||
1391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1393 | { |
994141e6 | 1394 | arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
1395 | if (PyErr_Occurred()) SWIG_fail; |
1396 | } | |
1397 | { | |
994141e6 | 1398 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
1399 | if (PyErr_Occurred()) SWIG_fail; |
1400 | } | |
1401 | { | |
994141e6 | 1402 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
1403 | if (PyErr_Occurred()) SWIG_fail; |
1404 | } | |
d14a1e28 RD |
1405 | { |
1406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1407 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1408 | ||
1409 | wxPyEndAllowThreads(__tstate); | |
1410 | if (PyErr_Occurred()) SWIG_fail; | |
1411 | } | |
994141e6 | 1412 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1413 | return resultobj; |
1414 | fail: | |
1415 | return NULL; | |
1416 | } | |
1417 | ||
1418 | ||
1419 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1420 | PyObject *resultobj; | |
1421 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1422 | int arg2 ; | |
1423 | byte *arg3 = (byte *) 0 ; | |
1424 | byte *arg4 = (byte *) 0 ; | |
1425 | byte *arg5 = (byte *) 0 ; | |
1426 | bool result; | |
1427 | byte temp3 ; | |
1428 | byte temp4 ; | |
1429 | byte temp5 ; | |
1430 | PyObject * obj0 = 0 ; | |
994141e6 | 1431 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1432 | char *kwnames[] = { |
1433 | (char *) "self",(char *) "pixel", NULL | |
1434 | }; | |
1435 | ||
1436 | arg3 = &temp3; | |
1437 | arg4 = &temp4; | |
1438 | arg5 = &temp5; | |
994141e6 | 1439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1441 | { |
1442 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
d14a1e28 RD |
1445 | { |
1446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1447 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1448 | ||
1449 | wxPyEndAllowThreads(__tstate); | |
1450 | if (PyErr_Occurred()) SWIG_fail; | |
1451 | } | |
4d5c3d91 | 1452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1453 | { |
1454 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1455 | resultobj = t_output_helper(resultobj,o); | |
1456 | } | |
1457 | { | |
1458 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1459 | resultobj = t_output_helper(resultobj,o); | |
1460 | } | |
1461 | { | |
1462 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1463 | resultobj = t_output_helper(resultobj,o); | |
1464 | } | |
1465 | return resultobj; | |
1466 | fail: | |
1467 | return NULL; | |
1468 | } | |
1469 | ||
1470 | ||
1471 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1472 | PyObject *resultobj; | |
1473 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1474 | bool result; | |
1475 | PyObject * obj0 = 0 ; | |
1476 | char *kwnames[] = { | |
1477 | (char *) "self", NULL | |
1478 | }; | |
1479 | ||
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1482 | { | |
1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1484 | result = (bool)(arg1)->Ok(); | |
1485 | ||
1486 | wxPyEndAllowThreads(__tstate); | |
1487 | if (PyErr_Occurred()) SWIG_fail; | |
1488 | } | |
4d5c3d91 | 1489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1490 | return resultobj; |
1491 | fail: | |
1492 | return NULL; | |
1493 | } | |
1494 | ||
1495 | ||
1496 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1497 | PyObject *obj; | |
1498 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1499 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1500 | Py_INCREF(obj); | |
1501 | return Py_BuildValue((char *)""); | |
1502 | } | |
1503 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1504 | PyObject *resultobj; | |
1505 | wxColour *arg1 = 0 ; | |
1506 | int arg2 = (int) 1 ; | |
1507 | int arg3 = (int) wxSOLID ; | |
1508 | wxPen *result; | |
1509 | wxColour temp1 ; | |
1510 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1511 | PyObject * obj1 = 0 ; |
1512 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1513 | char *kwnames[] = { |
1514 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1515 | }; | |
1516 | ||
994141e6 | 1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1518 | { |
1519 | arg1 = &temp1; | |
1520 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1521 | } | |
994141e6 RD |
1522 | if (obj1) { |
1523 | { | |
1524 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | } | |
1528 | if (obj2) { | |
1529 | { | |
1530 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1531 | if (PyErr_Occurred()) SWIG_fail; | |
1532 | } | |
1533 | } | |
d14a1e28 RD |
1534 | { |
1535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1536 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1537 | ||
1538 | wxPyEndAllowThreads(__tstate); | |
1539 | if (PyErr_Occurred()) SWIG_fail; | |
1540 | } | |
1541 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1542 | return resultobj; | |
1543 | fail: | |
1544 | return NULL; | |
1545 | } | |
1546 | ||
1547 | ||
1548 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1549 | PyObject *resultobj; | |
1550 | wxPen *arg1 = (wxPen *) 0 ; | |
1551 | PyObject * obj0 = 0 ; | |
1552 | char *kwnames[] = { | |
1553 | (char *) "self", NULL | |
1554 | }; | |
1555 | ||
1556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1558 | { | |
1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1560 | delete arg1; | |
1561 | ||
1562 | wxPyEndAllowThreads(__tstate); | |
1563 | if (PyErr_Occurred()) SWIG_fail; | |
1564 | } | |
1565 | Py_INCREF(Py_None); resultobj = Py_None; | |
1566 | return resultobj; | |
1567 | fail: | |
1568 | return NULL; | |
1569 | } | |
1570 | ||
1571 | ||
1572 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1573 | PyObject *resultobj; | |
1574 | wxPen *arg1 = (wxPen *) 0 ; | |
1575 | int result; | |
1576 | PyObject * obj0 = 0 ; | |
1577 | char *kwnames[] = { | |
1578 | (char *) "self", NULL | |
1579 | }; | |
1580 | ||
1581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1583 | { | |
1584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1585 | result = (int)(arg1)->GetCap(); | |
1586 | ||
1587 | wxPyEndAllowThreads(__tstate); | |
1588 | if (PyErr_Occurred()) SWIG_fail; | |
1589 | } | |
994141e6 | 1590 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1591 | return resultobj; |
1592 | fail: | |
1593 | return NULL; | |
1594 | } | |
1595 | ||
1596 | ||
1597 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1598 | PyObject *resultobj; | |
1599 | wxPen *arg1 = (wxPen *) 0 ; | |
1600 | wxColour result; | |
1601 | PyObject * obj0 = 0 ; | |
1602 | char *kwnames[] = { | |
1603 | (char *) "self", NULL | |
1604 | }; | |
1605 | ||
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1608 | { | |
1609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1610 | result = (arg1)->GetColour(); | |
1611 | ||
1612 | wxPyEndAllowThreads(__tstate); | |
1613 | if (PyErr_Occurred()) SWIG_fail; | |
1614 | } | |
1615 | { | |
1616 | wxColour * resultptr; | |
1617 | resultptr = new wxColour((wxColour &) result); | |
1618 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1619 | } | |
1620 | return resultobj; | |
1621 | fail: | |
1622 | return NULL; | |
1623 | } | |
1624 | ||
1625 | ||
1626 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject *resultobj; | |
1628 | wxPen *arg1 = (wxPen *) 0 ; | |
1629 | int result; | |
1630 | PyObject * obj0 = 0 ; | |
1631 | char *kwnames[] = { | |
1632 | (char *) "self", NULL | |
1633 | }; | |
1634 | ||
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1637 | { | |
1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1639 | result = (int)(arg1)->GetJoin(); | |
1640 | ||
1641 | wxPyEndAllowThreads(__tstate); | |
1642 | if (PyErr_Occurred()) SWIG_fail; | |
1643 | } | |
994141e6 | 1644 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1645 | return resultobj; |
1646 | fail: | |
1647 | return NULL; | |
1648 | } | |
1649 | ||
1650 | ||
1651 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject *resultobj; | |
1653 | wxPen *arg1 = (wxPen *) 0 ; | |
1654 | int result; | |
1655 | PyObject * obj0 = 0 ; | |
1656 | char *kwnames[] = { | |
1657 | (char *) "self", NULL | |
1658 | }; | |
1659 | ||
1660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1662 | { | |
1663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1664 | result = (int)(arg1)->GetStyle(); | |
1665 | ||
1666 | wxPyEndAllowThreads(__tstate); | |
1667 | if (PyErr_Occurred()) SWIG_fail; | |
1668 | } | |
994141e6 | 1669 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1670 | return resultobj; |
1671 | fail: | |
1672 | return NULL; | |
1673 | } | |
1674 | ||
1675 | ||
1676 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxPen *arg1 = (wxPen *) 0 ; | |
1679 | int result; | |
1680 | PyObject * obj0 = 0 ; | |
1681 | char *kwnames[] = { | |
1682 | (char *) "self", NULL | |
1683 | }; | |
1684 | ||
1685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1687 | { | |
1688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1689 | result = (int)(arg1)->GetWidth(); | |
1690 | ||
1691 | wxPyEndAllowThreads(__tstate); | |
1692 | if (PyErr_Occurred()) SWIG_fail; | |
1693 | } | |
994141e6 | 1694 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1695 | return resultobj; |
1696 | fail: | |
1697 | return NULL; | |
1698 | } | |
1699 | ||
1700 | ||
1701 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject *resultobj; | |
1703 | wxPen *arg1 = (wxPen *) 0 ; | |
1704 | bool result; | |
1705 | PyObject * obj0 = 0 ; | |
1706 | char *kwnames[] = { | |
1707 | (char *) "self", NULL | |
1708 | }; | |
1709 | ||
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1712 | { | |
1713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1714 | result = (bool)(arg1)->Ok(); | |
1715 | ||
1716 | wxPyEndAllowThreads(__tstate); | |
1717 | if (PyErr_Occurred()) SWIG_fail; | |
1718 | } | |
4d5c3d91 | 1719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1720 | return resultobj; |
1721 | fail: | |
1722 | return NULL; | |
1723 | } | |
1724 | ||
1725 | ||
1726 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1727 | PyObject *resultobj; | |
1728 | wxPen *arg1 = (wxPen *) 0 ; | |
1729 | int arg2 ; | |
1730 | PyObject * obj0 = 0 ; | |
994141e6 | 1731 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1732 | char *kwnames[] = { |
1733 | (char *) "self",(char *) "cap_style", NULL | |
1734 | }; | |
1735 | ||
994141e6 | 1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1738 | { |
1739 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1740 | if (PyErr_Occurred()) SWIG_fail; | |
1741 | } | |
d14a1e28 RD |
1742 | { |
1743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1744 | (arg1)->SetCap(arg2); | |
1745 | ||
1746 | wxPyEndAllowThreads(__tstate); | |
1747 | if (PyErr_Occurred()) SWIG_fail; | |
1748 | } | |
1749 | Py_INCREF(Py_None); resultobj = Py_None; | |
1750 | return resultobj; | |
1751 | fail: | |
1752 | return NULL; | |
1753 | } | |
1754 | ||
1755 | ||
1756 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject *resultobj; | |
1758 | wxPen *arg1 = (wxPen *) 0 ; | |
1759 | wxColour *arg2 = 0 ; | |
1760 | wxColour temp2 ; | |
1761 | PyObject * obj0 = 0 ; | |
1762 | PyObject * obj1 = 0 ; | |
1763 | char *kwnames[] = { | |
1764 | (char *) "self",(char *) "colour", NULL | |
1765 | }; | |
1766 | ||
1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1769 | { | |
1770 | arg2 = &temp2; | |
1771 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1772 | } | |
1773 | { | |
1774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1775 | (arg1)->SetColour(*arg2); | |
1776 | ||
1777 | wxPyEndAllowThreads(__tstate); | |
1778 | if (PyErr_Occurred()) SWIG_fail; | |
1779 | } | |
1780 | Py_INCREF(Py_None); resultobj = Py_None; | |
1781 | return resultobj; | |
1782 | fail: | |
1783 | return NULL; | |
1784 | } | |
1785 | ||
1786 | ||
1787 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1788 | PyObject *resultobj; | |
1789 | wxPen *arg1 = (wxPen *) 0 ; | |
1790 | int arg2 ; | |
1791 | PyObject * obj0 = 0 ; | |
994141e6 | 1792 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1793 | char *kwnames[] = { |
1794 | (char *) "self",(char *) "join_style", NULL | |
1795 | }; | |
1796 | ||
994141e6 | 1797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1799 | { |
1800 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1801 | if (PyErr_Occurred()) SWIG_fail; | |
1802 | } | |
d14a1e28 RD |
1803 | { |
1804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1805 | (arg1)->SetJoin(arg2); | |
1806 | ||
1807 | wxPyEndAllowThreads(__tstate); | |
1808 | if (PyErr_Occurred()) SWIG_fail; | |
1809 | } | |
1810 | Py_INCREF(Py_None); resultobj = Py_None; | |
1811 | return resultobj; | |
1812 | fail: | |
1813 | return NULL; | |
1814 | } | |
1815 | ||
1816 | ||
1817 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1818 | PyObject *resultobj; | |
1819 | wxPen *arg1 = (wxPen *) 0 ; | |
1820 | int arg2 ; | |
1821 | PyObject * obj0 = 0 ; | |
994141e6 | 1822 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1823 | char *kwnames[] = { |
1824 | (char *) "self",(char *) "style", NULL | |
1825 | }; | |
1826 | ||
994141e6 | 1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1829 | { |
1830 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
1832 | } | |
d14a1e28 RD |
1833 | { |
1834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1835 | (arg1)->SetStyle(arg2); | |
1836 | ||
1837 | wxPyEndAllowThreads(__tstate); | |
1838 | if (PyErr_Occurred()) SWIG_fail; | |
1839 | } | |
1840 | Py_INCREF(Py_None); resultobj = Py_None; | |
1841 | return resultobj; | |
1842 | fail: | |
1843 | return NULL; | |
1844 | } | |
1845 | ||
1846 | ||
1847 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1848 | PyObject *resultobj; | |
1849 | wxPen *arg1 = (wxPen *) 0 ; | |
1850 | int arg2 ; | |
1851 | PyObject * obj0 = 0 ; | |
994141e6 | 1852 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1853 | char *kwnames[] = { |
1854 | (char *) "self",(char *) "width", NULL | |
1855 | }; | |
1856 | ||
994141e6 | 1857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1859 | { |
1860 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | } | |
d14a1e28 RD |
1863 | { |
1864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1865 | (arg1)->SetWidth(arg2); | |
1866 | ||
1867 | wxPyEndAllowThreads(__tstate); | |
1868 | if (PyErr_Occurred()) SWIG_fail; | |
1869 | } | |
1870 | Py_INCREF(Py_None); resultobj = Py_None; | |
1871 | return resultobj; | |
1872 | fail: | |
1873 | return NULL; | |
1874 | } | |
1875 | ||
1876 | ||
1877 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1878 | PyObject *resultobj; | |
1879 | wxPen *arg1 = (wxPen *) 0 ; | |
1880 | int arg2 ; | |
1881 | wxDash *arg3 = (wxDash *) 0 ; | |
1882 | PyObject * obj0 = 0 ; | |
1883 | PyObject * obj1 = 0 ; | |
1884 | char *kwnames[] = { | |
1885 | (char *) "self",(char *) "dashes", NULL | |
1886 | }; | |
1887 | ||
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1890 | { | |
1891 | arg2 = PyList_Size(obj1); | |
1892 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1893 | if (arg3 == NULL) SWIG_fail; | |
1894 | } | |
1895 | { | |
1896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1897 | (arg1)->SetDashes(arg2,arg3); | |
1898 | ||
1899 | wxPyEndAllowThreads(__tstate); | |
1900 | if (PyErr_Occurred()) SWIG_fail; | |
1901 | } | |
1902 | Py_INCREF(Py_None); resultobj = Py_None; | |
1903 | { | |
1904 | if (arg3) delete [] arg3; | |
1905 | } | |
1906 | return resultobj; | |
1907 | fail: | |
1908 | { | |
1909 | if (arg3) delete [] arg3; | |
1910 | } | |
1911 | return NULL; | |
1912 | } | |
1913 | ||
1914 | ||
1915 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1916 | PyObject *resultobj; | |
1917 | wxPen *arg1 = (wxPen *) 0 ; | |
1918 | PyObject *result; | |
1919 | PyObject * obj0 = 0 ; | |
1920 | char *kwnames[] = { | |
1921 | (char *) "self", NULL | |
1922 | }; | |
1923 | ||
1924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1926 | { | |
1927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1928 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1929 | ||
1930 | wxPyEndAllowThreads(__tstate); | |
1931 | if (PyErr_Occurred()) SWIG_fail; | |
1932 | } | |
1933 | resultobj = result; | |
1934 | return resultobj; | |
1935 | fail: | |
1936 | return NULL; | |
1937 | } | |
1938 | ||
1939 | ||
3adfb63b RD |
1940 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1941 | PyObject *resultobj; | |
1942 | wxPen *arg1 = (wxPen *) 0 ; | |
22faec7d | 1943 | wxPen *arg2 = (wxPen *) 0 ; |
3adfb63b RD |
1944 | bool result; |
1945 | PyObject * obj0 = 0 ; | |
1946 | PyObject * obj1 = 0 ; | |
1947 | char *kwnames[] = { | |
22faec7d | 1948 | (char *) "self",(char *) "other", NULL |
3adfb63b RD |
1949 | }; |
1950 | ||
1951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1953 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22faec7d RD |
1954 | { |
1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1956 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
1957 | ||
1958 | wxPyEndAllowThreads(__tstate); | |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
3adfb63b | 1960 | } |
22faec7d RD |
1961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
1962 | return resultobj; | |
1963 | fail: | |
1964 | return NULL; | |
1965 | } | |
1966 | ||
1967 | ||
1968 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1969 | PyObject *resultobj; | |
1970 | wxPen *arg1 = (wxPen *) 0 ; | |
1971 | wxPen *arg2 = (wxPen *) 0 ; | |
1972 | bool result; | |
1973 | PyObject * obj0 = 0 ; | |
1974 | PyObject * obj1 = 0 ; | |
1975 | char *kwnames[] = { | |
1976 | (char *) "self",(char *) "other", NULL | |
1977 | }; | |
1978 | ||
1979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1981 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3adfb63b RD |
1982 | { |
1983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 1984 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
3adfb63b RD |
1985 | |
1986 | wxPyEndAllowThreads(__tstate); | |
1987 | if (PyErr_Occurred()) SWIG_fail; | |
1988 | } | |
1989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1990 | return resultobj; | |
1991 | fail: | |
1992 | return NULL; | |
1993 | } | |
1994 | ||
1995 | ||
c9c7117a RD |
1996 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
1997 | PyObject *resultobj; | |
1998 | wxPen *arg1 = (wxPen *) 0 ; | |
1999 | int result; | |
2000 | PyObject * obj0 = 0 ; | |
2001 | char *kwnames[] = { | |
2002 | (char *) "self", NULL | |
2003 | }; | |
2004 | ||
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2007 | { | |
2008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2009 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2010 | ||
2011 | wxPyEndAllowThreads(__tstate); | |
2012 | if (PyErr_Occurred()) SWIG_fail; | |
2013 | } | |
994141e6 | 2014 | resultobj = SWIG_PyObj_FromInt((int)result); |
c9c7117a RD |
2015 | return resultobj; |
2016 | fail: | |
2017 | return NULL; | |
2018 | } | |
2019 | ||
2020 | ||
d14a1e28 RD |
2021 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
2022 | PyObject *obj; | |
2023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2024 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2025 | Py_INCREF(obj); | |
2026 | return Py_BuildValue((char *)""); | |
2027 | } | |
2028 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject *resultobj; | |
2030 | wxColour *arg1 = 0 ; | |
2031 | int arg2 = (int) 1 ; | |
2032 | int arg3 = (int) wxSOLID ; | |
2033 | wxPyPen *result; | |
2034 | wxColour temp1 ; | |
2035 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2036 | PyObject * obj1 = 0 ; |
2037 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2038 | char *kwnames[] = { |
2039 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2040 | }; | |
2041 | ||
994141e6 | 2042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2043 | { |
2044 | arg1 = &temp1; | |
2045 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2046 | } | |
994141e6 RD |
2047 | if (obj1) { |
2048 | { | |
2049 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2050 | if (PyErr_Occurred()) SWIG_fail; | |
2051 | } | |
2052 | } | |
2053 | if (obj2) { | |
2054 | { | |
2055 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2056 | if (PyErr_Occurred()) SWIG_fail; | |
2057 | } | |
2058 | } | |
d14a1e28 RD |
2059 | { |
2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2061 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2062 | ||
2063 | wxPyEndAllowThreads(__tstate); | |
2064 | if (PyErr_Occurred()) SWIG_fail; | |
2065 | } | |
2066 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
2067 | return resultobj; | |
2068 | fail: | |
2069 | return NULL; | |
2070 | } | |
2071 | ||
2072 | ||
2073 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2074 | PyObject *resultobj; | |
2075 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | char *kwnames[] = { | |
2078 | (char *) "self", NULL | |
2079 | }; | |
2080 | ||
2081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2083 | { | |
2084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2085 | delete arg1; | |
2086 | ||
2087 | wxPyEndAllowThreads(__tstate); | |
2088 | if (PyErr_Occurred()) SWIG_fail; | |
2089 | } | |
2090 | Py_INCREF(Py_None); resultobj = Py_None; | |
2091 | return resultobj; | |
2092 | fail: | |
2093 | return NULL; | |
2094 | } | |
2095 | ||
2096 | ||
2097 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2098 | PyObject *resultobj; | |
2099 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2100 | int arg2 ; | |
2101 | wxDash *arg3 = (wxDash *) 0 ; | |
2102 | PyObject * obj0 = 0 ; | |
2103 | PyObject * obj1 = 0 ; | |
2104 | char *kwnames[] = { | |
2105 | (char *) "self",(char *) "dashes", NULL | |
2106 | }; | |
2107 | ||
2108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2110 | { | |
2111 | arg2 = PyList_Size(obj1); | |
2112 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2113 | if (arg3 == NULL) SWIG_fail; | |
2114 | } | |
2115 | { | |
2116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2117 | (arg1)->SetDashes(arg2,arg3); | |
2118 | ||
2119 | wxPyEndAllowThreads(__tstate); | |
2120 | if (PyErr_Occurred()) SWIG_fail; | |
2121 | } | |
2122 | Py_INCREF(Py_None); resultobj = Py_None; | |
2123 | { | |
2124 | if (arg3) delete [] arg3; | |
2125 | } | |
2126 | return resultobj; | |
2127 | fail: | |
2128 | { | |
2129 | if (arg3) delete [] arg3; | |
2130 | } | |
2131 | return NULL; | |
2132 | } | |
2133 | ||
2134 | ||
2135 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2136 | PyObject *obj; | |
2137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2138 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2139 | Py_INCREF(obj); | |
2140 | return Py_BuildValue((char *)""); | |
2141 | } | |
2142 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2143 | PyObject *resultobj; | |
2144 | wxColour *arg1 = 0 ; | |
2145 | int arg2 = (int) wxSOLID ; | |
2146 | wxBrush *result; | |
2147 | wxColour temp1 ; | |
2148 | PyObject * obj0 = 0 ; | |
994141e6 | 2149 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2150 | char *kwnames[] = { |
2151 | (char *) "colour",(char *) "style", NULL | |
2152 | }; | |
2153 | ||
994141e6 | 2154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2155 | { |
2156 | arg1 = &temp1; | |
2157 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2158 | } | |
994141e6 RD |
2159 | if (obj1) { |
2160 | { | |
2161 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2162 | if (PyErr_Occurred()) SWIG_fail; | |
2163 | } | |
2164 | } | |
d14a1e28 RD |
2165 | { |
2166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2167 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2168 | ||
2169 | wxPyEndAllowThreads(__tstate); | |
2170 | if (PyErr_Occurred()) SWIG_fail; | |
2171 | } | |
2172 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
2173 | return resultobj; | |
2174 | fail: | |
2175 | return NULL; | |
2176 | } | |
2177 | ||
2178 | ||
2179 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2180 | PyObject *resultobj; | |
2181 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2182 | PyObject * obj0 = 0 ; | |
2183 | char *kwnames[] = { | |
2184 | (char *) "self", NULL | |
2185 | }; | |
2186 | ||
2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2189 | { | |
2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2191 | delete arg1; | |
2192 | ||
2193 | wxPyEndAllowThreads(__tstate); | |
2194 | if (PyErr_Occurred()) SWIG_fail; | |
2195 | } | |
2196 | Py_INCREF(Py_None); resultobj = Py_None; | |
2197 | return resultobj; | |
2198 | fail: | |
2199 | return NULL; | |
2200 | } | |
2201 | ||
2202 | ||
2203 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2204 | PyObject *resultobj; | |
2205 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2206 | wxColour *arg2 = 0 ; | |
2207 | wxColour temp2 ; | |
2208 | PyObject * obj0 = 0 ; | |
2209 | PyObject * obj1 = 0 ; | |
2210 | char *kwnames[] = { | |
2211 | (char *) "self",(char *) "col", NULL | |
2212 | }; | |
2213 | ||
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2216 | { | |
2217 | arg2 = &temp2; | |
2218 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2219 | } | |
2220 | { | |
2221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2222 | (arg1)->SetColour((wxColour const &)*arg2); | |
2223 | ||
2224 | wxPyEndAllowThreads(__tstate); | |
2225 | if (PyErr_Occurred()) SWIG_fail; | |
2226 | } | |
2227 | Py_INCREF(Py_None); resultobj = Py_None; | |
2228 | return resultobj; | |
2229 | fail: | |
2230 | return NULL; | |
2231 | } | |
2232 | ||
2233 | ||
2234 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2235 | PyObject *resultobj; | |
2236 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2237 | int arg2 ; | |
2238 | PyObject * obj0 = 0 ; | |
994141e6 | 2239 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2240 | char *kwnames[] = { |
2241 | (char *) "self",(char *) "style", NULL | |
2242 | }; | |
2243 | ||
994141e6 | 2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2246 | { |
2247 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
d14a1e28 RD |
2250 | { |
2251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2252 | (arg1)->SetStyle(arg2); | |
2253 | ||
2254 | wxPyEndAllowThreads(__tstate); | |
2255 | if (PyErr_Occurred()) SWIG_fail; | |
2256 | } | |
2257 | Py_INCREF(Py_None); resultobj = Py_None; | |
2258 | return resultobj; | |
2259 | fail: | |
2260 | return NULL; | |
2261 | } | |
2262 | ||
2263 | ||
2264 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2265 | PyObject *resultobj; | |
2266 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2267 | wxBitmap *arg2 = 0 ; | |
2268 | PyObject * obj0 = 0 ; | |
2269 | PyObject * obj1 = 0 ; | |
2270 | char *kwnames[] = { | |
2271 | (char *) "self",(char *) "stipple", NULL | |
2272 | }; | |
2273 | ||
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2277 | if (arg2 == NULL) { | |
2278 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2279 | } | |
2280 | { | |
2281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2282 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2283 | ||
2284 | wxPyEndAllowThreads(__tstate); | |
2285 | if (PyErr_Occurred()) SWIG_fail; | |
2286 | } | |
2287 | Py_INCREF(Py_None); resultobj = Py_None; | |
2288 | return resultobj; | |
2289 | fail: | |
2290 | return NULL; | |
2291 | } | |
2292 | ||
2293 | ||
2294 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2295 | PyObject *resultobj; | |
2296 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2297 | wxColour result; | |
2298 | PyObject * obj0 = 0 ; | |
2299 | char *kwnames[] = { | |
2300 | (char *) "self", NULL | |
2301 | }; | |
2302 | ||
2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2305 | { | |
2306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2307 | result = ((wxBrush const *)arg1)->GetColour(); | |
2308 | ||
2309 | wxPyEndAllowThreads(__tstate); | |
2310 | if (PyErr_Occurred()) SWIG_fail; | |
2311 | } | |
2312 | { | |
2313 | wxColour * resultptr; | |
2314 | resultptr = new wxColour((wxColour &) result); | |
2315 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2316 | } | |
2317 | return resultobj; | |
2318 | fail: | |
2319 | return NULL; | |
2320 | } | |
2321 | ||
2322 | ||
2323 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2324 | PyObject *resultobj; | |
2325 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2326 | int result; | |
2327 | PyObject * obj0 = 0 ; | |
2328 | char *kwnames[] = { | |
2329 | (char *) "self", NULL | |
2330 | }; | |
2331 | ||
2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2334 | { | |
2335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2336 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2337 | ||
2338 | wxPyEndAllowThreads(__tstate); | |
2339 | if (PyErr_Occurred()) SWIG_fail; | |
2340 | } | |
994141e6 | 2341 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2342 | return resultobj; |
2343 | fail: | |
2344 | return NULL; | |
2345 | } | |
2346 | ||
2347 | ||
2348 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject *resultobj; | |
2350 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2351 | wxBitmap *result; | |
2352 | PyObject * obj0 = 0 ; | |
2353 | char *kwnames[] = { | |
2354 | (char *) "self", NULL | |
2355 | }; | |
2356 | ||
2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2359 | { | |
2360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2361 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2362 | ||
2363 | wxPyEndAllowThreads(__tstate); | |
2364 | if (PyErr_Occurred()) SWIG_fail; | |
2365 | } | |
2366 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2367 | return resultobj; | |
2368 | fail: | |
2369 | return NULL; | |
2370 | } | |
2371 | ||
2372 | ||
2373 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2374 | PyObject *resultobj; | |
2375 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2376 | bool result; | |
2377 | PyObject * obj0 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "self", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2384 | { | |
2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2386 | result = (bool)(arg1)->Ok(); | |
2387 | ||
2388 | wxPyEndAllowThreads(__tstate); | |
2389 | if (PyErr_Occurred()) SWIG_fail; | |
2390 | } | |
4d5c3d91 | 2391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2392 | return resultobj; |
2393 | fail: | |
2394 | return NULL; | |
2395 | } | |
2396 | ||
2397 | ||
2398 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2399 | PyObject *obj; | |
2400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2401 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2402 | Py_INCREF(obj); | |
2403 | return Py_BuildValue((char *)""); | |
2404 | } | |
2405 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2406 | PyObject *resultobj; | |
2407 | wxString *arg1 = 0 ; | |
2408 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2409 | wxBitmap *result; | |
e811c8ce | 2410 | bool temp1 = False ; |
d14a1e28 | 2411 | PyObject * obj0 = 0 ; |
994141e6 | 2412 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2413 | char *kwnames[] = { |
2414 | (char *) "name",(char *) "type", NULL | |
2415 | }; | |
2416 | ||
994141e6 | 2417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2418 | { |
2419 | arg1 = wxString_in_helper(obj0); | |
2420 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2421 | temp1 = True; |
d14a1e28 | 2422 | } |
994141e6 RD |
2423 | if (obj1) { |
2424 | { | |
2425 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
2428 | } | |
d14a1e28 RD |
2429 | { |
2430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2431 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2432 | ||
2433 | wxPyEndAllowThreads(__tstate); | |
2434 | if (PyErr_Occurred()) SWIG_fail; | |
2435 | } | |
2436 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2437 | { | |
2438 | if (temp1) | |
2439 | delete arg1; | |
2440 | } | |
2441 | return resultobj; | |
2442 | fail: | |
2443 | { | |
2444 | if (temp1) | |
2445 | delete arg1; | |
2446 | } | |
2447 | return NULL; | |
2448 | } | |
2449 | ||
2450 | ||
2451 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2452 | PyObject *resultobj; | |
2453 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2454 | PyObject * obj0 = 0 ; | |
2455 | char *kwnames[] = { | |
2456 | (char *) "self", NULL | |
2457 | }; | |
2458 | ||
2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2461 | { | |
2462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2463 | delete arg1; | |
2464 | ||
2465 | wxPyEndAllowThreads(__tstate); | |
2466 | if (PyErr_Occurred()) SWIG_fail; | |
2467 | } | |
2468 | Py_INCREF(Py_None); resultobj = Py_None; | |
2469 | return resultobj; | |
2470 | fail: | |
2471 | return NULL; | |
2472 | } | |
2473 | ||
2474 | ||
2475 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2476 | PyObject *resultobj; | |
2477 | int arg1 ; | |
2478 | int arg2 ; | |
2479 | int arg3 = (int) -1 ; | |
2480 | wxBitmap *result; | |
994141e6 RD |
2481 | PyObject * obj0 = 0 ; |
2482 | PyObject * obj1 = 0 ; | |
2483 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2484 | char *kwnames[] = { |
2485 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2486 | }; | |
2487 | ||
994141e6 RD |
2488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2489 | { | |
2490 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2491 | if (PyErr_Occurred()) SWIG_fail; | |
2492 | } | |
2493 | { | |
2494 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2495 | if (PyErr_Occurred()) SWIG_fail; | |
2496 | } | |
2497 | if (obj2) { | |
2498 | { | |
2499 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2500 | if (PyErr_Occurred()) SWIG_fail; | |
2501 | } | |
2502 | } | |
d14a1e28 RD |
2503 | { |
2504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2505 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2506 | ||
2507 | wxPyEndAllowThreads(__tstate); | |
2508 | if (PyErr_Occurred()) SWIG_fail; | |
2509 | } | |
2510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2511 | return resultobj; | |
2512 | fail: | |
2513 | return NULL; | |
2514 | } | |
2515 | ||
2516 | ||
2517 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2518 | PyObject *resultobj; | |
2519 | wxIcon *arg1 = 0 ; | |
2520 | wxBitmap *result; | |
2521 | PyObject * obj0 = 0 ; | |
2522 | char *kwnames[] = { | |
2523 | (char *) "icon", NULL | |
2524 | }; | |
2525 | ||
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2528 | if (arg1 == NULL) { | |
2529 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2530 | } | |
2531 | { | |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2533 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2534 | ||
2535 | wxPyEndAllowThreads(__tstate); | |
2536 | if (PyErr_Occurred()) SWIG_fail; | |
2537 | } | |
2538 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2539 | return resultobj; | |
2540 | fail: | |
2541 | return NULL; | |
2542 | } | |
2543 | ||
2544 | ||
2545 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject *resultobj; | |
2547 | wxImage *arg1 = 0 ; | |
2548 | int arg2 = (int) -1 ; | |
2549 | wxBitmap *result; | |
2550 | PyObject * obj0 = 0 ; | |
994141e6 | 2551 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2552 | char *kwnames[] = { |
2553 | (char *) "image",(char *) "depth", NULL | |
2554 | }; | |
2555 | ||
994141e6 | 2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2558 | if (arg1 == NULL) { | |
2559 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2560 | } | |
994141e6 RD |
2561 | if (obj1) { |
2562 | { | |
2563 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | } | |
d14a1e28 RD |
2567 | { |
2568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2569 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2570 | ||
2571 | wxPyEndAllowThreads(__tstate); | |
2572 | if (PyErr_Occurred()) SWIG_fail; | |
2573 | } | |
2574 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2575 | return resultobj; | |
2576 | fail: | |
2577 | return NULL; | |
2578 | } | |
2579 | ||
2580 | ||
2581 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2582 | PyObject *resultobj; | |
2583 | PyObject *arg1 = (PyObject *) 0 ; | |
2584 | wxBitmap *result; | |
2585 | PyObject * obj0 = 0 ; | |
2586 | char *kwnames[] = { | |
2587 | (char *) "listOfStrings", NULL | |
2588 | }; | |
2589 | ||
2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2591 | arg1 = obj0; | |
2592 | { | |
2593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2594 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2595 | ||
2596 | wxPyEndAllowThreads(__tstate); | |
2597 | if (PyErr_Occurred()) SWIG_fail; | |
2598 | } | |
2599 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2600 | return resultobj; | |
2601 | fail: | |
2602 | return NULL; | |
2603 | } | |
2604 | ||
2605 | ||
2606 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2607 | PyObject *resultobj; | |
2608 | PyObject *arg1 = (PyObject *) 0 ; | |
2609 | int arg2 ; | |
2610 | int arg3 ; | |
2611 | int arg4 = (int) 1 ; | |
2612 | wxBitmap *result; | |
2613 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2614 | PyObject * obj1 = 0 ; |
2615 | PyObject * obj2 = 0 ; | |
2616 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2617 | char *kwnames[] = { |
2618 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2619 | }; | |
2620 | ||
994141e6 | 2621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2622 | arg1 = obj0; |
994141e6 RD |
2623 | { |
2624 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2625 | if (PyErr_Occurred()) SWIG_fail; | |
2626 | } | |
2627 | { | |
2628 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2629 | if (PyErr_Occurred()) SWIG_fail; | |
2630 | } | |
2631 | if (obj3) { | |
2632 | { | |
2633 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2634 | if (PyErr_Occurred()) SWIG_fail; | |
2635 | } | |
2636 | } | |
d14a1e28 RD |
2637 | { |
2638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2639 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2640 | ||
2641 | wxPyEndAllowThreads(__tstate); | |
2642 | if (PyErr_Occurred()) SWIG_fail; | |
2643 | } | |
2644 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2645 | return resultobj; | |
2646 | fail: | |
2647 | return NULL; | |
2648 | } | |
2649 | ||
2650 | ||
2651 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2652 | PyObject *resultobj; | |
2653 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2654 | bool result; | |
2655 | PyObject * obj0 = 0 ; | |
2656 | char *kwnames[] = { | |
2657 | (char *) "self", NULL | |
2658 | }; | |
2659 | ||
2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2662 | { | |
2663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2664 | result = (bool)(arg1)->Ok(); | |
2665 | ||
2666 | wxPyEndAllowThreads(__tstate); | |
2667 | if (PyErr_Occurred()) SWIG_fail; | |
2668 | } | |
4d5c3d91 | 2669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2670 | return resultobj; |
2671 | fail: | |
2672 | return NULL; | |
2673 | } | |
2674 | ||
2675 | ||
2676 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject *resultobj; | |
2678 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2679 | int result; | |
2680 | PyObject * obj0 = 0 ; | |
2681 | char *kwnames[] = { | |
2682 | (char *) "self", NULL | |
2683 | }; | |
2684 | ||
2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2687 | { | |
2688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2689 | result = (int)(arg1)->GetWidth(); | |
2690 | ||
2691 | wxPyEndAllowThreads(__tstate); | |
2692 | if (PyErr_Occurred()) SWIG_fail; | |
2693 | } | |
994141e6 | 2694 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2695 | return resultobj; |
2696 | fail: | |
2697 | return NULL; | |
2698 | } | |
2699 | ||
2700 | ||
2701 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2702 | PyObject *resultobj; | |
2703 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2704 | int result; | |
2705 | PyObject * obj0 = 0 ; | |
2706 | char *kwnames[] = { | |
2707 | (char *) "self", NULL | |
2708 | }; | |
2709 | ||
2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2712 | { | |
2713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2714 | result = (int)(arg1)->GetHeight(); | |
2715 | ||
2716 | wxPyEndAllowThreads(__tstate); | |
2717 | if (PyErr_Occurred()) SWIG_fail; | |
2718 | } | |
994141e6 | 2719 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2720 | return resultobj; |
2721 | fail: | |
2722 | return NULL; | |
2723 | } | |
2724 | ||
2725 | ||
2726 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2727 | PyObject *resultobj; | |
2728 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2729 | int result; | |
2730 | PyObject * obj0 = 0 ; | |
2731 | char *kwnames[] = { | |
2732 | (char *) "self", NULL | |
2733 | }; | |
2734 | ||
2735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2737 | { | |
2738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2739 | result = (int)(arg1)->GetDepth(); | |
2740 | ||
2741 | wxPyEndAllowThreads(__tstate); | |
2742 | if (PyErr_Occurred()) SWIG_fail; | |
2743 | } | |
994141e6 | 2744 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2745 | return resultobj; |
2746 | fail: | |
2747 | return NULL; | |
2748 | } | |
2749 | ||
2750 | ||
2751 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2752 | PyObject *resultobj; | |
2753 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2754 | SwigValueWrapper< wxImage > result; | |
2755 | PyObject * obj0 = 0 ; | |
2756 | char *kwnames[] = { | |
2757 | (char *) "self", NULL | |
2758 | }; | |
2759 | ||
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2762 | { | |
2763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2764 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2765 | ||
2766 | wxPyEndAllowThreads(__tstate); | |
2767 | if (PyErr_Occurred()) SWIG_fail; | |
2768 | } | |
2769 | { | |
2770 | wxImage * resultptr; | |
2771 | resultptr = new wxImage((wxImage &) result); | |
2772 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2773 | } | |
2774 | return resultobj; | |
2775 | fail: | |
2776 | return NULL; | |
2777 | } | |
2778 | ||
2779 | ||
2780 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject *resultobj; | |
2782 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2783 | wxMask *result; | |
2784 | PyObject * obj0 = 0 ; | |
2785 | char *kwnames[] = { | |
2786 | (char *) "self", NULL | |
2787 | }; | |
2788 | ||
2789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2791 | { | |
2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2793 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2794 | ||
2795 | wxPyEndAllowThreads(__tstate); | |
2796 | if (PyErr_Occurred()) SWIG_fail; | |
2797 | } | |
2798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2799 | return resultobj; | |
2800 | fail: | |
2801 | return NULL; | |
2802 | } | |
2803 | ||
2804 | ||
2805 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2806 | PyObject *resultobj; | |
2807 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2808 | wxMask *arg2 = (wxMask *) 0 ; | |
2809 | PyObject * obj0 = 0 ; | |
2810 | PyObject * obj1 = 0 ; | |
2811 | char *kwnames[] = { | |
2812 | (char *) "self",(char *) "mask", NULL | |
2813 | }; | |
2814 | ||
2815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2817 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2818 | { | |
2819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2820 | (arg1)->SetMask(arg2); | |
2821 | ||
2822 | wxPyEndAllowThreads(__tstate); | |
2823 | if (PyErr_Occurred()) SWIG_fail; | |
2824 | } | |
2825 | Py_INCREF(Py_None); resultobj = Py_None; | |
2826 | return resultobj; | |
2827 | fail: | |
2828 | return NULL; | |
2829 | } | |
2830 | ||
2831 | ||
2832 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2833 | PyObject *resultobj; | |
2834 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2835 | wxColour *arg2 = 0 ; | |
2836 | wxColour temp2 ; | |
2837 | PyObject * obj0 = 0 ; | |
2838 | PyObject * obj1 = 0 ; | |
2839 | char *kwnames[] = { | |
2840 | (char *) "self",(char *) "colour", NULL | |
2841 | }; | |
2842 | ||
2843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2845 | { | |
2846 | arg2 = &temp2; | |
2847 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2848 | } | |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | Py_INCREF(Py_None); resultobj = Py_None; | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2866 | wxRect *arg2 = 0 ; | |
2867 | SwigValueWrapper< wxBitmap > result; | |
2868 | wxRect temp2 ; | |
2869 | PyObject * obj0 = 0 ; | |
2870 | PyObject * obj1 = 0 ; | |
2871 | char *kwnames[] = { | |
2872 | (char *) "self",(char *) "rect", NULL | |
2873 | }; | |
2874 | ||
2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2877 | { | |
2878 | arg2 = &temp2; | |
2879 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2880 | } | |
2881 | { | |
2882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2883 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2884 | ||
2885 | wxPyEndAllowThreads(__tstate); | |
2886 | if (PyErr_Occurred()) SWIG_fail; | |
2887 | } | |
2888 | { | |
2889 | wxBitmap * resultptr; | |
2890 | resultptr = new wxBitmap((wxBitmap &) result); | |
2891 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2892 | } | |
2893 | return resultobj; | |
2894 | fail: | |
2895 | return NULL; | |
2896 | } | |
2897 | ||
2898 | ||
2899 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2900 | PyObject *resultobj; | |
2901 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2902 | wxString *arg2 = 0 ; | |
2903 | int arg3 ; | |
2904 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2905 | bool result; | |
e811c8ce | 2906 | bool temp2 = False ; |
d14a1e28 RD |
2907 | PyObject * obj0 = 0 ; |
2908 | PyObject * obj1 = 0 ; | |
994141e6 | 2909 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2910 | PyObject * obj3 = 0 ; |
2911 | char *kwnames[] = { | |
2912 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2913 | }; | |
2914 | ||
994141e6 | 2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
2916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2917 | { | |
2918 | arg2 = wxString_in_helper(obj1); | |
2919 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2920 | temp2 = True; |
d14a1e28 | 2921 | } |
994141e6 RD |
2922 | { |
2923 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
2924 | if (PyErr_Occurred()) SWIG_fail; | |
2925 | } | |
d14a1e28 RD |
2926 | if (obj3) { |
2927 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2928 | } | |
2929 | { | |
2930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2931 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2932 | ||
2933 | wxPyEndAllowThreads(__tstate); | |
2934 | if (PyErr_Occurred()) SWIG_fail; | |
2935 | } | |
4d5c3d91 | 2936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2937 | { |
2938 | if (temp2) | |
2939 | delete arg2; | |
2940 | } | |
2941 | return resultobj; | |
2942 | fail: | |
2943 | { | |
2944 | if (temp2) | |
2945 | delete arg2; | |
2946 | } | |
2947 | return NULL; | |
2948 | } | |
2949 | ||
2950 | ||
2951 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2952 | PyObject *resultobj; | |
2953 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2954 | wxString *arg2 = 0 ; | |
2955 | int arg3 ; | |
2956 | bool result; | |
e811c8ce | 2957 | bool temp2 = False ; |
d14a1e28 RD |
2958 | PyObject * obj0 = 0 ; |
2959 | PyObject * obj1 = 0 ; | |
994141e6 | 2960 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2961 | char *kwnames[] = { |
2962 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2963 | }; | |
2964 | ||
994141e6 | 2965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2967 | { | |
2968 | arg2 = wxString_in_helper(obj1); | |
2969 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2970 | temp2 = True; |
d14a1e28 | 2971 | } |
994141e6 RD |
2972 | { |
2973 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
2974 | if (PyErr_Occurred()) SWIG_fail; | |
2975 | } | |
d14a1e28 RD |
2976 | { |
2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2978 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2979 | ||
2980 | wxPyEndAllowThreads(__tstate); | |
2981 | if (PyErr_Occurred()) SWIG_fail; | |
2982 | } | |
4d5c3d91 | 2983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2984 | { |
2985 | if (temp2) | |
2986 | delete arg2; | |
2987 | } | |
2988 | return resultobj; | |
2989 | fail: | |
2990 | { | |
2991 | if (temp2) | |
2992 | delete arg2; | |
2993 | } | |
2994 | return NULL; | |
2995 | } | |
2996 | ||
2997 | ||
2998 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2999 | PyObject *resultobj; | |
3000 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3001 | wxIcon *arg2 = 0 ; | |
3002 | bool result; | |
3003 | PyObject * obj0 = 0 ; | |
3004 | PyObject * obj1 = 0 ; | |
3005 | char *kwnames[] = { | |
3006 | (char *) "self",(char *) "icon", NULL | |
3007 | }; | |
3008 | ||
3009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3011 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3012 | if (arg2 == NULL) { | |
3013 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3014 | } | |
3015 | { | |
3016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3017 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3018 | ||
3019 | wxPyEndAllowThreads(__tstate); | |
3020 | if (PyErr_Occurred()) SWIG_fail; | |
3021 | } | |
4d5c3d91 | 3022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3023 | return resultobj; |
3024 | fail: | |
3025 | return NULL; | |
3026 | } | |
3027 | ||
3028 | ||
3029 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3030 | PyObject *resultobj; | |
3031 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3032 | int arg2 ; | |
3033 | PyObject * obj0 = 0 ; | |
994141e6 | 3034 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3035 | char *kwnames[] = { |
3036 | (char *) "self",(char *) "height", NULL | |
3037 | }; | |
3038 | ||
994141e6 | 3039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3041 | { |
3042 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3043 | if (PyErr_Occurred()) SWIG_fail; | |
3044 | } | |
d14a1e28 RD |
3045 | { |
3046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3047 | (arg1)->SetHeight(arg2); | |
3048 | ||
3049 | wxPyEndAllowThreads(__tstate); | |
3050 | if (PyErr_Occurred()) SWIG_fail; | |
3051 | } | |
3052 | Py_INCREF(Py_None); resultobj = Py_None; | |
3053 | return resultobj; | |
3054 | fail: | |
3055 | return NULL; | |
3056 | } | |
3057 | ||
3058 | ||
3059 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3060 | PyObject *resultobj; | |
3061 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3062 | int arg2 ; | |
3063 | PyObject * obj0 = 0 ; | |
994141e6 | 3064 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3065 | char *kwnames[] = { |
3066 | (char *) "self",(char *) "width", NULL | |
3067 | }; | |
3068 | ||
994141e6 | 3069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3071 | { |
3072 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3073 | if (PyErr_Occurred()) SWIG_fail; | |
3074 | } | |
d14a1e28 RD |
3075 | { |
3076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3077 | (arg1)->SetWidth(arg2); | |
3078 | ||
3079 | wxPyEndAllowThreads(__tstate); | |
3080 | if (PyErr_Occurred()) SWIG_fail; | |
3081 | } | |
3082 | Py_INCREF(Py_None); resultobj = Py_None; | |
3083 | return resultobj; | |
3084 | fail: | |
3085 | return NULL; | |
3086 | } | |
3087 | ||
3088 | ||
3089 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3090 | PyObject *resultobj; | |
3091 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3092 | int arg2 ; | |
3093 | PyObject * obj0 = 0 ; | |
994141e6 | 3094 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3095 | char *kwnames[] = { |
3096 | (char *) "self",(char *) "depth", NULL | |
3097 | }; | |
3098 | ||
994141e6 | 3099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3101 | { |
3102 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3103 | if (PyErr_Occurred()) SWIG_fail; | |
3104 | } | |
d14a1e28 RD |
3105 | { |
3106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3107 | (arg1)->SetDepth(arg2); | |
3108 | ||
3109 | wxPyEndAllowThreads(__tstate); | |
3110 | if (PyErr_Occurred()) SWIG_fail; | |
3111 | } | |
3112 | Py_INCREF(Py_None); resultobj = Py_None; | |
3113 | return resultobj; | |
3114 | fail: | |
3115 | return NULL; | |
3116 | } | |
3117 | ||
3118 | ||
3119 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3120 | PyObject *obj; | |
3121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3122 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3123 | Py_INCREF(obj); | |
3124 | return Py_BuildValue((char *)""); | |
3125 | } | |
3126 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3127 | PyObject *resultobj; | |
3128 | wxBitmap *arg1 = 0 ; | |
0482c494 RD |
3129 | wxColour const &arg2_defvalue = wxNullColour ; |
3130 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3131 | wxMask *result; |
3132 | wxColour temp2 ; | |
3133 | PyObject * obj0 = 0 ; | |
3134 | PyObject * obj1 = 0 ; | |
3135 | char *kwnames[] = { | |
3136 | (char *) "bitmap",(char *) "colour", NULL | |
3137 | }; | |
3138 | ||
0482c494 | 3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3141 | if (arg1 == NULL) { | |
3142 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3143 | } | |
0482c494 RD |
3144 | if (obj1) { |
3145 | { | |
3146 | arg2 = &temp2; | |
3147 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3148 | } | |
d14a1e28 RD |
3149 | } |
3150 | { | |
3151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0482c494 | 3152 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3153 | |
3154 | wxPyEndAllowThreads(__tstate); | |
3155 | if (PyErr_Occurred()) SWIG_fail; | |
3156 | } | |
3157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
3158 | return resultobj; | |
3159 | fail: | |
3160 | return NULL; | |
3161 | } | |
3162 | ||
3163 | ||
3164 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3165 | PyObject *obj; | |
3166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3167 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3168 | Py_INCREF(obj); | |
3169 | return Py_BuildValue((char *)""); | |
3170 | } | |
3171 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3172 | PyObject *resultobj; | |
3173 | wxString *arg1 = 0 ; | |
f87da722 | 3174 | int arg2 ; |
d14a1e28 RD |
3175 | int arg3 = (int) -1 ; |
3176 | int arg4 = (int) -1 ; | |
3177 | wxIcon *result; | |
e811c8ce | 3178 | bool temp1 = False ; |
d14a1e28 | 3179 | PyObject * obj0 = 0 ; |
994141e6 RD |
3180 | PyObject * obj1 = 0 ; |
3181 | PyObject * obj2 = 0 ; | |
3182 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3183 | char *kwnames[] = { |
f87da722 | 3184 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3185 | }; |
3186 | ||
994141e6 | 3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3188 | { |
3189 | arg1 = wxString_in_helper(obj0); | |
3190 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3191 | temp1 = True; |
d14a1e28 RD |
3192 | } |
3193 | { | |
994141e6 RD |
3194 | arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1); |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
3197 | if (obj2) { | |
3198 | { | |
3199 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3200 | if (PyErr_Occurred()) SWIG_fail; | |
3201 | } | |
3202 | } | |
3203 | if (obj3) { | |
3204 | { | |
3205 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3206 | if (PyErr_Occurred()) SWIG_fail; | |
3207 | } | |
3208 | } | |
3209 | { | |
3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3211 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3212 | ||
3213 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
3214 | if (PyErr_Occurred()) SWIG_fail; |
3215 | } | |
3216 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3217 | { | |
3218 | if (temp1) | |
3219 | delete arg1; | |
3220 | } | |
3221 | return resultobj; | |
3222 | fail: | |
3223 | { | |
3224 | if (temp1) | |
3225 | delete arg1; | |
3226 | } | |
3227 | return NULL; | |
3228 | } | |
3229 | ||
3230 | ||
3231 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3232 | PyObject *resultobj; | |
3233 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3234 | PyObject * obj0 = 0 ; | |
3235 | char *kwnames[] = { | |
3236 | (char *) "self", NULL | |
3237 | }; | |
3238 | ||
3239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3241 | { | |
3242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3243 | delete arg1; | |
3244 | ||
3245 | wxPyEndAllowThreads(__tstate); | |
3246 | if (PyErr_Occurred()) SWIG_fail; | |
3247 | } | |
3248 | Py_INCREF(Py_None); resultobj = Py_None; | |
3249 | return resultobj; | |
3250 | fail: | |
3251 | return NULL; | |
3252 | } | |
3253 | ||
3254 | ||
3255 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3256 | PyObject *resultobj; | |
3257 | wxIcon *result; | |
3258 | char *kwnames[] = { | |
3259 | NULL | |
3260 | }; | |
3261 | ||
3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3263 | { | |
3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3265 | result = (wxIcon *)new wxIcon(); | |
3266 | ||
3267 | wxPyEndAllowThreads(__tstate); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3271 | return resultobj; | |
3272 | fail: | |
3273 | return NULL; | |
3274 | } | |
3275 | ||
3276 | ||
3277 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3278 | PyObject *resultobj; | |
3279 | wxIconLocation *arg1 = 0 ; | |
3280 | wxIcon *result; | |
3281 | PyObject * obj0 = 0 ; | |
3282 | char *kwnames[] = { | |
3283 | (char *) "loc", NULL | |
3284 | }; | |
3285 | ||
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3288 | if (arg1 == NULL) { | |
3289 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3290 | } | |
3291 | { | |
3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3293 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3294 | ||
3295 | wxPyEndAllowThreads(__tstate); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | } | |
3298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3299 | return resultobj; | |
3300 | fail: | |
3301 | return NULL; | |
3302 | } | |
3303 | ||
3304 | ||
3305 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3306 | PyObject *resultobj; | |
3307 | wxBitmap *arg1 = 0 ; | |
3308 | wxIcon *result; | |
3309 | PyObject * obj0 = 0 ; | |
3310 | char *kwnames[] = { | |
3311 | (char *) "bmp", NULL | |
3312 | }; | |
3313 | ||
3314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3316 | if (arg1 == NULL) { | |
3317 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3318 | } | |
3319 | { | |
3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3321 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3322 | ||
3323 | wxPyEndAllowThreads(__tstate); | |
3324 | if (PyErr_Occurred()) SWIG_fail; | |
3325 | } | |
3326 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3327 | return resultobj; | |
3328 | fail: | |
3329 | return NULL; | |
3330 | } | |
3331 | ||
3332 | ||
3333 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3334 | PyObject *resultobj; | |
3335 | PyObject *arg1 = (PyObject *) 0 ; | |
3336 | wxIcon *result; | |
3337 | PyObject * obj0 = 0 ; | |
3338 | char *kwnames[] = { | |
3339 | (char *) "listOfStrings", NULL | |
3340 | }; | |
3341 | ||
3342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3343 | arg1 = obj0; | |
3344 | { | |
3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3346 | result = (wxIcon *)new_wxIcon(arg1); | |
3347 | ||
3348 | wxPyEndAllowThreads(__tstate); | |
3349 | if (PyErr_Occurred()) SWIG_fail; | |
3350 | } | |
3351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3352 | return resultobj; | |
3353 | fail: | |
3354 | return NULL; | |
3355 | } | |
3356 | ||
3357 | ||
3358 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3359 | PyObject *resultobj; | |
3360 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3361 | wxString *arg2 = 0 ; | |
f87da722 | 3362 | int arg3 ; |
d14a1e28 | 3363 | bool result; |
e811c8ce | 3364 | bool temp2 = False ; |
d14a1e28 RD |
3365 | PyObject * obj0 = 0 ; |
3366 | PyObject * obj1 = 0 ; | |
994141e6 | 3367 | PyObject * obj2 = 0 ; |
d14a1e28 | 3368 | char *kwnames[] = { |
f87da722 | 3369 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3370 | }; |
3371 | ||
994141e6 | 3372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3374 | { | |
3375 | arg2 = wxString_in_helper(obj1); | |
3376 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3377 | temp2 = True; |
d14a1e28 | 3378 | } |
994141e6 RD |
3379 | { |
3380 | arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2); | |
3381 | if (PyErr_Occurred()) SWIG_fail; | |
3382 | } | |
d14a1e28 RD |
3383 | { |
3384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3385 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3386 | |
3387 | wxPyEndAllowThreads(__tstate); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
3389 | } | |
4d5c3d91 | 3390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3391 | { |
3392 | if (temp2) | |
3393 | delete arg2; | |
3394 | } | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | { | |
3398 | if (temp2) | |
3399 | delete arg2; | |
3400 | } | |
3401 | return NULL; | |
3402 | } | |
3403 | ||
3404 | ||
3405 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3406 | PyObject *resultobj; | |
3407 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3408 | bool result; | |
3409 | PyObject * obj0 = 0 ; | |
3410 | char *kwnames[] = { | |
3411 | (char *) "self", NULL | |
3412 | }; | |
3413 | ||
3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3416 | { | |
3417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3418 | result = (bool)(arg1)->Ok(); | |
3419 | ||
3420 | wxPyEndAllowThreads(__tstate); | |
3421 | if (PyErr_Occurred()) SWIG_fail; | |
3422 | } | |
4d5c3d91 | 3423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3424 | return resultobj; |
3425 | fail: | |
3426 | return NULL; | |
3427 | } | |
3428 | ||
3429 | ||
3430 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3431 | PyObject *resultobj; | |
3432 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3433 | int result; | |
3434 | PyObject * obj0 = 0 ; | |
3435 | char *kwnames[] = { | |
3436 | (char *) "self", NULL | |
3437 | }; | |
3438 | ||
3439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3441 | { | |
3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3443 | result = (int)(arg1)->GetWidth(); | |
3444 | ||
3445 | wxPyEndAllowThreads(__tstate); | |
3446 | if (PyErr_Occurred()) SWIG_fail; | |
3447 | } | |
994141e6 | 3448 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3449 | return resultobj; |
3450 | fail: | |
3451 | return NULL; | |
3452 | } | |
3453 | ||
3454 | ||
3455 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3456 | PyObject *resultobj; | |
3457 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3458 | int result; | |
3459 | PyObject * obj0 = 0 ; | |
3460 | char *kwnames[] = { | |
3461 | (char *) "self", NULL | |
3462 | }; | |
3463 | ||
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3466 | { | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | result = (int)(arg1)->GetHeight(); | |
3469 | ||
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
994141e6 | 3473 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3474 | return resultobj; |
3475 | fail: | |
3476 | return NULL; | |
3477 | } | |
3478 | ||
3479 | ||
3480 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3481 | PyObject *resultobj; | |
3482 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3483 | int result; | |
3484 | PyObject * obj0 = 0 ; | |
3485 | char *kwnames[] = { | |
3486 | (char *) "self", NULL | |
3487 | }; | |
3488 | ||
3489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3491 | { | |
3492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3493 | result = (int)(arg1)->GetDepth(); | |
3494 | ||
3495 | wxPyEndAllowThreads(__tstate); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
3497 | } | |
994141e6 | 3498 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3499 | return resultobj; |
3500 | fail: | |
3501 | return NULL; | |
3502 | } | |
3503 | ||
3504 | ||
3505 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject *resultobj; | |
3507 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3508 | int arg2 ; | |
3509 | PyObject * obj0 = 0 ; | |
994141e6 | 3510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3511 | char *kwnames[] = { |
3512 | (char *) "self",(char *) "w", NULL | |
3513 | }; | |
3514 | ||
994141e6 | 3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3517 | { |
3518 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3519 | if (PyErr_Occurred()) SWIG_fail; | |
3520 | } | |
d14a1e28 RD |
3521 | { |
3522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3523 | (arg1)->SetWidth(arg2); | |
3524 | ||
3525 | wxPyEndAllowThreads(__tstate); | |
3526 | if (PyErr_Occurred()) SWIG_fail; | |
3527 | } | |
3528 | Py_INCREF(Py_None); resultobj = Py_None; | |
3529 | return resultobj; | |
3530 | fail: | |
3531 | return NULL; | |
3532 | } | |
3533 | ||
3534 | ||
3535 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3536 | PyObject *resultobj; | |
3537 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3538 | int arg2 ; | |
3539 | PyObject * obj0 = 0 ; | |
994141e6 | 3540 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3541 | char *kwnames[] = { |
3542 | (char *) "self",(char *) "h", NULL | |
3543 | }; | |
3544 | ||
994141e6 | 3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3547 | { |
3548 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
d14a1e28 RD |
3551 | { |
3552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3553 | (arg1)->SetHeight(arg2); | |
3554 | ||
3555 | wxPyEndAllowThreads(__tstate); | |
3556 | if (PyErr_Occurred()) SWIG_fail; | |
3557 | } | |
3558 | Py_INCREF(Py_None); resultobj = Py_None; | |
3559 | return resultobj; | |
3560 | fail: | |
3561 | return NULL; | |
3562 | } | |
3563 | ||
3564 | ||
3565 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3566 | PyObject *resultobj; | |
3567 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3568 | int arg2 ; | |
3569 | PyObject * obj0 = 0 ; | |
994141e6 | 3570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3571 | char *kwnames[] = { |
3572 | (char *) "self",(char *) "d", NULL | |
3573 | }; | |
3574 | ||
994141e6 | 3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3577 | { |
3578 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
d14a1e28 RD |
3581 | { |
3582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3583 | (arg1)->SetDepth(arg2); | |
3584 | ||
3585 | wxPyEndAllowThreads(__tstate); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | } | |
3588 | Py_INCREF(Py_None); resultobj = Py_None; | |
3589 | return resultobj; | |
3590 | fail: | |
3591 | return NULL; | |
3592 | } | |
3593 | ||
3594 | ||
3595 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3596 | PyObject *resultobj; | |
3597 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3598 | wxBitmap *arg2 = 0 ; | |
3599 | PyObject * obj0 = 0 ; | |
3600 | PyObject * obj1 = 0 ; | |
3601 | char *kwnames[] = { | |
3602 | (char *) "self",(char *) "bmp", NULL | |
3603 | }; | |
3604 | ||
3605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3607 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3608 | if (arg2 == NULL) { | |
3609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3610 | } | |
3611 | { | |
3612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3613 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3614 | ||
3615 | wxPyEndAllowThreads(__tstate); | |
3616 | if (PyErr_Occurred()) SWIG_fail; | |
3617 | } | |
3618 | Py_INCREF(Py_None); resultobj = Py_None; | |
3619 | return resultobj; | |
3620 | fail: | |
3621 | return NULL; | |
3622 | } | |
3623 | ||
3624 | ||
3625 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3626 | PyObject *obj; | |
3627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3628 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3629 | Py_INCREF(obj); | |
3630 | return Py_BuildValue((char *)""); | |
3631 | } | |
3632 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3633 | PyObject *resultobj; | |
3634 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3635 | int arg2 = (int) 0 ; | |
3636 | wxIconLocation *result; | |
7eae615b | 3637 | bool temp1 = False ; |
d14a1e28 | 3638 | PyObject * obj0 = 0 ; |
994141e6 | 3639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3640 | char *kwnames[] = { |
3641 | (char *) "filename",(char *) "num", NULL | |
3642 | }; | |
3643 | ||
994141e6 | 3644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3645 | if (obj0) { |
7eae615b RD |
3646 | { |
3647 | arg1 = wxString_in_helper(obj0); | |
3648 | if (arg1 == NULL) SWIG_fail; | |
3649 | temp1 = True; | |
3650 | } | |
d14a1e28 | 3651 | } |
994141e6 RD |
3652 | if (obj1) { |
3653 | { | |
3654 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | } | |
3657 | } | |
d14a1e28 RD |
3658 | { |
3659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3660 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3661 | ||
3662 | wxPyEndAllowThreads(__tstate); | |
3663 | if (PyErr_Occurred()) SWIG_fail; | |
3664 | } | |
3665 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
7eae615b RD |
3666 | { |
3667 | if (temp1) | |
3668 | delete arg1; | |
3669 | } | |
d14a1e28 RD |
3670 | return resultobj; |
3671 | fail: | |
7eae615b RD |
3672 | { |
3673 | if (temp1) | |
3674 | delete arg1; | |
3675 | } | |
d14a1e28 RD |
3676 | return NULL; |
3677 | } | |
3678 | ||
3679 | ||
3680 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3681 | PyObject *resultobj; | |
3682 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3683 | PyObject * obj0 = 0 ; | |
3684 | char *kwnames[] = { | |
3685 | (char *) "self", NULL | |
3686 | }; | |
3687 | ||
3688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3690 | { | |
3691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3692 | delete arg1; | |
3693 | ||
3694 | wxPyEndAllowThreads(__tstate); | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | Py_INCREF(Py_None); resultobj = Py_None; | |
3698 | return resultobj; | |
3699 | fail: | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
3704 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject *resultobj; | |
3706 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3707 | bool result; | |
3708 | PyObject * obj0 = 0 ; | |
3709 | char *kwnames[] = { | |
3710 | (char *) "self", NULL | |
3711 | }; | |
3712 | ||
3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3715 | { | |
3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3717 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3718 | ||
3719 | wxPyEndAllowThreads(__tstate); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | } | |
4d5c3d91 | 3722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3723 | return resultobj; |
3724 | fail: | |
3725 | return NULL; | |
3726 | } | |
3727 | ||
3728 | ||
3729 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3730 | PyObject *resultobj; | |
3731 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3732 | wxString *arg2 = 0 ; | |
e811c8ce | 3733 | bool temp2 = False ; |
d14a1e28 RD |
3734 | PyObject * obj0 = 0 ; |
3735 | PyObject * obj1 = 0 ; | |
3736 | char *kwnames[] = { | |
3737 | (char *) "self",(char *) "filename", NULL | |
3738 | }; | |
3739 | ||
3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3742 | { | |
3743 | arg2 = wxString_in_helper(obj1); | |
3744 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3745 | temp2 = True; |
d14a1e28 RD |
3746 | } |
3747 | { | |
3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3749 | (arg1)->SetFileName((wxString const &)*arg2); | |
3750 | ||
3751 | wxPyEndAllowThreads(__tstate); | |
3752 | if (PyErr_Occurred()) SWIG_fail; | |
3753 | } | |
3754 | Py_INCREF(Py_None); resultobj = Py_None; | |
3755 | { | |
3756 | if (temp2) | |
3757 | delete arg2; | |
3758 | } | |
3759 | return resultobj; | |
3760 | fail: | |
3761 | { | |
3762 | if (temp2) | |
3763 | delete arg2; | |
3764 | } | |
3765 | return NULL; | |
3766 | } | |
3767 | ||
3768 | ||
3769 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3770 | PyObject *resultobj; | |
3771 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3772 | wxString *result; | |
3773 | PyObject * obj0 = 0 ; | |
3774 | char *kwnames[] = { | |
3775 | (char *) "self", NULL | |
3776 | }; | |
3777 | ||
3778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3780 | { | |
3781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3782 | { | |
3783 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3784 | result = (wxString *) &_result_ref; | |
3785 | } | |
3786 | ||
3787 | wxPyEndAllowThreads(__tstate); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | } | |
cc6dd355 RD |
3790 | { |
3791 | #if wxUSE_UNICODE | |
3792 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3793 | #else | |
3794 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3795 | #endif | |
3796 | } | |
d14a1e28 RD |
3797 | return resultobj; |
3798 | fail: | |
3799 | return NULL; | |
3800 | } | |
3801 | ||
3802 | ||
3803 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3804 | PyObject *resultobj; | |
3805 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3806 | int arg2 ; | |
3807 | PyObject * obj0 = 0 ; | |
994141e6 | 3808 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3809 | char *kwnames[] = { |
3810 | (char *) "self",(char *) "num", NULL | |
3811 | }; | |
3812 | ||
994141e6 | 3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3815 | { |
3816 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
d14a1e28 RD |
3819 | { |
3820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3821 | wxIconLocation_SetIndex(arg1,arg2); | |
3822 | ||
3823 | wxPyEndAllowThreads(__tstate); | |
3824 | if (PyErr_Occurred()) SWIG_fail; | |
3825 | } | |
3826 | Py_INCREF(Py_None); resultobj = Py_None; | |
3827 | return resultobj; | |
3828 | fail: | |
3829 | return NULL; | |
3830 | } | |
3831 | ||
3832 | ||
3833 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3834 | PyObject *resultobj; | |
3835 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3836 | int result; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | char *kwnames[] = { | |
3839 | (char *) "self", NULL | |
3840 | }; | |
3841 | ||
3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3844 | { | |
3845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3846 | result = (int)wxIconLocation_GetIndex(arg1); | |
3847 | ||
3848 | wxPyEndAllowThreads(__tstate); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | } | |
994141e6 | 3851 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3852 | return resultobj; |
3853 | fail: | |
3854 | return NULL; | |
3855 | } | |
3856 | ||
3857 | ||
3858 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3859 | PyObject *obj; | |
3860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3861 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3862 | Py_INCREF(obj); | |
3863 | return Py_BuildValue((char *)""); | |
3864 | } | |
3865 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3866 | PyObject *resultobj; | |
3867 | wxIconBundle *result; | |
3868 | char *kwnames[] = { | |
3869 | NULL | |
3870 | }; | |
3871 | ||
3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3873 | { | |
3874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3875 | result = (wxIconBundle *)new wxIconBundle(); | |
3876 | ||
3877 | wxPyEndAllowThreads(__tstate); | |
3878 | if (PyErr_Occurred()) SWIG_fail; | |
3879 | } | |
3880 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3881 | return resultobj; | |
3882 | fail: | |
3883 | return NULL; | |
3884 | } | |
3885 | ||
3886 | ||
3887 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3888 | PyObject *resultobj; | |
3889 | wxString *arg1 = 0 ; | |
3890 | long arg2 ; | |
3891 | wxIconBundle *result; | |
e811c8ce | 3892 | bool temp1 = False ; |
d14a1e28 | 3893 | PyObject * obj0 = 0 ; |
994141e6 | 3894 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3895 | char *kwnames[] = { |
3896 | (char *) "file",(char *) "type", NULL | |
3897 | }; | |
3898 | ||
994141e6 | 3899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
3900 | { |
3901 | arg1 = wxString_in_helper(obj0); | |
3902 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3903 | temp1 = True; |
d14a1e28 | 3904 | } |
994141e6 RD |
3905 | { |
3906 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3907 | if (PyErr_Occurred()) SWIG_fail; | |
3908 | } | |
d14a1e28 RD |
3909 | { |
3910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3911 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3912 | ||
3913 | wxPyEndAllowThreads(__tstate); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
3915 | } | |
3916 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3917 | { | |
3918 | if (temp1) | |
3919 | delete arg1; | |
3920 | } | |
3921 | return resultobj; | |
3922 | fail: | |
3923 | { | |
3924 | if (temp1) | |
3925 | delete arg1; | |
3926 | } | |
3927 | return NULL; | |
3928 | } | |
3929 | ||
3930 | ||
3931 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3932 | PyObject *resultobj; | |
3933 | wxIcon *arg1 = 0 ; | |
3934 | wxIconBundle *result; | |
3935 | PyObject * obj0 = 0 ; | |
3936 | char *kwnames[] = { | |
3937 | (char *) "icon", NULL | |
3938 | }; | |
3939 | ||
3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3942 | if (arg1 == NULL) { | |
3943 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3944 | } | |
3945 | { | |
3946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3947 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3948 | ||
3949 | wxPyEndAllowThreads(__tstate); | |
3950 | if (PyErr_Occurred()) SWIG_fail; | |
3951 | } | |
3952 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3953 | return resultobj; | |
3954 | fail: | |
3955 | return NULL; | |
3956 | } | |
3957 | ||
3958 | ||
3959 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3960 | PyObject *resultobj; | |
3961 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3962 | PyObject * obj0 = 0 ; | |
3963 | char *kwnames[] = { | |
3964 | (char *) "self", NULL | |
3965 | }; | |
3966 | ||
3967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3969 | { | |
3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3971 | delete arg1; | |
3972 | ||
3973 | wxPyEndAllowThreads(__tstate); | |
3974 | if (PyErr_Occurred()) SWIG_fail; | |
3975 | } | |
3976 | Py_INCREF(Py_None); resultobj = Py_None; | |
3977 | return resultobj; | |
3978 | fail: | |
3979 | return NULL; | |
3980 | } | |
3981 | ||
3982 | ||
3983 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3984 | PyObject *resultobj; | |
3985 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3986 | wxIcon *arg2 = 0 ; | |
3987 | PyObject * obj0 = 0 ; | |
3988 | PyObject * obj1 = 0 ; | |
3989 | char *kwnames[] = { | |
3990 | (char *) "self",(char *) "icon", NULL | |
3991 | }; | |
3992 | ||
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3995 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3996 | if (arg2 == NULL) { | |
3997 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3998 | } | |
3999 | { | |
4000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4001 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4002 | ||
4003 | wxPyEndAllowThreads(__tstate); | |
4004 | if (PyErr_Occurred()) SWIG_fail; | |
4005 | } | |
4006 | Py_INCREF(Py_None); resultobj = Py_None; | |
4007 | return resultobj; | |
4008 | fail: | |
4009 | return NULL; | |
4010 | } | |
4011 | ||
4012 | ||
4013 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4014 | PyObject *resultobj; | |
4015 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4016 | wxString *arg2 = 0 ; | |
4017 | long arg3 ; | |
e811c8ce | 4018 | bool temp2 = False ; |
d14a1e28 RD |
4019 | PyObject * obj0 = 0 ; |
4020 | PyObject * obj1 = 0 ; | |
994141e6 | 4021 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4022 | char *kwnames[] = { |
4023 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4024 | }; | |
4025 | ||
994141e6 | 4026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4028 | { | |
4029 | arg2 = wxString_in_helper(obj1); | |
4030 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4031 | temp2 = True; |
d14a1e28 | 4032 | } |
994141e6 RD |
4033 | { |
4034 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
4035 | if (PyErr_Occurred()) SWIG_fail; | |
4036 | } | |
d14a1e28 RD |
4037 | { |
4038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4039 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4040 | ||
4041 | wxPyEndAllowThreads(__tstate); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
4043 | } | |
4044 | Py_INCREF(Py_None); resultobj = Py_None; | |
4045 | { | |
4046 | if (temp2) | |
4047 | delete arg2; | |
4048 | } | |
4049 | return resultobj; | |
4050 | fail: | |
4051 | { | |
4052 | if (temp2) | |
4053 | delete arg2; | |
4054 | } | |
4055 | return NULL; | |
4056 | } | |
4057 | ||
4058 | ||
4059 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4060 | PyObject *resultobj; | |
4061 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4062 | wxSize *arg2 = 0 ; | |
4063 | wxIcon *result; | |
4064 | wxSize temp2 ; | |
4065 | PyObject * obj0 = 0 ; | |
4066 | PyObject * obj1 = 0 ; | |
4067 | char *kwnames[] = { | |
4068 | (char *) "self",(char *) "size", NULL | |
4069 | }; | |
4070 | ||
4071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4073 | { | |
4074 | arg2 = &temp2; | |
4075 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4076 | } | |
4077 | { | |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4079 | { | |
4080 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4081 | result = (wxIcon *) &_result_ref; | |
4082 | } | |
4083 | ||
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4087 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
4088 | return resultobj; | |
4089 | fail: | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
4094 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4095 | PyObject *obj; | |
4096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4097 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4098 | Py_INCREF(obj); | |
4099 | return Py_BuildValue((char *)""); | |
4100 | } | |
4101 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4102 | PyObject *resultobj; | |
4103 | wxString *arg1 = (wxString *) 0 ; | |
4104 | long arg2 ; | |
4105 | int arg3 = (int) 0 ; | |
4106 | int arg4 = (int) 0 ; | |
4107 | wxCursor *result; | |
7eae615b | 4108 | bool temp1 = False ; |
d14a1e28 | 4109 | PyObject * obj0 = 0 ; |
994141e6 RD |
4110 | PyObject * obj1 = 0 ; |
4111 | PyObject * obj2 = 0 ; | |
4112 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4113 | char *kwnames[] = { |
4114 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4115 | }; | |
4116 | ||
994141e6 | 4117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4118 | { |
4119 | arg1 = wxString_in_helper(obj0); | |
4120 | if (arg1 == NULL) SWIG_fail; | |
4121 | temp1 = True; | |
4122 | } | |
994141e6 RD |
4123 | { |
4124 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4125 | if (PyErr_Occurred()) SWIG_fail; | |
4126 | } | |
4127 | if (obj2) { | |
4128 | { | |
4129 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | } | |
4132 | } | |
4133 | if (obj3) { | |
4134 | { | |
4135 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4136 | if (PyErr_Occurred()) SWIG_fail; | |
4137 | } | |
4138 | } | |
d14a1e28 RD |
4139 | { |
4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4141 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4142 | ||
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
7eae615b RD |
4147 | { |
4148 | if (temp1) | |
4149 | delete arg1; | |
4150 | } | |
d14a1e28 RD |
4151 | return resultobj; |
4152 | fail: | |
7eae615b RD |
4153 | { |
4154 | if (temp1) | |
4155 | delete arg1; | |
4156 | } | |
d14a1e28 RD |
4157 | return NULL; |
4158 | } | |
4159 | ||
4160 | ||
4161 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4162 | PyObject *resultobj; | |
4163 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4164 | PyObject * obj0 = 0 ; | |
4165 | char *kwnames[] = { | |
4166 | (char *) "self", NULL | |
4167 | }; | |
4168 | ||
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4171 | { | |
4172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4173 | delete arg1; | |
4174 | ||
4175 | wxPyEndAllowThreads(__tstate); | |
4176 | if (PyErr_Occurred()) SWIG_fail; | |
4177 | } | |
4178 | Py_INCREF(Py_None); resultobj = Py_None; | |
4179 | return resultobj; | |
4180 | fail: | |
4181 | return NULL; | |
4182 | } | |
4183 | ||
4184 | ||
4185 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject *resultobj; | |
4187 | int arg1 ; | |
4188 | wxCursor *result; | |
994141e6 | 4189 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4190 | char *kwnames[] = { |
4191 | (char *) "id", NULL | |
4192 | }; | |
4193 | ||
994141e6 RD |
4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
4195 | { | |
4196 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
d14a1e28 RD |
4199 | { |
4200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4201 | result = (wxCursor *)new wxCursor(arg1); | |
4202 | ||
4203 | wxPyEndAllowThreads(__tstate); | |
4204 | if (PyErr_Occurred()) SWIG_fail; | |
4205 | } | |
4206 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4207 | return resultobj; | |
4208 | fail: | |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
4213 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject *resultobj; | |
4215 | wxImage *arg1 = 0 ; | |
4216 | wxCursor *result; | |
4217 | PyObject * obj0 = 0 ; | |
4218 | char *kwnames[] = { | |
4219 | (char *) "image", NULL | |
4220 | }; | |
4221 | ||
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4224 | if (arg1 == NULL) { | |
4225 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4226 | } | |
4227 | { | |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
4241 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj; | |
4243 | PyObject *arg1 = (PyObject *) 0 ; | |
4244 | int arg2 ; | |
4245 | int arg3 ; | |
4246 | int arg4 = (int) -1 ; | |
4247 | int arg5 = (int) -1 ; | |
4248 | PyObject *arg6 = (PyObject *) 0 ; | |
4249 | wxCursor *result; | |
4250 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4251 | PyObject * obj1 = 0 ; |
4252 | PyObject * obj2 = 0 ; | |
4253 | PyObject * obj3 = 0 ; | |
4254 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4255 | PyObject * obj5 = 0 ; |
4256 | char *kwnames[] = { | |
4257 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4258 | }; | |
4259 | ||
994141e6 | 4260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 4261 | arg1 = obj0; |
994141e6 RD |
4262 | { |
4263 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4264 | if (PyErr_Occurred()) SWIG_fail; | |
4265 | } | |
4266 | { | |
4267 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4268 | if (PyErr_Occurred()) SWIG_fail; | |
4269 | } | |
4270 | if (obj3) { | |
4271 | { | |
4272 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4273 | if (PyErr_Occurred()) SWIG_fail; | |
4274 | } | |
4275 | } | |
4276 | if (obj4) { | |
4277 | { | |
4278 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4279 | if (PyErr_Occurred()) SWIG_fail; | |
4280 | } | |
4281 | } | |
d14a1e28 RD |
4282 | if (obj5) { |
4283 | arg6 = obj5; | |
4284 | } | |
4285 | { | |
4286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4287 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4288 | ||
4289 | wxPyEndAllowThreads(__tstate); | |
4290 | if (PyErr_Occurred()) SWIG_fail; | |
4291 | } | |
4292 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4293 | return resultobj; | |
4294 | fail: | |
4295 | return NULL; | |
4296 | } | |
4297 | ||
4298 | ||
4299 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4300 | PyObject *resultobj; | |
4301 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4302 | bool result; | |
4303 | PyObject * obj0 = 0 ; | |
4304 | char *kwnames[] = { | |
4305 | (char *) "self", NULL | |
4306 | }; | |
4307 | ||
4308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4310 | { | |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | result = (bool)(arg1)->Ok(); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
4d5c3d91 | 4317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4318 | return resultobj; |
4319 | fail: | |
4320 | return NULL; | |
4321 | } | |
4322 | ||
4323 | ||
4324 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4325 | PyObject *obj; | |
4326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4327 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4328 | Py_INCREF(obj); | |
4329 | return Py_BuildValue((char *)""); | |
4330 | } | |
4331 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4332 | PyObject *resultobj; | |
e811c8ce RD |
4333 | int arg1 = (int) 0 ; |
4334 | int arg2 = (int) 0 ; | |
4335 | int arg3 = (int) 0 ; | |
4336 | int arg4 = (int) 0 ; | |
d14a1e28 | 4337 | wxRegion *result; |
994141e6 RD |
4338 | PyObject * obj0 = 0 ; |
4339 | PyObject * obj1 = 0 ; | |
4340 | PyObject * obj2 = 0 ; | |
4341 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4342 | char *kwnames[] = { |
4343 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4344 | }; | |
4345 | ||
994141e6 RD |
4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4347 | if (obj0) { | |
4348 | { | |
4349 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4350 | if (PyErr_Occurred()) SWIG_fail; | |
4351 | } | |
4352 | } | |
4353 | if (obj1) { | |
4354 | { | |
4355 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4356 | if (PyErr_Occurred()) SWIG_fail; | |
4357 | } | |
4358 | } | |
4359 | if (obj2) { | |
4360 | { | |
4361 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4362 | if (PyErr_Occurred()) SWIG_fail; | |
4363 | } | |
4364 | } | |
4365 | if (obj3) { | |
4366 | { | |
4367 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4368 | if (PyErr_Occurred()) SWIG_fail; | |
4369 | } | |
4370 | } | |
d14a1e28 RD |
4371 | { |
4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4373 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4374 | ||
4375 | wxPyEndAllowThreads(__tstate); | |
4376 | if (PyErr_Occurred()) SWIG_fail; | |
4377 | } | |
4378 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4379 | return resultobj; | |
4380 | fail: | |
4381 | return NULL; | |
4382 | } | |
4383 | ||
4384 | ||
4385 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject *resultobj; | |
4387 | wxBitmap *arg1 = 0 ; | |
4388 | wxColour const &arg2_defvalue = wxNullColour ; | |
4389 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4390 | int arg3 = (int) 0 ; | |
4391 | wxRegion *result; | |
4392 | wxColour temp2 ; | |
4393 | PyObject * obj0 = 0 ; | |
4394 | PyObject * obj1 = 0 ; | |
994141e6 | 4395 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4396 | char *kwnames[] = { |
4397 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4398 | }; | |
4399 | ||
994141e6 | 4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4402 | if (arg1 == NULL) { | |
4403 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4404 | } | |
4405 | if (obj1) { | |
4406 | { | |
4407 | arg2 = &temp2; | |
4408 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4409 | } | |
4410 | } | |
994141e6 RD |
4411 | if (obj2) { |
4412 | { | |
4413 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
4415 | } | |
4416 | } | |
d14a1e28 RD |
4417 | { |
4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4419 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4420 | ||
4421 | wxPyEndAllowThreads(__tstate); | |
4422 | if (PyErr_Occurred()) SWIG_fail; | |
4423 | } | |
4424 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4425 | return resultobj; | |
4426 | fail: | |
4427 | return NULL; | |
4428 | } | |
4429 | ||
4430 | ||
4431 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4432 | PyObject *resultobj; | |
4433 | int arg1 ; | |
4434 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4435 | int arg3 = (int) wxWINDING_RULE ; | |
4436 | wxRegion *result; | |
4437 | PyObject * obj0 = 0 ; | |
994141e6 | 4438 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4439 | char *kwnames[] = { |
4440 | (char *) "points",(char *) "fillStyle", NULL | |
4441 | }; | |
4442 | ||
994141e6 | 4443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4444 | { |
4445 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4446 | if (arg2 == NULL) SWIG_fail; | |
4447 | } | |
994141e6 RD |
4448 | if (obj1) { |
4449 | { | |
4450 | arg3 = (int) SWIG_PyObj_AsInt(obj1); | |
4451 | if (PyErr_Occurred()) SWIG_fail; | |
4452 | } | |
4453 | } | |
d14a1e28 RD |
4454 | { |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4456 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4457 | ||
4458 | wxPyEndAllowThreads(__tstate); | |
4459 | if (PyErr_Occurred()) SWIG_fail; | |
4460 | } | |
4461 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4462 | { | |
4463 | if (arg2) delete [] arg2; | |
4464 | } | |
4465 | return resultobj; | |
4466 | fail: | |
4467 | { | |
4468 | if (arg2) delete [] arg2; | |
4469 | } | |
4470 | return NULL; | |
4471 | } | |
4472 | ||
4473 | ||
4474 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4475 | PyObject *resultobj; | |
4476 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4477 | PyObject * obj0 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "self", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4484 | { | |
4485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4486 | delete arg1; | |
4487 | ||
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | Py_INCREF(Py_None); resultobj = Py_None; | |
4492 | return resultobj; | |
4493 | fail: | |
4494 | return NULL; | |
4495 | } | |
4496 | ||
4497 | ||
4498 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4499 | PyObject *resultobj; | |
4500 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4501 | PyObject * obj0 = 0 ; | |
4502 | char *kwnames[] = { | |
4503 | (char *) "self", NULL | |
4504 | }; | |
4505 | ||
4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4508 | { | |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | (arg1)->Clear(); | |
4511 | ||
4512 | wxPyEndAllowThreads(__tstate); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
4515 | Py_INCREF(Py_None); resultobj = Py_None; | |
4516 | return resultobj; | |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
4522 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject *resultobj; | |
4524 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4525 | int arg2 ; |
4526 | int arg3 ; | |
d14a1e28 RD |
4527 | bool result; |
4528 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4529 | PyObject * obj1 = 0 ; |
4530 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4531 | char *kwnames[] = { |
4532 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4533 | }; | |
4534 | ||
994141e6 | 4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4537 | { |
4538 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
4540 | } | |
4541 | { | |
4542 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
d14a1e28 RD |
4545 | { |
4546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4547 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4548 | ||
4549 | wxPyEndAllowThreads(__tstate); | |
4550 | if (PyErr_Occurred()) SWIG_fail; | |
4551 | } | |
4d5c3d91 | 4552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4553 | return resultobj; |
4554 | fail: | |
4555 | return NULL; | |
4556 | } | |
4557 | ||
4558 | ||
4559 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4560 | PyObject *resultobj; | |
4561 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4562 | int arg2 ; |
4563 | int arg3 ; | |
d14a1e28 RD |
4564 | int result; |
4565 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4566 | PyObject * obj1 = 0 ; |
4567 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4568 | char *kwnames[] = { |
4569 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4570 | }; | |
4571 | ||
994141e6 | 4572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4574 | { |
4575 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4576 | if (PyErr_Occurred()) SWIG_fail; | |
4577 | } | |
4578 | { | |
4579 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4580 | if (PyErr_Occurred()) SWIG_fail; | |
4581 | } | |
d14a1e28 RD |
4582 | { |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4584 | result = (int)(arg1)->Contains(arg2,arg3); | |
4585 | ||
4586 | wxPyEndAllowThreads(__tstate); | |
4587 | if (PyErr_Occurred()) SWIG_fail; | |
4588 | } | |
994141e6 | 4589 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4590 | return resultobj; |
4591 | fail: | |
4592 | return NULL; | |
4593 | } | |
4594 | ||
4595 | ||
4596 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject *resultobj; | |
4598 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4599 | wxPoint *arg2 = 0 ; | |
4600 | int result; | |
4601 | wxPoint temp2 ; | |
4602 | PyObject * obj0 = 0 ; | |
4603 | PyObject * obj1 = 0 ; | |
4604 | char *kwnames[] = { | |
4605 | (char *) "self",(char *) "pt", NULL | |
4606 | }; | |
4607 | ||
4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4610 | { | |
4611 | arg2 = &temp2; | |
4612 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4613 | } | |
4614 | { | |
4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4616 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4617 | ||
4618 | wxPyEndAllowThreads(__tstate); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
4620 | } | |
994141e6 | 4621 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4622 | return resultobj; |
4623 | fail: | |
4624 | return NULL; | |
4625 | } | |
4626 | ||
4627 | ||
4628 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4629 | PyObject *resultobj; | |
4630 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4631 | wxRect *arg2 = 0 ; | |
4632 | int result; | |
4633 | wxRect temp2 ; | |
4634 | PyObject * obj0 = 0 ; | |
4635 | PyObject * obj1 = 0 ; | |
4636 | char *kwnames[] = { | |
4637 | (char *) "self",(char *) "rect", NULL | |
4638 | }; | |
4639 | ||
4640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4642 | { | |
4643 | arg2 = &temp2; | |
4644 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4645 | } | |
4646 | { | |
4647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4648 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4649 | ||
4650 | wxPyEndAllowThreads(__tstate); | |
4651 | if (PyErr_Occurred()) SWIG_fail; | |
4652 | } | |
994141e6 | 4653 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4654 | return resultobj; |
4655 | fail: | |
4656 | return NULL; | |
4657 | } | |
4658 | ||
4659 | ||
4660 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4661 | PyObject *resultobj; | |
4662 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4663 | int arg2 ; |
4664 | int arg3 ; | |
4665 | int arg4 ; | |
4666 | int arg5 ; | |
d14a1e28 RD |
4667 | int result; |
4668 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4669 | PyObject * obj1 = 0 ; |
4670 | PyObject * obj2 = 0 ; | |
4671 | PyObject * obj3 = 0 ; | |
4672 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4673 | char *kwnames[] = { |
4674 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4675 | }; | |
4676 | ||
994141e6 | 4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4679 | { |
4680 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | { | |
4684 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
4687 | { | |
4688 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4689 | if (PyErr_Occurred()) SWIG_fail; | |
4690 | } | |
4691 | { | |
4692 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4693 | if (PyErr_Occurred()) SWIG_fail; | |
4694 | } | |
d14a1e28 RD |
4695 | { |
4696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4697 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4698 | ||
4699 | wxPyEndAllowThreads(__tstate); | |
4700 | if (PyErr_Occurred()) SWIG_fail; | |
4701 | } | |
994141e6 | 4702 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4703 | return resultobj; |
4704 | fail: | |
4705 | return NULL; | |
4706 | } | |
4707 | ||
4708 | ||
4709 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4710 | PyObject *resultobj; | |
4711 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4712 | wxRect result; | |
4713 | PyObject * obj0 = 0 ; | |
4714 | char *kwnames[] = { | |
4715 | (char *) "self", NULL | |
4716 | }; | |
4717 | ||
4718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4720 | { | |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4722 | result = (arg1)->GetBox(); | |
4723 | ||
4724 | wxPyEndAllowThreads(__tstate); | |
4725 | if (PyErr_Occurred()) SWIG_fail; | |
4726 | } | |
4727 | { | |
4728 | wxRect * resultptr; | |
4729 | resultptr = new wxRect((wxRect &) result); | |
4730 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4731 | } | |
4732 | return resultobj; | |
4733 | fail: | |
4734 | return NULL; | |
4735 | } | |
4736 | ||
4737 | ||
4738 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4739 | PyObject *resultobj; | |
4740 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4741 | int arg2 ; |
4742 | int arg3 ; | |
4743 | int arg4 ; | |
4744 | int arg5 ; | |
d14a1e28 RD |
4745 | bool result; |
4746 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4747 | PyObject * obj1 = 0 ; |
4748 | PyObject * obj2 = 0 ; | |
4749 | PyObject * obj3 = 0 ; | |
4750 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4751 | char *kwnames[] = { |
4752 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4753 | }; | |
4754 | ||
994141e6 | 4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4757 | { |
4758 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4759 | if (PyErr_Occurred()) SWIG_fail; | |
4760 | } | |
4761 | { | |
4762 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | { | |
4766 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | { | |
4770 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | } | |
d14a1e28 RD |
4773 | { |
4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4775 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4776 | ||
4777 | wxPyEndAllowThreads(__tstate); | |
4778 | if (PyErr_Occurred()) SWIG_fail; | |
4779 | } | |
4d5c3d91 | 4780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4781 | return resultobj; |
4782 | fail: | |
4783 | return NULL; | |
4784 | } | |
4785 | ||
4786 | ||
4787 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4788 | PyObject *resultobj; | |
4789 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4790 | wxRect *arg2 = 0 ; | |
4791 | bool result; | |
4792 | wxRect temp2 ; | |
4793 | PyObject * obj0 = 0 ; | |
4794 | PyObject * obj1 = 0 ; | |
4795 | char *kwnames[] = { | |
4796 | (char *) "self",(char *) "rect", NULL | |
4797 | }; | |
4798 | ||
4799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4801 | { | |
4802 | arg2 = &temp2; | |
4803 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4804 | } | |
4805 | { | |
4806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4807 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4808 | ||
4809 | wxPyEndAllowThreads(__tstate); | |
4810 | if (PyErr_Occurred()) SWIG_fail; | |
4811 | } | |
4d5c3d91 | 4812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4813 | return resultobj; |
4814 | fail: | |
4815 | return NULL; | |
4816 | } | |
4817 | ||
4818 | ||
4819 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4820 | PyObject *resultobj; | |
4821 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4822 | wxRegion *arg2 = 0 ; | |
4823 | bool result; | |
4824 | PyObject * obj0 = 0 ; | |
4825 | PyObject * obj1 = 0 ; | |
4826 | char *kwnames[] = { | |
4827 | (char *) "self",(char *) "region", NULL | |
4828 | }; | |
4829 | ||
4830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4832 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4833 | if (arg2 == NULL) { | |
4834 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4835 | } | |
4836 | { | |
4837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4838 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4839 | ||
4840 | wxPyEndAllowThreads(__tstate); | |
4841 | if (PyErr_Occurred()) SWIG_fail; | |
4842 | } | |
4d5c3d91 | 4843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4844 | return resultobj; |
4845 | fail: | |
4846 | return NULL; | |
4847 | } | |
4848 | ||
4849 | ||
4850 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4851 | PyObject *resultobj; | |
4852 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4853 | bool result; | |
4854 | PyObject * obj0 = 0 ; | |
4855 | char *kwnames[] = { | |
4856 | (char *) "self", NULL | |
4857 | }; | |
4858 | ||
4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4861 | { | |
4862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4863 | result = (bool)(arg1)->IsEmpty(); | |
4864 | ||
4865 | wxPyEndAllowThreads(__tstate); | |
4866 | if (PyErr_Occurred()) SWIG_fail; | |
4867 | } | |
4d5c3d91 | 4868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4869 | return resultobj; |
4870 | fail: | |
4871 | return NULL; | |
4872 | } | |
4873 | ||
4874 | ||
4875 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4878 | int arg2 ; |
4879 | int arg3 ; | |
4880 | int arg4 ; | |
4881 | int arg5 ; | |
d14a1e28 RD |
4882 | bool result; |
4883 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4884 | PyObject * obj1 = 0 ; |
4885 | PyObject * obj2 = 0 ; | |
4886 | PyObject * obj3 = 0 ; | |
4887 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4888 | char *kwnames[] = { |
4889 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4890 | }; | |
4891 | ||
994141e6 | 4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4894 | { |
4895 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4896 | if (PyErr_Occurred()) SWIG_fail; | |
4897 | } | |
4898 | { | |
4899 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4900 | if (PyErr_Occurred()) SWIG_fail; | |
4901 | } | |
4902 | { | |
4903 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
4906 | { | |
4907 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4908 | if (PyErr_Occurred()) SWIG_fail; | |
4909 | } | |
d14a1e28 RD |
4910 | { |
4911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4912 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4913 | ||
4914 | wxPyEndAllowThreads(__tstate); | |
4915 | if (PyErr_Occurred()) SWIG_fail; | |
4916 | } | |
4d5c3d91 | 4917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4918 | return resultobj; |
4919 | fail: | |
4920 | return NULL; | |
4921 | } | |
4922 | ||
4923 | ||
4924 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4925 | PyObject *resultobj; | |
4926 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4927 | wxRect *arg2 = 0 ; | |
4928 | bool result; | |
4929 | wxRect temp2 ; | |
4930 | PyObject * obj0 = 0 ; | |
4931 | PyObject * obj1 = 0 ; | |
4932 | char *kwnames[] = { | |
4933 | (char *) "self",(char *) "rect", NULL | |
4934 | }; | |
4935 | ||
4936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4938 | { | |
4939 | arg2 = &temp2; | |
4940 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4941 | } | |
4942 | { | |
4943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4944 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4945 | ||
4946 | wxPyEndAllowThreads(__tstate); | |
4947 | if (PyErr_Occurred()) SWIG_fail; | |
4948 | } | |
4d5c3d91 | 4949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4950 | return resultobj; |
4951 | fail: | |
4952 | return NULL; | |
4953 | } | |
4954 | ||
4955 | ||
4956 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4957 | PyObject *resultobj; | |
4958 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4959 | wxRegion *arg2 = 0 ; | |
4960 | bool result; | |
4961 | PyObject * obj0 = 0 ; | |
4962 | PyObject * obj1 = 0 ; | |
4963 | char *kwnames[] = { | |
4964 | (char *) "self",(char *) "region", NULL | |
4965 | }; | |
4966 | ||
4967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4969 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4970 | if (arg2 == NULL) { | |
4971 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4972 | } | |
4973 | { | |
4974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4975 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4976 | ||
4977 | wxPyEndAllowThreads(__tstate); | |
4978 | if (PyErr_Occurred()) SWIG_fail; | |
4979 | } | |
4d5c3d91 | 4980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4981 | return resultobj; |
4982 | fail: | |
4983 | return NULL; | |
4984 | } | |
4985 | ||
4986 | ||
4987 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4988 | PyObject *resultobj; | |
4989 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4990 | int arg2 ; |
4991 | int arg3 ; | |
4992 | int arg4 ; | |
4993 | int arg5 ; | |
d14a1e28 RD |
4994 | bool result; |
4995 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4996 | PyObject * obj1 = 0 ; |
4997 | PyObject * obj2 = 0 ; | |
4998 | PyObject * obj3 = 0 ; | |
4999 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5000 | char *kwnames[] = { |
5001 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5002 | }; | |
5003 | ||
994141e6 | 5004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5006 | { |
5007 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5008 | if (PyErr_Occurred()) SWIG_fail; | |
5009 | } | |
5010 | { | |
5011 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
5014 | { | |
5015 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5016 | if (PyErr_Occurred()) SWIG_fail; | |
5017 | } | |
5018 | { | |
5019 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
d14a1e28 RD |
5022 | { |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
4d5c3d91 | 5029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5030 | return resultobj; |
5031 | fail: | |
5032 | return NULL; | |
5033 | } | |
5034 | ||
5035 | ||
5036 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5037 | PyObject *resultobj; | |
5038 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5039 | wxRect *arg2 = 0 ; | |
5040 | bool result; | |
5041 | wxRect temp2 ; | |
5042 | PyObject * obj0 = 0 ; | |
5043 | PyObject * obj1 = 0 ; | |
5044 | char *kwnames[] = { | |
5045 | (char *) "self",(char *) "rect", NULL | |
5046 | }; | |
5047 | ||
5048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5050 | { | |
5051 | arg2 = &temp2; | |
5052 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5053 | } | |
5054 | { | |
5055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5056 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5057 | ||
5058 | wxPyEndAllowThreads(__tstate); | |
5059 | if (PyErr_Occurred()) SWIG_fail; | |
5060 | } | |
4d5c3d91 | 5061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5062 | return resultobj; |
5063 | fail: | |
5064 | return NULL; | |
5065 | } | |
5066 | ||
5067 | ||
5068 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject *resultobj; | |
5070 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5071 | wxRegion *arg2 = 0 ; | |
5072 | bool result; | |
5073 | PyObject * obj0 = 0 ; | |
5074 | PyObject * obj1 = 0 ; | |
5075 | char *kwnames[] = { | |
5076 | (char *) "self",(char *) "region", NULL | |
5077 | }; | |
5078 | ||
5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5081 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5082 | if (arg2 == NULL) { | |
5083 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5084 | } | |
5085 | { | |
5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5087 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5088 | ||
5089 | wxPyEndAllowThreads(__tstate); | |
5090 | if (PyErr_Occurred()) SWIG_fail; | |
5091 | } | |
4d5c3d91 | 5092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5093 | return resultobj; |
5094 | fail: | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
5099 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5100 | PyObject *resultobj; | |
5101 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5102 | int arg2 ; |
5103 | int arg3 ; | |
5104 | int arg4 ; | |
5105 | int arg5 ; | |
d14a1e28 RD |
5106 | bool result; |
5107 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5108 | PyObject * obj1 = 0 ; |
5109 | PyObject * obj2 = 0 ; | |
5110 | PyObject * obj3 = 0 ; | |
5111 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5112 | char *kwnames[] = { |
5113 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5114 | }; | |
5115 | ||
994141e6 | 5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 5117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5118 | { |
5119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5120 | if (PyErr_Occurred()) SWIG_fail; | |
5121 | } | |
5122 | { | |
5123 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
5126 | { | |
5127 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5128 | if (PyErr_Occurred()) SWIG_fail; | |
5129 | } | |
5130 | { | |
5131 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
5132 | if (PyErr_Occurred()) SWIG_fail; | |
5133 | } | |
d14a1e28 RD |
5134 | { |
5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5136 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5137 | ||
5138 | wxPyEndAllowThreads(__tstate); | |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
5140 | } | |
4d5c3d91 | 5141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5142 | return resultobj; |
5143 | fail: | |
5144 | return NULL; | |
5145 | } | |
5146 | ||
5147 | ||
5148 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5149 | PyObject *resultobj; | |
5150 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5151 | wxRect *arg2 = 0 ; | |
5152 | bool result; | |
5153 | wxRect temp2 ; | |
5154 | PyObject * obj0 = 0 ; | |
5155 | PyObject * obj1 = 0 ; | |
5156 | char *kwnames[] = { | |
5157 | (char *) "self",(char *) "rect", NULL | |
5158 | }; | |
5159 | ||
5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5162 | { | |
5163 | arg2 = &temp2; | |
5164 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5165 | } | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
4d5c3d91 | 5173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5174 | return resultobj; |
5175 | fail: | |
5176 | return NULL; | |
5177 | } | |
5178 | ||
5179 | ||
5180 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5181 | PyObject *resultobj; | |
5182 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5183 | wxRegion *arg2 = 0 ; | |
5184 | bool result; | |
5185 | PyObject * obj0 = 0 ; | |
5186 | PyObject * obj1 = 0 ; | |
5187 | char *kwnames[] = { | |
5188 | (char *) "self",(char *) "region", NULL | |
5189 | }; | |
5190 | ||
5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5193 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5194 | if (arg2 == NULL) { | |
5195 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5196 | } | |
5197 | { | |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5200 | ||
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
4d5c3d91 | 5204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5205 | return resultobj; |
5206 | fail: | |
5207 | return NULL; | |
5208 | } | |
5209 | ||
5210 | ||
5211 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5212 | PyObject *resultobj; | |
5213 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5214 | SwigValueWrapper< wxBitmap > result; | |
5215 | PyObject * obj0 = 0 ; | |
5216 | char *kwnames[] = { | |
5217 | (char *) "self", NULL | |
5218 | }; | |
5219 | ||
5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | result = (arg1)->ConvertToBitmap(); | |
5225 | ||
5226 | wxPyEndAllowThreads(__tstate); | |
5227 | if (PyErr_Occurred()) SWIG_fail; | |
5228 | } | |
5229 | { | |
5230 | wxBitmap * resultptr; | |
5231 | resultptr = new wxBitmap((wxBitmap &) result); | |
5232 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5233 | } | |
5234 | return resultobj; | |
5235 | fail: | |
5236 | return NULL; | |
5237 | } | |
5238 | ||
5239 | ||
5240 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5241 | PyObject *resultobj; | |
5242 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5243 | wxBitmap *arg2 = 0 ; | |
5244 | wxColour const &arg3_defvalue = wxNullColour ; | |
5245 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5246 | int arg4 = (int) 0 ; | |
5247 | bool result; | |
5248 | wxColour temp3 ; | |
5249 | PyObject * obj0 = 0 ; | |
5250 | PyObject * obj1 = 0 ; | |
5251 | PyObject * obj2 = 0 ; | |
994141e6 | 5252 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5253 | char *kwnames[] = { |
5254 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5255 | }; | |
5256 | ||
994141e6 | 5257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5259 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5260 | if (arg2 == NULL) { | |
5261 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5262 | } | |
5263 | if (obj2) { | |
5264 | { | |
5265 | arg3 = &temp3; | |
5266 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5267 | } | |
5268 | } | |
994141e6 RD |
5269 | if (obj3) { |
5270 | { | |
5271 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
5274 | } | |
d14a1e28 RD |
5275 | { |
5276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5277 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5278 | ||
5279 | wxPyEndAllowThreads(__tstate); | |
5280 | if (PyErr_Occurred()) SWIG_fail; | |
5281 | } | |
4d5c3d91 | 5282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5283 | return resultobj; |
5284 | fail: | |
5285 | return NULL; | |
5286 | } | |
5287 | ||
5288 | ||
5289 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5290 | PyObject *obj; | |
5291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5292 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5293 | Py_INCREF(obj); | |
5294 | return Py_BuildValue((char *)""); | |
5295 | } | |
5296 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5297 | PyObject *resultobj; | |
5298 | wxRegion *arg1 = 0 ; | |
5299 | wxRegionIterator *result; | |
5300 | PyObject * obj0 = 0 ; | |
5301 | char *kwnames[] = { | |
5302 | (char *) "region", NULL | |
5303 | }; | |
5304 | ||
5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5307 | if (arg1 == NULL) { | |
5308 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5309 | } | |
5310 | { | |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5318 | return resultobj; | |
5319 | fail: | |
5320 | return NULL; | |
5321 | } | |
5322 | ||
5323 | ||
5324 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5325 | PyObject *resultobj; | |
5326 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5327 | PyObject * obj0 = 0 ; | |
5328 | char *kwnames[] = { | |
5329 | (char *) "self", NULL | |
5330 | }; | |
5331 | ||
5332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5334 | { | |
5335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5336 | delete arg1; | |
5337 | ||
5338 | wxPyEndAllowThreads(__tstate); | |
5339 | if (PyErr_Occurred()) SWIG_fail; | |
5340 | } | |
5341 | Py_INCREF(Py_None); resultobj = Py_None; | |
5342 | return resultobj; | |
5343 | fail: | |
5344 | return NULL; | |
5345 | } | |
5346 | ||
5347 | ||
5348 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5349 | PyObject *resultobj; | |
5350 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5351 | int result; |
d14a1e28 RD |
5352 | PyObject * obj0 = 0 ; |
5353 | char *kwnames[] = { | |
5354 | (char *) "self", NULL | |
5355 | }; | |
5356 | ||
5357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5359 | { | |
5360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5361 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5362 | |
5363 | wxPyEndAllowThreads(__tstate); | |
5364 | if (PyErr_Occurred()) SWIG_fail; | |
5365 | } | |
994141e6 | 5366 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5367 | return resultobj; |
5368 | fail: | |
5369 | return NULL; | |
5370 | } | |
5371 | ||
5372 | ||
5373 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5374 | PyObject *resultobj; | |
5375 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5376 | int result; |
d14a1e28 RD |
5377 | PyObject * obj0 = 0 ; |
5378 | char *kwnames[] = { | |
5379 | (char *) "self", NULL | |
5380 | }; | |
5381 | ||
5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5384 | { | |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5386 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5387 | |
5388 | wxPyEndAllowThreads(__tstate); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
994141e6 | 5391 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5392 | return resultobj; |
5393 | fail: | |
5394 | return NULL; | |
5395 | } | |
5396 | ||
5397 | ||
5398 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5399 | PyObject *resultobj; | |
5400 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5401 | int result; |
d14a1e28 RD |
5402 | PyObject * obj0 = 0 ; |
5403 | char *kwnames[] = { | |
5404 | (char *) "self", NULL | |
5405 | }; | |
5406 | ||
5407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5409 | { | |
5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5411 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5412 | |
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
994141e6 | 5416 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5417 | return resultobj; |
5418 | fail: | |
5419 | return NULL; | |
5420 | } | |
5421 | ||
5422 | ||
5423 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject *resultobj; | |
5425 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5426 | int result; |
d14a1e28 RD |
5427 | PyObject * obj0 = 0 ; |
5428 | char *kwnames[] = { | |
5429 | (char *) "self", NULL | |
5430 | }; | |
5431 | ||
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5434 | { | |
5435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5436 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5437 | |
5438 | wxPyEndAllowThreads(__tstate); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
994141e6 | 5441 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5442 | return resultobj; |
5443 | fail: | |
5444 | return NULL; | |
5445 | } | |
5446 | ||
5447 | ||
5448 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5449 | PyObject *resultobj; | |
5450 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5451 | int result; |
d14a1e28 RD |
5452 | PyObject * obj0 = 0 ; |
5453 | char *kwnames[] = { | |
5454 | (char *) "self", NULL | |
5455 | }; | |
5456 | ||
5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5459 | { | |
5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5461 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5462 | |
5463 | wxPyEndAllowThreads(__tstate); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | } | |
994141e6 | 5466 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5467 | return resultobj; |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
5473 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5474 | PyObject *resultobj; | |
5475 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5476 | int result; |
d14a1e28 RD |
5477 | PyObject * obj0 = 0 ; |
5478 | char *kwnames[] = { | |
5479 | (char *) "self", NULL | |
5480 | }; | |
5481 | ||
5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5484 | { | |
5485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5486 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5487 | |
5488 | wxPyEndAllowThreads(__tstate); | |
5489 | if (PyErr_Occurred()) SWIG_fail; | |
5490 | } | |
994141e6 | 5491 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5492 | return resultobj; |
5493 | fail: | |
5494 | return NULL; | |
5495 | } | |
5496 | ||
5497 | ||
5498 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5499 | PyObject *resultobj; | |
5500 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5501 | wxRect result; | |
5502 | PyObject * obj0 = 0 ; | |
5503 | char *kwnames[] = { | |
5504 | (char *) "self", NULL | |
5505 | }; | |
5506 | ||
5507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5509 | { | |
5510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5511 | result = (arg1)->GetRect(); | |
5512 | ||
5513 | wxPyEndAllowThreads(__tstate); | |
5514 | if (PyErr_Occurred()) SWIG_fail; | |
5515 | } | |
5516 | { | |
5517 | wxRect * resultptr; | |
5518 | resultptr = new wxRect((wxRect &) result); | |
5519 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5520 | } | |
5521 | return resultobj; | |
5522 | fail: | |
5523 | return NULL; | |
5524 | } | |
5525 | ||
5526 | ||
5527 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5528 | PyObject *resultobj; | |
5529 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5530 | bool result; | |
5531 | PyObject * obj0 = 0 ; | |
5532 | char *kwnames[] = { | |
5533 | (char *) "self", NULL | |
5534 | }; | |
5535 | ||
5536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5538 | { | |
5539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5540 | result = (bool)(arg1)->HaveRects(); | |
5541 | ||
5542 | wxPyEndAllowThreads(__tstate); | |
5543 | if (PyErr_Occurred()) SWIG_fail; | |
5544 | } | |
4d5c3d91 | 5545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5546 | return resultobj; |
5547 | fail: | |
5548 | return NULL; | |
5549 | } | |
5550 | ||
5551 | ||
5552 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5553 | PyObject *resultobj; | |
5554 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5555 | PyObject * obj0 = 0 ; | |
5556 | char *kwnames[] = { | |
5557 | (char *) "self", NULL | |
5558 | }; | |
5559 | ||
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5562 | { | |
5563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5564 | (arg1)->Reset(); | |
5565 | ||
5566 | wxPyEndAllowThreads(__tstate); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
5568 | } | |
5569 | Py_INCREF(Py_None); resultobj = Py_None; | |
5570 | return resultobj; | |
5571 | fail: | |
5572 | return NULL; | |
5573 | } | |
5574 | ||
5575 | ||
5576 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5577 | PyObject *resultobj; | |
5578 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5579 | PyObject * obj0 = 0 ; | |
5580 | char *kwnames[] = { | |
5581 | (char *) "self", NULL | |
5582 | }; | |
5583 | ||
5584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5586 | { | |
5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5588 | wxRegionIterator_Next(arg1); | |
5589 | ||
5590 | wxPyEndAllowThreads(__tstate); | |
5591 | if (PyErr_Occurred()) SWIG_fail; | |
5592 | } | |
5593 | Py_INCREF(Py_None); resultobj = Py_None; | |
5594 | return resultobj; | |
5595 | fail: | |
5596 | return NULL; | |
5597 | } | |
5598 | ||
5599 | ||
5600 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5601 | PyObject *resultobj; | |
5602 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5603 | bool result; | |
5604 | PyObject * obj0 = 0 ; | |
5605 | char *kwnames[] = { | |
5606 | (char *) "self", NULL | |
5607 | }; | |
5608 | ||
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5611 | { | |
5612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5613 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5614 | ||
5615 | wxPyEndAllowThreads(__tstate); | |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
5617 | } | |
4d5c3d91 | 5618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5619 | return resultobj; |
5620 | fail: | |
5621 | return NULL; | |
5622 | } | |
5623 | ||
5624 | ||
5625 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5626 | PyObject *obj; | |
5627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5628 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5629 | Py_INCREF(obj); | |
5630 | return Py_BuildValue((char *)""); | |
5631 | } | |
5632 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5633 | PyObject *resultobj; | |
5634 | wxNativeFontInfo *result; | |
5635 | char *kwnames[] = { | |
5636 | NULL | |
5637 | }; | |
5638 | ||
5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5640 | { | |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5642 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
5645 | if (PyErr_Occurred()) SWIG_fail; | |
5646 | } | |
5647 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5648 | return resultobj; | |
5649 | fail: | |
5650 | return NULL; | |
5651 | } | |
5652 | ||
5653 | ||
5654 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5655 | PyObject *resultobj; | |
5656 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5657 | PyObject * obj0 = 0 ; | |
5658 | char *kwnames[] = { | |
5659 | (char *) "self", NULL | |
5660 | }; | |
5661 | ||
5662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5664 | { | |
5665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5666 | delete arg1; | |
5667 | ||
5668 | wxPyEndAllowThreads(__tstate); | |
5669 | if (PyErr_Occurred()) SWIG_fail; | |
5670 | } | |
5671 | Py_INCREF(Py_None); resultobj = Py_None; | |
5672 | return resultobj; | |
5673 | fail: | |
5674 | return NULL; | |
5675 | } | |
5676 | ||
5677 | ||
5678 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5679 | PyObject *resultobj; | |
5680 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5681 | PyObject * obj0 = 0 ; | |
5682 | char *kwnames[] = { | |
5683 | (char *) "self", NULL | |
5684 | }; | |
5685 | ||
5686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5688 | { | |
5689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5690 | (arg1)->Init(); | |
5691 | ||
5692 | wxPyEndAllowThreads(__tstate); | |
5693 | if (PyErr_Occurred()) SWIG_fail; | |
5694 | } | |
5695 | Py_INCREF(Py_None); resultobj = Py_None; | |
5696 | return resultobj; | |
5697 | fail: | |
5698 | return NULL; | |
5699 | } | |
5700 | ||
5701 | ||
5702 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5703 | PyObject *resultobj; | |
5704 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5705 | wxFont *arg2 = 0 ; | |
5706 | PyObject * obj0 = 0 ; | |
5707 | PyObject * obj1 = 0 ; | |
5708 | char *kwnames[] = { | |
5709 | (char *) "self",(char *) "font", NULL | |
5710 | }; | |
5711 | ||
5712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5715 | if (arg2 == NULL) { | |
5716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5717 | } | |
5718 | { | |
5719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5720 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5721 | ||
5722 | wxPyEndAllowThreads(__tstate); | |
5723 | if (PyErr_Occurred()) SWIG_fail; | |
5724 | } | |
5725 | Py_INCREF(Py_None); resultobj = Py_None; | |
5726 | return resultobj; | |
5727 | fail: | |
5728 | return NULL; | |
5729 | } | |
5730 | ||
5731 | ||
5732 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5733 | PyObject *resultobj; | |
5734 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5735 | int result; | |
5736 | PyObject * obj0 = 0 ; | |
5737 | char *kwnames[] = { | |
5738 | (char *) "self", NULL | |
5739 | }; | |
5740 | ||
5741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5743 | { | |
5744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5745 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5746 | ||
5747 | wxPyEndAllowThreads(__tstate); | |
5748 | if (PyErr_Occurred()) SWIG_fail; | |
5749 | } | |
994141e6 | 5750 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5751 | return resultobj; |
5752 | fail: | |
5753 | return NULL; | |
5754 | } | |
5755 | ||
5756 | ||
5757 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5758 | PyObject *resultobj; | |
5759 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5760 | int result; | |
5761 | PyObject * obj0 = 0 ; | |
5762 | char *kwnames[] = { | |
5763 | (char *) "self", NULL | |
5764 | }; | |
5765 | ||
5766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5768 | { | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5771 | ||
5772 | wxPyEndAllowThreads(__tstate); | |
5773 | if (PyErr_Occurred()) SWIG_fail; | |
5774 | } | |
994141e6 | 5775 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5776 | return resultobj; |
5777 | fail: | |
5778 | return NULL; | |
5779 | } | |
5780 | ||
5781 | ||
5782 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5783 | PyObject *resultobj; | |
5784 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5785 | int result; | |
5786 | PyObject * obj0 = 0 ; | |
5787 | char *kwnames[] = { | |
5788 | (char *) "self", NULL | |
5789 | }; | |
5790 | ||
5791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5793 | { | |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
994141e6 | 5800 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5801 | return resultobj; |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
5807 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5808 | PyObject *resultobj; | |
5809 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5810 | bool result; | |
5811 | PyObject * obj0 = 0 ; | |
5812 | char *kwnames[] = { | |
5813 | (char *) "self", NULL | |
5814 | }; | |
5815 | ||
5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5818 | { | |
5819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5820 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5821 | ||
5822 | wxPyEndAllowThreads(__tstate); | |
5823 | if (PyErr_Occurred()) SWIG_fail; | |
5824 | } | |
4d5c3d91 | 5825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5826 | return resultobj; |
5827 | fail: | |
5828 | return NULL; | |
5829 | } | |
5830 | ||
5831 | ||
5832 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject *resultobj; | |
5834 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5835 | wxString result; | |
5836 | PyObject * obj0 = 0 ; | |
5837 | char *kwnames[] = { | |
5838 | (char *) "self", NULL | |
5839 | }; | |
5840 | ||
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5846 | ||
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | { | |
5851 | #if wxUSE_UNICODE | |
5852 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5853 | #else | |
5854 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5855 | #endif | |
5856 | } | |
5857 | return resultobj; | |
5858 | fail: | |
5859 | return NULL; | |
5860 | } | |
5861 | ||
5862 | ||
5863 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject *resultobj; | |
5865 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5866 | int result; | |
5867 | PyObject * obj0 = 0 ; | |
5868 | char *kwnames[] = { | |
5869 | (char *) "self", NULL | |
5870 | }; | |
5871 | ||
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5874 | { | |
5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5876 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5877 | ||
5878 | wxPyEndAllowThreads(__tstate); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | } | |
994141e6 | 5881 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5882 | return resultobj; |
5883 | fail: | |
5884 | return NULL; | |
5885 | } | |
5886 | ||
5887 | ||
5888 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5889 | PyObject *resultobj; | |
5890 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5891 | int result; | |
5892 | PyObject * obj0 = 0 ; | |
5893 | char *kwnames[] = { | |
5894 | (char *) "self", NULL | |
5895 | }; | |
5896 | ||
5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5899 | { | |
5900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5901 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5902 | ||
5903 | wxPyEndAllowThreads(__tstate); | |
5904 | if (PyErr_Occurred()) SWIG_fail; | |
5905 | } | |
994141e6 | 5906 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5907 | return resultobj; |
5908 | fail: | |
5909 | return NULL; | |
5910 | } | |
5911 | ||
5912 | ||
5913 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5914 | PyObject *resultobj; | |
5915 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5916 | int arg2 ; | |
5917 | PyObject * obj0 = 0 ; | |
994141e6 | 5918 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5919 | char *kwnames[] = { |
5920 | (char *) "self",(char *) "pointsize", NULL | |
5921 | }; | |
5922 | ||
994141e6 | 5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5925 | { |
5926 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5927 | if (PyErr_Occurred()) SWIG_fail; | |
5928 | } | |
d14a1e28 RD |
5929 | { |
5930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5931 | (arg1)->SetPointSize(arg2); | |
5932 | ||
5933 | wxPyEndAllowThreads(__tstate); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
5936 | Py_INCREF(Py_None); resultobj = Py_None; | |
5937 | return resultobj; | |
5938 | fail: | |
5939 | return NULL; | |
5940 | } | |
5941 | ||
5942 | ||
5943 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5944 | PyObject *resultobj; | |
5945 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5946 | int arg2 ; | |
5947 | PyObject * obj0 = 0 ; | |
994141e6 | 5948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5949 | char *kwnames[] = { |
5950 | (char *) "self",(char *) "style", NULL | |
5951 | }; | |
5952 | ||
994141e6 | 5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5955 | { |
5956 | arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1); | |
5957 | if (PyErr_Occurred()) SWIG_fail; | |
5958 | } | |
d14a1e28 RD |
5959 | { |
5960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5961 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5962 | ||
5963 | wxPyEndAllowThreads(__tstate); | |
5964 | if (PyErr_Occurred()) SWIG_fail; | |
5965 | } | |
5966 | Py_INCREF(Py_None); resultobj = Py_None; | |
5967 | return resultobj; | |
5968 | fail: | |
5969 | return NULL; | |
5970 | } | |
5971 | ||
5972 | ||
5973 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject *resultobj; | |
5975 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5976 | int arg2 ; | |
5977 | PyObject * obj0 = 0 ; | |
994141e6 | 5978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5979 | char *kwnames[] = { |
5980 | (char *) "self",(char *) "weight", NULL | |
5981 | }; | |
5982 | ||
994141e6 | 5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5985 | { |
5986 | arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1); | |
5987 | if (PyErr_Occurred()) SWIG_fail; | |
5988 | } | |
d14a1e28 RD |
5989 | { |
5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5991 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5992 | ||
5993 | wxPyEndAllowThreads(__tstate); | |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
5995 | } | |
5996 | Py_INCREF(Py_None); resultobj = Py_None; | |
5997 | return resultobj; | |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject *resultobj; | |
6005 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6006 | bool arg2 ; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | PyObject * obj1 = 0 ; | |
6009 | char *kwnames[] = { | |
6010 | (char *) "self",(char *) "underlined", NULL | |
6011 | }; | |
6012 | ||
6013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 6015 | { |
994141e6 | 6016 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
6017 | if (PyErr_Occurred()) SWIG_fail; |
6018 | } | |
d14a1e28 RD |
6019 | { |
6020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6021 | (arg1)->SetUnderlined(arg2); | |
6022 | ||
6023 | wxPyEndAllowThreads(__tstate); | |
6024 | if (PyErr_Occurred()) SWIG_fail; | |
6025 | } | |
6026 | Py_INCREF(Py_None); resultobj = Py_None; | |
6027 | return resultobj; | |
6028 | fail: | |
6029 | return NULL; | |
6030 | } | |
6031 | ||
6032 | ||
6033 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6034 | PyObject *resultobj; | |
6035 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6036 | wxString arg2 ; | |
d14a1e28 RD |
6037 | PyObject * obj0 = 0 ; |
6038 | PyObject * obj1 = 0 ; | |
6039 | char *kwnames[] = { | |
6040 | (char *) "self",(char *) "facename", NULL | |
6041 | }; | |
6042 | ||
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce RD |
6045 | { |
6046 | wxString* sptr = wxString_in_helper(obj1); | |
6047 | if (sptr == NULL) SWIG_fail; | |
6048 | arg2 = *sptr; | |
6049 | delete sptr; | |
6050 | } | |
d14a1e28 RD |
6051 | { |
6052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6053 | (arg1)->SetFaceName(arg2); | |
6054 | ||
6055 | wxPyEndAllowThreads(__tstate); | |
6056 | if (PyErr_Occurred()) SWIG_fail; | |
6057 | } | |
6058 | Py_INCREF(Py_None); resultobj = Py_None; | |
6059 | return resultobj; | |
6060 | fail: | |
6061 | return NULL; | |
6062 | } | |
6063 | ||
6064 | ||
6065 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6066 | PyObject *resultobj; | |
6067 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6068 | int arg2 ; | |
6069 | PyObject * obj0 = 0 ; | |
994141e6 | 6070 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6071 | char *kwnames[] = { |
6072 | (char *) "self",(char *) "family", NULL | |
6073 | }; | |
6074 | ||
994141e6 | 6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6077 | { |
6078 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
d14a1e28 RD |
6081 | { |
6082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6083 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6084 | ||
6085 | wxPyEndAllowThreads(__tstate); | |
6086 | if (PyErr_Occurred()) SWIG_fail; | |
6087 | } | |
6088 | Py_INCREF(Py_None); resultobj = Py_None; | |
6089 | return resultobj; | |
6090 | fail: | |
6091 | return NULL; | |
6092 | } | |
6093 | ||
6094 | ||
6095 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6096 | PyObject *resultobj; | |
6097 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6098 | int arg2 ; | |
6099 | PyObject * obj0 = 0 ; | |
994141e6 | 6100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6101 | char *kwnames[] = { |
6102 | (char *) "self",(char *) "encoding", NULL | |
6103 | }; | |
6104 | ||
994141e6 | 6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6107 | { |
6108 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6109 | if (PyErr_Occurred()) SWIG_fail; | |
6110 | } | |
d14a1e28 RD |
6111 | { |
6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6113 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6114 | ||
6115 | wxPyEndAllowThreads(__tstate); | |
6116 | if (PyErr_Occurred()) SWIG_fail; | |
6117 | } | |
6118 | Py_INCREF(Py_None); resultobj = Py_None; | |
6119 | return resultobj; | |
6120 | fail: | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
6125 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6126 | PyObject *resultobj; | |
6127 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6128 | wxString *arg2 = 0 ; | |
6129 | bool result; | |
e811c8ce | 6130 | bool temp2 = False ; |
d14a1e28 RD |
6131 | PyObject * obj0 = 0 ; |
6132 | PyObject * obj1 = 0 ; | |
6133 | char *kwnames[] = { | |
6134 | (char *) "self",(char *) "s", NULL | |
6135 | }; | |
6136 | ||
6137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6139 | { | |
6140 | arg2 = wxString_in_helper(obj1); | |
6141 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6142 | temp2 = True; |
d14a1e28 RD |
6143 | } |
6144 | { | |
6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6146 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6147 | ||
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
4d5c3d91 | 6151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6152 | { |
6153 | if (temp2) | |
6154 | delete arg2; | |
6155 | } | |
6156 | return resultobj; | |
6157 | fail: | |
6158 | { | |
6159 | if (temp2) | |
6160 | delete arg2; | |
6161 | } | |
6162 | return NULL; | |
6163 | } | |
6164 | ||
6165 | ||
6166 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6167 | PyObject *resultobj; | |
6168 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6169 | wxString result; | |
6170 | PyObject * obj0 = 0 ; | |
6171 | char *kwnames[] = { | |
6172 | (char *) "self", NULL | |
6173 | }; | |
6174 | ||
6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6177 | { | |
6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6179 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6180 | ||
6181 | wxPyEndAllowThreads(__tstate); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
6184 | { | |
6185 | #if wxUSE_UNICODE | |
6186 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6187 | #else | |
6188 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6189 | #endif | |
6190 | } | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
6197 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6198 | PyObject *resultobj; | |
6199 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6200 | wxString result; | |
6201 | PyObject * obj0 = 0 ; | |
6202 | char *kwnames[] = { | |
6203 | (char *) "self", NULL | |
6204 | }; | |
6205 | ||
6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6208 | { | |
6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6210 | result = wxNativeFontInfo___str__(arg1); | |
6211 | ||
6212 | wxPyEndAllowThreads(__tstate); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | } | |
6215 | { | |
6216 | #if wxUSE_UNICODE | |
6217 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6218 | #else | |
6219 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6220 | #endif | |
6221 | } | |
6222 | return resultobj; | |
6223 | fail: | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
6228 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6229 | PyObject *resultobj; | |
6230 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6231 | wxString *arg2 = 0 ; | |
6232 | bool result; | |
e811c8ce | 6233 | bool temp2 = False ; |
d14a1e28 RD |
6234 | PyObject * obj0 = 0 ; |
6235 | PyObject * obj1 = 0 ; | |
6236 | char *kwnames[] = { | |
6237 | (char *) "self",(char *) "s", NULL | |
6238 | }; | |
6239 | ||
6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6242 | { | |
6243 | arg2 = wxString_in_helper(obj1); | |
6244 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6245 | temp2 = True; |
d14a1e28 RD |
6246 | } |
6247 | { | |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6249 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6250 | ||
6251 | wxPyEndAllowThreads(__tstate); | |
6252 | if (PyErr_Occurred()) SWIG_fail; | |
6253 | } | |
4d5c3d91 | 6254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6255 | { |
6256 | if (temp2) | |
6257 | delete arg2; | |
6258 | } | |
6259 | return resultobj; | |
6260 | fail: | |
6261 | { | |
6262 | if (temp2) | |
6263 | delete arg2; | |
6264 | } | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj; | |
6271 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6272 | wxString result; | |
6273 | PyObject * obj0 = 0 ; | |
6274 | char *kwnames[] = { | |
6275 | (char *) "self", NULL | |
6276 | }; | |
6277 | ||
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6280 | { | |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
6287 | { | |
6288 | #if wxUSE_UNICODE | |
6289 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6290 | #else | |
6291 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6292 | #endif | |
6293 | } | |
6294 | return resultobj; | |
6295 | fail: | |
6296 | return NULL; | |
6297 | } | |
6298 | ||
6299 | ||
6300 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6301 | PyObject *obj; | |
6302 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6303 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6304 | Py_INCREF(obj); | |
6305 | return Py_BuildValue((char *)""); | |
6306 | } | |
6307 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6308 | PyObject *resultobj; | |
6309 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6310 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 6311 | bool temp2 = False ; |
d14a1e28 RD |
6312 | PyObject * obj0 = 0 ; |
6313 | PyObject * obj1 = 0 ; | |
6314 | char *kwnames[] = { | |
6315 | (char *) "self",(char *) "facename", NULL | |
6316 | }; | |
6317 | ||
6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
6320 | { |
6321 | arg2 = wxString_in_helper(obj1); | |
6322 | if (arg2 == NULL) SWIG_fail; | |
6323 | temp2 = True; | |
6324 | } | |
196addbf | 6325 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6326 | |
6327 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6328 | { |
6329 | if (temp2) | |
6330 | delete arg2; | |
6331 | } | |
d14a1e28 RD |
6332 | return resultobj; |
6333 | fail: | |
7eae615b RD |
6334 | { |
6335 | if (temp2) | |
6336 | delete arg2; | |
6337 | } | |
d14a1e28 RD |
6338 | return NULL; |
6339 | } | |
6340 | ||
6341 | ||
6342 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6343 | PyObject *resultobj; | |
6344 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6345 | wxString *result; |
d14a1e28 RD |
6346 | PyObject * obj0 = 0 ; |
6347 | char *kwnames[] = { | |
6348 | (char *) "self", NULL | |
6349 | }; | |
6350 | ||
6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 6353 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6354 | |
6355 | { | |
6356 | #if wxUSE_UNICODE | |
196addbf | 6357 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6358 | #else |
196addbf | 6359 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6360 | #endif |
6361 | } | |
6362 | return resultobj; | |
6363 | fail: | |
6364 | return NULL; | |
6365 | } | |
6366 | ||
6367 | ||
6368 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject *resultobj; | |
6370 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6371 | int arg2 ; | |
6372 | PyObject * obj0 = 0 ; | |
994141e6 | 6373 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6374 | char *kwnames[] = { |
6375 | (char *) "self",(char *) "encoding", NULL | |
6376 | }; | |
6377 | ||
994141e6 | 6378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6380 | { |
6381 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6382 | if (PyErr_Occurred()) SWIG_fail; | |
6383 | } | |
d14a1e28 RD |
6384 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6385 | ||
6386 | Py_INCREF(Py_None); resultobj = Py_None; | |
6387 | return resultobj; | |
6388 | fail: | |
6389 | return NULL; | |
6390 | } | |
6391 | ||
6392 | ||
6393 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6394 | PyObject *resultobj; | |
6395 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6396 | int result; | |
6397 | PyObject * obj0 = 0 ; | |
6398 | char *kwnames[] = { | |
6399 | (char *) "self", NULL | |
6400 | }; | |
6401 | ||
6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6404 | result = (int) ((arg1)->encoding); | |
6405 | ||
994141e6 | 6406 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6407 | return resultobj; |
6408 | fail: | |
6409 | return NULL; | |
6410 | } | |
6411 | ||
6412 | ||
6413 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6414 | PyObject *resultobj; | |
6415 | wxNativeEncodingInfo *result; | |
6416 | char *kwnames[] = { | |
6417 | NULL | |
6418 | }; | |
6419 | ||
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6421 | { | |
6422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6423 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6424 | ||
6425 | wxPyEndAllowThreads(__tstate); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
6428 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6429 | return resultobj; | |
6430 | fail: | |
6431 | return NULL; | |
6432 | } | |
6433 | ||
6434 | ||
6435 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6436 | PyObject *resultobj; | |
6437 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6438 | PyObject * obj0 = 0 ; | |
6439 | char *kwnames[] = { | |
6440 | (char *) "self", NULL | |
6441 | }; | |
6442 | ||
6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6445 | { | |
6446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6447 | delete arg1; | |
6448 | ||
6449 | wxPyEndAllowThreads(__tstate); | |
6450 | if (PyErr_Occurred()) SWIG_fail; | |
6451 | } | |
6452 | Py_INCREF(Py_None); resultobj = Py_None; | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | return NULL; | |
6456 | } | |
6457 | ||
6458 | ||
6459 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6460 | PyObject *resultobj; | |
6461 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6462 | wxString *arg2 = 0 ; | |
6463 | bool result; | |
e811c8ce | 6464 | bool temp2 = False ; |
d14a1e28 RD |
6465 | PyObject * obj0 = 0 ; |
6466 | PyObject * obj1 = 0 ; | |
6467 | char *kwnames[] = { | |
6468 | (char *) "self",(char *) "s", NULL | |
6469 | }; | |
6470 | ||
6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6473 | { | |
6474 | arg2 = wxString_in_helper(obj1); | |
6475 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6476 | temp2 = True; |
d14a1e28 RD |
6477 | } |
6478 | { | |
6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6480 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6481 | ||
6482 | wxPyEndAllowThreads(__tstate); | |
6483 | if (PyErr_Occurred()) SWIG_fail; | |
6484 | } | |
4d5c3d91 | 6485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6486 | { |
6487 | if (temp2) | |
6488 | delete arg2; | |
6489 | } | |
6490 | return resultobj; | |
6491 | fail: | |
6492 | { | |
6493 | if (temp2) | |
6494 | delete arg2; | |
6495 | } | |
6496 | return NULL; | |
6497 | } | |
6498 | ||
6499 | ||
6500 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6501 | PyObject *resultobj; | |
6502 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6503 | wxString result; | |
6504 | PyObject * obj0 = 0 ; | |
6505 | char *kwnames[] = { | |
6506 | (char *) "self", NULL | |
6507 | }; | |
6508 | ||
6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6511 | { | |
6512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6513 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6514 | ||
6515 | wxPyEndAllowThreads(__tstate); | |
6516 | if (PyErr_Occurred()) SWIG_fail; | |
6517 | } | |
6518 | { | |
6519 | #if wxUSE_UNICODE | |
6520 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6521 | #else | |
6522 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6523 | #endif | |
6524 | } | |
6525 | return resultobj; | |
6526 | fail: | |
6527 | return NULL; | |
6528 | } | |
6529 | ||
6530 | ||
6531 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6532 | PyObject *obj; | |
6533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6534 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6535 | Py_INCREF(obj); | |
6536 | return Py_BuildValue((char *)""); | |
6537 | } | |
6538 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6539 | PyObject *resultobj; | |
6540 | int arg1 ; | |
6541 | wxNativeEncodingInfo *result; | |
994141e6 | 6542 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6543 | char *kwnames[] = { |
6544 | (char *) "encoding", NULL | |
6545 | }; | |
6546 | ||
994141e6 | 6547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
d14a1e28 | 6548 | { |
994141e6 RD |
6549 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); |
6550 | if (PyErr_Occurred()) SWIG_fail; | |
6551 | } | |
6552 | { | |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
6555 | |
6556 | wxPyEndAllowThreads(__tstate); | |
6557 | if (PyErr_Occurred()) SWIG_fail; | |
6558 | } | |
6559 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6560 | return resultobj; | |
6561 | fail: | |
6562 | return NULL; | |
6563 | } | |
6564 | ||
6565 | ||
6566 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6567 | PyObject *resultobj; | |
6568 | wxNativeEncodingInfo *arg1 = 0 ; | |
6569 | bool result; | |
6570 | PyObject * obj0 = 0 ; | |
6571 | char *kwnames[] = { | |
6572 | (char *) "info", NULL | |
6573 | }; | |
6574 | ||
6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6577 | if (arg1 == NULL) { | |
6578 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6579 | } | |
6580 | { | |
6581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6582 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6583 | ||
6584 | wxPyEndAllowThreads(__tstate); | |
6585 | if (PyErr_Occurred()) SWIG_fail; | |
6586 | } | |
4d5c3d91 | 6587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6588 | return resultobj; |
6589 | fail: | |
6590 | return NULL; | |
6591 | } | |
6592 | ||
6593 | ||
6594 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6595 | PyObject *resultobj; | |
6596 | wxFontMapper *result; | |
6597 | char *kwnames[] = { | |
6598 | NULL | |
6599 | }; | |
6600 | ||
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6602 | { | |
6603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6604 | result = (wxFontMapper *)new wxFontMapper(); | |
6605 | ||
6606 | wxPyEndAllowThreads(__tstate); | |
6607 | if (PyErr_Occurred()) SWIG_fail; | |
6608 | } | |
6609 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6610 | return resultobj; | |
6611 | fail: | |
6612 | return NULL; | |
6613 | } | |
6614 | ||
6615 | ||
6616 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6617 | PyObject *resultobj; | |
6618 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6619 | PyObject * obj0 = 0 ; | |
6620 | char *kwnames[] = { | |
6621 | (char *) "self", NULL | |
6622 | }; | |
6623 | ||
6624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | delete arg1; | |
6629 | ||
6630 | wxPyEndAllowThreads(__tstate); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
6633 | Py_INCREF(Py_None); resultobj = Py_None; | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
6640 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6641 | PyObject *resultobj; | |
6642 | wxFontMapper *result; | |
6643 | char *kwnames[] = { | |
6644 | NULL | |
6645 | }; | |
6646 | ||
6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6648 | { | |
6649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6650 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6651 | ||
6652 | wxPyEndAllowThreads(__tstate); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
6655 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6656 | return resultobj; | |
6657 | fail: | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj; | |
6664 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6665 | wxFontMapper *result; | |
6666 | PyObject * obj0 = 0 ; | |
6667 | char *kwnames[] = { | |
6668 | (char *) "mapper", NULL | |
6669 | }; | |
6670 | ||
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6690 | wxString *arg2 = 0 ; | |
e811c8ce | 6691 | bool arg3 = (bool) True ; |
d14a1e28 | 6692 | int result; |
e811c8ce | 6693 | bool temp2 = False ; |
d14a1e28 RD |
6694 | PyObject * obj0 = 0 ; |
6695 | PyObject * obj1 = 0 ; | |
6696 | PyObject * obj2 = 0 ; | |
6697 | char *kwnames[] = { | |
6698 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6699 | }; | |
6700 | ||
6701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6703 | { | |
6704 | arg2 = wxString_in_helper(obj1); | |
6705 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6706 | temp2 = True; |
d14a1e28 RD |
6707 | } |
6708 | if (obj2) { | |
a41e16b6 | 6709 | { |
994141e6 | 6710 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6711 | if (PyErr_Occurred()) SWIG_fail; |
6712 | } | |
d14a1e28 RD |
6713 | } |
6714 | { | |
6715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6716 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6717 | ||
6718 | wxPyEndAllowThreads(__tstate); | |
6719 | if (PyErr_Occurred()) SWIG_fail; | |
6720 | } | |
994141e6 | 6721 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6722 | { |
6723 | if (temp2) | |
6724 | delete arg2; | |
6725 | } | |
6726 | return resultobj; | |
6727 | fail: | |
6728 | { | |
6729 | if (temp2) | |
6730 | delete arg2; | |
6731 | } | |
6732 | return NULL; | |
6733 | } | |
6734 | ||
6735 | ||
6736 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6737 | PyObject *resultobj; | |
6738 | size_t result; | |
6739 | char *kwnames[] = { | |
6740 | NULL | |
6741 | }; | |
6742 | ||
6743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6744 | { | |
6745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6746 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6747 | ||
6748 | wxPyEndAllowThreads(__tstate); | |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
6750 | } | |
994141e6 | 6751 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6752 | return resultobj; |
6753 | fail: | |
6754 | return NULL; | |
6755 | } | |
6756 | ||
6757 | ||
6758 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6759 | PyObject *resultobj; | |
6760 | size_t arg1 ; | |
6761 | int result; | |
6762 | PyObject * obj0 = 0 ; | |
6763 | char *kwnames[] = { | |
6764 | (char *) "n", NULL | |
6765 | }; | |
6766 | ||
6767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
a41e16b6 | 6768 | { |
994141e6 | 6769 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
6770 | if (PyErr_Occurred()) SWIG_fail; |
6771 | } | |
d14a1e28 RD |
6772 | { |
6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6774 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6775 | ||
6776 | wxPyEndAllowThreads(__tstate); | |
6777 | if (PyErr_Occurred()) SWIG_fail; | |
6778 | } | |
994141e6 | 6779 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6780 | return resultobj; |
6781 | fail: | |
6782 | return NULL; | |
6783 | } | |
6784 | ||
6785 | ||
6786 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6787 | PyObject *resultobj; | |
6788 | int arg1 ; | |
6789 | wxString result; | |
994141e6 | 6790 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6791 | char *kwnames[] = { |
6792 | (char *) "encoding", NULL | |
6793 | }; | |
6794 | ||
994141e6 RD |
6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
6796 | { | |
6797 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
d14a1e28 RD |
6800 | { |
6801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6802 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6803 | ||
6804 | wxPyEndAllowThreads(__tstate); | |
6805 | if (PyErr_Occurred()) SWIG_fail; | |
6806 | } | |
6807 | { | |
6808 | #if wxUSE_UNICODE | |
6809 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6810 | #else | |
6811 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6812 | #endif | |
6813 | } | |
6814 | return resultobj; | |
6815 | fail: | |
6816 | return NULL; | |
6817 | } | |
6818 | ||
6819 | ||
6820 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6821 | PyObject *resultobj; | |
6822 | int arg1 ; | |
6823 | wxString result; | |
994141e6 | 6824 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6825 | char *kwnames[] = { |
6826 | (char *) "encoding", NULL | |
6827 | }; | |
6828 | ||
994141e6 RD |
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
6830 | { | |
6831 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
6832 | if (PyErr_Occurred()) SWIG_fail; | |
6833 | } | |
d14a1e28 RD |
6834 | { |
6835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6836 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6837 | ||
6838 | wxPyEndAllowThreads(__tstate); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
6840 | } | |
6841 | { | |
6842 | #if wxUSE_UNICODE | |
6843 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6844 | #else | |
6845 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6846 | #endif | |
6847 | } | |
6848 | return resultobj; | |
6849 | fail: | |
6850 | return NULL; | |
6851 | } | |
6852 | ||
6853 | ||
6854 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6855 | PyObject *resultobj; | |
6856 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6857 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6858 | PyObject * obj0 = 0 ; | |
6859 | PyObject * obj1 = 0 ; | |
6860 | char *kwnames[] = { | |
6861 | (char *) "self",(char *) "config", NULL | |
6862 | }; | |
6863 | ||
6864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6866 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6867 | { | |
6868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6869 | (arg1)->SetConfig(arg2); | |
6870 | ||
6871 | wxPyEndAllowThreads(__tstate); | |
6872 | if (PyErr_Occurred()) SWIG_fail; | |
6873 | } | |
6874 | Py_INCREF(Py_None); resultobj = Py_None; | |
6875 | return resultobj; | |
6876 | fail: | |
6877 | return NULL; | |
6878 | } | |
6879 | ||
6880 | ||
6881 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6882 | PyObject *resultobj; | |
6883 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6884 | wxString *arg2 = 0 ; | |
e811c8ce | 6885 | bool temp2 = False ; |
d14a1e28 RD |
6886 | PyObject * obj0 = 0 ; |
6887 | PyObject * obj1 = 0 ; | |
6888 | char *kwnames[] = { | |
6889 | (char *) "self",(char *) "prefix", NULL | |
6890 | }; | |
6891 | ||
6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6894 | { | |
6895 | arg2 = wxString_in_helper(obj1); | |
6896 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6897 | temp2 = True; |
d14a1e28 RD |
6898 | } |
6899 | { | |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6901 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
6906 | Py_INCREF(Py_None); resultobj = Py_None; | |
6907 | { | |
6908 | if (temp2) | |
6909 | delete arg2; | |
6910 | } | |
6911 | return resultobj; | |
6912 | fail: | |
6913 | { | |
6914 | if (temp2) | |
6915 | delete arg2; | |
6916 | } | |
6917 | return NULL; | |
6918 | } | |
6919 | ||
6920 | ||
6921 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6922 | PyObject *resultobj; | |
6923 | wxString result; | |
6924 | char *kwnames[] = { | |
6925 | NULL | |
6926 | }; | |
6927 | ||
6928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6929 | { | |
6930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6931 | result = wxFontMapper::GetDefaultConfigPath(); | |
6932 | ||
6933 | wxPyEndAllowThreads(__tstate); | |
6934 | if (PyErr_Occurred()) SWIG_fail; | |
6935 | } | |
6936 | { | |
6937 | #if wxUSE_UNICODE | |
6938 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6939 | #else | |
6940 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6941 | #endif | |
6942 | } | |
6943 | return resultobj; | |
6944 | fail: | |
6945 | return NULL; | |
6946 | } | |
6947 | ||
6948 | ||
6949 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6950 | PyObject *resultobj; | |
6951 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6952 | int arg2 ; | |
6953 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6954 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 6955 | bool arg4 = (bool) True ; |
d14a1e28 | 6956 | PyObject *result; |
e811c8ce | 6957 | bool temp3 = False ; |
d14a1e28 | 6958 | PyObject * obj0 = 0 ; |
994141e6 | 6959 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6960 | PyObject * obj2 = 0 ; |
6961 | PyObject * obj3 = 0 ; | |
6962 | char *kwnames[] = { | |
6963 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6964 | }; | |
6965 | ||
994141e6 | 6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6968 | { |
6969 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
6970 | if (PyErr_Occurred()) SWIG_fail; | |
6971 | } | |
d14a1e28 RD |
6972 | if (obj2) { |
6973 | { | |
6974 | arg3 = wxString_in_helper(obj2); | |
6975 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6976 | temp3 = True; |
d14a1e28 RD |
6977 | } |
6978 | } | |
6979 | if (obj3) { | |
a41e16b6 | 6980 | { |
994141e6 | 6981 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
6982 | if (PyErr_Occurred()) SWIG_fail; |
6983 | } | |
d14a1e28 RD |
6984 | } |
6985 | { | |
6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6987 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6988 | ||
6989 | wxPyEndAllowThreads(__tstate); | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | } | |
6992 | resultobj = result; | |
6993 | { | |
6994 | if (temp3) | |
6995 | delete arg3; | |
6996 | } | |
6997 | return resultobj; | |
6998 | fail: | |
6999 | { | |
7000 | if (temp3) | |
7001 | delete arg3; | |
7002 | } | |
7003 | return NULL; | |
7004 | } | |
7005 | ||
7006 | ||
7007 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7008 | PyObject *resultobj; | |
7009 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7010 | int arg2 ; | |
7011 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7012 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7013 | bool result; | |
e811c8ce | 7014 | bool temp3 = False ; |
d14a1e28 | 7015 | PyObject * obj0 = 0 ; |
994141e6 | 7016 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7017 | PyObject * obj2 = 0 ; |
7018 | char *kwnames[] = { | |
7019 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7020 | }; | |
7021 | ||
994141e6 | 7022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 7023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7024 | { |
7025 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7026 | if (PyErr_Occurred()) SWIG_fail; | |
7027 | } | |
d14a1e28 RD |
7028 | if (obj2) { |
7029 | { | |
7030 | arg3 = wxString_in_helper(obj2); | |
7031 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7032 | temp3 = True; |
d14a1e28 RD |
7033 | } |
7034 | } | |
7035 | { | |
7036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7037 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7038 | ||
7039 | wxPyEndAllowThreads(__tstate); | |
7040 | if (PyErr_Occurred()) SWIG_fail; | |
7041 | } | |
4d5c3d91 | 7042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7043 | { |
7044 | if (temp3) | |
7045 | delete arg3; | |
7046 | } | |
7047 | return resultobj; | |
7048 | fail: | |
7049 | { | |
7050 | if (temp3) | |
7051 | delete arg3; | |
7052 | } | |
7053 | return NULL; | |
7054 | } | |
7055 | ||
7056 | ||
7057 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7058 | PyObject *resultobj; | |
7059 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7060 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7061 | PyObject * obj0 = 0 ; | |
7062 | PyObject * obj1 = 0 ; | |
7063 | char *kwnames[] = { | |
7064 | (char *) "self",(char *) "parent", NULL | |
7065 | }; | |
7066 | ||
7067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7069 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7070 | { | |
7071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7072 | (arg1)->SetDialogParent(arg2); | |
7073 | ||
7074 | wxPyEndAllowThreads(__tstate); | |
7075 | if (PyErr_Occurred()) SWIG_fail; | |
7076 | } | |
7077 | Py_INCREF(Py_None); resultobj = Py_None; | |
7078 | return resultobj; | |
7079 | fail: | |
7080 | return NULL; | |
7081 | } | |
7082 | ||
7083 | ||
7084 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7085 | PyObject *resultobj; | |
7086 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7087 | wxString *arg2 = 0 ; | |
e811c8ce | 7088 | bool temp2 = False ; |
d14a1e28 RD |
7089 | PyObject * obj0 = 0 ; |
7090 | PyObject * obj1 = 0 ; | |
7091 | char *kwnames[] = { | |
7092 | (char *) "self",(char *) "title", NULL | |
7093 | }; | |
7094 | ||
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7097 | { | |
7098 | arg2 = wxString_in_helper(obj1); | |
7099 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7100 | temp2 = True; |
d14a1e28 RD |
7101 | } |
7102 | { | |
7103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7104 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7105 | ||
7106 | wxPyEndAllowThreads(__tstate); | |
7107 | if (PyErr_Occurred()) SWIG_fail; | |
7108 | } | |
7109 | Py_INCREF(Py_None); resultobj = Py_None; | |
7110 | { | |
7111 | if (temp2) | |
7112 | delete arg2; | |
7113 | } | |
7114 | return resultobj; | |
7115 | fail: | |
7116 | { | |
7117 | if (temp2) | |
7118 | delete arg2; | |
7119 | } | |
7120 | return NULL; | |
7121 | } | |
7122 | ||
7123 | ||
7124 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7125 | PyObject *obj; | |
7126 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7127 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7128 | Py_INCREF(obj); | |
7129 | return Py_BuildValue((char *)""); | |
7130 | } | |
7131 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject *resultobj; | |
7133 | int arg1 ; | |
7134 | int arg2 ; | |
7135 | int arg3 ; | |
7136 | int arg4 ; | |
e811c8ce | 7137 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7138 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7139 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7140 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7141 | wxFont *result; | |
e811c8ce | 7142 | bool temp6 = False ; |
994141e6 RD |
7143 | PyObject * obj0 = 0 ; |
7144 | PyObject * obj1 = 0 ; | |
7145 | PyObject * obj2 = 0 ; | |
7146 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7147 | PyObject * obj4 = 0 ; |
7148 | PyObject * obj5 = 0 ; | |
994141e6 | 7149 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7150 | char *kwnames[] = { |
7151 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7152 | }; | |
7153 | ||
994141e6 RD |
7154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
7155 | { | |
7156 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7157 | if (PyErr_Occurred()) SWIG_fail; | |
7158 | } | |
7159 | { | |
7160 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7161 | if (PyErr_Occurred()) SWIG_fail; | |
7162 | } | |
7163 | { | |
7164 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
7167 | { | |
7168 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | } | |
d14a1e28 | 7171 | if (obj4) { |
a41e16b6 | 7172 | { |
994141e6 | 7173 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
7174 | if (PyErr_Occurred()) SWIG_fail; |
7175 | } | |
d14a1e28 RD |
7176 | } |
7177 | if (obj5) { | |
7178 | { | |
7179 | arg6 = wxString_in_helper(obj5); | |
7180 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 7181 | temp6 = True; |
d14a1e28 RD |
7182 | } |
7183 | } | |
994141e6 RD |
7184 | if (obj6) { |
7185 | { | |
7186 | arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6); | |
7187 | if (PyErr_Occurred()) SWIG_fail; | |
7188 | } | |
7189 | } | |
d14a1e28 RD |
7190 | { |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | } | |
7197 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7198 | { | |
7199 | if (temp6) | |
7200 | delete arg6; | |
7201 | } | |
7202 | return resultobj; | |
7203 | fail: | |
7204 | { | |
7205 | if (temp6) | |
7206 | delete arg6; | |
7207 | } | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxFont *arg1 = (wxFont *) 0 ; | |
7215 | PyObject * obj0 = 0 ; | |
7216 | char *kwnames[] = { | |
7217 | (char *) "self", NULL | |
7218 | }; | |
7219 | ||
7220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7222 | { | |
7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7224 | delete arg1; | |
7225 | ||
7226 | wxPyEndAllowThreads(__tstate); | |
7227 | if (PyErr_Occurred()) SWIG_fail; | |
7228 | } | |
7229 | Py_INCREF(Py_None); resultobj = Py_None; | |
7230 | return resultobj; | |
7231 | fail: | |
7232 | return NULL; | |
7233 | } | |
7234 | ||
7235 | ||
7236 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7237 | PyObject *resultobj; | |
7238 | wxNativeFontInfo *arg1 = 0 ; | |
7239 | wxFont *result; | |
7240 | PyObject * obj0 = 0 ; | |
7241 | char *kwnames[] = { | |
7242 | (char *) "info", NULL | |
7243 | }; | |
7244 | ||
7245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7247 | if (arg1 == NULL) { | |
7248 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7249 | } | |
7250 | { | |
7251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7252 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7253 | ||
7254 | wxPyEndAllowThreads(__tstate); | |
7255 | if (PyErr_Occurred()) SWIG_fail; | |
7256 | } | |
7257 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7258 | return resultobj; | |
7259 | fail: | |
7260 | return NULL; | |
7261 | } | |
7262 | ||
7263 | ||
7264 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7265 | PyObject *resultobj; | |
7266 | wxString *arg1 = 0 ; | |
7267 | wxFont *result; | |
e811c8ce | 7268 | bool temp1 = False ; |
d14a1e28 RD |
7269 | PyObject * obj0 = 0 ; |
7270 | char *kwnames[] = { | |
7271 | (char *) "info", NULL | |
7272 | }; | |
7273 | ||
7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7275 | { | |
7276 | arg1 = wxString_in_helper(obj0); | |
7277 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7278 | temp1 = True; |
d14a1e28 RD |
7279 | } |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7288 | { | |
7289 | if (temp1) | |
7290 | delete arg1; | |
7291 | } | |
7292 | return resultobj; | |
7293 | fail: | |
7294 | { | |
7295 | if (temp1) | |
7296 | delete arg1; | |
7297 | } | |
7298 | return NULL; | |
7299 | } | |
7300 | ||
7301 | ||
7302 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7303 | PyObject *resultobj; | |
7304 | int arg1 ; | |
7305 | int arg2 ; | |
7306 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7307 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7308 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7309 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7310 | wxFont *result; | |
e811c8ce | 7311 | bool temp4 = False ; |
994141e6 RD |
7312 | PyObject * obj0 = 0 ; |
7313 | PyObject * obj1 = 0 ; | |
7314 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7315 | PyObject * obj3 = 0 ; |
994141e6 | 7316 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7317 | char *kwnames[] = { |
7318 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7319 | }; | |
7320 | ||
994141e6 RD |
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
7322 | { | |
7323 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7324 | if (PyErr_Occurred()) SWIG_fail; | |
7325 | } | |
7326 | { | |
7327 | arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1); | |
7328 | if (PyErr_Occurred()) SWIG_fail; | |
7329 | } | |
7330 | if (obj2) { | |
7331 | { | |
7332 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7333 | if (PyErr_Occurred()) SWIG_fail; | |
7334 | } | |
7335 | } | |
d14a1e28 RD |
7336 | if (obj3) { |
7337 | { | |
7338 | arg4 = wxString_in_helper(obj3); | |
7339 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7340 | temp4 = True; |
d14a1e28 RD |
7341 | } |
7342 | } | |
994141e6 RD |
7343 | if (obj4) { |
7344 | { | |
7345 | arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4); | |
7346 | if (PyErr_Occurred()) SWIG_fail; | |
7347 | } | |
7348 | } | |
d14a1e28 RD |
7349 | { |
7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7351 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7352 | ||
7353 | wxPyEndAllowThreads(__tstate); | |
7354 | if (PyErr_Occurred()) SWIG_fail; | |
7355 | } | |
7356 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7357 | { | |
7358 | if (temp4) | |
7359 | delete arg4; | |
7360 | } | |
7361 | return resultobj; | |
7362 | fail: | |
7363 | { | |
7364 | if (temp4) | |
7365 | delete arg4; | |
7366 | } | |
7367 | return NULL; | |
7368 | } | |
7369 | ||
7370 | ||
7371 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7372 | PyObject *resultobj; | |
7373 | wxFont *arg1 = (wxFont *) 0 ; | |
7374 | bool result; | |
7375 | PyObject * obj0 = 0 ; | |
7376 | char *kwnames[] = { | |
7377 | (char *) "self", NULL | |
7378 | }; | |
7379 | ||
7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7382 | { | |
7383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7384 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7385 | ||
7386 | wxPyEndAllowThreads(__tstate); | |
7387 | if (PyErr_Occurred()) SWIG_fail; | |
7388 | } | |
4d5c3d91 | 7389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7390 | return resultobj; |
7391 | fail: | |
7392 | return NULL; | |
7393 | } | |
7394 | ||
7395 | ||
7396 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7397 | PyObject *resultobj; | |
7398 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7399 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7400 | bool result; |
7401 | PyObject * obj0 = 0 ; | |
7402 | PyObject * obj1 = 0 ; | |
7403 | char *kwnames[] = { | |
22faec7d | 7404 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7405 | }; |
7406 | ||
7407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7409 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
7410 | { |
7411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7412 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7413 | |
7414 | wxPyEndAllowThreads(__tstate); | |
7415 | if (PyErr_Occurred()) SWIG_fail; | |
7416 | } | |
4d5c3d91 | 7417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7418 | return resultobj; |
7419 | fail: | |
7420 | return NULL; | |
7421 | } | |
7422 | ||
7423 | ||
7424 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7425 | PyObject *resultobj; | |
7426 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7427 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7428 | bool result; |
7429 | PyObject * obj0 = 0 ; | |
7430 | PyObject * obj1 = 0 ; | |
7431 | char *kwnames[] = { | |
22faec7d | 7432 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7433 | }; |
7434 | ||
7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7437 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
7438 | { |
7439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7440 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7441 | |
7442 | wxPyEndAllowThreads(__tstate); | |
7443 | if (PyErr_Occurred()) SWIG_fail; | |
7444 | } | |
4d5c3d91 | 7445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7446 | return resultobj; |
7447 | fail: | |
7448 | return NULL; | |
7449 | } | |
7450 | ||
7451 | ||
7452 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7453 | PyObject *resultobj; | |
7454 | wxFont *arg1 = (wxFont *) 0 ; | |
7455 | int result; | |
7456 | PyObject * obj0 = 0 ; | |
7457 | char *kwnames[] = { | |
7458 | (char *) "self", NULL | |
7459 | }; | |
7460 | ||
7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7463 | { | |
7464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7465 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7466 | ||
7467 | wxPyEndAllowThreads(__tstate); | |
7468 | if (PyErr_Occurred()) SWIG_fail; | |
7469 | } | |
994141e6 | 7470 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7471 | return resultobj; |
7472 | fail: | |
7473 | return NULL; | |
7474 | } | |
7475 | ||
7476 | ||
7477 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7478 | PyObject *resultobj; | |
7479 | wxFont *arg1 = (wxFont *) 0 ; | |
7480 | int result; | |
7481 | PyObject * obj0 = 0 ; | |
7482 | char *kwnames[] = { | |
7483 | (char *) "self", NULL | |
7484 | }; | |
7485 | ||
7486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7488 | { | |
7489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7490 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7491 | ||
7492 | wxPyEndAllowThreads(__tstate); | |
7493 | if (PyErr_Occurred()) SWIG_fail; | |
7494 | } | |
994141e6 | 7495 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7496 | return resultobj; |
7497 | fail: | |
7498 | return NULL; | |
7499 | } | |
7500 | ||
7501 | ||
7502 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7503 | PyObject *resultobj; | |
7504 | wxFont *arg1 = (wxFont *) 0 ; | |
7505 | int result; | |
7506 | PyObject * obj0 = 0 ; | |
7507 | char *kwnames[] = { | |
7508 | (char *) "self", NULL | |
7509 | }; | |
7510 | ||
7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7513 | { | |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7515 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7516 | ||
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
994141e6 | 7520 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7521 | return resultobj; |
7522 | fail: | |
7523 | return NULL; | |
7524 | } | |
7525 | ||
7526 | ||
7527 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7528 | PyObject *resultobj; | |
7529 | wxFont *arg1 = (wxFont *) 0 ; | |
7530 | int result; | |
7531 | PyObject * obj0 = 0 ; | |
7532 | char *kwnames[] = { | |
7533 | (char *) "self", NULL | |
7534 | }; | |
7535 | ||
7536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7538 | { | |
7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7540 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7541 | ||
7542 | wxPyEndAllowThreads(__tstate); | |
7543 | if (PyErr_Occurred()) SWIG_fail; | |
7544 | } | |
994141e6 | 7545 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7546 | return resultobj; |
7547 | fail: | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
7552 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject *resultobj; | |
7554 | wxFont *arg1 = (wxFont *) 0 ; | |
7555 | bool result; | |
7556 | PyObject * obj0 = 0 ; | |
7557 | char *kwnames[] = { | |
7558 | (char *) "self", NULL | |
7559 | }; | |
7560 | ||
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7563 | { | |
7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7565 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7566 | ||
7567 | wxPyEndAllowThreads(__tstate); | |
7568 | if (PyErr_Occurred()) SWIG_fail; | |
7569 | } | |
4d5c3d91 | 7570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7571 | return resultobj; |
7572 | fail: | |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
7577 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7578 | PyObject *resultobj; | |
7579 | wxFont *arg1 = (wxFont *) 0 ; | |
7580 | wxString result; | |
7581 | PyObject * obj0 = 0 ; | |
7582 | char *kwnames[] = { | |
7583 | (char *) "self", NULL | |
7584 | }; | |
7585 | ||
7586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7588 | { | |
7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7590 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7591 | ||
7592 | wxPyEndAllowThreads(__tstate); | |
7593 | if (PyErr_Occurred()) SWIG_fail; | |
7594 | } | |
7595 | { | |
7596 | #if wxUSE_UNICODE | |
7597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7598 | #else | |
7599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7600 | #endif | |
7601 | } | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
7608 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7609 | PyObject *resultobj; | |
7610 | wxFont *arg1 = (wxFont *) 0 ; | |
7611 | int result; | |
7612 | PyObject * obj0 = 0 ; | |
7613 | char *kwnames[] = { | |
7614 | (char *) "self", NULL | |
7615 | }; | |
7616 | ||
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7619 | { | |
7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7621 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7622 | ||
7623 | wxPyEndAllowThreads(__tstate); | |
7624 | if (PyErr_Occurred()) SWIG_fail; | |
7625 | } | |
994141e6 | 7626 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7627 | return resultobj; |
7628 | fail: | |
7629 | return NULL; | |
7630 | } | |
7631 | ||
7632 | ||
7633 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7634 | PyObject *resultobj; | |
7635 | wxFont *arg1 = (wxFont *) 0 ; | |
7636 | wxNativeFontInfo *result; | |
7637 | PyObject * obj0 = 0 ; | |
7638 | char *kwnames[] = { | |
7639 | (char *) "self", NULL | |
7640 | }; | |
7641 | ||
7642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7644 | { | |
7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7646 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7652 | return resultobj; | |
7653 | fail: | |
7654 | return NULL; | |
7655 | } | |
7656 | ||
7657 | ||
7658 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7659 | PyObject *resultobj; | |
7660 | wxFont *arg1 = (wxFont *) 0 ; | |
7661 | bool result; | |
7662 | PyObject * obj0 = 0 ; | |
7663 | char *kwnames[] = { | |
7664 | (char *) "self", NULL | |
7665 | }; | |
7666 | ||
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7672 | ||
7673 | wxPyEndAllowThreads(__tstate); | |
7674 | if (PyErr_Occurred()) SWIG_fail; | |
7675 | } | |
4d5c3d91 | 7676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7677 | return resultobj; |
7678 | fail: | |
7679 | return NULL; | |
7680 | } | |
7681 | ||
7682 | ||
7683 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7684 | PyObject *resultobj; | |
7685 | wxFont *arg1 = (wxFont *) 0 ; | |
7686 | wxString result; | |
7687 | PyObject * obj0 = 0 ; | |
7688 | char *kwnames[] = { | |
7689 | (char *) "self", NULL | |
7690 | }; | |
7691 | ||
7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7694 | { | |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7696 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7697 | ||
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | { | |
7702 | #if wxUSE_UNICODE | |
7703 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7704 | #else | |
7705 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7706 | #endif | |
7707 | } | |
7708 | return resultobj; | |
7709 | fail: | |
7710 | return NULL; | |
7711 | } | |
7712 | ||
7713 | ||
7714 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7715 | PyObject *resultobj; | |
7716 | wxFont *arg1 = (wxFont *) 0 ; | |
7717 | wxString result; | |
7718 | PyObject * obj0 = 0 ; | |
7719 | char *kwnames[] = { | |
7720 | (char *) "self", NULL | |
7721 | }; | |
7722 | ||
7723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7728 | ||
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | { | |
7733 | #if wxUSE_UNICODE | |
7734 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7735 | #else | |
7736 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7737 | #endif | |
7738 | } | |
7739 | return resultobj; | |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
7745 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7746 | PyObject *resultobj; | |
7747 | wxFont *arg1 = (wxFont *) 0 ; | |
7748 | int arg2 ; | |
7749 | PyObject * obj0 = 0 ; | |
994141e6 | 7750 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7751 | char *kwnames[] = { |
7752 | (char *) "self",(char *) "pointSize", NULL | |
7753 | }; | |
7754 | ||
994141e6 | 7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7757 | { |
7758 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7759 | if (PyErr_Occurred()) SWIG_fail; | |
7760 | } | |
d14a1e28 RD |
7761 | { |
7762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7763 | (arg1)->SetPointSize(arg2); | |
7764 | ||
7765 | wxPyEndAllowThreads(__tstate); | |
7766 | if (PyErr_Occurred()) SWIG_fail; | |
7767 | } | |
7768 | Py_INCREF(Py_None); resultobj = Py_None; | |
7769 | return resultobj; | |
7770 | fail: | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
7775 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7776 | PyObject *resultobj; | |
7777 | wxFont *arg1 = (wxFont *) 0 ; | |
7778 | int arg2 ; | |
7779 | PyObject * obj0 = 0 ; | |
994141e6 | 7780 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7781 | char *kwnames[] = { |
7782 | (char *) "self",(char *) "family", NULL | |
7783 | }; | |
7784 | ||
994141e6 | 7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7787 | { |
7788 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7789 | if (PyErr_Occurred()) SWIG_fail; | |
7790 | } | |
d14a1e28 RD |
7791 | { |
7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7793 | (arg1)->SetFamily(arg2); | |
7794 | ||
7795 | wxPyEndAllowThreads(__tstate); | |
7796 | if (PyErr_Occurred()) SWIG_fail; | |
7797 | } | |
7798 | Py_INCREF(Py_None); resultobj = Py_None; | |
7799 | return resultobj; | |
7800 | fail: | |
7801 | return NULL; | |
7802 | } | |
7803 | ||
7804 | ||
7805 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7806 | PyObject *resultobj; | |
7807 | wxFont *arg1 = (wxFont *) 0 ; | |
7808 | int arg2 ; | |
7809 | PyObject * obj0 = 0 ; | |
994141e6 | 7810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7811 | char *kwnames[] = { |
7812 | (char *) "self",(char *) "style", NULL | |
7813 | }; | |
7814 | ||
994141e6 | 7815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7817 | { |
7818 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7819 | if (PyErr_Occurred()) SWIG_fail; | |
7820 | } | |
d14a1e28 RD |
7821 | { |
7822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7823 | (arg1)->SetStyle(arg2); | |
7824 | ||
7825 | wxPyEndAllowThreads(__tstate); | |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
7827 | } | |
7828 | Py_INCREF(Py_None); resultobj = Py_None; | |
7829 | return resultobj; | |
7830 | fail: | |
7831 | return NULL; | |
7832 | } | |
7833 | ||
7834 | ||
7835 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7836 | PyObject *resultobj; | |
7837 | wxFont *arg1 = (wxFont *) 0 ; | |
7838 | int arg2 ; | |
7839 | PyObject * obj0 = 0 ; | |
994141e6 | 7840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7841 | char *kwnames[] = { |
7842 | (char *) "self",(char *) "weight", NULL | |
7843 | }; | |
7844 | ||
994141e6 | 7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7847 | { |
7848 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
d14a1e28 RD |
7851 | { |
7852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7853 | (arg1)->SetWeight(arg2); | |
7854 | ||
7855 | wxPyEndAllowThreads(__tstate); | |
7856 | if (PyErr_Occurred()) SWIG_fail; | |
7857 | } | |
7858 | Py_INCREF(Py_None); resultobj = Py_None; | |
7859 | return resultobj; | |
7860 | fail: | |
7861 | return NULL; | |
7862 | } | |
7863 | ||
7864 | ||
7865 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7866 | PyObject *resultobj; | |
7867 | wxFont *arg1 = (wxFont *) 0 ; | |
7868 | wxString *arg2 = 0 ; | |
e811c8ce | 7869 | bool temp2 = False ; |
d14a1e28 RD |
7870 | PyObject * obj0 = 0 ; |
7871 | PyObject * obj1 = 0 ; | |
7872 | char *kwnames[] = { | |
7873 | (char *) "self",(char *) "faceName", NULL | |
7874 | }; | |
7875 | ||
7876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7878 | { | |
7879 | arg2 = wxString_in_helper(obj1); | |
7880 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7881 | temp2 = True; |
d14a1e28 RD |
7882 | } |
7883 | { | |
7884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7885 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7886 | ||
7887 | wxPyEndAllowThreads(__tstate); | |
7888 | if (PyErr_Occurred()) SWIG_fail; | |
7889 | } | |
7890 | Py_INCREF(Py_None); resultobj = Py_None; | |
7891 | { | |
7892 | if (temp2) | |
7893 | delete arg2; | |
7894 | } | |
7895 | return resultobj; | |
7896 | fail: | |
7897 | { | |
7898 | if (temp2) | |
7899 | delete arg2; | |
7900 | } | |
7901 | return NULL; | |
7902 | } | |
7903 | ||
7904 | ||
7905 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7906 | PyObject *resultobj; | |
7907 | wxFont *arg1 = (wxFont *) 0 ; | |
7908 | bool arg2 ; | |
7909 | PyObject * obj0 = 0 ; | |
7910 | PyObject * obj1 = 0 ; | |
7911 | char *kwnames[] = { | |
7912 | (char *) "self",(char *) "underlined", NULL | |
7913 | }; | |
7914 | ||
7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 7917 | { |
994141e6 | 7918 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
7919 | if (PyErr_Occurred()) SWIG_fail; |
7920 | } | |
d14a1e28 RD |
7921 | { |
7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7923 | (arg1)->SetUnderlined(arg2); | |
7924 | ||
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
7928 | Py_INCREF(Py_None); resultobj = Py_None; | |
7929 | return resultobj; | |
7930 | fail: | |
7931 | return NULL; | |
7932 | } | |
7933 | ||
7934 | ||
7935 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject *resultobj; | |
7937 | wxFont *arg1 = (wxFont *) 0 ; | |
7938 | int arg2 ; | |
7939 | PyObject * obj0 = 0 ; | |
994141e6 | 7940 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7941 | char *kwnames[] = { |
7942 | (char *) "self",(char *) "encoding", NULL | |
7943 | }; | |
7944 | ||
994141e6 | 7945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7947 | { |
7948 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
7949 | if (PyErr_Occurred()) SWIG_fail; | |
7950 | } | |
d14a1e28 RD |
7951 | { |
7952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7953 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7954 | ||
7955 | wxPyEndAllowThreads(__tstate); | |
7956 | if (PyErr_Occurred()) SWIG_fail; | |
7957 | } | |
7958 | Py_INCREF(Py_None); resultobj = Py_None; | |
7959 | return resultobj; | |
7960 | fail: | |
7961 | return NULL; | |
7962 | } | |
7963 | ||
7964 | ||
7965 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7966 | PyObject *resultobj; | |
7967 | wxFont *arg1 = (wxFont *) 0 ; | |
7968 | wxNativeFontInfo *arg2 = 0 ; | |
7969 | PyObject * obj0 = 0 ; | |
7970 | PyObject * obj1 = 0 ; | |
7971 | char *kwnames[] = { | |
7972 | (char *) "self",(char *) "info", NULL | |
7973 | }; | |
7974 | ||
7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7977 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7978 | if (arg2 == NULL) { | |
7979 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7980 | } | |
7981 | { | |
7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7983 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7984 | ||
7985 | wxPyEndAllowThreads(__tstate); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
7987 | } | |
7988 | Py_INCREF(Py_None); resultobj = Py_None; | |
7989 | return resultobj; | |
7990 | fail: | |
7991 | return NULL; | |
7992 | } | |
7993 | ||
7994 | ||
7995 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7996 | PyObject *resultobj; | |
7997 | wxFont *arg1 = (wxFont *) 0 ; | |
7998 | wxString *arg2 = 0 ; | |
e811c8ce | 7999 | bool temp2 = False ; |
d14a1e28 RD |
8000 | PyObject * obj0 = 0 ; |
8001 | PyObject * obj1 = 0 ; | |
8002 | char *kwnames[] = { | |
8003 | (char *) "self",(char *) "info", NULL | |
8004 | }; | |
8005 | ||
8006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
8007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8008 | { | |
8009 | arg2 = wxString_in_helper(obj1); | |
8010 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8011 | temp2 = True; |
d14a1e28 RD |
8012 | } |
8013 | { | |
8014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8015 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8016 | ||
8017 | wxPyEndAllowThreads(__tstate); | |
8018 | if (PyErr_Occurred()) SWIG_fail; | |
8019 | } | |
8020 | Py_INCREF(Py_None); resultobj = Py_None; | |
8021 | { | |
8022 | if (temp2) | |
8023 | delete arg2; | |
8024 | } | |
8025 | return resultobj; | |
8026 | fail: | |
8027 | { | |
8028 | if (temp2) | |
8029 | delete arg2; | |
8030 | } | |
8031 | return NULL; | |
8032 | } | |
8033 | ||
8034 | ||
8035 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8036 | PyObject *resultobj; | |
8037 | wxFont *arg1 = (wxFont *) 0 ; | |
8038 | wxString *arg2 = 0 ; | |
e811c8ce | 8039 | bool temp2 = False ; |
d14a1e28 RD |
8040 | PyObject * obj0 = 0 ; |
8041 | PyObject * obj1 = 0 ; | |
8042 | char *kwnames[] = { | |
8043 | (char *) "self",(char *) "info", NULL | |
8044 | }; | |
8045 | ||
8046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8048 | { | |
8049 | arg2 = wxString_in_helper(obj1); | |
8050 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8051 | temp2 = True; |
d14a1e28 RD |
8052 | } |
8053 | { | |
8054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8055 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8056 | ||
8057 | wxPyEndAllowThreads(__tstate); | |
8058 | if (PyErr_Occurred()) SWIG_fail; | |
8059 | } | |
8060 | Py_INCREF(Py_None); resultobj = Py_None; | |
8061 | { | |
8062 | if (temp2) | |
8063 | delete arg2; | |
8064 | } | |
8065 | return resultobj; | |
8066 | fail: | |
8067 | { | |
8068 | if (temp2) | |
8069 | delete arg2; | |
8070 | } | |
8071 | return NULL; | |
8072 | } | |
8073 | ||
8074 | ||
8075 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8076 | PyObject *resultobj; | |
8077 | wxFont *arg1 = (wxFont *) 0 ; | |
8078 | wxString result; | |
8079 | PyObject * obj0 = 0 ; | |
8080 | char *kwnames[] = { | |
8081 | (char *) "self", NULL | |
8082 | }; | |
8083 | ||
8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8086 | { | |
8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8088 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8089 | ||
8090 | wxPyEndAllowThreads(__tstate); | |
8091 | if (PyErr_Occurred()) SWIG_fail; | |
8092 | } | |
8093 | { | |
8094 | #if wxUSE_UNICODE | |
8095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8096 | #else | |
8097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8098 | #endif | |
8099 | } | |
8100 | return resultobj; | |
8101 | fail: | |
8102 | return NULL; | |
8103 | } | |
8104 | ||
8105 | ||
8106 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8107 | PyObject *resultobj; | |
8108 | wxFont *arg1 = (wxFont *) 0 ; | |
8109 | wxString result; | |
8110 | PyObject * obj0 = 0 ; | |
8111 | char *kwnames[] = { | |
8112 | (char *) "self", NULL | |
8113 | }; | |
8114 | ||
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8117 | { | |
8118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8119 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8120 | ||
8121 | wxPyEndAllowThreads(__tstate); | |
8122 | if (PyErr_Occurred()) SWIG_fail; | |
8123 | } | |
8124 | { | |
8125 | #if wxUSE_UNICODE | |
8126 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8127 | #else | |
8128 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8129 | #endif | |
8130 | } | |
8131 | return resultobj; | |
8132 | fail: | |
8133 | return NULL; | |
8134 | } | |
8135 | ||
8136 | ||
8137 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8138 | PyObject *resultobj; | |
8139 | wxFont *arg1 = (wxFont *) 0 ; | |
8140 | wxString result; | |
8141 | PyObject * obj0 = 0 ; | |
8142 | char *kwnames[] = { | |
8143 | (char *) "self", NULL | |
8144 | }; | |
8145 | ||
8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8148 | { | |
8149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8150 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8151 | ||
8152 | wxPyEndAllowThreads(__tstate); | |
8153 | if (PyErr_Occurred()) SWIG_fail; | |
8154 | } | |
8155 | { | |
8156 | #if wxUSE_UNICODE | |
8157 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8158 | #else | |
8159 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8160 | #endif | |
8161 | } | |
8162 | return resultobj; | |
8163 | fail: | |
8164 | return NULL; | |
8165 | } | |
8166 | ||
8167 | ||
8168 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8169 | PyObject *resultobj; | |
8170 | wxFont *arg1 = (wxFont *) 0 ; | |
e811c8ce | 8171 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8172 | PyObject * obj0 = 0 ; |
8173 | PyObject * obj1 = 0 ; | |
8174 | char *kwnames[] = { | |
8175 | (char *) "self",(char *) "no", NULL | |
8176 | }; | |
8177 | ||
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8180 | if (obj1) { | |
a41e16b6 | 8181 | { |
994141e6 | 8182 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
8183 | if (PyErr_Occurred()) SWIG_fail; |
8184 | } | |
d14a1e28 RD |
8185 | } |
8186 | { | |
8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8188 | (arg1)->SetNoAntiAliasing(arg2); | |
8189 | ||
8190 | wxPyEndAllowThreads(__tstate); | |
8191 | if (PyErr_Occurred()) SWIG_fail; | |
8192 | } | |
8193 | Py_INCREF(Py_None); resultobj = Py_None; | |
8194 | return resultobj; | |
8195 | fail: | |
8196 | return NULL; | |
8197 | } | |
8198 | ||
8199 | ||
8200 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8201 | PyObject *resultobj; | |
8202 | wxFont *arg1 = (wxFont *) 0 ; | |
8203 | bool result; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | char *kwnames[] = { | |
8206 | (char *) "self", NULL | |
8207 | }; | |
8208 | ||
8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8211 | { | |
8212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8213 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8214 | ||
8215 | wxPyEndAllowThreads(__tstate); | |
8216 | if (PyErr_Occurred()) SWIG_fail; | |
8217 | } | |
4d5c3d91 | 8218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8219 | return resultobj; |
8220 | fail: | |
8221 | return NULL; | |
8222 | } | |
8223 | ||
8224 | ||
8225 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8226 | PyObject *resultobj; | |
8227 | int result; | |
8228 | char *kwnames[] = { | |
8229 | NULL | |
8230 | }; | |
8231 | ||
8232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8233 | { | |
8234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8235 | result = (int)wxFont::GetDefaultEncoding(); | |
8236 | ||
8237 | wxPyEndAllowThreads(__tstate); | |
8238 | if (PyErr_Occurred()) SWIG_fail; | |
8239 | } | |
994141e6 | 8240 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8241 | return resultobj; |
8242 | fail: | |
8243 | return NULL; | |
8244 | } | |
8245 | ||
8246 | ||
8247 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8248 | PyObject *resultobj; | |
8249 | int arg1 ; | |
994141e6 | 8250 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8251 | char *kwnames[] = { |
8252 | (char *) "encoding", NULL | |
8253 | }; | |
8254 | ||
994141e6 RD |
8255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
8256 | { | |
8257 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
8259 | } | |
d14a1e28 RD |
8260 | { |
8261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8262 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8263 | ||
8264 | wxPyEndAllowThreads(__tstate); | |
8265 | if (PyErr_Occurred()) SWIG_fail; | |
8266 | } | |
8267 | Py_INCREF(Py_None); resultobj = Py_None; | |
8268 | return resultobj; | |
8269 | fail: | |
8270 | return NULL; | |
8271 | } | |
8272 | ||
8273 | ||
8274 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8275 | PyObject *obj; | |
8276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8277 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8278 | Py_INCREF(obj); | |
8279 | return Py_BuildValue((char *)""); | |
8280 | } | |
8281 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8282 | PyObject *resultobj; | |
8283 | wxPyFontEnumerator *result; | |
8284 | char *kwnames[] = { | |
8285 | NULL | |
8286 | }; | |
8287 | ||
8288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8289 | { | |
8290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8291 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8292 | ||
8293 | wxPyEndAllowThreads(__tstate); | |
8294 | if (PyErr_Occurred()) SWIG_fail; | |
8295 | } | |
8296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8297 | return resultobj; | |
8298 | fail: | |
8299 | return NULL; | |
8300 | } | |
8301 | ||
8302 | ||
8303 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8304 | PyObject *resultobj; | |
8305 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8306 | PyObject * obj0 = 0 ; | |
8307 | char *kwnames[] = { | |
8308 | (char *) "self", NULL | |
8309 | }; | |
8310 | ||
8311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8313 | { | |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | delete arg1; | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | Py_INCREF(Py_None); resultobj = Py_None; | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
8327 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8328 | PyObject *resultobj; | |
8329 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8330 | PyObject *arg2 = (PyObject *) 0 ; | |
8331 | PyObject *arg3 = (PyObject *) 0 ; | |
8332 | bool arg4 ; | |
8333 | PyObject * obj0 = 0 ; | |
8334 | PyObject * obj1 = 0 ; | |
8335 | PyObject * obj2 = 0 ; | |
8336 | PyObject * obj3 = 0 ; | |
8337 | char *kwnames[] = { | |
8338 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8339 | }; | |
8340 | ||
8341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8343 | arg2 = obj1; | |
8344 | arg3 = obj2; | |
a41e16b6 | 8345 | { |
994141e6 | 8346 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
8347 | if (PyErr_Occurred()) SWIG_fail; |
8348 | } | |
d14a1e28 RD |
8349 | { |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8352 | ||
8353 | wxPyEndAllowThreads(__tstate); | |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
8355 | } | |
8356 | Py_INCREF(Py_None); resultobj = Py_None; | |
8357 | return resultobj; | |
8358 | fail: | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
8363 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8366 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
e811c8ce | 8367 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8368 | bool result; |
8369 | PyObject * obj0 = 0 ; | |
994141e6 | 8370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8371 | PyObject * obj2 = 0 ; |
8372 | char *kwnames[] = { | |
8373 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8374 | }; | |
8375 | ||
994141e6 | 8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8378 | if (obj1) { |
8379 | { | |
8380 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
8381 | if (PyErr_Occurred()) SWIG_fail; | |
8382 | } | |
8383 | } | |
d14a1e28 | 8384 | if (obj2) { |
a41e16b6 | 8385 | { |
994141e6 | 8386 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
8387 | if (PyErr_Occurred()) SWIG_fail; |
8388 | } | |
d14a1e28 RD |
8389 | } |
8390 | { | |
8391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8392 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8393 | ||
8394 | wxPyEndAllowThreads(__tstate); | |
8395 | if (PyErr_Occurred()) SWIG_fail; | |
8396 | } | |
4d5c3d91 | 8397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8398 | return resultobj; |
8399 | fail: | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
8404 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8405 | PyObject *resultobj; | |
8406 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8407 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8408 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8409 | bool result; | |
e811c8ce | 8410 | bool temp2 = False ; |
d14a1e28 RD |
8411 | PyObject * obj0 = 0 ; |
8412 | PyObject * obj1 = 0 ; | |
8413 | char *kwnames[] = { | |
8414 | (char *) "self",(char *) "facename", NULL | |
8415 | }; | |
8416 | ||
8417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8419 | if (obj1) { | |
8420 | { | |
8421 | arg2 = wxString_in_helper(obj1); | |
8422 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8423 | temp2 = True; |
d14a1e28 RD |
8424 | } |
8425 | } | |
8426 | { | |
8427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8428 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8429 | ||
8430 | wxPyEndAllowThreads(__tstate); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | } | |
4d5c3d91 | 8433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8434 | { |
8435 | if (temp2) | |
8436 | delete arg2; | |
8437 | } | |
8438 | return resultobj; | |
8439 | fail: | |
8440 | { | |
8441 | if (temp2) | |
8442 | delete arg2; | |
8443 | } | |
8444 | return NULL; | |
8445 | } | |
8446 | ||
8447 | ||
8448 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8449 | PyObject *resultobj; | |
8450 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8451 | PyObject *result; | |
8452 | PyObject * obj0 = 0 ; | |
8453 | char *kwnames[] = { | |
8454 | (char *) "self", NULL | |
8455 | }; | |
8456 | ||
8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8459 | { | |
8460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8461 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8462 | ||
8463 | wxPyEndAllowThreads(__tstate); | |
8464 | if (PyErr_Occurred()) SWIG_fail; | |
8465 | } | |
8466 | resultobj = result; | |
8467 | return resultobj; | |
8468 | fail: | |
8469 | return NULL; | |
8470 | } | |
8471 | ||
8472 | ||
8473 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8474 | PyObject *resultobj; | |
8475 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8476 | PyObject *result; | |
8477 | PyObject * obj0 = 0 ; | |
8478 | char *kwnames[] = { | |
8479 | (char *) "self", NULL | |
8480 | }; | |
8481 | ||
8482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8484 | { | |
8485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8486 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8487 | ||
8488 | wxPyEndAllowThreads(__tstate); | |
8489 | if (PyErr_Occurred()) SWIG_fail; | |
8490 | } | |
8491 | resultobj = result; | |
8492 | return resultobj; | |
8493 | fail: | |
8494 | return NULL; | |
8495 | } | |
8496 | ||
8497 | ||
8498 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8499 | PyObject *obj; | |
8500 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8501 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8502 | Py_INCREF(obj); | |
8503 | return Py_BuildValue((char *)""); | |
8504 | } | |
8505 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject *resultobj; | |
8507 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8508 | int arg2 ; | |
8509 | PyObject * obj0 = 0 ; | |
994141e6 | 8510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8511 | char *kwnames[] = { |
8512 | (char *) "self",(char *) "Language", NULL | |
8513 | }; | |
8514 | ||
994141e6 | 8515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8517 | { |
8518 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8519 | if (PyErr_Occurred()) SWIG_fail; | |
8520 | } | |
d14a1e28 RD |
8521 | if (arg1) (arg1)->Language = arg2; |
8522 | ||
8523 | Py_INCREF(Py_None); resultobj = Py_None; | |
8524 | return resultobj; | |
8525 | fail: | |
8526 | return NULL; | |
8527 | } | |
8528 | ||
8529 | ||
8530 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8531 | PyObject *resultobj; | |
8532 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8533 | int result; | |
8534 | PyObject * obj0 = 0 ; | |
8535 | char *kwnames[] = { | |
8536 | (char *) "self", NULL | |
8537 | }; | |
8538 | ||
8539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8541 | result = (int) ((arg1)->Language); | |
8542 | ||
994141e6 | 8543 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8544 | return resultobj; |
8545 | fail: | |
8546 | return NULL; | |
8547 | } | |
8548 | ||
8549 | ||
8550 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8551 | PyObject *resultobj; | |
8552 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8553 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8554 | bool temp2 = False ; |
d14a1e28 RD |
8555 | PyObject * obj0 = 0 ; |
8556 | PyObject * obj1 = 0 ; | |
8557 | char *kwnames[] = { | |
8558 | (char *) "self",(char *) "CanonicalName", NULL | |
8559 | }; | |
8560 | ||
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8563 | { |
8564 | arg2 = wxString_in_helper(obj1); | |
8565 | if (arg2 == NULL) SWIG_fail; | |
8566 | temp2 = True; | |
8567 | } | |
196addbf | 8568 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8569 | |
8570 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8571 | { |
8572 | if (temp2) | |
8573 | delete arg2; | |
8574 | } | |
d14a1e28 RD |
8575 | return resultobj; |
8576 | fail: | |
7eae615b RD |
8577 | { |
8578 | if (temp2) | |
8579 | delete arg2; | |
8580 | } | |
d14a1e28 RD |
8581 | return NULL; |
8582 | } | |
8583 | ||
8584 | ||
8585 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8586 | PyObject *resultobj; | |
8587 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8588 | wxString *result; |
d14a1e28 RD |
8589 | PyObject * obj0 = 0 ; |
8590 | char *kwnames[] = { | |
8591 | (char *) "self", NULL | |
8592 | }; | |
8593 | ||
8594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8596 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8597 | |
8598 | { | |
8599 | #if wxUSE_UNICODE | |
196addbf | 8600 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8601 | #else |
196addbf | 8602 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8603 | #endif |
8604 | } | |
8605 | return resultobj; | |
8606 | fail: | |
8607 | return NULL; | |
8608 | } | |
8609 | ||
8610 | ||
8611 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8612 | PyObject *resultobj; | |
8613 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8614 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8615 | bool temp2 = False ; |
d14a1e28 RD |
8616 | PyObject * obj0 = 0 ; |
8617 | PyObject * obj1 = 0 ; | |
8618 | char *kwnames[] = { | |
8619 | (char *) "self",(char *) "Description", NULL | |
8620 | }; | |
8621 | ||
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
8624 | { |
8625 | arg2 = wxString_in_helper(obj1); | |
8626 | if (arg2 == NULL) SWIG_fail; | |
8627 | temp2 = True; | |
8628 | } | |
196addbf | 8629 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8630 | |
8631 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8632 | { |
8633 | if (temp2) | |
8634 | delete arg2; | |
8635 | } | |
d14a1e28 RD |
8636 | return resultobj; |
8637 | fail: | |
7eae615b RD |
8638 | { |
8639 | if (temp2) | |
8640 | delete arg2; | |
8641 | } | |
d14a1e28 RD |
8642 | return NULL; |
8643 | } | |
8644 | ||
8645 | ||
8646 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8647 | PyObject *resultobj; | |
8648 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8649 | wxString *result; |
d14a1e28 RD |
8650 | PyObject * obj0 = 0 ; |
8651 | char *kwnames[] = { | |
8652 | (char *) "self", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 8657 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8658 | |
8659 | { | |
8660 | #if wxUSE_UNICODE | |
196addbf | 8661 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8662 | #else |
196addbf | 8663 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8664 | #endif |
8665 | } | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
8672 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8673 | PyObject *obj; | |
8674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8675 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8676 | Py_INCREF(obj); | |
8677 | return Py_BuildValue((char *)""); | |
8678 | } | |
8679 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8680 | PyObject *resultobj; | |
8681 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8682 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8683 | wxLocale *result; | |
994141e6 RD |
8684 | PyObject * obj0 = 0 ; |
8685 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8686 | char *kwnames[] = { |
8687 | (char *) "language",(char *) "flags", NULL | |
8688 | }; | |
8689 | ||
994141e6 RD |
8690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
8691 | if (obj0) { | |
8692 | { | |
8693 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | } | |
8697 | if (obj1) { | |
8698 | { | |
8699 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
8702 | } | |
d14a1e28 RD |
8703 | { |
8704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8705 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8706 | ||
8707 | wxPyEndAllowThreads(__tstate); | |
8708 | if (PyErr_Occurred()) SWIG_fail; | |
8709 | } | |
8710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | return NULL; | |
8714 | } | |
8715 | ||
8716 | ||
8717 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8718 | PyObject *resultobj; | |
8719 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8720 | PyObject * obj0 = 0 ; | |
8721 | char *kwnames[] = { | |
8722 | (char *) "self", NULL | |
8723 | }; | |
8724 | ||
8725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8727 | { | |
8728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8729 | delete arg1; | |
8730 | ||
8731 | wxPyEndAllowThreads(__tstate); | |
8732 | if (PyErr_Occurred()) SWIG_fail; | |
8733 | } | |
8734 | Py_INCREF(Py_None); resultobj = Py_None; | |
8735 | return resultobj; | |
8736 | fail: | |
8737 | return NULL; | |
8738 | } | |
8739 | ||
8740 | ||
8741 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8742 | PyObject *resultobj; | |
8743 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8744 | wxString *arg2 = 0 ; | |
8745 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8746 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8747 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8748 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
e811c8ce RD |
8749 | bool arg5 = (bool) True ; |
8750 | bool arg6 = (bool) False ; | |
d14a1e28 | 8751 | bool result; |
e811c8ce RD |
8752 | bool temp2 = False ; |
8753 | bool temp3 = False ; | |
8754 | bool temp4 = False ; | |
d14a1e28 RD |
8755 | PyObject * obj0 = 0 ; |
8756 | PyObject * obj1 = 0 ; | |
8757 | PyObject * obj2 = 0 ; | |
8758 | PyObject * obj3 = 0 ; | |
8759 | PyObject * obj4 = 0 ; | |
8760 | PyObject * obj5 = 0 ; | |
8761 | char *kwnames[] = { | |
8762 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8763 | }; | |
8764 | ||
8765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8767 | { | |
8768 | arg2 = wxString_in_helper(obj1); | |
8769 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8770 | temp2 = True; |
d14a1e28 RD |
8771 | } |
8772 | if (obj2) { | |
8773 | { | |
8774 | arg3 = wxString_in_helper(obj2); | |
8775 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8776 | temp3 = True; |
d14a1e28 RD |
8777 | } |
8778 | } | |
8779 | if (obj3) { | |
8780 | { | |
8781 | arg4 = wxString_in_helper(obj3); | |
8782 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8783 | temp4 = True; |
d14a1e28 RD |
8784 | } |
8785 | } | |
8786 | if (obj4) { | |
a41e16b6 | 8787 | { |
994141e6 | 8788 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
8789 | if (PyErr_Occurred()) SWIG_fail; |
8790 | } | |
d14a1e28 RD |
8791 | } |
8792 | if (obj5) { | |
a41e16b6 | 8793 | { |
994141e6 | 8794 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
a41e16b6 RD |
8795 | if (PyErr_Occurred()) SWIG_fail; |
8796 | } | |
d14a1e28 RD |
8797 | } |
8798 | { | |
8799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8800 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8801 | ||
8802 | wxPyEndAllowThreads(__tstate); | |
8803 | if (PyErr_Occurred()) SWIG_fail; | |
8804 | } | |
4d5c3d91 | 8805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8806 | { |
8807 | if (temp2) | |
8808 | delete arg2; | |
8809 | } | |
8810 | { | |
8811 | if (temp3) | |
8812 | delete arg3; | |
8813 | } | |
8814 | { | |
8815 | if (temp4) | |
8816 | delete arg4; | |
8817 | } | |
8818 | return resultobj; | |
8819 | fail: | |
8820 | { | |
8821 | if (temp2) | |
8822 | delete arg2; | |
8823 | } | |
8824 | { | |
8825 | if (temp3) | |
8826 | delete arg3; | |
8827 | } | |
8828 | { | |
8829 | if (temp4) | |
8830 | delete arg4; | |
8831 | } | |
8832 | return NULL; | |
8833 | } | |
8834 | ||
8835 | ||
8836 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8837 | PyObject *resultobj; | |
8838 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8839 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8840 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8841 | bool result; | |
8842 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8843 | PyObject * obj1 = 0 ; |
8844 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8845 | char *kwnames[] = { |
8846 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8847 | }; | |
8848 | ||
994141e6 | 8849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8851 | if (obj1) { |
8852 | { | |
8853 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8854 | if (PyErr_Occurred()) SWIG_fail; | |
8855 | } | |
8856 | } | |
8857 | if (obj2) { | |
8858 | { | |
8859 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8860 | if (PyErr_Occurred()) SWIG_fail; | |
8861 | } | |
8862 | } | |
d14a1e28 RD |
8863 | { |
8864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8865 | result = (bool)(arg1)->Init(arg2,arg3); | |
8866 | ||
8867 | wxPyEndAllowThreads(__tstate); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | } | |
4d5c3d91 | 8870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8871 | return resultobj; |
8872 | fail: | |
8873 | return NULL; | |
8874 | } | |
8875 | ||
8876 | ||
8877 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8878 | PyObject *resultobj; | |
8879 | int result; | |
8880 | char *kwnames[] = { | |
8881 | NULL | |
8882 | }; | |
8883 | ||
8884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8885 | { | |
8886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8887 | result = (int)wxLocale::GetSystemLanguage(); | |
8888 | ||
8889 | wxPyEndAllowThreads(__tstate); | |
8890 | if (PyErr_Occurred()) SWIG_fail; | |
8891 | } | |
994141e6 | 8892 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8893 | return resultobj; |
8894 | fail: | |
8895 | return NULL; | |
8896 | } | |
8897 | ||
8898 | ||
8899 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8900 | PyObject *resultobj; | |
8901 | int result; | |
8902 | char *kwnames[] = { | |
8903 | NULL | |
8904 | }; | |
8905 | ||
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8907 | { | |
8908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8909 | result = (int)wxLocale::GetSystemEncoding(); | |
8910 | ||
8911 | wxPyEndAllowThreads(__tstate); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
994141e6 | 8914 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8915 | return resultobj; |
8916 | fail: | |
8917 | return NULL; | |
8918 | } | |
8919 | ||
8920 | ||
8921 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8922 | PyObject *resultobj; | |
8923 | wxString result; | |
8924 | char *kwnames[] = { | |
8925 | NULL | |
8926 | }; | |
8927 | ||
8928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8929 | { | |
8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8931 | result = wxLocale::GetSystemEncodingName(); | |
8932 | ||
8933 | wxPyEndAllowThreads(__tstate); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | } | |
8936 | { | |
8937 | #if wxUSE_UNICODE | |
8938 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8939 | #else | |
8940 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8941 | #endif | |
8942 | } | |
8943 | return resultobj; | |
8944 | fail: | |
8945 | return NULL; | |
8946 | } | |
8947 | ||
8948 | ||
8949 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8950 | PyObject *resultobj; | |
8951 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8952 | bool result; | |
8953 | PyObject * obj0 = 0 ; | |
8954 | char *kwnames[] = { | |
8955 | (char *) "self", NULL | |
8956 | }; | |
8957 | ||
8958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8960 | { | |
8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8962 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8963 | ||
8964 | wxPyEndAllowThreads(__tstate); | |
8965 | if (PyErr_Occurred()) SWIG_fail; | |
8966 | } | |
4d5c3d91 | 8967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8968 | return resultobj; |
8969 | fail: | |
8970 | return NULL; | |
8971 | } | |
8972 | ||
8973 | ||
8974 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8975 | PyObject *resultobj; | |
8976 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8977 | wxString result; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | char *kwnames[] = { | |
8980 | (char *) "self", NULL | |
8981 | }; | |
8982 | ||
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8985 | { | |
8986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8987 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8988 | ||
8989 | wxPyEndAllowThreads(__tstate); | |
8990 | if (PyErr_Occurred()) SWIG_fail; | |
8991 | } | |
8992 | { | |
8993 | #if wxUSE_UNICODE | |
8994 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8995 | #else | |
8996 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8997 | #endif | |
8998 | } | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj; | |
9007 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9008 | int result; | |
9009 | PyObject * obj0 = 0 ; | |
9010 | char *kwnames[] = { | |
9011 | (char *) "self", NULL | |
9012 | }; | |
9013 | ||
9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9016 | { | |
9017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9018 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9019 | ||
9020 | wxPyEndAllowThreads(__tstate); | |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
994141e6 | 9023 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9024 | return resultobj; |
9025 | fail: | |
9026 | return NULL; | |
9027 | } | |
9028 | ||
9029 | ||
9030 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9031 | PyObject *resultobj; | |
9032 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9033 | wxString result; | |
9034 | PyObject * obj0 = 0 ; | |
9035 | char *kwnames[] = { | |
9036 | (char *) "self", NULL | |
9037 | }; | |
9038 | ||
9039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9041 | { | |
9042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9043 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9044 | ||
9045 | wxPyEndAllowThreads(__tstate); | |
9046 | if (PyErr_Occurred()) SWIG_fail; | |
9047 | } | |
9048 | { | |
9049 | #if wxUSE_UNICODE | |
9050 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9051 | #else | |
9052 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9053 | #endif | |
9054 | } | |
9055 | return resultobj; | |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj; | |
9063 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9064 | wxString result; | |
9065 | PyObject * obj0 = 0 ; | |
9066 | char *kwnames[] = { | |
9067 | (char *) "self", NULL | |
9068 | }; | |
9069 | ||
9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9072 | { | |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9074 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9075 | ||
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | { | |
9080 | #if wxUSE_UNICODE | |
9081 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9082 | #else | |
9083 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9084 | #endif | |
9085 | } | |
9086 | return resultobj; | |
9087 | fail: | |
9088 | return NULL; | |
9089 | } | |
9090 | ||
9091 | ||
9092 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject *resultobj; | |
9094 | wxString *arg1 = 0 ; | |
e811c8ce | 9095 | bool temp1 = False ; |
d14a1e28 RD |
9096 | PyObject * obj0 = 0 ; |
9097 | char *kwnames[] = { | |
9098 | (char *) "prefix", NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9102 | { | |
9103 | arg1 = wxString_in_helper(obj0); | |
9104 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9105 | temp1 = True; |
d14a1e28 RD |
9106 | } |
9107 | { | |
9108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9109 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9110 | ||
9111 | wxPyEndAllowThreads(__tstate); | |
9112 | if (PyErr_Occurred()) SWIG_fail; | |
9113 | } | |
9114 | Py_INCREF(Py_None); resultobj = Py_None; | |
9115 | { | |
9116 | if (temp1) | |
9117 | delete arg1; | |
9118 | } | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | { | |
9122 | if (temp1) | |
9123 | delete arg1; | |
9124 | } | |
9125 | return NULL; | |
9126 | } | |
9127 | ||
9128 | ||
9129 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9130 | PyObject *resultobj; | |
9131 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9132 | wxString *arg2 = 0 ; | |
9133 | bool result; | |
e811c8ce | 9134 | bool temp2 = False ; |
d14a1e28 RD |
9135 | PyObject * obj0 = 0 ; |
9136 | PyObject * obj1 = 0 ; | |
9137 | char *kwnames[] = { | |
9138 | (char *) "self",(char *) "szDomain", NULL | |
9139 | }; | |
9140 | ||
9141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9143 | { | |
9144 | arg2 = wxString_in_helper(obj1); | |
9145 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9146 | temp2 = True; |
d14a1e28 RD |
9147 | } |
9148 | { | |
9149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9150 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9151 | ||
9152 | wxPyEndAllowThreads(__tstate); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | } | |
4d5c3d91 | 9155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9156 | { |
9157 | if (temp2) | |
9158 | delete arg2; | |
9159 | } | |
9160 | return resultobj; | |
9161 | fail: | |
9162 | { | |
9163 | if (temp2) | |
9164 | delete arg2; | |
9165 | } | |
9166 | return NULL; | |
9167 | } | |
9168 | ||
9169 | ||
9170 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject *resultobj; | |
9172 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9173 | wxString *arg2 = 0 ; | |
9174 | bool result; | |
e811c8ce | 9175 | bool temp2 = False ; |
d14a1e28 RD |
9176 | PyObject * obj0 = 0 ; |
9177 | PyObject * obj1 = 0 ; | |
9178 | char *kwnames[] = { | |
9179 | (char *) "self",(char *) "szDomain", NULL | |
9180 | }; | |
9181 | ||
9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9184 | { | |
9185 | arg2 = wxString_in_helper(obj1); | |
9186 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9187 | temp2 = True; |
d14a1e28 RD |
9188 | } |
9189 | { | |
9190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9191 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9192 | ||
9193 | wxPyEndAllowThreads(__tstate); | |
9194 | if (PyErr_Occurred()) SWIG_fail; | |
9195 | } | |
4d5c3d91 | 9196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9197 | { |
9198 | if (temp2) | |
9199 | delete arg2; | |
9200 | } | |
9201 | return resultobj; | |
9202 | fail: | |
9203 | { | |
9204 | if (temp2) | |
9205 | delete arg2; | |
9206 | } | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
9211 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9212 | PyObject *resultobj; | |
9213 | int arg1 ; | |
9214 | wxLanguageInfo *result; | |
994141e6 | 9215 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9216 | char *kwnames[] = { |
9217 | (char *) "lang", NULL | |
9218 | }; | |
9219 | ||
994141e6 RD |
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
9221 | { | |
9222 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
d14a1e28 RD |
9225 | { |
9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9227 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9228 | ||
9229 | wxPyEndAllowThreads(__tstate); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
9231 | } | |
9232 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9233 | return resultobj; | |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
9239 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9240 | PyObject *resultobj; | |
9241 | int arg1 ; | |
9242 | wxString result; | |
994141e6 | 9243 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9244 | char *kwnames[] = { |
9245 | (char *) "lang", NULL | |
9246 | }; | |
9247 | ||
994141e6 RD |
9248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
9249 | { | |
9250 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9251 | if (PyErr_Occurred()) SWIG_fail; | |
9252 | } | |
d14a1e28 RD |
9253 | { |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9255 | result = wxLocale::GetLanguageName(arg1); | |
9256 | ||
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
9260 | { | |
9261 | #if wxUSE_UNICODE | |
9262 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9263 | #else | |
9264 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9265 | #endif | |
9266 | } | |
9267 | return resultobj; | |
9268 | fail: | |
9269 | return NULL; | |
9270 | } | |
9271 | ||
9272 | ||
9273 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9274 | PyObject *resultobj; | |
9275 | wxString *arg1 = 0 ; | |
9276 | wxLanguageInfo *result; | |
e811c8ce | 9277 | bool temp1 = False ; |
d14a1e28 RD |
9278 | PyObject * obj0 = 0 ; |
9279 | char *kwnames[] = { | |
9280 | (char *) "locale", NULL | |
9281 | }; | |
9282 | ||
9283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9284 | { | |
9285 | arg1 = wxString_in_helper(obj0); | |
9286 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9287 | temp1 = True; |
d14a1e28 RD |
9288 | } |
9289 | { | |
9290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9291 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9292 | ||
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
9296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
9297 | { | |
9298 | if (temp1) | |
9299 | delete arg1; | |
9300 | } | |
9301 | return resultobj; | |
9302 | fail: | |
9303 | { | |
9304 | if (temp1) | |
9305 | delete arg1; | |
9306 | } | |
9307 | return NULL; | |
9308 | } | |
9309 | ||
9310 | ||
9311 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9312 | PyObject *resultobj; | |
9313 | wxLanguageInfo *arg1 = 0 ; | |
9314 | PyObject * obj0 = 0 ; | |
9315 | char *kwnames[] = { | |
9316 | (char *) "info", NULL | |
9317 | }; | |
9318 | ||
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
9320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9321 | if (arg1 == NULL) { | |
9322 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9323 | } | |
9324 | { | |
9325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9326 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9327 | ||
9328 | wxPyEndAllowThreads(__tstate); | |
9329 | if (PyErr_Occurred()) SWIG_fail; | |
9330 | } | |
9331 | Py_INCREF(Py_None); resultobj = Py_None; | |
9332 | return resultobj; | |
9333 | fail: | |
9334 | return NULL; | |
9335 | } | |
9336 | ||
9337 | ||
9338 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9339 | PyObject *resultobj; | |
9340 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9341 | wxString *arg2 = 0 ; | |
9342 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9343 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9344 | wxString result; | |
e811c8ce RD |
9345 | bool temp2 = False ; |
9346 | bool temp3 = False ; | |
d14a1e28 RD |
9347 | PyObject * obj0 = 0 ; |
9348 | PyObject * obj1 = 0 ; | |
9349 | PyObject * obj2 = 0 ; | |
9350 | char *kwnames[] = { | |
9351 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9352 | }; | |
9353 | ||
9354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9356 | { | |
9357 | arg2 = wxString_in_helper(obj1); | |
9358 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9359 | temp2 = True; |
d14a1e28 RD |
9360 | } |
9361 | if (obj2) { | |
9362 | { | |
9363 | arg3 = wxString_in_helper(obj2); | |
9364 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9365 | temp3 = True; |
d14a1e28 RD |
9366 | } |
9367 | } | |
9368 | { | |
9369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9370 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9371 | ||
9372 | wxPyEndAllowThreads(__tstate); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | } | |
9375 | { | |
9376 | #if wxUSE_UNICODE | |
9377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9378 | #else | |
9379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9380 | #endif | |
9381 | } | |
9382 | { | |
9383 | if (temp2) | |
9384 | delete arg2; | |
9385 | } | |
9386 | { | |
9387 | if (temp3) | |
9388 | delete arg3; | |
9389 | } | |
9390 | return resultobj; | |
9391 | fail: | |
9392 | { | |
9393 | if (temp2) | |
9394 | delete arg2; | |
9395 | } | |
9396 | { | |
9397 | if (temp3) | |
9398 | delete arg3; | |
9399 | } | |
9400 | return NULL; | |
9401 | } | |
9402 | ||
9403 | ||
9404 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9405 | PyObject *resultobj; | |
9406 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9407 | wxString *result; | |
9408 | PyObject * obj0 = 0 ; | |
9409 | char *kwnames[] = { | |
9410 | (char *) "self", NULL | |
9411 | }; | |
9412 | ||
9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9415 | { | |
9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9417 | { | |
9418 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9419 | result = (wxString *) &_result_ref; | |
9420 | } | |
9421 | ||
9422 | wxPyEndAllowThreads(__tstate); | |
9423 | if (PyErr_Occurred()) SWIG_fail; | |
9424 | } | |
cc6dd355 RD |
9425 | { |
9426 | #if wxUSE_UNICODE | |
9427 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9428 | #else | |
9429 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9430 | #endif | |
9431 | } | |
d14a1e28 RD |
9432 | return resultobj; |
9433 | fail: | |
9434 | return NULL; | |
9435 | } | |
9436 | ||
9437 | ||
9438 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9439 | PyObject *obj; | |
9440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9441 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9442 | Py_INCREF(obj); | |
9443 | return Py_BuildValue((char *)""); | |
9444 | } | |
9445 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9446 | PyObject *resultobj; | |
9447 | wxLocale *result; | |
9448 | char *kwnames[] = { | |
9449 | NULL | |
9450 | }; | |
9451 | ||
9452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9453 | { | |
9454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9455 | result = (wxLocale *)wxGetLocale(); | |
9456 | ||
9457 | wxPyEndAllowThreads(__tstate); | |
9458 | if (PyErr_Occurred()) SWIG_fail; | |
9459 | } | |
9460 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9461 | return resultobj; | |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9468 | PyObject *resultobj; | |
9469 | wxString *arg1 = 0 ; | |
9470 | wxString result; | |
e811c8ce | 9471 | bool temp1 = False ; |
d14a1e28 RD |
9472 | PyObject * obj0 = 0 ; |
9473 | ||
9474 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9475 | { | |
9476 | arg1 = wxString_in_helper(obj0); | |
9477 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9478 | temp1 = True; |
d14a1e28 RD |
9479 | } |
9480 | { | |
9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9482 | result = wxGetTranslation((wxString const &)*arg1); | |
9483 | ||
9484 | wxPyEndAllowThreads(__tstate); | |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | } | |
9487 | { | |
9488 | #if wxUSE_UNICODE | |
9489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9490 | #else | |
9491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9492 | #endif | |
9493 | } | |
9494 | { | |
9495 | if (temp1) | |
9496 | delete arg1; | |
9497 | } | |
9498 | return resultobj; | |
9499 | fail: | |
9500 | { | |
9501 | if (temp1) | |
9502 | delete arg1; | |
9503 | } | |
9504 | return NULL; | |
9505 | } | |
9506 | ||
9507 | ||
9508 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9509 | PyObject *resultobj; | |
9510 | wxString *arg1 = 0 ; | |
9511 | wxString *arg2 = 0 ; | |
9512 | size_t arg3 ; | |
9513 | wxString result; | |
e811c8ce RD |
9514 | bool temp1 = False ; |
9515 | bool temp2 = False ; | |
d14a1e28 RD |
9516 | PyObject * obj0 = 0 ; |
9517 | PyObject * obj1 = 0 ; | |
9518 | PyObject * obj2 = 0 ; | |
9519 | ||
9520 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9521 | { | |
9522 | arg1 = wxString_in_helper(obj0); | |
9523 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9524 | temp1 = True; |
d14a1e28 RD |
9525 | } |
9526 | { | |
9527 | arg2 = wxString_in_helper(obj1); | |
9528 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9529 | temp2 = True; |
d14a1e28 | 9530 | } |
a41e16b6 | 9531 | { |
994141e6 | 9532 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
9533 | if (PyErr_Occurred()) SWIG_fail; |
9534 | } | |
d14a1e28 RD |
9535 | { |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9538 | ||
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
9542 | { | |
9543 | #if wxUSE_UNICODE | |
9544 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9545 | #else | |
9546 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9547 | #endif | |
9548 | } | |
9549 | { | |
9550 | if (temp1) | |
9551 | delete arg1; | |
9552 | } | |
9553 | { | |
9554 | if (temp2) | |
9555 | delete arg2; | |
9556 | } | |
9557 | return resultobj; | |
9558 | fail: | |
9559 | { | |
9560 | if (temp1) | |
9561 | delete arg1; | |
9562 | } | |
9563 | { | |
9564 | if (temp2) | |
9565 | delete arg2; | |
9566 | } | |
9567 | return NULL; | |
9568 | } | |
9569 | ||
9570 | ||
9571 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9572 | int argc; | |
9573 | PyObject *argv[4]; | |
9574 | int ii; | |
9575 | ||
9576 | argc = PyObject_Length(args); | |
9577 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9578 | argv[ii] = PyTuple_GetItem(args,ii); | |
9579 | } | |
9580 | if (argc == 1) { | |
9581 | int _v; | |
9582 | { | |
4d5c3d91 | 9583 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9584 | } |
9585 | if (_v) { | |
9586 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9587 | } | |
9588 | } | |
9589 | if (argc == 3) { | |
9590 | int _v; | |
9591 | { | |
4d5c3d91 | 9592 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9593 | } |
9594 | if (_v) { | |
9595 | { | |
4d5c3d91 | 9596 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
9597 | } |
9598 | if (_v) { | |
9599 | { | |
994141e6 | 9600 | SWIG_PyObj_AsUnsignedLong(argv[2]); |
a41e16b6 RD |
9601 | if (PyErr_Occurred()) { |
9602 | _v = 0; | |
9603 | PyErr_Clear(); | |
9604 | } else { | |
9605 | _v = 1; | |
9606 | } | |
d14a1e28 RD |
9607 | } |
9608 | if (_v) { | |
9609 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9610 | } | |
9611 | } | |
9612 | } | |
9613 | } | |
9614 | ||
9615 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9616 | return NULL; | |
9617 | } | |
9618 | ||
9619 | ||
9620 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9621 | PyObject *resultobj; | |
9622 | wxEncodingConverter *result; | |
9623 | char *kwnames[] = { | |
9624 | NULL | |
9625 | }; | |
9626 | ||
9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9628 | { | |
9629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9630 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9631 | ||
9632 | wxPyEndAllowThreads(__tstate); | |
9633 | if (PyErr_Occurred()) SWIG_fail; | |
9634 | } | |
9635 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9636 | return resultobj; | |
9637 | fail: | |
9638 | return NULL; | |
9639 | } | |
9640 | ||
9641 | ||
9642 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9643 | PyObject *resultobj; | |
9644 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9645 | PyObject * obj0 = 0 ; | |
9646 | char *kwnames[] = { | |
9647 | (char *) "self", NULL | |
9648 | }; | |
9649 | ||
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9652 | { | |
9653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9654 | delete arg1; | |
9655 | ||
9656 | wxPyEndAllowThreads(__tstate); | |
9657 | if (PyErr_Occurred()) SWIG_fail; | |
9658 | } | |
9659 | Py_INCREF(Py_None); resultobj = Py_None; | |
9660 | return resultobj; | |
9661 | fail: | |
9662 | return NULL; | |
9663 | } | |
9664 | ||
9665 | ||
9666 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9667 | PyObject *resultobj; | |
9668 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9669 | int arg2 ; | |
9670 | int arg3 ; | |
9671 | int arg4 = (int) wxCONVERT_STRICT ; | |
9672 | bool result; | |
9673 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9674 | PyObject * obj1 = 0 ; |
9675 | PyObject * obj2 = 0 ; | |
9676 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9677 | char *kwnames[] = { |
9678 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9679 | }; | |
9680 | ||
994141e6 | 9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 9682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9683 | { |
9684 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
9687 | { | |
9688 | arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
9691 | if (obj3) { | |
9692 | { | |
9693 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9694 | if (PyErr_Occurred()) SWIG_fail; | |
9695 | } | |
9696 | } | |
d14a1e28 RD |
9697 | { |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9699 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
9702 | if (PyErr_Occurred()) SWIG_fail; | |
9703 | } | |
4d5c3d91 | 9704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9705 | return resultobj; |
9706 | fail: | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
9711 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject *resultobj; | |
9713 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9714 | wxString *arg2 = 0 ; | |
9715 | wxString result; | |
e811c8ce | 9716 | bool temp2 = False ; |
d14a1e28 RD |
9717 | PyObject * obj0 = 0 ; |
9718 | PyObject * obj1 = 0 ; | |
9719 | char *kwnames[] = { | |
9720 | (char *) "self",(char *) "input", NULL | |
9721 | }; | |
9722 | ||
9723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9725 | { | |
9726 | arg2 = wxString_in_helper(obj1); | |
9727 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9728 | temp2 = True; |
d14a1e28 RD |
9729 | } |
9730 | { | |
9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9732 | result = (arg1)->Convert((wxString const &)*arg2); | |
9733 | ||
9734 | wxPyEndAllowThreads(__tstate); | |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
9736 | } | |
9737 | { | |
9738 | #if wxUSE_UNICODE | |
9739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9740 | #else | |
9741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9742 | #endif | |
9743 | } | |
9744 | { | |
9745 | if (temp2) | |
9746 | delete arg2; | |
9747 | } | |
9748 | return resultobj; | |
9749 | fail: | |
9750 | { | |
9751 | if (temp2) | |
9752 | delete arg2; | |
9753 | } | |
9754 | return NULL; | |
9755 | } | |
9756 | ||
9757 | ||
9758 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9759 | PyObject *resultobj; | |
9760 | int arg1 ; | |
9761 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9762 | wxFontEncodingArray result; | |
994141e6 RD |
9763 | PyObject * obj0 = 0 ; |
9764 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9765 | char *kwnames[] = { |
9766 | (char *) "enc",(char *) "platform", NULL | |
9767 | }; | |
9768 | ||
994141e6 RD |
9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
9770 | { | |
9771 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9772 | if (PyErr_Occurred()) SWIG_fail; | |
9773 | } | |
9774 | if (obj1) { | |
9775 | { | |
9776 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9777 | if (PyErr_Occurred()) SWIG_fail; | |
9778 | } | |
9779 | } | |
d14a1e28 RD |
9780 | { |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
9787 | { | |
9788 | resultobj = PyList_New(0); | |
9789 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9790 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9791 | PyList_Append(resultobj, number); | |
9792 | Py_DECREF(number); | |
9793 | } | |
9794 | } | |
9795 | return resultobj; | |
9796 | fail: | |
9797 | return NULL; | |
9798 | } | |
9799 | ||
9800 | ||
9801 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9802 | PyObject *resultobj; | |
9803 | int arg1 ; | |
9804 | wxFontEncodingArray result; | |
994141e6 | 9805 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9806 | char *kwnames[] = { |
9807 | (char *) "enc", NULL | |
9808 | }; | |
9809 | ||
994141e6 RD |
9810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
9811 | { | |
9812 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9813 | if (PyErr_Occurred()) SWIG_fail; | |
9814 | } | |
d14a1e28 RD |
9815 | { |
9816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9817 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9818 | ||
9819 | wxPyEndAllowThreads(__tstate); | |
9820 | if (PyErr_Occurred()) SWIG_fail; | |
9821 | } | |
9822 | { | |
9823 | resultobj = PyList_New(0); | |
9824 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9825 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9826 | PyList_Append(resultobj, number); | |
9827 | Py_DECREF(number); | |
9828 | } | |
9829 | } | |
9830 | return resultobj; | |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
9836 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9837 | PyObject *resultobj; | |
9838 | int arg1 ; | |
9839 | int arg2 ; | |
9840 | bool result; | |
994141e6 RD |
9841 | PyObject * obj0 = 0 ; |
9842 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9843 | char *kwnames[] = { |
9844 | (char *) "encIn",(char *) "encOut", NULL | |
9845 | }; | |
9846 | ||
994141e6 RD |
9847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
9848 | { | |
9849 | arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0); | |
9850 | if (PyErr_Occurred()) SWIG_fail; | |
9851 | } | |
9852 | { | |
9853 | arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1); | |
9854 | if (PyErr_Occurred()) SWIG_fail; | |
9855 | } | |
d14a1e28 RD |
9856 | { |
9857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9858 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9859 | ||
9860 | wxPyEndAllowThreads(__tstate); | |
9861 | if (PyErr_Occurred()) SWIG_fail; | |
9862 | } | |
4d5c3d91 | 9863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9864 | return resultobj; |
9865 | fail: | |
9866 | return NULL; | |
9867 | } | |
9868 | ||
9869 | ||
9870 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9871 | PyObject *obj; | |
9872 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9873 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9874 | Py_INCREF(obj); | |
9875 | return Py_BuildValue((char *)""); | |
9876 | } | |
9877 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9878 | PyObject *resultobj; | |
9879 | wxDC *arg1 = (wxDC *) 0 ; | |
9880 | PyObject * obj0 = 0 ; | |
9881 | char *kwnames[] = { | |
9882 | (char *) "self", NULL | |
9883 | }; | |
9884 | ||
9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9887 | { | |
9888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9889 | delete arg1; | |
9890 | ||
9891 | wxPyEndAllowThreads(__tstate); | |
9892 | if (PyErr_Occurred()) SWIG_fail; | |
9893 | } | |
9894 | Py_INCREF(Py_None); resultobj = Py_None; | |
9895 | return resultobj; | |
9896 | fail: | |
9897 | return NULL; | |
9898 | } | |
9899 | ||
9900 | ||
9901 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9902 | PyObject *resultobj; | |
9903 | wxDC *arg1 = (wxDC *) 0 ; | |
9904 | PyObject * obj0 = 0 ; | |
9905 | char *kwnames[] = { | |
9906 | (char *) "self", NULL | |
9907 | }; | |
9908 | ||
9909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9911 | { | |
9912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9913 | (arg1)->BeginDrawing(); | |
9914 | ||
9915 | wxPyEndAllowThreads(__tstate); | |
9916 | if (PyErr_Occurred()) SWIG_fail; | |
9917 | } | |
9918 | Py_INCREF(Py_None); resultobj = Py_None; | |
9919 | return resultobj; | |
9920 | fail: | |
9921 | return NULL; | |
9922 | } | |
9923 | ||
9924 | ||
9925 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9926 | PyObject *resultobj; | |
9927 | wxDC *arg1 = (wxDC *) 0 ; | |
9928 | PyObject * obj0 = 0 ; | |
9929 | char *kwnames[] = { | |
9930 | (char *) "self", NULL | |
9931 | }; | |
9932 | ||
9933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9935 | { | |
9936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9937 | (arg1)->EndDrawing(); | |
9938 | ||
9939 | wxPyEndAllowThreads(__tstate); | |
9940 | if (PyErr_Occurred()) SWIG_fail; | |
9941 | } | |
9942 | Py_INCREF(Py_None); resultobj = Py_None; | |
9943 | return resultobj; | |
9944 | fail: | |
9945 | return NULL; | |
9946 | } | |
9947 | ||
9948 | ||
9949 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9950 | PyObject *resultobj; | |
9951 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
9952 | int arg2 ; |
9953 | int arg3 ; | |
d14a1e28 RD |
9954 | wxColour *arg4 = 0 ; |
9955 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9956 | bool result; | |
9957 | wxColour temp4 ; | |
9958 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9959 | PyObject * obj1 = 0 ; |
9960 | PyObject * obj2 = 0 ; | |
d14a1e28 | 9961 | PyObject * obj3 = 0 ; |
994141e6 | 9962 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9963 | char *kwnames[] = { |
9964 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9965 | }; | |
9966 | ||
994141e6 | 9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 9968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9969 | { |
9970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | { | |
9974 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
d14a1e28 RD |
9977 | { |
9978 | arg4 = &temp4; | |
9979 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9980 | } | |
994141e6 RD |
9981 | if (obj4) { |
9982 | { | |
9983 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
9986 | } | |
d14a1e28 RD |
9987 | { |
9988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9989 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9990 | ||
9991 | wxPyEndAllowThreads(__tstate); | |
9992 | if (PyErr_Occurred()) SWIG_fail; | |
9993 | } | |
4d5c3d91 | 9994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9995 | return resultobj; |
9996 | fail: | |
9997 | return NULL; | |
9998 | } | |
9999 | ||
10000 | ||
10001 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10002 | PyObject *resultobj; | |
10003 | wxDC *arg1 = (wxDC *) 0 ; | |
10004 | wxPoint *arg2 = 0 ; | |
10005 | wxColour *arg3 = 0 ; | |
10006 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10007 | bool result; | |
10008 | wxPoint temp2 ; | |
10009 | wxColour temp3 ; | |
10010 | PyObject * obj0 = 0 ; | |
10011 | PyObject * obj1 = 0 ; | |
10012 | PyObject * obj2 = 0 ; | |
994141e6 | 10013 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10014 | char *kwnames[] = { |
10015 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10016 | }; | |
10017 | ||
994141e6 | 10018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10020 | { | |
10021 | arg2 = &temp2; | |
10022 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10023 | } | |
10024 | { | |
10025 | arg3 = &temp3; | |
10026 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10027 | } | |
994141e6 RD |
10028 | if (obj3) { |
10029 | { | |
10030 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10031 | if (PyErr_Occurred()) SWIG_fail; | |
10032 | } | |
10033 | } | |
d14a1e28 RD |
10034 | { |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10036 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10037 | ||
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
4d5c3d91 | 10041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10042 | return resultobj; |
10043 | fail: | |
10044 | return NULL; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj; | |
10050 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10051 | int arg2 ; |
10052 | int arg3 ; | |
d14a1e28 RD |
10053 | wxColour result; |
10054 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10055 | PyObject * obj1 = 0 ; |
10056 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10057 | char *kwnames[] = { |
10058 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10059 | }; | |
10060 | ||
994141e6 | 10061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10063 | { |
10064 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10065 | if (PyErr_Occurred()) SWIG_fail; | |
10066 | } | |
10067 | { | |
10068 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10069 | if (PyErr_Occurred()) SWIG_fail; | |
10070 | } | |
d14a1e28 RD |
10071 | { |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10073 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10074 | ||
10075 | wxPyEndAllowThreads(__tstate); | |
10076 | if (PyErr_Occurred()) SWIG_fail; | |
10077 | } | |
10078 | { | |
10079 | wxColour * resultptr; | |
10080 | resultptr = new wxColour((wxColour &) result); | |
10081 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10082 | } | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
10089 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10090 | PyObject *resultobj; | |
10091 | wxDC *arg1 = (wxDC *) 0 ; | |
10092 | wxPoint *arg2 = 0 ; | |
10093 | wxColour result; | |
10094 | wxPoint temp2 ; | |
10095 | PyObject * obj0 = 0 ; | |
10096 | PyObject * obj1 = 0 ; | |
10097 | char *kwnames[] = { | |
10098 | (char *) "self",(char *) "pt", NULL | |
10099 | }; | |
10100 | ||
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
10102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10103 | { | |
10104 | arg2 = &temp2; | |
10105 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10106 | } | |
10107 | { | |
10108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10109 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10110 | ||
10111 | wxPyEndAllowThreads(__tstate); | |
10112 | if (PyErr_Occurred()) SWIG_fail; | |
10113 | } | |
10114 | { | |
10115 | wxColour * resultptr; | |
10116 | resultptr = new wxColour((wxColour &) result); | |
10117 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10118 | } | |
10119 | return resultobj; | |
10120 | fail: | |
10121 | return NULL; | |
10122 | } | |
10123 | ||
10124 | ||
10125 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10126 | PyObject *resultobj; | |
10127 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10128 | int arg2 ; |
10129 | int arg3 ; | |
10130 | int arg4 ; | |
10131 | int arg5 ; | |
d14a1e28 | 10132 | PyObject * obj0 = 0 ; |
994141e6 RD |
10133 | PyObject * obj1 = 0 ; |
10134 | PyObject * obj2 = 0 ; | |
10135 | PyObject * obj3 = 0 ; | |
10136 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10137 | char *kwnames[] = { |
10138 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10139 | }; | |
10140 | ||
994141e6 | 10141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10143 | { |
10144 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | { | |
10148 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10149 | if (PyErr_Occurred()) SWIG_fail; | |
10150 | } | |
10151 | { | |
10152 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10153 | if (PyErr_Occurred()) SWIG_fail; | |
10154 | } | |
10155 | { | |
10156 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10157 | if (PyErr_Occurred()) SWIG_fail; | |
10158 | } | |
d14a1e28 RD |
10159 | { |
10160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10161 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10162 | ||
10163 | wxPyEndAllowThreads(__tstate); | |
10164 | if (PyErr_Occurred()) SWIG_fail; | |
10165 | } | |
10166 | Py_INCREF(Py_None); resultobj = Py_None; | |
10167 | return resultobj; | |
10168 | fail: | |
10169 | return NULL; | |
10170 | } | |
10171 | ||
10172 | ||
10173 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10174 | PyObject *resultobj; | |
10175 | wxDC *arg1 = (wxDC *) 0 ; | |
10176 | wxPoint *arg2 = 0 ; | |
10177 | wxPoint *arg3 = 0 ; | |
10178 | wxPoint temp2 ; | |
10179 | wxPoint temp3 ; | |
10180 | PyObject * obj0 = 0 ; | |
10181 | PyObject * obj1 = 0 ; | |
10182 | PyObject * obj2 = 0 ; | |
10183 | char *kwnames[] = { | |
10184 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10185 | }; | |
10186 | ||
10187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10189 | { | |
10190 | arg2 = &temp2; | |
10191 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10192 | } | |
10193 | { | |
10194 | arg3 = &temp3; | |
10195 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10196 | } | |
10197 | { | |
10198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10199 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10200 | ||
10201 | wxPyEndAllowThreads(__tstate); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | } | |
10204 | Py_INCREF(Py_None); resultobj = Py_None; | |
10205 | return resultobj; | |
10206 | fail: | |
10207 | return NULL; | |
10208 | } | |
10209 | ||
10210 | ||
10211 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10212 | PyObject *resultobj; | |
10213 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10214 | int arg2 ; |
10215 | int arg3 ; | |
d14a1e28 | 10216 | PyObject * obj0 = 0 ; |
994141e6 RD |
10217 | PyObject * obj1 = 0 ; |
10218 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10219 | char *kwnames[] = { |
10220 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10221 | }; | |
10222 | ||
994141e6 | 10223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10225 | { |
10226 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10227 | if (PyErr_Occurred()) SWIG_fail; | |
10228 | } | |
10229 | { | |
10230 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10231 | if (PyErr_Occurred()) SWIG_fail; | |
10232 | } | |
d14a1e28 RD |
10233 | { |
10234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10235 | (arg1)->CrossHair(arg2,arg3); | |
10236 | ||
10237 | wxPyEndAllowThreads(__tstate); | |
10238 | if (PyErr_Occurred()) SWIG_fail; | |
10239 | } | |
10240 | Py_INCREF(Py_None); resultobj = Py_None; | |
10241 | return resultobj; | |
10242 | fail: | |
10243 | return NULL; | |
10244 | } | |
10245 | ||
10246 | ||
10247 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10248 | PyObject *resultobj; | |
10249 | wxDC *arg1 = (wxDC *) 0 ; | |
10250 | wxPoint *arg2 = 0 ; | |
10251 | wxPoint temp2 ; | |
10252 | PyObject * obj0 = 0 ; | |
10253 | PyObject * obj1 = 0 ; | |
10254 | char *kwnames[] = { | |
10255 | (char *) "self",(char *) "pt", NULL | |
10256 | }; | |
10257 | ||
10258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
10259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10260 | { | |
10261 | arg2 = &temp2; | |
10262 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10263 | } | |
10264 | { | |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10266 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10267 | ||
10268 | wxPyEndAllowThreads(__tstate); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
10271 | Py_INCREF(Py_None); resultobj = Py_None; | |
10272 | return resultobj; | |
10273 | fail: | |
10274 | return NULL; | |
10275 | } | |
10276 | ||
10277 | ||
10278 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10279 | PyObject *resultobj; | |
10280 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10281 | int arg2 ; |
10282 | int arg3 ; | |
10283 | int arg4 ; | |
10284 | int arg5 ; | |
10285 | int arg6 ; | |
10286 | int arg7 ; | |
d14a1e28 | 10287 | PyObject * obj0 = 0 ; |
994141e6 RD |
10288 | PyObject * obj1 = 0 ; |
10289 | PyObject * obj2 = 0 ; | |
10290 | PyObject * obj3 = 0 ; | |
10291 | PyObject * obj4 = 0 ; | |
10292 | PyObject * obj5 = 0 ; | |
10293 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10294 | char *kwnames[] = { |
10295 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10296 | }; | |
10297 | ||
994141e6 | 10298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10300 | { |
10301 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
10304 | { | |
10305 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10306 | if (PyErr_Occurred()) SWIG_fail; | |
10307 | } | |
10308 | { | |
10309 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | { | |
10313 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10314 | if (PyErr_Occurred()) SWIG_fail; | |
10315 | } | |
10316 | { | |
10317 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
10318 | if (PyErr_Occurred()) SWIG_fail; | |
10319 | } | |
10320 | { | |
10321 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
10322 | if (PyErr_Occurred()) SWIG_fail; | |
10323 | } | |
d14a1e28 RD |
10324 | { |
10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10326 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10327 | ||
10328 | wxPyEndAllowThreads(__tstate); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
10330 | } | |
10331 | Py_INCREF(Py_None); resultobj = Py_None; | |
10332 | return resultobj; | |
10333 | fail: | |
10334 | return NULL; | |
10335 | } | |
10336 | ||
10337 | ||
10338 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10339 | PyObject *resultobj; | |
10340 | wxDC *arg1 = (wxDC *) 0 ; | |
10341 | wxPoint *arg2 = 0 ; | |
10342 | wxPoint *arg3 = 0 ; | |
10343 | wxPoint *arg4 = 0 ; | |
10344 | wxPoint temp2 ; | |
10345 | wxPoint temp3 ; | |
10346 | wxPoint temp4 ; | |
10347 | PyObject * obj0 = 0 ; | |
10348 | PyObject * obj1 = 0 ; | |
10349 | PyObject * obj2 = 0 ; | |
10350 | PyObject * obj3 = 0 ; | |
10351 | char *kwnames[] = { | |
10352 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10353 | }; | |
10354 | ||
10355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10357 | { | |
10358 | arg2 = &temp2; | |
10359 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10360 | } | |
10361 | { | |
10362 | arg3 = &temp3; | |
10363 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10364 | } | |
10365 | { | |
10366 | arg4 = &temp4; | |
10367 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10368 | } | |
10369 | { | |
10370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10371 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10372 | ||
10373 | wxPyEndAllowThreads(__tstate); | |
10374 | if (PyErr_Occurred()) SWIG_fail; | |
10375 | } | |
10376 | Py_INCREF(Py_None); resultobj = Py_None; | |
10377 | return resultobj; | |
10378 | fail: | |
10379 | return NULL; | |
10380 | } | |
10381 | ||
10382 | ||
10383 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10384 | PyObject *resultobj; | |
10385 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10386 | int arg2 ; |
10387 | int arg3 ; | |
10388 | int arg4 ; | |
10389 | int arg5 ; | |
d14a1e28 | 10390 | PyObject * obj0 = 0 ; |
994141e6 RD |
10391 | PyObject * obj1 = 0 ; |
10392 | PyObject * obj2 = 0 ; | |
10393 | PyObject * obj3 = 0 ; | |
10394 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10395 | char *kwnames[] = { |
10396 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10397 | }; | |
10398 | ||
994141e6 | 10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10401 | { | |
994141e6 | 10402 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
d14a1e28 RD |
10403 | if (PyErr_Occurred()) SWIG_fail; |
10404 | } | |
994141e6 RD |
10405 | { |
10406 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10407 | if (PyErr_Occurred()) SWIG_fail; | |
10408 | } | |
10409 | { | |
10410 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10411 | if (PyErr_Occurred()) SWIG_fail; | |
10412 | } | |
10413 | { | |
10414 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10415 | if (PyErr_Occurred()) SWIG_fail; | |
10416 | } | |
10417 | { | |
10418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10419 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10420 | ||
10421 | wxPyEndAllowThreads(__tstate); | |
10422 | if (PyErr_Occurred()) SWIG_fail; | |
10423 | } | |
10424 | Py_INCREF(Py_None); resultobj = Py_None; | |
10425 | return resultobj; | |
10426 | fail: | |
10427 | return NULL; | |
10428 | } | |
10429 | ||
10430 | ||
d14a1e28 RD |
10431 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
10432 | PyObject *resultobj; | |
10433 | wxDC *arg1 = (wxDC *) 0 ; | |
10434 | wxRect *arg2 = 0 ; | |
10435 | wxRect temp2 ; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | PyObject * obj1 = 0 ; | |
10438 | char *kwnames[] = { | |
10439 | (char *) "self",(char *) "rect", NULL | |
10440 | }; | |
10441 | ||
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
10443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10444 | { | |
10445 | arg2 = &temp2; | |
10446 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10447 | } | |
10448 | { | |
10449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10450 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10451 | ||
10452 | wxPyEndAllowThreads(__tstate); | |
10453 | if (PyErr_Occurred()) SWIG_fail; | |
10454 | } | |
10455 | Py_INCREF(Py_None); resultobj = Py_None; | |
10456 | return resultobj; | |
10457 | fail: | |
10458 | return NULL; | |
10459 | } | |
10460 | ||
10461 | ||
10462 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10463 | PyObject *resultobj; | |
10464 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10465 | int arg2 ; |
10466 | int arg3 ; | |
10467 | int arg4 ; | |
10468 | int arg5 ; | |
d14a1e28 RD |
10469 | double arg6 ; |
10470 | double arg7 ; | |
10471 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10472 | PyObject * obj1 = 0 ; |
10473 | PyObject * obj2 = 0 ; | |
10474 | PyObject * obj3 = 0 ; | |
10475 | PyObject * obj4 = 0 ; | |
10476 | PyObject * obj5 = 0 ; | |
10477 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10478 | char *kwnames[] = { |
10479 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10480 | }; | |
10481 | ||
994141e6 | 10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 10483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10484 | { |
10485 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | { | |
10489 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
10492 | { | |
10493 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10494 | if (PyErr_Occurred()) SWIG_fail; | |
10495 | } | |
10496 | { | |
10497 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10498 | if (PyErr_Occurred()) SWIG_fail; | |
10499 | } | |
10500 | { | |
10501 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10502 | if (PyErr_Occurred()) SWIG_fail; | |
10503 | } | |
10504 | { | |
10505 | arg7 = (double) SWIG_PyObj_AsDouble(obj6); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
d14a1e28 RD |
10508 | { |
10509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10510 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10511 | ||
10512 | wxPyEndAllowThreads(__tstate); | |
10513 | if (PyErr_Occurred()) SWIG_fail; | |
10514 | } | |
10515 | Py_INCREF(Py_None); resultobj = Py_None; | |
10516 | return resultobj; | |
10517 | fail: | |
10518 | return NULL; | |
10519 | } | |
10520 | ||
10521 | ||
10522 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10523 | PyObject *resultobj; | |
10524 | wxDC *arg1 = (wxDC *) 0 ; | |
10525 | wxPoint *arg2 = 0 ; | |
10526 | wxSize *arg3 = 0 ; | |
10527 | double arg4 ; | |
10528 | double arg5 ; | |
10529 | wxPoint temp2 ; | |
10530 | wxSize temp3 ; | |
10531 | PyObject * obj0 = 0 ; | |
10532 | PyObject * obj1 = 0 ; | |
10533 | PyObject * obj2 = 0 ; | |
994141e6 RD |
10534 | PyObject * obj3 = 0 ; |
10535 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10536 | char *kwnames[] = { |
10537 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10538 | }; | |
10539 | ||
994141e6 | 10540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
10541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10542 | { | |
10543 | arg2 = &temp2; | |
10544 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10545 | } | |
10546 | { | |
10547 | arg3 = &temp3; | |
10548 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10549 | } | |
994141e6 RD |
10550 | { |
10551 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10552 | if (PyErr_Occurred()) SWIG_fail; | |
10553 | } | |
10554 | { | |
10555 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
10556 | if (PyErr_Occurred()) SWIG_fail; | |
10557 | } | |
d14a1e28 RD |
10558 | { |
10559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10560 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10561 | ||
10562 | wxPyEndAllowThreads(__tstate); | |
10563 | if (PyErr_Occurred()) SWIG_fail; | |
10564 | } | |
10565 | Py_INCREF(Py_None); resultobj = Py_None; | |
10566 | return resultobj; | |
10567 | fail: | |
10568 | return NULL; | |
10569 | } | |
10570 | ||
10571 | ||
10572 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10573 | PyObject *resultobj; | |
10574 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10575 | int arg2 ; |
10576 | int arg3 ; | |
d14a1e28 | 10577 | PyObject * obj0 = 0 ; |
994141e6 RD |
10578 | PyObject * obj1 = 0 ; |
10579 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10580 | char *kwnames[] = { |
10581 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10582 | }; | |
10583 | ||
994141e6 | 10584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10586 | { |
10587 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | { | |
10591 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
d14a1e28 RD |
10594 | { |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | (arg1)->DrawPoint(arg2,arg3); | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | } | |
10601 | Py_INCREF(Py_None); resultobj = Py_None; | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | return NULL; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10609 | PyObject *resultobj; | |
10610 | wxDC *arg1 = (wxDC *) 0 ; | |
10611 | wxPoint *arg2 = 0 ; | |
10612 | wxPoint temp2 ; | |
10613 | PyObject * obj0 = 0 ; | |
10614 | PyObject * obj1 = 0 ; | |
10615 | char *kwnames[] = { | |
10616 | (char *) "self",(char *) "pt", NULL | |
10617 | }; | |
10618 | ||
10619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10621 | { | |
10622 | arg2 = &temp2; | |
10623 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10624 | } | |
10625 | { | |
10626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10627 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10628 | ||
10629 | wxPyEndAllowThreads(__tstate); | |
10630 | if (PyErr_Occurred()) SWIG_fail; | |
10631 | } | |
10632 | Py_INCREF(Py_None); resultobj = Py_None; | |
10633 | return resultobj; | |
10634 | fail: | |
10635 | return NULL; | |
10636 | } | |
10637 | ||
10638 | ||
10639 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10640 | PyObject *resultobj; | |
10641 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10642 | int arg2 ; |
10643 | int arg3 ; | |
10644 | int arg4 ; | |
10645 | int arg5 ; | |
d14a1e28 | 10646 | PyObject * obj0 = 0 ; |
994141e6 RD |
10647 | PyObject * obj1 = 0 ; |
10648 | PyObject * obj2 = 0 ; | |
10649 | PyObject * obj3 = 0 ; | |
10650 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10651 | char *kwnames[] = { |
10652 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10653 | }; | |
10654 | ||
994141e6 | 10655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10657 | { |
10658 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
10661 | { | |
10662 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10663 | if (PyErr_Occurred()) SWIG_fail; | |
10664 | } | |
10665 | { | |
10666 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10667 | if (PyErr_Occurred()) SWIG_fail; | |
10668 | } | |
10669 | { | |
10670 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
d14a1e28 RD |
10673 | { |
10674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10675 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10676 | ||
10677 | wxPyEndAllowThreads(__tstate); | |
10678 | if (PyErr_Occurred()) SWIG_fail; | |
10679 | } | |
10680 | Py_INCREF(Py_None); resultobj = Py_None; | |
10681 | return resultobj; | |
10682 | fail: | |
10683 | return NULL; | |
10684 | } | |
10685 | ||
10686 | ||
10687 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10688 | PyObject *resultobj; | |
10689 | wxDC *arg1 = (wxDC *) 0 ; | |
10690 | wxPoint *arg2 = 0 ; | |
10691 | wxSize *arg3 = 0 ; | |
10692 | wxPoint temp2 ; | |
10693 | wxSize temp3 ; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | PyObject * obj1 = 0 ; | |
10696 | PyObject * obj2 = 0 ; | |
10697 | char *kwnames[] = { | |
10698 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10699 | }; | |
10700 | ||
10701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10703 | { | |
10704 | arg2 = &temp2; | |
10705 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10706 | } | |
10707 | { | |
10708 | arg3 = &temp3; | |
10709 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10710 | } | |
10711 | { | |
10712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10713 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10714 | ||
10715 | wxPyEndAllowThreads(__tstate); | |
10716 | if (PyErr_Occurred()) SWIG_fail; | |
10717 | } | |
10718 | Py_INCREF(Py_None); resultobj = Py_None; | |
10719 | return resultobj; | |
10720 | fail: | |
10721 | return NULL; | |
10722 | } | |
10723 | ||
10724 | ||
10725 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10726 | PyObject *resultobj; | |
10727 | wxDC *arg1 = (wxDC *) 0 ; | |
10728 | wxRect *arg2 = 0 ; | |
10729 | wxRect temp2 ; | |
10730 | PyObject * obj0 = 0 ; | |
10731 | PyObject * obj1 = 0 ; | |
10732 | char *kwnames[] = { | |
10733 | (char *) "self",(char *) "rect", NULL | |
10734 | }; | |
10735 | ||
10736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10738 | { | |
10739 | arg2 = &temp2; | |
10740 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10741 | } | |
10742 | { | |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10744 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10745 | ||
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | Py_INCREF(Py_None); resultobj = Py_None; | |
10750 | return resultobj; | |
10751 | fail: | |
10752 | return NULL; | |
10753 | } | |
10754 | ||
10755 | ||
10756 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10757 | PyObject *resultobj; | |
10758 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10759 | int arg2 ; |
10760 | int arg3 ; | |
10761 | int arg4 ; | |
10762 | int arg5 ; | |
d14a1e28 RD |
10763 | double arg6 ; |
10764 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10765 | PyObject * obj1 = 0 ; |
10766 | PyObject * obj2 = 0 ; | |
10767 | PyObject * obj3 = 0 ; | |
10768 | PyObject * obj4 = 0 ; | |
10769 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
10770 | char *kwnames[] = { |
10771 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10772 | }; | |
10773 | ||
994141e6 | 10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 10775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10776 | { |
10777 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
10780 | { | |
10781 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | } | |
10784 | { | |
10785 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
10788 | { | |
10789 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
10790 | if (PyErr_Occurred()) SWIG_fail; | |
10791 | } | |
10792 | { | |
10793 | arg6 = (double) SWIG_PyObj_AsDouble(obj5); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
10795 | } | |
d14a1e28 RD |
10796 | { |
10797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10798 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10799 | ||
10800 | wxPyEndAllowThreads(__tstate); | |
10801 | if (PyErr_Occurred()) SWIG_fail; | |
10802 | } | |
10803 | Py_INCREF(Py_None); resultobj = Py_None; | |
10804 | return resultobj; | |
10805 | fail: | |
10806 | return NULL; | |
10807 | } | |
10808 | ||
10809 | ||
10810 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10811 | PyObject *resultobj; | |
10812 | wxDC *arg1 = (wxDC *) 0 ; | |
10813 | wxPoint *arg2 = 0 ; | |
10814 | wxSize *arg3 = 0 ; | |
10815 | double arg4 ; | |
10816 | wxPoint temp2 ; | |
10817 | wxSize temp3 ; | |
10818 | PyObject * obj0 = 0 ; | |
10819 | PyObject * obj1 = 0 ; | |
10820 | PyObject * obj2 = 0 ; | |
994141e6 | 10821 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10822 | char *kwnames[] = { |
10823 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10824 | }; | |
10825 | ||
994141e6 | 10826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
10827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10828 | { | |
10829 | arg2 = &temp2; | |
10830 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10831 | } | |
10832 | { | |
10833 | arg3 = &temp3; | |
10834 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10835 | } | |
994141e6 RD |
10836 | { |
10837 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
d14a1e28 RD |
10840 | { |
10841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10842 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10843 | ||
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | Py_INCREF(Py_None); resultobj = Py_None; | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj; | |
10856 | wxDC *arg1 = (wxDC *) 0 ; | |
10857 | wxRect *arg2 = 0 ; | |
10858 | double arg3 ; | |
10859 | wxRect temp2 ; | |
10860 | PyObject * obj0 = 0 ; | |
10861 | PyObject * obj1 = 0 ; | |
994141e6 | 10862 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10863 | char *kwnames[] = { |
10864 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10865 | }; | |
10866 | ||
994141e6 | 10867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10869 | { | |
10870 | arg2 = &temp2; | |
10871 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10872 | } | |
994141e6 RD |
10873 | { |
10874 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
10875 | if (PyErr_Occurred()) SWIG_fail; | |
10876 | } | |
d14a1e28 RD |
10877 | { |
10878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10879 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10880 | ||
10881 | wxPyEndAllowThreads(__tstate); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | } | |
10884 | Py_INCREF(Py_None); resultobj = Py_None; | |
10885 | return resultobj; | |
10886 | fail: | |
10887 | return NULL; | |
10888 | } | |
10889 | ||
10890 | ||
10891 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10892 | PyObject *resultobj; | |
10893 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10894 | int arg2 ; |
10895 | int arg3 ; | |
10896 | int arg4 ; | |
d14a1e28 | 10897 | PyObject * obj0 = 0 ; |
994141e6 RD |
10898 | PyObject * obj1 = 0 ; |
10899 | PyObject * obj2 = 0 ; | |
10900 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10901 | char *kwnames[] = { |
10902 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10903 | }; | |
10904 | ||
994141e6 | 10905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 10906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10907 | { |
10908 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | { | |
10912 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10913 | if (PyErr_Occurred()) SWIG_fail; | |
10914 | } | |
10915 | { | |
10916 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10917 | if (PyErr_Occurred()) SWIG_fail; | |
10918 | } | |
d14a1e28 RD |
10919 | { |
10920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10921 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
10922 | ||
10923 | wxPyEndAllowThreads(__tstate); | |
10924 | if (PyErr_Occurred()) SWIG_fail; | |
10925 | } | |
10926 | Py_INCREF(Py_None); resultobj = Py_None; | |
10927 | return resultobj; | |
10928 | fail: | |
10929 | return NULL; | |
10930 | } | |
10931 | ||
10932 | ||
10933 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10934 | PyObject *resultobj; | |
10935 | wxDC *arg1 = (wxDC *) 0 ; | |
10936 | wxPoint *arg2 = 0 ; | |
e811c8ce | 10937 | int arg3 ; |
d14a1e28 RD |
10938 | wxPoint temp2 ; |
10939 | PyObject * obj0 = 0 ; | |
10940 | PyObject * obj1 = 0 ; | |
994141e6 | 10941 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10942 | char *kwnames[] = { |
10943 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10944 | }; | |
10945 | ||
994141e6 | 10946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10948 | { | |
10949 | arg2 = &temp2; | |
10950 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10951 | } | |
994141e6 RD |
10952 | { |
10953 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10954 | if (PyErr_Occurred()) SWIG_fail; | |
10955 | } | |
d14a1e28 RD |
10956 | { |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
10963 | Py_INCREF(Py_None); resultobj = Py_None; | |
10964 | return resultobj; | |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
10970 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject *resultobj; | |
10972 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10973 | int arg2 ; |
10974 | int arg3 ; | |
10975 | int arg4 ; | |
10976 | int arg5 ; | |
d14a1e28 | 10977 | PyObject * obj0 = 0 ; |
994141e6 RD |
10978 | PyObject * obj1 = 0 ; |
10979 | PyObject * obj2 = 0 ; | |
10980 | PyObject * obj3 = 0 ; | |
10981 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10982 | char *kwnames[] = { |
10983 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10984 | }; | |
10985 | ||
994141e6 | 10986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10988 | { |
10989 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | } | |
10992 | { | |
10993 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
10996 | { | |
10997 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10998 | if (PyErr_Occurred()) SWIG_fail; | |
10999 | } | |
11000 | { | |
11001 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11002 | if (PyErr_Occurred()) SWIG_fail; | |
11003 | } | |
d14a1e28 RD |
11004 | { |
11005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11006 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11007 | ||
11008 | wxPyEndAllowThreads(__tstate); | |
11009 | if (PyErr_Occurred()) SWIG_fail; | |
11010 | } | |
11011 | Py_INCREF(Py_None); resultobj = Py_None; | |
11012 | return resultobj; | |
11013 | fail: | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
11018 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj; | |
11020 | wxDC *arg1 = (wxDC *) 0 ; | |
11021 | wxPoint *arg2 = 0 ; | |
11022 | wxSize *arg3 = 0 ; | |
11023 | wxPoint temp2 ; | |
11024 | wxSize temp3 ; | |
11025 | PyObject * obj0 = 0 ; | |
11026 | PyObject * obj1 = 0 ; | |
11027 | PyObject * obj2 = 0 ; | |
11028 | char *kwnames[] = { | |
11029 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11030 | }; | |
11031 | ||
11032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11034 | { | |
11035 | arg2 = &temp2; | |
11036 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11037 | } | |
11038 | { | |
11039 | arg3 = &temp3; | |
11040 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11041 | } | |
11042 | { | |
11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11044 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11045 | ||
11046 | wxPyEndAllowThreads(__tstate); | |
11047 | if (PyErr_Occurred()) SWIG_fail; | |
11048 | } | |
11049 | Py_INCREF(Py_None); resultobj = Py_None; | |
11050 | return resultobj; | |
11051 | fail: | |
11052 | return NULL; | |
11053 | } | |
11054 | ||
11055 | ||
11056 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11057 | PyObject *resultobj; | |
11058 | wxDC *arg1 = (wxDC *) 0 ; | |
11059 | wxRect *arg2 = 0 ; | |
11060 | wxRect temp2 ; | |
11061 | PyObject * obj0 = 0 ; | |
11062 | PyObject * obj1 = 0 ; | |
11063 | char *kwnames[] = { | |
11064 | (char *) "self",(char *) "rect", NULL | |
11065 | }; | |
11066 | ||
11067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
11068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11069 | { | |
11070 | arg2 = &temp2; | |
11071 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11072 | } | |
11073 | { | |
11074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11075 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11076 | ||
11077 | wxPyEndAllowThreads(__tstate); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
11080 | Py_INCREF(Py_None); resultobj = Py_None; | |
11081 | return resultobj; | |
11082 | fail: | |
11083 | return NULL; | |
11084 | } | |
11085 | ||
11086 | ||
11087 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11088 | PyObject *resultobj; | |
11089 | wxDC *arg1 = (wxDC *) 0 ; | |
11090 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11091 | int arg3 ; |
11092 | int arg4 ; | |
d14a1e28 RD |
11093 | PyObject * obj0 = 0 ; |
11094 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11095 | PyObject * obj2 = 0 ; |
11096 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11097 | char *kwnames[] = { |
11098 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11099 | }; | |
11100 | ||
994141e6 | 11101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11103 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11104 | if (arg2 == NULL) { | |
11105 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11106 | } | |
994141e6 RD |
11107 | { |
11108 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
11110 | } | |
11111 | { | |
11112 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11113 | if (PyErr_Occurred()) SWIG_fail; | |
11114 | } | |
d14a1e28 RD |
11115 | { |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11118 | ||
11119 | wxPyEndAllowThreads(__tstate); | |
11120 | if (PyErr_Occurred()) SWIG_fail; | |
11121 | } | |
11122 | Py_INCREF(Py_None); resultobj = Py_None; | |
11123 | return resultobj; | |
11124 | fail: | |
11125 | return NULL; | |
11126 | } | |
11127 | ||
11128 | ||
11129 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11130 | PyObject *resultobj; | |
11131 | wxDC *arg1 = (wxDC *) 0 ; | |
11132 | wxIcon *arg2 = 0 ; | |
11133 | wxPoint *arg3 = 0 ; | |
11134 | wxPoint temp3 ; | |
11135 | PyObject * obj0 = 0 ; | |
11136 | PyObject * obj1 = 0 ; | |
11137 | PyObject * obj2 = 0 ; | |
11138 | char *kwnames[] = { | |
11139 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11140 | }; | |
11141 | ||
11142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11144 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11145 | if (arg2 == NULL) { | |
11146 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11147 | } | |
11148 | { | |
11149 | arg3 = &temp3; | |
11150 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11151 | } | |
11152 | { | |
11153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11154 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11155 | ||
11156 | wxPyEndAllowThreads(__tstate); | |
11157 | if (PyErr_Occurred()) SWIG_fail; | |
11158 | } | |
11159 | Py_INCREF(Py_None); resultobj = Py_None; | |
11160 | return resultobj; | |
11161 | fail: | |
11162 | return NULL; | |
11163 | } | |
11164 | ||
11165 | ||
11166 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11167 | PyObject *resultobj; | |
11168 | wxDC *arg1 = (wxDC *) 0 ; | |
11169 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11170 | int arg3 ; |
11171 | int arg4 ; | |
11172 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11173 | PyObject * obj0 = 0 ; |
11174 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11175 | PyObject * obj2 = 0 ; |
11176 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11177 | PyObject * obj4 = 0 ; |
11178 | char *kwnames[] = { | |
11179 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11180 | }; | |
11181 | ||
994141e6 | 11182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11184 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11185 | if (arg2 == NULL) { | |
11186 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11187 | } | |
994141e6 RD |
11188 | { |
11189 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11190 | if (PyErr_Occurred()) SWIG_fail; | |
11191 | } | |
11192 | { | |
11193 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11194 | if (PyErr_Occurred()) SWIG_fail; | |
11195 | } | |
d14a1e28 | 11196 | if (obj4) { |
a41e16b6 | 11197 | { |
994141e6 | 11198 | arg5 = (bool) SWIG_PyObj_AsBool(obj4); |
a41e16b6 RD |
11199 | if (PyErr_Occurred()) SWIG_fail; |
11200 | } | |
d14a1e28 RD |
11201 | } |
11202 | { | |
11203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11204 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11205 | ||
11206 | wxPyEndAllowThreads(__tstate); | |
11207 | if (PyErr_Occurred()) SWIG_fail; | |
11208 | } | |
11209 | Py_INCREF(Py_None); resultobj = Py_None; | |
11210 | return resultobj; | |
11211 | fail: | |
11212 | return NULL; | |
11213 | } | |
11214 | ||
11215 | ||
11216 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11217 | PyObject *resultobj; | |
11218 | wxDC *arg1 = (wxDC *) 0 ; | |
11219 | wxBitmap *arg2 = 0 ; | |
11220 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11221 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11222 | wxPoint temp3 ; |
11223 | PyObject * obj0 = 0 ; | |
11224 | PyObject * obj1 = 0 ; | |
11225 | PyObject * obj2 = 0 ; | |
11226 | PyObject * obj3 = 0 ; | |
11227 | char *kwnames[] = { | |
11228 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11229 | }; | |
11230 | ||
11231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11233 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11234 | if (arg2 == NULL) { | |
11235 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11236 | } | |
11237 | { | |
11238 | arg3 = &temp3; | |
11239 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11240 | } | |
11241 | if (obj3) { | |
a41e16b6 | 11242 | { |
994141e6 | 11243 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
11244 | if (PyErr_Occurred()) SWIG_fail; |
11245 | } | |
d14a1e28 RD |
11246 | } |
11247 | { | |
11248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11249 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11250 | ||
11251 | wxPyEndAllowThreads(__tstate); | |
11252 | if (PyErr_Occurred()) SWIG_fail; | |
11253 | } | |
11254 | Py_INCREF(Py_None); resultobj = Py_None; | |
11255 | return resultobj; | |
11256 | fail: | |
11257 | return NULL; | |
11258 | } | |
11259 | ||
11260 | ||
11261 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11262 | PyObject *resultobj; | |
11263 | wxDC *arg1 = (wxDC *) 0 ; | |
11264 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11265 | int arg3 ; |
11266 | int arg4 ; | |
11267 | bool temp2 = False ; | |
d14a1e28 RD |
11268 | PyObject * obj0 = 0 ; |
11269 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11270 | PyObject * obj2 = 0 ; |
11271 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11272 | char *kwnames[] = { |
11273 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11274 | }; | |
11275 | ||
994141e6 | 11276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11278 | { | |
11279 | arg2 = wxString_in_helper(obj1); | |
11280 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11281 | temp2 = True; |
d14a1e28 | 11282 | } |
994141e6 RD |
11283 | { |
11284 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
11287 | { | |
11288 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11289 | if (PyErr_Occurred()) SWIG_fail; | |
11290 | } | |
d14a1e28 RD |
11291 | { |
11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11293 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11294 | ||
11295 | wxPyEndAllowThreads(__tstate); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
11297 | } | |
11298 | Py_INCREF(Py_None); resultobj = Py_None; | |
11299 | { | |
11300 | if (temp2) | |
11301 | delete arg2; | |
11302 | } | |
11303 | return resultobj; | |
11304 | fail: | |
11305 | { | |
11306 | if (temp2) | |
11307 | delete arg2; | |
11308 | } | |
11309 | return NULL; | |
11310 | } | |
11311 | ||
11312 | ||
11313 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11314 | PyObject *resultobj; | |
11315 | wxDC *arg1 = (wxDC *) 0 ; | |
11316 | wxString *arg2 = 0 ; | |
11317 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11318 | bool temp2 = False ; |
d14a1e28 RD |
11319 | wxPoint temp3 ; |
11320 | PyObject * obj0 = 0 ; | |
11321 | PyObject * obj1 = 0 ; | |
11322 | PyObject * obj2 = 0 ; | |
11323 | char *kwnames[] = { | |
11324 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11325 | }; | |
11326 | ||
11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11329 | { | |
11330 | arg2 = wxString_in_helper(obj1); | |
11331 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11332 | temp2 = True; |
d14a1e28 RD |
11333 | } |
11334 | { | |
11335 | arg3 = &temp3; | |
11336 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11337 | } | |
11338 | { | |
11339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11340 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11341 | ||
11342 | wxPyEndAllowThreads(__tstate); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | Py_INCREF(Py_None); resultobj = Py_None; | |
11346 | { | |
11347 | if (temp2) | |
11348 | delete arg2; | |
11349 | } | |
11350 | return resultobj; | |
11351 | fail: | |
11352 | { | |
11353 | if (temp2) | |
11354 | delete arg2; | |
11355 | } | |
11356 | return NULL; | |
11357 | } | |
11358 | ||
11359 | ||
11360 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11361 | PyObject *resultobj; | |
11362 | wxDC *arg1 = (wxDC *) 0 ; | |
11363 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11364 | int arg3 ; |
11365 | int arg4 ; | |
d14a1e28 | 11366 | double arg5 ; |
e811c8ce | 11367 | bool temp2 = False ; |
d14a1e28 RD |
11368 | PyObject * obj0 = 0 ; |
11369 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11370 | PyObject * obj2 = 0 ; |
11371 | PyObject * obj3 = 0 ; | |
11372 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11373 | char *kwnames[] = { |
11374 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11375 | }; | |
11376 | ||
994141e6 | 11377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11379 | { | |
11380 | arg2 = wxString_in_helper(obj1); | |
11381 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11382 | temp2 = True; |
d14a1e28 | 11383 | } |
994141e6 RD |
11384 | { |
11385 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11386 | if (PyErr_Occurred()) SWIG_fail; | |
11387 | } | |
11388 | { | |
11389 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11390 | if (PyErr_Occurred()) SWIG_fail; | |
11391 | } | |
11392 | { | |
11393 | arg5 = (double) SWIG_PyObj_AsDouble(obj4); | |
11394 | if (PyErr_Occurred()) SWIG_fail; | |
11395 | } | |
d14a1e28 RD |
11396 | { |
11397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11398 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11399 | ||
11400 | wxPyEndAllowThreads(__tstate); | |
11401 | if (PyErr_Occurred()) SWIG_fail; | |
11402 | } | |
11403 | Py_INCREF(Py_None); resultobj = Py_None; | |
11404 | { | |
11405 | if (temp2) | |
11406 | delete arg2; | |
11407 | } | |
11408 | return resultobj; | |
11409 | fail: | |
11410 | { | |
11411 | if (temp2) | |
11412 | delete arg2; | |
11413 | } | |
11414 | return NULL; | |
11415 | } | |
11416 | ||
11417 | ||
11418 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11419 | PyObject *resultobj; | |
11420 | wxDC *arg1 = (wxDC *) 0 ; | |
11421 | wxString *arg2 = 0 ; | |
11422 | wxPoint *arg3 = 0 ; | |
11423 | double arg4 ; | |
e811c8ce | 11424 | bool temp2 = False ; |
d14a1e28 RD |
11425 | wxPoint temp3 ; |
11426 | PyObject * obj0 = 0 ; | |
11427 | PyObject * obj1 = 0 ; | |
11428 | PyObject * obj2 = 0 ; | |
994141e6 | 11429 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11430 | char *kwnames[] = { |
11431 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11432 | }; | |
11433 | ||
994141e6 | 11434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11436 | { | |
11437 | arg2 = wxString_in_helper(obj1); | |
11438 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11439 | temp2 = True; |
d14a1e28 RD |
11440 | } |
11441 | { | |
11442 | arg3 = &temp3; | |
11443 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11444 | } | |
994141e6 RD |
11445 | { |
11446 | arg4 = (double) SWIG_PyObj_AsDouble(obj3); | |
11447 | if (PyErr_Occurred()) SWIG_fail; | |
11448 | } | |
d14a1e28 RD |
11449 | { |
11450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11451 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11452 | ||
11453 | wxPyEndAllowThreads(__tstate); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
11456 | Py_INCREF(Py_None); resultobj = Py_None; | |
11457 | { | |
11458 | if (temp2) | |
11459 | delete arg2; | |
11460 | } | |
11461 | return resultobj; | |
11462 | fail: | |
11463 | { | |
11464 | if (temp2) | |
11465 | delete arg2; | |
11466 | } | |
11467 | return NULL; | |
11468 | } | |
11469 | ||
11470 | ||
11471 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11472 | PyObject *resultobj; | |
11473 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11474 | int arg2 ; |
11475 | int arg3 ; | |
11476 | int arg4 ; | |
11477 | int arg5 ; | |
d14a1e28 | 11478 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
11479 | int arg7 ; |
11480 | int arg8 ; | |
d14a1e28 | 11481 | int arg9 = (int) wxCOPY ; |
e811c8ce RD |
11482 | bool arg10 = (bool) False ; |
11483 | int arg11 = (int) -1 ; | |
11484 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11485 | bool result; |
11486 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11487 | PyObject * obj1 = 0 ; |
11488 | PyObject * obj2 = 0 ; | |
11489 | PyObject * obj3 = 0 ; | |
11490 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11491 | PyObject * obj5 = 0 ; |
994141e6 RD |
11492 | PyObject * obj6 = 0 ; |
11493 | PyObject * obj7 = 0 ; | |
11494 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11495 | PyObject * obj9 = 0 ; |
994141e6 RD |
11496 | PyObject * obj10 = 0 ; |
11497 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11498 | char *kwnames[] = { |
11499 | (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 | |
11500 | }; | |
11501 | ||
994141e6 | 11502 | 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 | 11503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11504 | { |
11505 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | { | |
11509 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
11511 | } | |
11512 | { | |
11513 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | { | |
11517 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
d14a1e28 | 11520 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11521 | { |
11522 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
11525 | { | |
11526 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
11527 | if (PyErr_Occurred()) SWIG_fail; | |
11528 | } | |
11529 | if (obj8) { | |
11530 | { | |
11531 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | } | |
d14a1e28 | 11535 | if (obj9) { |
a41e16b6 | 11536 | { |
994141e6 RD |
11537 | arg10 = (bool) SWIG_PyObj_AsBool(obj9); |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | } | |
11540 | } | |
11541 | if (obj10) { | |
11542 | { | |
11543 | arg11 = (int) SWIG_PyObj_AsInt(obj10); | |
11544 | if (PyErr_Occurred()) SWIG_fail; | |
11545 | } | |
11546 | } | |
11547 | if (obj11) { | |
11548 | { | |
11549 | arg12 = (int) SWIG_PyObj_AsInt(obj11); | |
a41e16b6 RD |
11550 | if (PyErr_Occurred()) SWIG_fail; |
11551 | } | |
d14a1e28 RD |
11552 | } |
11553 | { | |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
4d5c3d91 | 11560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11561 | return resultobj; |
11562 | fail: | |
11563 | return NULL; | |
11564 | } | |
11565 | ||
11566 | ||
11567 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11568 | PyObject *resultobj; | |
11569 | wxDC *arg1 = (wxDC *) 0 ; | |
11570 | wxPoint *arg2 = 0 ; | |
11571 | wxSize *arg3 = 0 ; | |
11572 | wxDC *arg4 = (wxDC *) 0 ; | |
11573 | wxPoint *arg5 = 0 ; | |
11574 | int arg6 = (int) wxCOPY ; | |
e811c8ce | 11575 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11576 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11577 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11578 | bool result; | |
11579 | wxPoint temp2 ; | |
11580 | wxSize temp3 ; | |
11581 | wxPoint temp5 ; | |
11582 | wxPoint temp8 ; | |
11583 | PyObject * obj0 = 0 ; | |
11584 | PyObject * obj1 = 0 ; | |
11585 | PyObject * obj2 = 0 ; | |
11586 | PyObject * obj3 = 0 ; | |
11587 | PyObject * obj4 = 0 ; | |
994141e6 | 11588 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11589 | PyObject * obj6 = 0 ; |
11590 | PyObject * obj7 = 0 ; | |
11591 | char *kwnames[] = { | |
11592 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11593 | }; | |
11594 | ||
994141e6 | 11595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
11596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11597 | { | |
11598 | arg2 = &temp2; | |
11599 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11600 | } | |
11601 | { | |
11602 | arg3 = &temp3; | |
11603 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11604 | } | |
11605 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11606 | { | |
11607 | arg5 = &temp5; | |
11608 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11609 | } | |
994141e6 RD |
11610 | if (obj5) { |
11611 | { | |
11612 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11613 | if (PyErr_Occurred()) SWIG_fail; | |
11614 | } | |
11615 | } | |
d14a1e28 | 11616 | if (obj6) { |
a41e16b6 | 11617 | { |
994141e6 | 11618 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
11619 | if (PyErr_Occurred()) SWIG_fail; |
11620 | } | |
d14a1e28 RD |
11621 | } |
11622 | if (obj7) { | |
11623 | { | |
11624 | arg8 = &temp8; | |
11625 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11626 | } | |
11627 | } | |
11628 | { | |
11629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11630 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11631 | ||
11632 | wxPyEndAllowThreads(__tstate); | |
11633 | if (PyErr_Occurred()) SWIG_fail; | |
11634 | } | |
4d5c3d91 | 11635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11636 | return resultobj; |
11637 | fail: | |
11638 | return NULL; | |
11639 | } | |
11640 | ||
11641 | ||
11642 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11643 | PyObject *resultobj; | |
11644 | wxDC *arg1 = (wxDC *) 0 ; | |
11645 | int arg2 ; | |
11646 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11647 | int arg4 = (int) 0 ; |
11648 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11649 | PyObject * obj0 = 0 ; |
11650 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11651 | PyObject * obj2 = 0 ; |
11652 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11653 | char *kwnames[] = { |
11654 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11655 | }; | |
11656 | ||
994141e6 | 11657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
11658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11659 | { | |
11660 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11661 | if (arg3 == NULL) SWIG_fail; | |
11662 | } | |
994141e6 RD |
11663 | if (obj2) { |
11664 | { | |
11665 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11666 | if (PyErr_Occurred()) SWIG_fail; | |
11667 | } | |
11668 | } | |
11669 | if (obj3) { | |
11670 | { | |
11671 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11672 | if (PyErr_Occurred()) SWIG_fail; | |
11673 | } | |
11674 | } | |
d14a1e28 RD |
11675 | { |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11678 | ||
11679 | wxPyEndAllowThreads(__tstate); | |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
11681 | } | |
11682 | Py_INCREF(Py_None); resultobj = Py_None; | |
11683 | { | |
11684 | if (arg3) delete [] arg3; | |
11685 | } | |
11686 | return resultobj; | |
11687 | fail: | |
11688 | { | |
11689 | if (arg3) delete [] arg3; | |
11690 | } | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
11695 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject *resultobj; | |
11697 | wxDC *arg1 = (wxDC *) 0 ; | |
11698 | int arg2 ; | |
11699 | wxPoint *arg3 = (wxPoint *) 0 ; | |
e811c8ce RD |
11700 | int arg4 = (int) 0 ; |
11701 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11702 | int arg6 = (int) wxODDEVEN_RULE ; |
11703 | PyObject * obj0 = 0 ; | |
11704 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11705 | PyObject * obj2 = 0 ; |
11706 | PyObject * obj3 = 0 ; | |
11707 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11708 | char *kwnames[] = { |
11709 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11710 | }; | |
11711 | ||
994141e6 | 11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11714 | { | |
11715 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11716 | if (arg3 == NULL) SWIG_fail; | |
11717 | } | |
994141e6 RD |
11718 | if (obj2) { |
11719 | { | |
11720 | arg4 = (int) SWIG_PyObj_AsInt(obj2); | |
11721 | if (PyErr_Occurred()) SWIG_fail; | |
11722 | } | |
11723 | } | |
11724 | if (obj3) { | |
11725 | { | |
11726 | arg5 = (int) SWIG_PyObj_AsInt(obj3); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | } | |
11730 | if (obj4) { | |
11731 | { | |
11732 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
11733 | if (PyErr_Occurred()) SWIG_fail; | |
11734 | } | |
11735 | } | |
d14a1e28 RD |
11736 | { |
11737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11738 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11739 | ||
11740 | wxPyEndAllowThreads(__tstate); | |
11741 | if (PyErr_Occurred()) SWIG_fail; | |
11742 | } | |
11743 | Py_INCREF(Py_None); resultobj = Py_None; | |
11744 | { | |
11745 | if (arg3) delete [] arg3; | |
11746 | } | |
11747 | return resultobj; | |
11748 | fail: | |
11749 | { | |
11750 | if (arg3) delete [] arg3; | |
11751 | } | |
11752 | return NULL; | |
11753 | } | |
11754 | ||
11755 | ||
11756 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11757 | PyObject *resultobj; | |
11758 | wxDC *arg1 = (wxDC *) 0 ; | |
11759 | wxString *arg2 = 0 ; | |
11760 | wxRect *arg3 = 0 ; | |
11761 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11762 | int arg5 = (int) -1 ; | |
e811c8ce | 11763 | bool temp2 = False ; |
d14a1e28 RD |
11764 | wxRect temp3 ; |
11765 | PyObject * obj0 = 0 ; | |
11766 | PyObject * obj1 = 0 ; | |
11767 | PyObject * obj2 = 0 ; | |
994141e6 RD |
11768 | PyObject * obj3 = 0 ; |
11769 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11770 | char *kwnames[] = { |
11771 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11772 | }; | |
11773 | ||
994141e6 | 11774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
11775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11776 | { | |
11777 | arg2 = wxString_in_helper(obj1); | |
11778 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11779 | temp2 = True; |
d14a1e28 RD |
11780 | } |
11781 | { | |
11782 | arg3 = &temp3; | |
11783 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11784 | } | |
994141e6 RD |
11785 | if (obj3) { |
11786 | { | |
11787 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11788 | if (PyErr_Occurred()) SWIG_fail; | |
11789 | } | |
11790 | } | |
11791 | if (obj4) { | |
11792 | { | |
11793 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11794 | if (PyErr_Occurred()) SWIG_fail; | |
11795 | } | |
11796 | } | |
11797 | { | |
11798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11799 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
11800 | |
11801 | wxPyEndAllowThreads(__tstate); | |
11802 | if (PyErr_Occurred()) SWIG_fail; | |
11803 | } | |
11804 | Py_INCREF(Py_None); resultobj = Py_None; | |
11805 | { | |
11806 | if (temp2) | |
11807 | delete arg2; | |
11808 | } | |
11809 | return resultobj; | |
11810 | fail: | |
11811 | { | |
11812 | if (temp2) | |
11813 | delete arg2; | |
11814 | } | |
11815 | return NULL; | |
11816 | } | |
11817 | ||
11818 | ||
11819 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11820 | PyObject *resultobj; | |
11821 | wxDC *arg1 = (wxDC *) 0 ; | |
11822 | wxString *arg2 = 0 ; | |
11823 | wxBitmap *arg3 = 0 ; | |
11824 | wxRect *arg4 = 0 ; | |
11825 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11826 | int arg6 = (int) -1 ; | |
11827 | wxRect result; | |
e811c8ce | 11828 | bool temp2 = False ; |
d14a1e28 RD |
11829 | wxRect temp4 ; |
11830 | PyObject * obj0 = 0 ; | |
11831 | PyObject * obj1 = 0 ; | |
11832 | PyObject * obj2 = 0 ; | |
11833 | PyObject * obj3 = 0 ; | |
994141e6 RD |
11834 | PyObject * obj4 = 0 ; |
11835 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11836 | char *kwnames[] = { |
11837 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11838 | }; | |
11839 | ||
994141e6 | 11840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
11841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11842 | { | |
11843 | arg2 = wxString_in_helper(obj1); | |
11844 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11845 | temp2 = True; |
d14a1e28 RD |
11846 | } |
11847 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11848 | if (arg3 == NULL) { | |
11849 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11850 | } | |
11851 | { | |
11852 | arg4 = &temp4; | |
11853 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11854 | } | |
994141e6 RD |
11855 | if (obj4) { |
11856 | { | |
11857 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
11858 | if (PyErr_Occurred()) SWIG_fail; | |
11859 | } | |
11860 | } | |
11861 | if (obj5) { | |
11862 | { | |
11863 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
11865 | } | |
11866 | } | |
d14a1e28 RD |
11867 | { |
11868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11869 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
11870 | ||
11871 | wxPyEndAllowThreads(__tstate); | |
11872 | if (PyErr_Occurred()) SWIG_fail; | |
11873 | } | |
11874 | { | |
11875 | wxRect * resultptr; | |
11876 | resultptr = new wxRect((wxRect &) result); | |
11877 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11878 | } | |
11879 | { | |
11880 | if (temp2) | |
11881 | delete arg2; | |
11882 | } | |
11883 | return resultobj; | |
11884 | fail: | |
11885 | { | |
11886 | if (temp2) | |
11887 | delete arg2; | |
11888 | } | |
11889 | return NULL; | |
11890 | } | |
11891 | ||
11892 | ||
11893 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11894 | PyObject *resultobj; | |
11895 | wxDC *arg1 = (wxDC *) 0 ; | |
11896 | int arg2 ; | |
11897 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | PyObject * obj1 = 0 ; | |
11900 | char *kwnames[] = { | |
11901 | (char *) "self",(char *) "points", NULL | |
11902 | }; | |
11903 | ||
11904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11906 | { | |
11907 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11908 | if (arg3 == NULL) SWIG_fail; | |
11909 | } | |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | (arg1)->DrawSpline(arg2,arg3); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
11917 | Py_INCREF(Py_None); resultobj = Py_None; | |
11918 | { | |
11919 | if (arg3) delete [] arg3; | |
11920 | } | |
11921 | return resultobj; | |
11922 | fail: | |
11923 | { | |
11924 | if (arg3) delete [] arg3; | |
11925 | } | |
11926 | return NULL; | |
11927 | } | |
11928 | ||
11929 | ||
11930 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11931 | PyObject *resultobj; | |
11932 | wxDC *arg1 = (wxDC *) 0 ; | |
11933 | PyObject * obj0 = 0 ; | |
11934 | char *kwnames[] = { | |
11935 | (char *) "self", NULL | |
11936 | }; | |
11937 | ||
11938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11940 | { | |
11941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11942 | (arg1)->Clear(); | |
11943 | ||
11944 | wxPyEndAllowThreads(__tstate); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
11947 | Py_INCREF(Py_None); resultobj = Py_None; | |
11948 | return resultobj; | |
11949 | fail: | |
11950 | return NULL; | |
11951 | } | |
11952 | ||
11953 | ||
11954 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11955 | PyObject *resultobj; | |
11956 | wxDC *arg1 = (wxDC *) 0 ; | |
11957 | wxString *arg2 = 0 ; | |
11958 | bool result; | |
e811c8ce | 11959 | bool temp2 = False ; |
d14a1e28 RD |
11960 | PyObject * obj0 = 0 ; |
11961 | PyObject * obj1 = 0 ; | |
11962 | char *kwnames[] = { | |
11963 | (char *) "self",(char *) "message", NULL | |
11964 | }; | |
11965 | ||
11966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11968 | { | |
11969 | arg2 = wxString_in_helper(obj1); | |
11970 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11971 | temp2 = True; |
d14a1e28 RD |
11972 | } |
11973 | { | |
11974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11975 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11976 | ||
11977 | wxPyEndAllowThreads(__tstate); | |
11978 | if (PyErr_Occurred()) SWIG_fail; | |
11979 | } | |
4d5c3d91 | 11980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11981 | { |
11982 | if (temp2) | |
11983 | delete arg2; | |
11984 | } | |
11985 | return resultobj; | |
11986 | fail: | |
11987 | { | |
11988 | if (temp2) | |
11989 | delete arg2; | |
11990 | } | |
11991 | return NULL; | |
11992 | } | |
11993 | ||
11994 | ||
11995 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11996 | PyObject *resultobj; | |
11997 | wxDC *arg1 = (wxDC *) 0 ; | |
11998 | PyObject * obj0 = 0 ; | |
11999 | char *kwnames[] = { | |
12000 | (char *) "self", NULL | |
12001 | }; | |
12002 | ||
12003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
12004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12005 | { | |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | (arg1)->EndDoc(); | |
12008 | ||
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | Py_INCREF(Py_None); resultobj = Py_None; | |
12013 | return resultobj; | |
12014 | fail: | |
12015 | return NULL; | |
12016 | } | |
12017 | ||
12018 | ||
12019 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12020 | PyObject *resultobj; | |
12021 | wxDC *arg1 = (wxDC *) 0 ; | |
12022 | PyObject * obj0 = 0 ; | |
12023 | char *kwnames[] = { | |
12024 | (char *) "self", NULL | |
12025 | }; | |
12026 | ||
12027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12029 | { | |
12030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12031 | (arg1)->StartPage(); | |
12032 | ||
12033 | wxPyEndAllowThreads(__tstate); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | Py_INCREF(Py_None); resultobj = Py_None; | |
12037 | return resultobj; | |
12038 | fail: | |
12039 | return NULL; | |
12040 | } | |
12041 | ||
12042 | ||
12043 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12044 | PyObject *resultobj; | |
12045 | wxDC *arg1 = (wxDC *) 0 ; | |
12046 | PyObject * obj0 = 0 ; | |
12047 | char *kwnames[] = { | |
12048 | (char *) "self", NULL | |
12049 | }; | |
12050 | ||
12051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12053 | { | |
12054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12055 | (arg1)->EndPage(); | |
12056 | ||
12057 | wxPyEndAllowThreads(__tstate); | |
12058 | if (PyErr_Occurred()) SWIG_fail; | |
12059 | } | |
12060 | Py_INCREF(Py_None); resultobj = Py_None; | |
12061 | return resultobj; | |
12062 | fail: | |
12063 | return NULL; | |
12064 | } | |
12065 | ||
12066 | ||
12067 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12068 | PyObject *resultobj; | |
12069 | wxDC *arg1 = (wxDC *) 0 ; | |
12070 | wxFont *arg2 = 0 ; | |
12071 | PyObject * obj0 = 0 ; | |
12072 | PyObject * obj1 = 0 ; | |
12073 | char *kwnames[] = { | |
12074 | (char *) "self",(char *) "font", NULL | |
12075 | }; | |
12076 | ||
12077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
12078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12080 | if (arg2 == NULL) { | |
12081 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12082 | } | |
12083 | { | |
12084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12085 | (arg1)->SetFont((wxFont const &)*arg2); | |
12086 | ||
12087 | wxPyEndAllowThreads(__tstate); | |
12088 | if (PyErr_Occurred()) SWIG_fail; | |
12089 | } | |
12090 | Py_INCREF(Py_None); resultobj = Py_None; | |
12091 | return resultobj; | |
12092 | fail: | |
12093 | return NULL; | |
12094 | } | |
12095 | ||
12096 | ||
12097 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12098 | PyObject *resultobj; | |
12099 | wxDC *arg1 = (wxDC *) 0 ; | |
12100 | wxPen *arg2 = 0 ; | |
12101 | PyObject * obj0 = 0 ; | |
12102 | PyObject * obj1 = 0 ; | |
12103 | char *kwnames[] = { | |
12104 | (char *) "self",(char *) "pen", NULL | |
12105 | }; | |
12106 | ||
12107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
12108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12109 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12110 | if (arg2 == NULL) { | |
12111 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12112 | } | |
12113 | { | |
12114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12115 | (arg1)->SetPen((wxPen const &)*arg2); | |
12116 | ||
12117 | wxPyEndAllowThreads(__tstate); | |
12118 | if (PyErr_Occurred()) SWIG_fail; | |
12119 | } | |
12120 | Py_INCREF(Py_None); resultobj = Py_None; | |
12121 | return resultobj; | |
12122 | fail: | |
12123 | return NULL; | |
12124 | } | |
12125 | ||
12126 | ||
12127 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12128 | PyObject *resultobj; | |
12129 | wxDC *arg1 = (wxDC *) 0 ; | |
12130 | wxBrush *arg2 = 0 ; | |
12131 | PyObject * obj0 = 0 ; | |
12132 | PyObject * obj1 = 0 ; | |
12133 | char *kwnames[] = { | |
12134 | (char *) "self",(char *) "brush", NULL | |
12135 | }; | |
12136 | ||
12137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
12138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12139 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12140 | if (arg2 == NULL) { | |
12141 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12142 | } | |
12143 | { | |
12144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12145 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12146 | ||
12147 | wxPyEndAllowThreads(__tstate); | |
12148 | if (PyErr_Occurred()) SWIG_fail; | |
12149 | } | |
12150 | Py_INCREF(Py_None); resultobj = Py_None; | |
12151 | return resultobj; | |
12152 | fail: | |
12153 | return NULL; | |
12154 | } | |
12155 | ||
12156 | ||
12157 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12158 | PyObject *resultobj; | |
12159 | wxDC *arg1 = (wxDC *) 0 ; | |
12160 | wxBrush *arg2 = 0 ; | |
12161 | PyObject * obj0 = 0 ; | |
12162 | PyObject * obj1 = 0 ; | |
12163 | char *kwnames[] = { | |
12164 | (char *) "self",(char *) "brush", NULL | |
12165 | }; | |
12166 | ||
12167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
12168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12169 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12170 | if (arg2 == NULL) { | |
12171 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12172 | } | |
12173 | { | |
12174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12175 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12176 | ||
12177 | wxPyEndAllowThreads(__tstate); | |
12178 | if (PyErr_Occurred()) SWIG_fail; | |
12179 | } | |
12180 | Py_INCREF(Py_None); resultobj = Py_None; | |
12181 | return resultobj; | |
12182 | fail: | |
12183 | return NULL; | |
12184 | } | |
12185 | ||
12186 | ||
12187 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12188 | PyObject *resultobj; | |
12189 | wxDC *arg1 = (wxDC *) 0 ; | |
12190 | int arg2 ; | |
12191 | PyObject * obj0 = 0 ; | |
994141e6 | 12192 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12193 | char *kwnames[] = { |
12194 | (char *) "self",(char *) "mode", NULL | |
12195 | }; | |
12196 | ||
994141e6 | 12197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12199 | { |
12200 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12201 | if (PyErr_Occurred()) SWIG_fail; | |
12202 | } | |
d14a1e28 RD |
12203 | { |
12204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12205 | (arg1)->SetBackgroundMode(arg2); | |
12206 | ||
12207 | wxPyEndAllowThreads(__tstate); | |
12208 | if (PyErr_Occurred()) SWIG_fail; | |
12209 | } | |
12210 | Py_INCREF(Py_None); resultobj = Py_None; | |
12211 | return resultobj; | |
12212 | fail: | |
12213 | return NULL; | |
12214 | } | |
12215 | ||
12216 | ||
12217 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12218 | PyObject *resultobj; | |
12219 | wxDC *arg1 = (wxDC *) 0 ; | |
12220 | wxPalette *arg2 = 0 ; | |
12221 | PyObject * obj0 = 0 ; | |
12222 | PyObject * obj1 = 0 ; | |
12223 | char *kwnames[] = { | |
12224 | (char *) "self",(char *) "palette", NULL | |
12225 | }; | |
12226 | ||
12227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
12228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12229 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12230 | if (arg2 == NULL) { | |
12231 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12232 | } | |
12233 | { | |
12234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12235 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12236 | ||
12237 | wxPyEndAllowThreads(__tstate); | |
12238 | if (PyErr_Occurred()) SWIG_fail; | |
12239 | } | |
12240 | Py_INCREF(Py_None); resultobj = Py_None; | |
12241 | return resultobj; | |
12242 | fail: | |
12243 | return NULL; | |
12244 | } | |
12245 | ||
12246 | ||
242b7b46 | 12247 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12248 | PyObject *resultobj; |
12249 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12250 | int arg2 ; |
12251 | int arg3 ; | |
12252 | int arg4 ; | |
12253 | int arg5 ; | |
d14a1e28 | 12254 | PyObject * obj0 = 0 ; |
994141e6 RD |
12255 | PyObject * obj1 = 0 ; |
12256 | PyObject * obj2 = 0 ; | |
12257 | PyObject * obj3 = 0 ; | |
12258 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12259 | char *kwnames[] = { |
12260 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12261 | }; | |
12262 | ||
994141e6 | 12263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 12264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12265 | { |
12266 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12267 | if (PyErr_Occurred()) SWIG_fail; | |
12268 | } | |
12269 | { | |
12270 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12271 | if (PyErr_Occurred()) SWIG_fail; | |
12272 | } | |
12273 | { | |
12274 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
12276 | } | |
12277 | { | |
12278 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
12280 | } | |
d14a1e28 RD |
12281 | { |
12282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12283 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12284 | ||
12285 | wxPyEndAllowThreads(__tstate); | |
12286 | if (PyErr_Occurred()) SWIG_fail; | |
12287 | } | |
12288 | Py_INCREF(Py_None); resultobj = Py_None; | |
12289 | return resultobj; | |
12290 | fail: | |
12291 | return NULL; | |
12292 | } | |
12293 | ||
12294 | ||
242b7b46 RD |
12295 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12296 | PyObject *resultobj; | |
12297 | wxDC *arg1 = (wxDC *) 0 ; | |
12298 | wxPoint *arg2 = 0 ; | |
12299 | wxSize *arg3 = 0 ; | |
12300 | wxPoint temp2 ; | |
12301 | wxSize temp3 ; | |
12302 | PyObject * obj0 = 0 ; | |
12303 | PyObject * obj1 = 0 ; | |
12304 | PyObject * obj2 = 0 ; | |
12305 | char *kwnames[] = { | |
12306 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12307 | }; | |
12308 | ||
12309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12311 | { | |
12312 | arg2 = &temp2; | |
12313 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12314 | } | |
12315 | { | |
12316 | arg3 = &temp3; | |
12317 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12318 | } | |
12319 | { | |
12320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12321 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12322 | ||
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
12326 | Py_INCREF(Py_None); resultobj = Py_None; | |
12327 | return resultobj; | |
12328 | fail: | |
12329 | return NULL; | |
12330 | } | |
12331 | ||
12332 | ||
d14a1e28 RD |
12333 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
12334 | PyObject *resultobj; | |
12335 | wxDC *arg1 = (wxDC *) 0 ; | |
12336 | wxRect *arg2 = 0 ; | |
12337 | wxRect temp2 ; | |
12338 | PyObject * obj0 = 0 ; | |
12339 | PyObject * obj1 = 0 ; | |
12340 | char *kwnames[] = { | |
12341 | (char *) "self",(char *) "rect", NULL | |
12342 | }; | |
12343 | ||
12344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12346 | { | |
12347 | arg2 = &temp2; | |
12348 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12349 | } | |
12350 | { | |
12351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12352 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12353 | ||
12354 | wxPyEndAllowThreads(__tstate); | |
12355 | if (PyErr_Occurred()) SWIG_fail; | |
12356 | } | |
12357 | Py_INCREF(Py_None); resultobj = Py_None; | |
12358 | return resultobj; | |
12359 | fail: | |
12360 | return NULL; | |
12361 | } | |
12362 | ||
12363 | ||
12364 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12365 | PyObject *resultobj; | |
12366 | wxDC *arg1 = (wxDC *) 0 ; | |
12367 | wxRegion *arg2 = 0 ; | |
12368 | PyObject * obj0 = 0 ; | |
12369 | PyObject * obj1 = 0 ; | |
12370 | char *kwnames[] = { | |
12371 | (char *) "self",(char *) "region", NULL | |
12372 | }; | |
12373 | ||
12374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12376 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12377 | if (arg2 == NULL) { | |
12378 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12379 | } | |
12380 | { | |
12381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12382 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12383 | ||
12384 | wxPyEndAllowThreads(__tstate); | |
12385 | if (PyErr_Occurred()) SWIG_fail; | |
12386 | } | |
12387 | Py_INCREF(Py_None); resultobj = Py_None; | |
12388 | return resultobj; | |
12389 | fail: | |
12390 | return NULL; | |
12391 | } | |
12392 | ||
12393 | ||
12394 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12395 | PyObject *resultobj; | |
12396 | wxDC *arg1 = (wxDC *) 0 ; | |
12397 | PyObject * obj0 = 0 ; | |
12398 | char *kwnames[] = { | |
12399 | (char *) "self", NULL | |
12400 | }; | |
12401 | ||
12402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
12403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12404 | { | |
12405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12406 | (arg1)->DestroyClippingRegion(); | |
12407 | ||
12408 | wxPyEndAllowThreads(__tstate); | |
12409 | if (PyErr_Occurred()) SWIG_fail; | |
12410 | } | |
12411 | Py_INCREF(Py_None); resultobj = Py_None; | |
12412 | return resultobj; | |
12413 | fail: | |
12414 | return NULL; | |
12415 | } | |
12416 | ||
12417 | ||
12418 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12419 | PyObject *resultobj; | |
12420 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12421 | int *arg2 = (int *) 0 ; |
12422 | int *arg3 = (int *) 0 ; | |
12423 | int *arg4 = (int *) 0 ; | |
12424 | int *arg5 = (int *) 0 ; | |
12425 | int temp2 ; | |
12426 | int temp3 ; | |
12427 | int temp4 ; | |
12428 | int temp5 ; | |
d14a1e28 RD |
12429 | PyObject * obj0 = 0 ; |
12430 | char *kwnames[] = { | |
12431 | (char *) "self", NULL | |
12432 | }; | |
12433 | ||
12434 | arg2 = &temp2; | |
12435 | arg3 = &temp3; | |
12436 | arg4 = &temp4; | |
12437 | arg5 = &temp5; | |
12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
12439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12440 | { | |
12441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12442 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12443 | ||
12444 | wxPyEndAllowThreads(__tstate); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
12446 | } | |
12447 | Py_INCREF(Py_None); resultobj = Py_None; | |
12448 | { | |
12449 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12450 | resultobj = t_output_helper(resultobj,o); | |
12451 | } | |
12452 | { | |
12453 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12454 | resultobj = t_output_helper(resultobj,o); | |
12455 | } | |
12456 | { | |
12457 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12458 | resultobj = t_output_helper(resultobj,o); | |
12459 | } | |
12460 | { | |
12461 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12462 | resultobj = t_output_helper(resultobj,o); | |
12463 | } | |
12464 | return resultobj; | |
12465 | fail: | |
12466 | return NULL; | |
12467 | } | |
12468 | ||
12469 | ||
12470 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12471 | PyObject *resultobj; | |
12472 | wxDC *arg1 = (wxDC *) 0 ; | |
12473 | wxRect result; | |
12474 | PyObject * obj0 = 0 ; | |
12475 | char *kwnames[] = { | |
12476 | (char *) "self", NULL | |
12477 | }; | |
12478 | ||
12479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
12480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12481 | { | |
12482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12483 | result = wxDC_GetClippingRect(arg1); | |
12484 | ||
12485 | wxPyEndAllowThreads(__tstate); | |
12486 | if (PyErr_Occurred()) SWIG_fail; | |
12487 | } | |
12488 | { | |
12489 | wxRect * resultptr; | |
12490 | resultptr = new wxRect((wxRect &) result); | |
12491 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
12492 | } | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
12499 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12500 | PyObject *resultobj; | |
12501 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12502 | int result; |
d14a1e28 RD |
12503 | PyObject * obj0 = 0 ; |
12504 | char *kwnames[] = { | |
12505 | (char *) "self", NULL | |
12506 | }; | |
12507 | ||
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
12509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12510 | { | |
12511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12512 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12513 | |
12514 | wxPyEndAllowThreads(__tstate); | |
12515 | if (PyErr_Occurred()) SWIG_fail; | |
12516 | } | |
994141e6 | 12517 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12518 | return resultobj; |
12519 | fail: | |
12520 | return NULL; | |
12521 | } | |
12522 | ||
12523 | ||
12524 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12525 | PyObject *resultobj; | |
12526 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12527 | int result; |
d14a1e28 RD |
12528 | PyObject * obj0 = 0 ; |
12529 | char *kwnames[] = { | |
12530 | (char *) "self", NULL | |
12531 | }; | |
12532 | ||
12533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
12534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12535 | { | |
12536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12537 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12538 | |
12539 | wxPyEndAllowThreads(__tstate); | |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
12541 | } | |
994141e6 | 12542 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12543 | return resultobj; |
12544 | fail: | |
12545 | return NULL; | |
12546 | } | |
12547 | ||
12548 | ||
12549 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12550 | PyObject *resultobj; | |
12551 | wxDC *arg1 = (wxDC *) 0 ; | |
12552 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12553 | int *arg3 = (int *) 0 ; |
12554 | int *arg4 = (int *) 0 ; | |
12555 | bool temp2 = False ; | |
12556 | int temp3 ; | |
12557 | int temp4 ; | |
d14a1e28 RD |
12558 | PyObject * obj0 = 0 ; |
12559 | PyObject * obj1 = 0 ; | |
12560 | char *kwnames[] = { | |
12561 | (char *) "self",(char *) "string", NULL | |
12562 | }; | |
12563 | ||
12564 | arg3 = &temp3; | |
12565 | arg4 = &temp4; | |
12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
12567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12568 | { | |
12569 | arg2 = wxString_in_helper(obj1); | |
12570 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12571 | temp2 = True; |
d14a1e28 RD |
12572 | } |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12576 | ||
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
12580 | Py_INCREF(Py_None); resultobj = Py_None; | |
12581 | { | |
12582 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12583 | resultobj = t_output_helper(resultobj,o); | |
12584 | } | |
12585 | { | |
12586 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12587 | resultobj = t_output_helper(resultobj,o); | |
12588 | } | |
12589 | { | |
12590 | if (temp2) | |
12591 | delete arg2; | |
12592 | } | |
12593 | return resultobj; | |
12594 | fail: | |
12595 | { | |
12596 | if (temp2) | |
12597 | delete arg2; | |
12598 | } | |
12599 | return NULL; | |
12600 | } | |
12601 | ||
12602 | ||
12603 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxDC *arg1 = (wxDC *) 0 ; | |
12606 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12607 | int *arg3 = (int *) 0 ; |
12608 | int *arg4 = (int *) 0 ; | |
12609 | int *arg5 = (int *) 0 ; | |
12610 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12611 | wxFont *arg7 = (wxFont *) NULL ; |
e811c8ce RD |
12612 | bool temp2 = False ; |
12613 | int temp3 ; | |
12614 | int temp4 ; | |
12615 | int temp5 ; | |
12616 | int temp6 ; | |
d14a1e28 RD |
12617 | PyObject * obj0 = 0 ; |
12618 | PyObject * obj1 = 0 ; | |
12619 | PyObject * obj2 = 0 ; | |
12620 | char *kwnames[] = { | |
12621 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12622 | }; | |
12623 | ||
12624 | arg3 = &temp3; | |
12625 | arg4 = &temp4; | |
12626 | arg5 = &temp5; | |
12627 | arg6 = &temp6; | |
12628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12630 | { | |
12631 | arg2 = wxString_in_helper(obj1); | |
12632 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12633 | temp2 = True; |
d14a1e28 RD |
12634 | } |
12635 | if (obj2) { | |
12636 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12637 | } | |
12638 | { | |
12639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12640 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12641 | ||
12642 | wxPyEndAllowThreads(__tstate); | |
12643 | if (PyErr_Occurred()) SWIG_fail; | |
12644 | } | |
12645 | Py_INCREF(Py_None); resultobj = Py_None; | |
12646 | { | |
12647 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12648 | resultobj = t_output_helper(resultobj,o); | |
12649 | } | |
12650 | { | |
12651 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12652 | resultobj = t_output_helper(resultobj,o); | |
12653 | } | |
12654 | { | |
12655 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12656 | resultobj = t_output_helper(resultobj,o); | |
12657 | } | |
12658 | { | |
12659 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12660 | resultobj = t_output_helper(resultobj,o); | |
12661 | } | |
12662 | { | |
12663 | if (temp2) | |
12664 | delete arg2; | |
12665 | } | |
12666 | return resultobj; | |
12667 | fail: | |
12668 | { | |
12669 | if (temp2) | |
12670 | delete arg2; | |
12671 | } | |
12672 | return NULL; | |
12673 | } | |
12674 | ||
12675 | ||
12676 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12677 | PyObject *resultobj; | |
12678 | wxDC *arg1 = (wxDC *) 0 ; | |
12679 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12680 | int *arg3 = (int *) 0 ; |
12681 | int *arg4 = (int *) 0 ; | |
12682 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12683 | wxFont *arg6 = (wxFont *) NULL ; |
e811c8ce RD |
12684 | bool temp2 = False ; |
12685 | int temp3 ; | |
12686 | int temp4 ; | |
12687 | int temp5 ; | |
d14a1e28 RD |
12688 | PyObject * obj0 = 0 ; |
12689 | PyObject * obj1 = 0 ; | |
12690 | PyObject * obj2 = 0 ; | |
12691 | char *kwnames[] = { | |
12692 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12693 | }; | |
12694 | ||
12695 | arg3 = &temp3; | |
12696 | arg4 = &temp4; | |
12697 | arg5 = &temp5; | |
12698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12700 | { | |
12701 | arg2 = wxString_in_helper(obj1); | |
12702 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12703 | temp2 = True; |
d14a1e28 RD |
12704 | } |
12705 | if (obj2) { | |
12706 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12707 | } | |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
12715 | Py_INCREF(Py_None); resultobj = Py_None; | |
12716 | { | |
12717 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12718 | resultobj = t_output_helper(resultobj,o); | |
12719 | } | |
12720 | { | |
12721 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12722 | resultobj = t_output_helper(resultobj,o); | |
12723 | } | |
12724 | { | |
12725 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12726 | resultobj = t_output_helper(resultobj,o); | |
12727 | } | |
12728 | { | |
12729 | if (temp2) | |
12730 | delete arg2; | |
12731 | } | |
12732 | return resultobj; | |
12733 | fail: | |
12734 | { | |
12735 | if (temp2) | |
12736 | delete arg2; | |
12737 | } | |
12738 | return NULL; | |
12739 | } | |
12740 | ||
12741 | ||
db914595 RD |
12742 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { |
12743 | PyObject *resultobj; | |
12744 | wxDC *arg1 = (wxDC *) 0 ; | |
12745 | wxString *arg2 = 0 ; | |
12746 | wxArrayInt result; | |
12747 | bool temp2 = False ; | |
12748 | PyObject * obj0 = 0 ; | |
12749 | PyObject * obj1 = 0 ; | |
12750 | char *kwnames[] = { | |
12751 | (char *) "self",(char *) "text", NULL | |
12752 | }; | |
12753 | ||
12754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
12755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12756 | { | |
12757 | arg2 = wxString_in_helper(obj1); | |
12758 | if (arg2 == NULL) SWIG_fail; | |
12759 | temp2 = True; | |
12760 | } | |
12761 | { | |
12762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12763 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
12764 | ||
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | { | |
12769 | resultobj = PyList_New(0); | |
12770 | size_t idx; | |
12771 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
12772 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
12773 | PyList_Append(resultobj, val); | |
12774 | Py_DECREF(val); | |
12775 | } | |
12776 | } | |
12777 | { | |
12778 | if (temp2) | |
12779 | delete arg2; | |
12780 | } | |
12781 | return resultobj; | |
12782 | fail: | |
12783 | { | |
12784 | if (temp2) | |
12785 | delete arg2; | |
12786 | } | |
12787 | return NULL; | |
12788 | } | |
12789 | ||
12790 | ||
322913ce RD |
12791 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
12792 | PyObject *resultobj; | |
12793 | wxDC *arg1 = (wxDC *) 0 ; | |
12794 | wxSize result; | |
12795 | PyObject * obj0 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "self", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
12801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12802 | { | |
12803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12804 | result = (arg1)->GetSize(); | |
12805 | ||
12806 | wxPyEndAllowThreads(__tstate); | |
12807 | if (PyErr_Occurred()) SWIG_fail; | |
12808 | } | |
12809 | { | |
12810 | wxSize * resultptr; | |
12811 | resultptr = new wxSize((wxSize &) result); | |
12812 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12813 | } | |
12814 | return resultobj; | |
12815 | fail: | |
12816 | return NULL; | |
12817 | } | |
12818 | ||
12819 | ||
d14a1e28 RD |
12820 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
12821 | PyObject *resultobj; | |
12822 | wxDC *arg1 = (wxDC *) 0 ; | |
12823 | int *arg2 = (int *) 0 ; | |
12824 | int *arg3 = (int *) 0 ; | |
12825 | int temp2 ; | |
12826 | int temp3 ; | |
12827 | PyObject * obj0 = 0 ; | |
12828 | char *kwnames[] = { | |
12829 | (char *) "self", NULL | |
12830 | }; | |
12831 | ||
12832 | arg2 = &temp2; | |
12833 | arg3 = &temp3; | |
12834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
12835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12836 | { | |
12837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12838 | (arg1)->GetSize(arg2,arg3); | |
12839 | ||
12840 | wxPyEndAllowThreads(__tstate); | |
12841 | if (PyErr_Occurred()) SWIG_fail; | |
12842 | } | |
12843 | Py_INCREF(Py_None); resultobj = Py_None; | |
12844 | { | |
12845 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12846 | resultobj = t_output_helper(resultobj,o); | |
12847 | } | |
12848 | { | |
12849 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12850 | resultobj = t_output_helper(resultobj,o); | |
12851 | } | |
12852 | return resultobj; | |
12853 | fail: | |
12854 | return NULL; | |
12855 | } | |
12856 | ||
12857 | ||
322913ce | 12858 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12859 | PyObject *resultobj; |
12860 | wxDC *arg1 = (wxDC *) 0 ; | |
12861 | wxSize result; | |
12862 | PyObject * obj0 = 0 ; | |
12863 | char *kwnames[] = { | |
12864 | (char *) "self", NULL | |
12865 | }; | |
12866 | ||
322913ce | 12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12869 | { | |
12870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 12871 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
12872 | |
12873 | wxPyEndAllowThreads(__tstate); | |
12874 | if (PyErr_Occurred()) SWIG_fail; | |
12875 | } | |
12876 | { | |
12877 | wxSize * resultptr; | |
12878 | resultptr = new wxSize((wxSize &) result); | |
12879 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12880 | } | |
12881 | return resultobj; | |
12882 | fail: | |
12883 | return NULL; | |
12884 | } | |
12885 | ||
12886 | ||
322913ce | 12887 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12888 | PyObject *resultobj; |
12889 | wxDC *arg1 = (wxDC *) 0 ; | |
12890 | int *arg2 = (int *) 0 ; | |
12891 | int *arg3 = (int *) 0 ; | |
12892 | int temp2 ; | |
12893 | int temp3 ; | |
12894 | PyObject * obj0 = 0 ; | |
12895 | char *kwnames[] = { | |
12896 | (char *) "self", NULL | |
12897 | }; | |
12898 | ||
12899 | arg2 = &temp2; | |
12900 | arg3 = &temp3; | |
322913ce | 12901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12903 | { | |
12904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12905 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
12906 | ||
12907 | wxPyEndAllowThreads(__tstate); | |
12908 | if (PyErr_Occurred()) SWIG_fail; | |
12909 | } | |
12910 | Py_INCREF(Py_None); resultobj = Py_None; | |
12911 | { | |
12912 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12913 | resultobj = t_output_helper(resultobj,o); | |
12914 | } | |
12915 | { | |
12916 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12917 | resultobj = t_output_helper(resultobj,o); | |
12918 | } | |
12919 | return resultobj; | |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
d14a1e28 RD |
12925 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
12926 | PyObject *resultobj; | |
12927 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12928 | int arg2 ; |
12929 | int result; | |
d14a1e28 | 12930 | PyObject * obj0 = 0 ; |
994141e6 | 12931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12932 | char *kwnames[] = { |
12933 | (char *) "self",(char *) "x", NULL | |
12934 | }; | |
12935 | ||
994141e6 | 12936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12938 | { |
12939 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12940 | if (PyErr_Occurred()) SWIG_fail; | |
12941 | } | |
d14a1e28 RD |
12942 | { |
12943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12944 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
12945 | |
12946 | wxPyEndAllowThreads(__tstate); | |
12947 | if (PyErr_Occurred()) SWIG_fail; | |
12948 | } | |
994141e6 | 12949 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12950 | return resultobj; |
12951 | fail: | |
12952 | return NULL; | |
12953 | } | |
12954 | ||
12955 | ||
12956 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12957 | PyObject *resultobj; | |
12958 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12959 | int arg2 ; |
12960 | int result; | |
d14a1e28 | 12961 | PyObject * obj0 = 0 ; |
994141e6 | 12962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12963 | char *kwnames[] = { |
12964 | (char *) "self",(char *) "y", NULL | |
12965 | }; | |
12966 | ||
994141e6 | 12967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12969 | { |
12970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
12972 | } | |
d14a1e28 RD |
12973 | { |
12974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12975 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
12976 | |
12977 | wxPyEndAllowThreads(__tstate); | |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
12979 | } | |
994141e6 | 12980 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12981 | return resultobj; |
12982 | fail: | |
12983 | return NULL; | |
12984 | } | |
12985 | ||
12986 | ||
12987 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12988 | PyObject *resultobj; | |
12989 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12990 | int arg2 ; |
12991 | int result; | |
d14a1e28 | 12992 | PyObject * obj0 = 0 ; |
994141e6 | 12993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12994 | char *kwnames[] = { |
12995 | (char *) "self",(char *) "x", NULL | |
12996 | }; | |
12997 | ||
994141e6 | 12998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13000 | { |
13001 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
d14a1e28 RD |
13004 | { |
13005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13006 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13007 | |
13008 | wxPyEndAllowThreads(__tstate); | |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
994141e6 | 13011 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13012 | return resultobj; |
13013 | fail: | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
13018 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13019 | PyObject *resultobj; | |
13020 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13021 | int arg2 ; |
13022 | int result; | |
d14a1e28 | 13023 | PyObject * obj0 = 0 ; |
994141e6 | 13024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13025 | char *kwnames[] = { |
13026 | (char *) "self",(char *) "y", NULL | |
13027 | }; | |
13028 | ||
994141e6 | 13029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13031 | { |
13032 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13033 | if (PyErr_Occurred()) SWIG_fail; | |
13034 | } | |
d14a1e28 RD |
13035 | { |
13036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13037 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13038 | |
13039 | wxPyEndAllowThreads(__tstate); | |
13040 | if (PyErr_Occurred()) SWIG_fail; | |
13041 | } | |
994141e6 | 13042 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13043 | return resultobj; |
13044 | fail: | |
13045 | return NULL; | |
13046 | } | |
13047 | ||
13048 | ||
13049 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13050 | PyObject *resultobj; | |
13051 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13052 | int arg2 ; |
13053 | int result; | |
d14a1e28 | 13054 | PyObject * obj0 = 0 ; |
994141e6 | 13055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13056 | char *kwnames[] = { |
13057 | (char *) "self",(char *) "x", NULL | |
13058 | }; | |
13059 | ||
994141e6 | 13060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13062 | { |
13063 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13064 | if (PyErr_Occurred()) SWIG_fail; | |
13065 | } | |
d14a1e28 RD |
13066 | { |
13067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13068 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13069 | |
13070 | wxPyEndAllowThreads(__tstate); | |
13071 | if (PyErr_Occurred()) SWIG_fail; | |
13072 | } | |
994141e6 | 13073 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13074 | return resultobj; |
13075 | fail: | |
13076 | return NULL; | |
13077 | } | |
13078 | ||
13079 | ||
13080 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13081 | PyObject *resultobj; | |
13082 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13083 | int arg2 ; |
13084 | int result; | |
d14a1e28 | 13085 | PyObject * obj0 = 0 ; |
994141e6 | 13086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13087 | char *kwnames[] = { |
13088 | (char *) "self",(char *) "y", NULL | |
13089 | }; | |
13090 | ||
994141e6 | 13091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13093 | { |
13094 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13095 | if (PyErr_Occurred()) SWIG_fail; | |
13096 | } | |
d14a1e28 RD |
13097 | { |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13099 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13100 | |
13101 | wxPyEndAllowThreads(__tstate); | |
13102 | if (PyErr_Occurred()) SWIG_fail; | |
13103 | } | |
994141e6 | 13104 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13105 | return resultobj; |
13106 | fail: | |
13107 | return NULL; | |
13108 | } | |
13109 | ||
13110 | ||
13111 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13112 | PyObject *resultobj; | |
13113 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13114 | int arg2 ; |
13115 | int result; | |
d14a1e28 | 13116 | PyObject * obj0 = 0 ; |
994141e6 | 13117 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13118 | char *kwnames[] = { |
13119 | (char *) "self",(char *) "x", NULL | |
13120 | }; | |
13121 | ||
994141e6 | 13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13124 | { |
13125 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
13127 | } | |
d14a1e28 RD |
13128 | { |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13130 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13131 | |
13132 | wxPyEndAllowThreads(__tstate); | |
13133 | if (PyErr_Occurred()) SWIG_fail; | |
13134 | } | |
994141e6 | 13135 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13136 | return resultobj; |
13137 | fail: | |
13138 | return NULL; | |
13139 | } | |
13140 | ||
13141 | ||
13142 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13143 | PyObject *resultobj; | |
13144 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13145 | int arg2 ; |
13146 | int result; | |
d14a1e28 | 13147 | PyObject * obj0 = 0 ; |
994141e6 | 13148 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13149 | char *kwnames[] = { |
13150 | (char *) "self",(char *) "y", NULL | |
13151 | }; | |
13152 | ||
994141e6 | 13153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13155 | { |
13156 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13157 | if (PyErr_Occurred()) SWIG_fail; | |
13158 | } | |
d14a1e28 RD |
13159 | { |
13160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13161 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13162 | |
13163 | wxPyEndAllowThreads(__tstate); | |
13164 | if (PyErr_Occurred()) SWIG_fail; | |
13165 | } | |
994141e6 | 13166 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13167 | return resultobj; |
13168 | fail: | |
13169 | return NULL; | |
13170 | } | |
13171 | ||
13172 | ||
13173 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13174 | PyObject *resultobj; | |
13175 | wxDC *arg1 = (wxDC *) 0 ; | |
13176 | bool result; | |
13177 | PyObject * obj0 = 0 ; | |
13178 | char *kwnames[] = { | |
13179 | (char *) "self", NULL | |
13180 | }; | |
13181 | ||
13182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13184 | { | |
13185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13186 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13187 | ||
13188 | wxPyEndAllowThreads(__tstate); | |
13189 | if (PyErr_Occurred()) SWIG_fail; | |
13190 | } | |
4d5c3d91 | 13191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13192 | return resultobj; |
13193 | fail: | |
13194 | return NULL; | |
13195 | } | |
13196 | ||
13197 | ||
13198 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13199 | PyObject *resultobj; | |
13200 | wxDC *arg1 = (wxDC *) 0 ; | |
13201 | bool result; | |
13202 | PyObject * obj0 = 0 ; | |
13203 | char *kwnames[] = { | |
13204 | (char *) "self", NULL | |
13205 | }; | |
13206 | ||
13207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13209 | { | |
13210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13211 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13212 | ||
13213 | wxPyEndAllowThreads(__tstate); | |
13214 | if (PyErr_Occurred()) SWIG_fail; | |
13215 | } | |
4d5c3d91 | 13216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13217 | return resultobj; |
13218 | fail: | |
13219 | return NULL; | |
13220 | } | |
13221 | ||
13222 | ||
13223 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13224 | PyObject *resultobj; | |
13225 | wxDC *arg1 = (wxDC *) 0 ; | |
13226 | int result; | |
13227 | PyObject * obj0 = 0 ; | |
13228 | char *kwnames[] = { | |
13229 | (char *) "self", NULL | |
13230 | }; | |
13231 | ||
13232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
13233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13234 | { | |
13235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13236 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13237 | ||
13238 | wxPyEndAllowThreads(__tstate); | |
13239 | if (PyErr_Occurred()) SWIG_fail; | |
13240 | } | |
994141e6 | 13241 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13242 | return resultobj; |
13243 | fail: | |
13244 | return NULL; | |
13245 | } | |
13246 | ||
13247 | ||
13248 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13249 | PyObject *resultobj; | |
13250 | wxDC *arg1 = (wxDC *) 0 ; | |
13251 | wxSize result; | |
13252 | PyObject * obj0 = 0 ; | |
13253 | char *kwnames[] = { | |
13254 | (char *) "self", NULL | |
13255 | }; | |
13256 | ||
13257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
13258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13259 | { | |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | result = ((wxDC const *)arg1)->GetPPI(); | |
13262 | ||
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
13266 | { | |
13267 | wxSize * resultptr; | |
13268 | resultptr = new wxSize((wxSize &) result); | |
13269 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13270 | } | |
13271 | return resultobj; | |
13272 | fail: | |
13273 | return NULL; | |
13274 | } | |
13275 | ||
13276 | ||
13277 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13278 | PyObject *resultobj; | |
13279 | wxDC *arg1 = (wxDC *) 0 ; | |
13280 | bool result; | |
13281 | PyObject * obj0 = 0 ; | |
13282 | char *kwnames[] = { | |
13283 | (char *) "self", NULL | |
13284 | }; | |
13285 | ||
13286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
13287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13288 | { | |
13289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13290 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13291 | ||
13292 | wxPyEndAllowThreads(__tstate); | |
13293 | if (PyErr_Occurred()) SWIG_fail; | |
13294 | } | |
4d5c3d91 | 13295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13296 | return resultobj; |
13297 | fail: | |
13298 | return NULL; | |
13299 | } | |
13300 | ||
13301 | ||
13302 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13303 | PyObject *resultobj; | |
13304 | wxDC *arg1 = (wxDC *) 0 ; | |
13305 | int result; | |
13306 | PyObject * obj0 = 0 ; | |
13307 | char *kwnames[] = { | |
13308 | (char *) "self", NULL | |
13309 | }; | |
13310 | ||
13311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
13312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13313 | { | |
13314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13315 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13316 | ||
13317 | wxPyEndAllowThreads(__tstate); | |
13318 | if (PyErr_Occurred()) SWIG_fail; | |
13319 | } | |
994141e6 | 13320 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13321 | return resultobj; |
13322 | fail: | |
13323 | return NULL; | |
13324 | } | |
13325 | ||
13326 | ||
13327 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13328 | PyObject *resultobj; | |
13329 | wxDC *arg1 = (wxDC *) 0 ; | |
13330 | wxBrush *result; | |
13331 | PyObject * obj0 = 0 ; | |
13332 | char *kwnames[] = { | |
13333 | (char *) "self", NULL | |
13334 | }; | |
13335 | ||
13336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
13337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13338 | { | |
13339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13340 | { | |
13341 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13342 | result = (wxBrush *) &_result_ref; | |
13343 | } | |
13344 | ||
13345 | wxPyEndAllowThreads(__tstate); | |
13346 | if (PyErr_Occurred()) SWIG_fail; | |
13347 | } | |
13348 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13349 | return resultobj; | |
13350 | fail: | |
13351 | return NULL; | |
13352 | } | |
13353 | ||
13354 | ||
13355 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13356 | PyObject *resultobj; | |
13357 | wxDC *arg1 = (wxDC *) 0 ; | |
13358 | wxBrush *result; | |
13359 | PyObject * obj0 = 0 ; | |
13360 | char *kwnames[] = { | |
13361 | (char *) "self", NULL | |
13362 | }; | |
13363 | ||
13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
13365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13366 | { | |
13367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13368 | { | |
13369 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13370 | result = (wxBrush *) &_result_ref; | |
13371 | } | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13384 | PyObject *resultobj; | |
13385 | wxDC *arg1 = (wxDC *) 0 ; | |
13386 | wxFont *result; | |
13387 | PyObject * obj0 = 0 ; | |
13388 | char *kwnames[] = { | |
13389 | (char *) "self", NULL | |
13390 | }; | |
13391 | ||
13392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
13393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13394 | { | |
13395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13396 | { | |
13397 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13398 | result = (wxFont *) &_result_ref; | |
13399 | } | |
13400 | ||
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
13404 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
13405 | return resultobj; | |
13406 | fail: | |
13407 | return NULL; | |
13408 | } | |
13409 | ||
13410 | ||
13411 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13412 | PyObject *resultobj; | |
13413 | wxDC *arg1 = (wxDC *) 0 ; | |
13414 | wxPen *result; | |
13415 | PyObject * obj0 = 0 ; | |
13416 | char *kwnames[] = { | |
13417 | (char *) "self", NULL | |
13418 | }; | |
13419 | ||
13420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
13421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13422 | { | |
13423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13424 | { | |
13425 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13426 | result = (wxPen *) &_result_ref; | |
13427 | } | |
13428 | ||
13429 | wxPyEndAllowThreads(__tstate); | |
13430 | if (PyErr_Occurred()) SWIG_fail; | |
13431 | } | |
13432 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
13433 | return resultobj; | |
13434 | fail: | |
13435 | return NULL; | |
13436 | } | |
13437 | ||
13438 | ||
13439 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13440 | PyObject *resultobj; | |
13441 | wxDC *arg1 = (wxDC *) 0 ; | |
13442 | wxColour *result; | |
13443 | PyObject * obj0 = 0 ; | |
13444 | char *kwnames[] = { | |
13445 | (char *) "self", NULL | |
13446 | }; | |
13447 | ||
13448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
13449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13450 | { | |
13451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13452 | { | |
13453 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13454 | result = (wxColour *) &_result_ref; | |
13455 | } | |
13456 | ||
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
13460 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13461 | return resultobj; | |
13462 | fail: | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj; | |
13469 | wxDC *arg1 = (wxDC *) 0 ; | |
13470 | wxColour *result; | |
13471 | PyObject * obj0 = 0 ; | |
13472 | char *kwnames[] = { | |
13473 | (char *) "self", NULL | |
13474 | }; | |
13475 | ||
13476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
13477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13478 | { | |
13479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13480 | { | |
13481 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13482 | result = (wxColour *) &_result_ref; | |
13483 | } | |
13484 | ||
13485 | wxPyEndAllowThreads(__tstate); | |
13486 | if (PyErr_Occurred()) SWIG_fail; | |
13487 | } | |
13488 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
13489 | return resultobj; | |
13490 | fail: | |
13491 | return NULL; | |
13492 | } | |
13493 | ||
13494 | ||
13495 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13496 | PyObject *resultobj; | |
13497 | wxDC *arg1 = (wxDC *) 0 ; | |
13498 | wxColour *arg2 = 0 ; | |
13499 | wxColour temp2 ; | |
13500 | PyObject * obj0 = 0 ; | |
13501 | PyObject * obj1 = 0 ; | |
13502 | char *kwnames[] = { | |
13503 | (char *) "self",(char *) "colour", NULL | |
13504 | }; | |
13505 | ||
13506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
13507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13508 | { | |
13509 | arg2 = &temp2; | |
13510 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13511 | } | |
13512 | { | |
13513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13514 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13515 | ||
13516 | wxPyEndAllowThreads(__tstate); | |
13517 | if (PyErr_Occurred()) SWIG_fail; | |
13518 | } | |
13519 | Py_INCREF(Py_None); resultobj = Py_None; | |
13520 | return resultobj; | |
13521 | fail: | |
13522 | return NULL; | |
13523 | } | |
13524 | ||
13525 | ||
13526 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13527 | PyObject *resultobj; | |
13528 | wxDC *arg1 = (wxDC *) 0 ; | |
13529 | wxColour *arg2 = 0 ; | |
13530 | wxColour temp2 ; | |
13531 | PyObject * obj0 = 0 ; | |
13532 | PyObject * obj1 = 0 ; | |
13533 | char *kwnames[] = { | |
13534 | (char *) "self",(char *) "colour", NULL | |
13535 | }; | |
13536 | ||
13537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
13538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13539 | { | |
13540 | arg2 = &temp2; | |
13541 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13542 | } | |
13543 | { | |
13544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13545 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13546 | ||
13547 | wxPyEndAllowThreads(__tstate); | |
13548 | if (PyErr_Occurred()) SWIG_fail; | |
13549 | } | |
13550 | Py_INCREF(Py_None); resultobj = Py_None; | |
13551 | return resultobj; | |
13552 | fail: | |
13553 | return NULL; | |
13554 | } | |
13555 | ||
13556 | ||
13557 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13558 | PyObject *resultobj; | |
13559 | wxDC *arg1 = (wxDC *) 0 ; | |
13560 | int result; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | char *kwnames[] = { | |
13563 | (char *) "self", NULL | |
13564 | }; | |
13565 | ||
13566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
13567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13568 | { | |
13569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13570 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13571 | ||
13572 | wxPyEndAllowThreads(__tstate); | |
13573 | if (PyErr_Occurred()) SWIG_fail; | |
13574 | } | |
994141e6 | 13575 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13576 | return resultobj; |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj; | |
13584 | wxDC *arg1 = (wxDC *) 0 ; | |
13585 | int arg2 ; | |
13586 | PyObject * obj0 = 0 ; | |
994141e6 | 13587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13588 | char *kwnames[] = { |
13589 | (char *) "self",(char *) "mode", NULL | |
13590 | }; | |
13591 | ||
994141e6 | 13592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13594 | { |
13595 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13596 | if (PyErr_Occurred()) SWIG_fail; | |
13597 | } | |
d14a1e28 RD |
13598 | { |
13599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13600 | (arg1)->SetMapMode(arg2); | |
13601 | ||
13602 | wxPyEndAllowThreads(__tstate); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
13604 | } | |
13605 | Py_INCREF(Py_None); resultobj = Py_None; | |
13606 | return resultobj; | |
13607 | fail: | |
13608 | return NULL; | |
13609 | } | |
13610 | ||
13611 | ||
13612 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13613 | PyObject *resultobj; | |
13614 | wxDC *arg1 = (wxDC *) 0 ; | |
13615 | double *arg2 = (double *) 0 ; | |
13616 | double *arg3 = (double *) 0 ; | |
13617 | double temp2 ; | |
13618 | double temp3 ; | |
13619 | PyObject * obj0 = 0 ; | |
13620 | char *kwnames[] = { | |
13621 | (char *) "self", NULL | |
13622 | }; | |
13623 | ||
13624 | arg2 = &temp2; | |
13625 | arg3 = &temp3; | |
13626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
13627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13628 | { | |
13629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13630 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13631 | ||
13632 | wxPyEndAllowThreads(__tstate); | |
13633 | if (PyErr_Occurred()) SWIG_fail; | |
13634 | } | |
13635 | Py_INCREF(Py_None); resultobj = Py_None; | |
13636 | { | |
13637 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13638 | resultobj = t_output_helper(resultobj,o); | |
13639 | } | |
13640 | { | |
13641 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13642 | resultobj = t_output_helper(resultobj,o); | |
13643 | } | |
13644 | return resultobj; | |
13645 | fail: | |
13646 | return NULL; | |
13647 | } | |
13648 | ||
13649 | ||
13650 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13651 | PyObject *resultobj; | |
13652 | wxDC *arg1 = (wxDC *) 0 ; | |
13653 | double arg2 ; | |
13654 | double arg3 ; | |
13655 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13656 | PyObject * obj1 = 0 ; |
13657 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13658 | char *kwnames[] = { |
13659 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13660 | }; | |
13661 | ||
994141e6 | 13662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13664 | { |
13665 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13666 | if (PyErr_Occurred()) SWIG_fail; | |
13667 | } | |
13668 | { | |
13669 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13670 | if (PyErr_Occurred()) SWIG_fail; | |
13671 | } | |
d14a1e28 RD |
13672 | { |
13673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13674 | (arg1)->SetUserScale(arg2,arg3); | |
13675 | ||
13676 | wxPyEndAllowThreads(__tstate); | |
13677 | if (PyErr_Occurred()) SWIG_fail; | |
13678 | } | |
13679 | Py_INCREF(Py_None); resultobj = Py_None; | |
13680 | return resultobj; | |
13681 | fail: | |
13682 | return NULL; | |
13683 | } | |
13684 | ||
13685 | ||
13686 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13687 | PyObject *resultobj; | |
13688 | wxDC *arg1 = (wxDC *) 0 ; | |
13689 | double *arg2 = (double *) 0 ; | |
13690 | double *arg3 = (double *) 0 ; | |
13691 | double temp2 ; | |
13692 | double temp3 ; | |
13693 | PyObject * obj0 = 0 ; | |
13694 | char *kwnames[] = { | |
13695 | (char *) "self", NULL | |
13696 | }; | |
13697 | ||
13698 | arg2 = &temp2; | |
13699 | arg3 = &temp3; | |
13700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
13701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13702 | { | |
13703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13704 | (arg1)->GetLogicalScale(arg2,arg3); | |
13705 | ||
13706 | wxPyEndAllowThreads(__tstate); | |
13707 | if (PyErr_Occurred()) SWIG_fail; | |
13708 | } | |
13709 | Py_INCREF(Py_None); resultobj = Py_None; | |
13710 | { | |
13711 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13712 | resultobj = t_output_helper(resultobj,o); | |
13713 | } | |
13714 | { | |
13715 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13716 | resultobj = t_output_helper(resultobj,o); | |
13717 | } | |
13718 | return resultobj; | |
13719 | fail: | |
13720 | return NULL; | |
13721 | } | |
13722 | ||
13723 | ||
13724 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13725 | PyObject *resultobj; | |
13726 | wxDC *arg1 = (wxDC *) 0 ; | |
13727 | double arg2 ; | |
13728 | double arg3 ; | |
13729 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13730 | PyObject * obj1 = 0 ; |
13731 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13732 | char *kwnames[] = { |
13733 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13734 | }; | |
13735 | ||
994141e6 | 13736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13738 | { |
13739 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
13740 | if (PyErr_Occurred()) SWIG_fail; | |
13741 | } | |
13742 | { | |
13743 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
13744 | if (PyErr_Occurred()) SWIG_fail; | |
13745 | } | |
d14a1e28 RD |
13746 | { |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13748 | (arg1)->SetLogicalScale(arg2,arg3); | |
13749 | ||
13750 | wxPyEndAllowThreads(__tstate); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
13753 | Py_INCREF(Py_None); resultobj = Py_None; | |
13754 | return resultobj; | |
13755 | fail: | |
13756 | return NULL; | |
13757 | } | |
13758 | ||
13759 | ||
322913ce | 13760 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13761 | PyObject *resultobj; |
13762 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13763 | wxPoint result; |
d14a1e28 RD |
13764 | PyObject * obj0 = 0 ; |
13765 | char *kwnames[] = { | |
13766 | (char *) "self", NULL | |
13767 | }; | |
13768 | ||
322913ce | 13769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13771 | { | |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13773 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
13774 | |
13775 | wxPyEndAllowThreads(__tstate); | |
13776 | if (PyErr_Occurred()) SWIG_fail; | |
13777 | } | |
d14a1e28 | 13778 | { |
322913ce RD |
13779 | wxPoint * resultptr; |
13780 | resultptr = new wxPoint((wxPoint &) result); | |
13781 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13782 | } |
13783 | return resultobj; | |
13784 | fail: | |
13785 | return NULL; | |
13786 | } | |
13787 | ||
13788 | ||
322913ce | 13789 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13790 | PyObject *resultobj; |
13791 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
13792 | int *arg2 = (int *) 0 ; |
13793 | int *arg3 = (int *) 0 ; | |
13794 | int temp2 ; | |
13795 | int temp3 ; | |
d14a1e28 RD |
13796 | PyObject * obj0 = 0 ; |
13797 | char *kwnames[] = { | |
13798 | (char *) "self", NULL | |
13799 | }; | |
13800 | ||
322913ce RD |
13801 | arg2 = &temp2; |
13802 | arg3 = &temp3; | |
13803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13805 | { | |
13806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13807 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
13808 | |
13809 | wxPyEndAllowThreads(__tstate); | |
13810 | if (PyErr_Occurred()) SWIG_fail; | |
13811 | } | |
322913ce | 13812 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13813 | { |
322913ce RD |
13814 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13815 | resultobj = t_output_helper(resultobj,o); | |
13816 | } | |
13817 | { | |
13818 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13819 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13820 | } |
13821 | return resultobj; | |
13822 | fail: | |
13823 | return NULL; | |
13824 | } | |
13825 | ||
13826 | ||
13827 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13828 | PyObject *resultobj; | |
13829 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13830 | int arg2 ; |
13831 | int arg3 ; | |
d14a1e28 | 13832 | PyObject * obj0 = 0 ; |
994141e6 RD |
13833 | PyObject * obj1 = 0 ; |
13834 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13835 | char *kwnames[] = { |
13836 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13837 | }; | |
13838 | ||
994141e6 | 13839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13841 | { |
13842 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13843 | if (PyErr_Occurred()) SWIG_fail; | |
13844 | } | |
13845 | { | |
13846 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
d14a1e28 RD |
13849 | { |
13850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13851 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
13852 | ||
13853 | wxPyEndAllowThreads(__tstate); | |
13854 | if (PyErr_Occurred()) SWIG_fail; | |
13855 | } | |
13856 | Py_INCREF(Py_None); resultobj = Py_None; | |
13857 | return resultobj; | |
13858 | fail: | |
13859 | return NULL; | |
13860 | } | |
13861 | ||
13862 | ||
322913ce | 13863 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13864 | PyObject *resultobj; |
13865 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 13866 | wxPoint result; |
d14a1e28 RD |
13867 | PyObject * obj0 = 0 ; |
13868 | char *kwnames[] = { | |
13869 | (char *) "self", NULL | |
13870 | }; | |
13871 | ||
322913ce | 13872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
13873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13874 | { | |
13875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13876 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
13877 | |
13878 | wxPyEndAllowThreads(__tstate); | |
13879 | if (PyErr_Occurred()) SWIG_fail; | |
13880 | } | |
d14a1e28 | 13881 | { |
322913ce RD |
13882 | wxPoint * resultptr; |
13883 | resultptr = new wxPoint((wxPoint &) result); | |
13884 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
13885 | } |
13886 | return resultobj; | |
13887 | fail: | |
13888 | return NULL; | |
13889 | } | |
13890 | ||
13891 | ||
322913ce | 13892 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13893 | PyObject *resultobj; |
13894 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
13895 | int *arg2 = (int *) 0 ; |
13896 | int *arg3 = (int *) 0 ; | |
13897 | int temp2 ; | |
13898 | int temp3 ; | |
d14a1e28 RD |
13899 | PyObject * obj0 = 0 ; |
13900 | char *kwnames[] = { | |
13901 | (char *) "self", NULL | |
13902 | }; | |
13903 | ||
322913ce RD |
13904 | arg2 = &temp2; |
13905 | arg3 = &temp3; | |
13906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
13907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13908 | { | |
13909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13910 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
13911 | |
13912 | wxPyEndAllowThreads(__tstate); | |
13913 | if (PyErr_Occurred()) SWIG_fail; | |
13914 | } | |
322913ce | 13915 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13916 | { |
322913ce RD |
13917 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13918 | resultobj = t_output_helper(resultobj,o); | |
13919 | } | |
13920 | { | |
13921 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13922 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13923 | } |
13924 | return resultobj; | |
13925 | fail: | |
13926 | return NULL; | |
13927 | } | |
13928 | ||
13929 | ||
13930 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13931 | PyObject *resultobj; | |
13932 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13933 | int arg2 ; |
13934 | int arg3 ; | |
d14a1e28 | 13935 | PyObject * obj0 = 0 ; |
994141e6 RD |
13936 | PyObject * obj1 = 0 ; |
13937 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13938 | char *kwnames[] = { |
13939 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13940 | }; | |
13941 | ||
994141e6 | 13942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13944 | { |
13945 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13946 | if (PyErr_Occurred()) SWIG_fail; | |
13947 | } | |
13948 | { | |
13949 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13950 | if (PyErr_Occurred()) SWIG_fail; | |
13951 | } | |
d14a1e28 RD |
13952 | { |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
13955 | ||
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | Py_INCREF(Py_None); resultobj = Py_None; | |
13960 | return resultobj; | |
13961 | fail: | |
13962 | return NULL; | |
13963 | } | |
13964 | ||
13965 | ||
13966 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13967 | PyObject *resultobj; | |
13968 | wxDC *arg1 = (wxDC *) 0 ; | |
13969 | bool arg2 ; | |
13970 | bool arg3 ; | |
13971 | PyObject * obj0 = 0 ; | |
13972 | PyObject * obj1 = 0 ; | |
13973 | PyObject * obj2 = 0 ; | |
13974 | char *kwnames[] = { | |
13975 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
13976 | }; | |
13977 | ||
13978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 13980 | { |
994141e6 | 13981 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
13982 | if (PyErr_Occurred()) SWIG_fail; |
13983 | } | |
13984 | { | |
994141e6 | 13985 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
13986 | if (PyErr_Occurred()) SWIG_fail; |
13987 | } | |
d14a1e28 RD |
13988 | { |
13989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13990 | (arg1)->SetAxisOrientation(arg2,arg3); | |
13991 | ||
13992 | wxPyEndAllowThreads(__tstate); | |
13993 | if (PyErr_Occurred()) SWIG_fail; | |
13994 | } | |
13995 | Py_INCREF(Py_None); resultobj = Py_None; | |
13996 | return resultobj; | |
13997 | fail: | |
13998 | return NULL; | |
13999 | } | |
14000 | ||
14001 | ||
14002 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14003 | PyObject *resultobj; | |
14004 | wxDC *arg1 = (wxDC *) 0 ; | |
14005 | int result; | |
14006 | PyObject * obj0 = 0 ; | |
14007 | char *kwnames[] = { | |
14008 | (char *) "self", NULL | |
14009 | }; | |
14010 | ||
14011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
14012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14013 | { | |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14016 | ||
14017 | wxPyEndAllowThreads(__tstate); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | } | |
994141e6 | 14020 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14021 | return resultobj; |
14022 | fail: | |
14023 | return NULL; | |
14024 | } | |
14025 | ||
14026 | ||
14027 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14028 | PyObject *resultobj; | |
14029 | wxDC *arg1 = (wxDC *) 0 ; | |
14030 | int arg2 ; | |
14031 | PyObject * obj0 = 0 ; | |
994141e6 | 14032 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14033 | char *kwnames[] = { |
14034 | (char *) "self",(char *) "function", NULL | |
14035 | }; | |
14036 | ||
994141e6 | 14037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14039 | { |
14040 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14041 | if (PyErr_Occurred()) SWIG_fail; | |
14042 | } | |
d14a1e28 RD |
14043 | { |
14044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14045 | (arg1)->SetLogicalFunction(arg2); | |
14046 | ||
14047 | wxPyEndAllowThreads(__tstate); | |
14048 | if (PyErr_Occurred()) SWIG_fail; | |
14049 | } | |
14050 | Py_INCREF(Py_None); resultobj = Py_None; | |
14051 | return resultobj; | |
14052 | fail: | |
14053 | return NULL; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14058 | PyObject *resultobj; | |
14059 | wxDC *arg1 = (wxDC *) 0 ; | |
14060 | bool arg2 ; | |
14061 | PyObject * obj0 = 0 ; | |
14062 | PyObject * obj1 = 0 ; | |
14063 | char *kwnames[] = { | |
14064 | (char *) "self",(char *) "opt", NULL | |
14065 | }; | |
14066 | ||
14067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
14068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14069 | { |
994141e6 | 14070 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14071 | if (PyErr_Occurred()) SWIG_fail; |
14072 | } | |
d14a1e28 RD |
14073 | { |
14074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14075 | (arg1)->SetOptimization(arg2); | |
14076 | ||
14077 | wxPyEndAllowThreads(__tstate); | |
14078 | if (PyErr_Occurred()) SWIG_fail; | |
14079 | } | |
14080 | Py_INCREF(Py_None); resultobj = Py_None; | |
14081 | return resultobj; | |
14082 | fail: | |
14083 | return NULL; | |
14084 | } | |
14085 | ||
14086 | ||
14087 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14088 | PyObject *resultobj; | |
14089 | wxDC *arg1 = (wxDC *) 0 ; | |
14090 | bool result; | |
14091 | PyObject * obj0 = 0 ; | |
14092 | char *kwnames[] = { | |
14093 | (char *) "self", NULL | |
14094 | }; | |
14095 | ||
14096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
14097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14098 | { | |
14099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14100 | result = (bool)(arg1)->GetOptimization(); | |
14101 | ||
14102 | wxPyEndAllowThreads(__tstate); | |
14103 | if (PyErr_Occurred()) SWIG_fail; | |
14104 | } | |
4d5c3d91 | 14105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14106 | return resultobj; |
14107 | fail: | |
14108 | return NULL; | |
14109 | } | |
14110 | ||
14111 | ||
14112 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14113 | PyObject *resultobj; | |
14114 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14115 | int arg2 ; |
14116 | int arg3 ; | |
d14a1e28 | 14117 | PyObject * obj0 = 0 ; |
994141e6 RD |
14118 | PyObject * obj1 = 0 ; |
14119 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14120 | char *kwnames[] = { |
14121 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14122 | }; | |
14123 | ||
994141e6 | 14124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 14125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14126 | { |
14127 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
14130 | { | |
14131 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14132 | if (PyErr_Occurred()) SWIG_fail; | |
14133 | } | |
d14a1e28 RD |
14134 | { |
14135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14136 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14137 | ||
14138 | wxPyEndAllowThreads(__tstate); | |
14139 | if (PyErr_Occurred()) SWIG_fail; | |
14140 | } | |
14141 | Py_INCREF(Py_None); resultobj = Py_None; | |
14142 | return resultobj; | |
14143 | fail: | |
14144 | return NULL; | |
14145 | } | |
14146 | ||
14147 | ||
14148 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14149 | PyObject *resultobj; | |
14150 | wxDC *arg1 = (wxDC *) 0 ; | |
14151 | PyObject * obj0 = 0 ; | |
14152 | char *kwnames[] = { | |
14153 | (char *) "self", NULL | |
14154 | }; | |
14155 | ||
14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
14157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14158 | { | |
14159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14160 | (arg1)->ResetBoundingBox(); | |
14161 | ||
14162 | wxPyEndAllowThreads(__tstate); | |
14163 | if (PyErr_Occurred()) SWIG_fail; | |
14164 | } | |
14165 | Py_INCREF(Py_None); resultobj = Py_None; | |
14166 | return resultobj; | |
14167 | fail: | |
14168 | return NULL; | |
14169 | } | |
14170 | ||
14171 | ||
14172 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14173 | PyObject *resultobj; | |
14174 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14175 | int result; |
d14a1e28 RD |
14176 | PyObject * obj0 = 0 ; |
14177 | char *kwnames[] = { | |
14178 | (char *) "self", NULL | |
14179 | }; | |
14180 | ||
14181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
14182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14183 | { | |
14184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14185 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14186 | |
14187 | wxPyEndAllowThreads(__tstate); | |
14188 | if (PyErr_Occurred()) SWIG_fail; | |
14189 | } | |
994141e6 | 14190 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14191 | return resultobj; |
14192 | fail: | |
14193 | return NULL; | |
14194 | } | |
14195 | ||
14196 | ||
14197 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14198 | PyObject *resultobj; | |
14199 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14200 | int result; |
d14a1e28 RD |
14201 | PyObject * obj0 = 0 ; |
14202 | char *kwnames[] = { | |
14203 | (char *) "self", NULL | |
14204 | }; | |
14205 | ||
14206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
14207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14208 | { | |
14209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14210 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14211 | |
14212 | wxPyEndAllowThreads(__tstate); | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | } | |
994141e6 | 14215 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14216 | return resultobj; |
14217 | fail: | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
14222 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14223 | PyObject *resultobj; | |
14224 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14225 | int result; |
d14a1e28 RD |
14226 | PyObject * obj0 = 0 ; |
14227 | char *kwnames[] = { | |
14228 | (char *) "self", NULL | |
14229 | }; | |
14230 | ||
14231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
14232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14233 | { | |
14234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14235 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14236 | |
14237 | wxPyEndAllowThreads(__tstate); | |
14238 | if (PyErr_Occurred()) SWIG_fail; | |
14239 | } | |
994141e6 | 14240 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14241 | return resultobj; |
14242 | fail: | |
14243 | return NULL; | |
14244 | } | |
14245 | ||
14246 | ||
14247 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14248 | PyObject *resultobj; | |
14249 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14250 | int result; |
d14a1e28 RD |
14251 | PyObject * obj0 = 0 ; |
14252 | char *kwnames[] = { | |
14253 | (char *) "self", NULL | |
14254 | }; | |
14255 | ||
14256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
14257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14258 | { | |
14259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14260 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14261 | |
14262 | wxPyEndAllowThreads(__tstate); | |
14263 | if (PyErr_Occurred()) SWIG_fail; | |
14264 | } | |
994141e6 | 14265 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14266 | return resultobj; |
14267 | fail: | |
14268 | return NULL; | |
14269 | } | |
14270 | ||
14271 | ||
14272 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14273 | PyObject *resultobj; | |
14274 | wxDC *arg1 = (wxDC *) 0 ; | |
14275 | int *arg2 = (int *) 0 ; | |
14276 | int *arg3 = (int *) 0 ; | |
14277 | int *arg4 = (int *) 0 ; | |
14278 | int *arg5 = (int *) 0 ; | |
14279 | int temp2 ; | |
14280 | int temp3 ; | |
14281 | int temp4 ; | |
14282 | int temp5 ; | |
14283 | PyObject * obj0 = 0 ; | |
14284 | char *kwnames[] = { | |
14285 | (char *) "self", NULL | |
14286 | }; | |
14287 | ||
14288 | arg2 = &temp2; | |
14289 | arg3 = &temp3; | |
14290 | arg4 = &temp4; | |
14291 | arg5 = &temp5; | |
14292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
14293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14294 | { | |
14295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14296 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14297 | ||
14298 | wxPyEndAllowThreads(__tstate); | |
14299 | if (PyErr_Occurred()) SWIG_fail; | |
14300 | } | |
14301 | Py_INCREF(Py_None); resultobj = Py_None; | |
14302 | { | |
14303 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14304 | resultobj = t_output_helper(resultobj,o); | |
14305 | } | |
14306 | { | |
14307 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14308 | resultobj = t_output_helper(resultobj,o); | |
14309 | } | |
14310 | { | |
14311 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14312 | resultobj = t_output_helper(resultobj,o); | |
14313 | } | |
14314 | { | |
14315 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14316 | resultobj = t_output_helper(resultobj,o); | |
14317 | } | |
14318 | return resultobj; | |
14319 | fail: | |
14320 | return NULL; | |
14321 | } | |
14322 | ||
14323 | ||
14324 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14325 | PyObject *resultobj; | |
14326 | wxDC *arg1 = (wxDC *) 0 ; | |
14327 | PyObject *arg2 = (PyObject *) 0 ; | |
14328 | PyObject *arg3 = (PyObject *) 0 ; | |
14329 | PyObject *arg4 = (PyObject *) 0 ; | |
14330 | PyObject *result; | |
14331 | PyObject * obj0 = 0 ; | |
14332 | PyObject * obj1 = 0 ; | |
14333 | PyObject * obj2 = 0 ; | |
14334 | PyObject * obj3 = 0 ; | |
14335 | char *kwnames[] = { | |
14336 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14337 | }; | |
14338 | ||
14339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14341 | arg2 = obj1; | |
14342 | arg3 = obj2; | |
14343 | arg4 = obj3; | |
14344 | { | |
14345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14346 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14347 | ||
14348 | wxPyEndAllowThreads(__tstate); | |
14349 | if (PyErr_Occurred()) SWIG_fail; | |
14350 | } | |
14351 | resultobj = result; | |
14352 | return resultobj; | |
14353 | fail: | |
14354 | return NULL; | |
14355 | } | |
14356 | ||
14357 | ||
14358 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14359 | PyObject *resultobj; | |
14360 | wxDC *arg1 = (wxDC *) 0 ; | |
14361 | PyObject *arg2 = (PyObject *) 0 ; | |
14362 | PyObject *arg3 = (PyObject *) 0 ; | |
14363 | PyObject *arg4 = (PyObject *) 0 ; | |
14364 | PyObject *result; | |
14365 | PyObject * obj0 = 0 ; | |
14366 | PyObject * obj1 = 0 ; | |
14367 | PyObject * obj2 = 0 ; | |
14368 | PyObject * obj3 = 0 ; | |
14369 | char *kwnames[] = { | |
14370 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14371 | }; | |
14372 | ||
14373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14375 | arg2 = obj1; | |
14376 | arg3 = obj2; | |
14377 | arg4 = obj3; | |
14378 | { | |
14379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14380 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14381 | ||
14382 | wxPyEndAllowThreads(__tstate); | |
14383 | if (PyErr_Occurred()) SWIG_fail; | |
14384 | } | |
14385 | resultobj = result; | |
14386 | return resultobj; | |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxDC *arg1 = (wxDC *) 0 ; | |
14395 | PyObject *arg2 = (PyObject *) 0 ; | |
14396 | PyObject *arg3 = (PyObject *) 0 ; | |
14397 | PyObject *arg4 = (PyObject *) 0 ; | |
14398 | PyObject *result; | |
14399 | PyObject * obj0 = 0 ; | |
14400 | PyObject * obj1 = 0 ; | |
14401 | PyObject * obj2 = 0 ; | |
14402 | PyObject * obj3 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14409 | arg2 = obj1; | |
14410 | arg3 = obj2; | |
14411 | arg4 = obj3; | |
14412 | { | |
14413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14414 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14415 | ||
14416 | wxPyEndAllowThreads(__tstate); | |
14417 | if (PyErr_Occurred()) SWIG_fail; | |
14418 | } | |
14419 | resultobj = result; | |
14420 | return resultobj; | |
14421 | fail: | |
14422 | return NULL; | |
14423 | } | |
14424 | ||
14425 | ||
14426 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14427 | PyObject *resultobj; | |
14428 | wxDC *arg1 = (wxDC *) 0 ; | |
14429 | PyObject *arg2 = (PyObject *) 0 ; | |
14430 | PyObject *arg3 = (PyObject *) 0 ; | |
14431 | PyObject *arg4 = (PyObject *) 0 ; | |
14432 | PyObject *result; | |
14433 | PyObject * obj0 = 0 ; | |
14434 | PyObject * obj1 = 0 ; | |
14435 | PyObject * obj2 = 0 ; | |
14436 | PyObject * obj3 = 0 ; | |
14437 | char *kwnames[] = { | |
14438 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14439 | }; | |
14440 | ||
14441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14443 | arg2 = obj1; | |
14444 | arg3 = obj2; | |
14445 | arg4 = obj3; | |
14446 | { | |
14447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14448 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14449 | ||
14450 | wxPyEndAllowThreads(__tstate); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
14452 | } | |
14453 | resultobj = result; | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
14457 | } | |
14458 | ||
14459 | ||
14460 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14461 | PyObject *resultobj; | |
14462 | wxDC *arg1 = (wxDC *) 0 ; | |
14463 | PyObject *arg2 = (PyObject *) 0 ; | |
14464 | PyObject *arg3 = (PyObject *) 0 ; | |
14465 | PyObject *arg4 = (PyObject *) 0 ; | |
14466 | PyObject *result; | |
14467 | PyObject * obj0 = 0 ; | |
14468 | PyObject * obj1 = 0 ; | |
14469 | PyObject * obj2 = 0 ; | |
14470 | PyObject * obj3 = 0 ; | |
14471 | char *kwnames[] = { | |
14472 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14473 | }; | |
14474 | ||
14475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14477 | arg2 = obj1; | |
14478 | arg3 = obj2; | |
14479 | arg4 = obj3; | |
14480 | { | |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14482 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14483 | ||
14484 | wxPyEndAllowThreads(__tstate); | |
14485 | if (PyErr_Occurred()) SWIG_fail; | |
14486 | } | |
14487 | resultobj = result; | |
14488 | return resultobj; | |
14489 | fail: | |
14490 | return NULL; | |
14491 | } | |
14492 | ||
14493 | ||
14494 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14495 | PyObject *resultobj; | |
14496 | wxDC *arg1 = (wxDC *) 0 ; | |
14497 | PyObject *arg2 = (PyObject *) 0 ; | |
14498 | PyObject *arg3 = (PyObject *) 0 ; | |
14499 | PyObject *arg4 = (PyObject *) 0 ; | |
14500 | PyObject *arg5 = (PyObject *) 0 ; | |
14501 | PyObject *result; | |
14502 | PyObject * obj0 = 0 ; | |
14503 | PyObject * obj1 = 0 ; | |
14504 | PyObject * obj2 = 0 ; | |
14505 | PyObject * obj3 = 0 ; | |
14506 | PyObject * obj4 = 0 ; | |
14507 | char *kwnames[] = { | |
14508 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14509 | }; | |
14510 | ||
14511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14513 | arg2 = obj1; | |
14514 | arg3 = obj2; | |
14515 | arg4 = obj3; | |
14516 | arg5 = obj4; | |
14517 | { | |
14518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14519 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14520 | ||
14521 | wxPyEndAllowThreads(__tstate); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
14524 | resultobj = result; | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | return NULL; | |
14528 | } | |
14529 | ||
14530 | ||
14531 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14532 | PyObject *obj; | |
14533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14534 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14535 | Py_INCREF(obj); | |
14536 | return Py_BuildValue((char *)""); | |
14537 | } | |
14538 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14539 | PyObject *resultobj; | |
14540 | wxMemoryDC *result; | |
14541 | char *kwnames[] = { | |
14542 | NULL | |
14543 | }; | |
14544 | ||
14545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14546 | { | |
14547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14548 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14549 | ||
14550 | wxPyEndAllowThreads(__tstate); | |
14551 | if (PyErr_Occurred()) SWIG_fail; | |
14552 | } | |
14553 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14554 | return resultobj; | |
14555 | fail: | |
14556 | return NULL; | |
14557 | } | |
14558 | ||
14559 | ||
14560 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14561 | PyObject *resultobj; | |
14562 | wxDC *arg1 = (wxDC *) 0 ; | |
14563 | wxMemoryDC *result; | |
14564 | PyObject * obj0 = 0 ; | |
14565 | char *kwnames[] = { | |
14566 | (char *) "oldDC", NULL | |
14567 | }; | |
14568 | ||
14569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
14570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14571 | { | |
14572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14573 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14574 | ||
14575 | wxPyEndAllowThreads(__tstate); | |
14576 | if (PyErr_Occurred()) SWIG_fail; | |
14577 | } | |
14578 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
14579 | return resultobj; | |
14580 | fail: | |
14581 | return NULL; | |
14582 | } | |
14583 | ||
14584 | ||
14585 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14586 | PyObject *resultobj; | |
14587 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14588 | wxBitmap *arg2 = 0 ; | |
14589 | PyObject * obj0 = 0 ; | |
14590 | PyObject * obj1 = 0 ; | |
14591 | char *kwnames[] = { | |
14592 | (char *) "self",(char *) "bitmap", NULL | |
14593 | }; | |
14594 | ||
14595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
14596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14597 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14598 | if (arg2 == NULL) { | |
14599 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14600 | } | |
14601 | { | |
14602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14603 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14604 | ||
14605 | wxPyEndAllowThreads(__tstate); | |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
14607 | } | |
14608 | Py_INCREF(Py_None); resultobj = Py_None; | |
14609 | return resultobj; | |
14610 | fail: | |
14611 | return NULL; | |
14612 | } | |
14613 | ||
14614 | ||
14615 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
14616 | PyObject *obj; | |
14617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14618 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14619 | Py_INCREF(obj); | |
14620 | return Py_BuildValue((char *)""); | |
14621 | } | |
3adfb63b | 14622 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14623 | PyObject *resultobj; |
14624 | wxDC *arg1 = (wxDC *) 0 ; | |
14625 | wxBitmap *arg2 = 0 ; | |
14626 | wxBufferedDC *result; | |
14627 | PyObject * obj0 = 0 ; | |
14628 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14629 | |
3adfb63b | 14630 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14632 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14633 | if (arg2 == NULL) { | |
14634 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14635 | } | |
14636 | { | |
14637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14638 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
14639 | ||
14640 | wxPyEndAllowThreads(__tstate); | |
14641 | if (PyErr_Occurred()) SWIG_fail; | |
14642 | } | |
14643 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14644 | return resultobj; | |
14645 | fail: | |
14646 | return NULL; | |
14647 | } | |
14648 | ||
14649 | ||
3adfb63b | 14650 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14651 | PyObject *resultobj; |
14652 | wxDC *arg1 = (wxDC *) 0 ; | |
14653 | wxSize *arg2 = 0 ; | |
3adfb63b | 14654 | int arg3 = (int) wxBUFFER_DC_DEFAULT ; |
d14a1e28 RD |
14655 | wxBufferedDC *result; |
14656 | wxSize temp2 ; | |
14657 | PyObject * obj0 = 0 ; | |
14658 | PyObject * obj1 = 0 ; | |
3adfb63b RD |
14659 | PyObject * obj2 = 0 ; |
14660 | ||
14661 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail; | |
14662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14663 | { | |
14664 | arg2 = &temp2; | |
14665 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14666 | } | |
14667 | if (obj2) { | |
14668 | { | |
14669 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14670 | if (PyErr_Occurred()) SWIG_fail; | |
14671 | } | |
14672 | } | |
14673 | { | |
14674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14675 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
14676 | ||
14677 | wxPyEndAllowThreads(__tstate); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
14679 | } | |
14680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14681 | return resultobj; | |
14682 | fail: | |
14683 | return NULL; | |
14684 | } | |
14685 | ||
14686 | ||
14687 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
14688 | int argc; | |
14689 | PyObject *argv[4]; | |
14690 | int ii; | |
14691 | ||
14692 | argc = PyObject_Length(args); | |
14693 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
14694 | argv[ii] = PyTuple_GetItem(args,ii); | |
14695 | } | |
14696 | if (argc == 2) { | |
14697 | int _v; | |
14698 | { | |
14699 | void *ptr; | |
14700 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14701 | _v = 0; | |
14702 | PyErr_Clear(); | |
14703 | } else { | |
14704 | _v = 1; | |
14705 | } | |
14706 | } | |
14707 | if (_v) { | |
14708 | { | |
14709 | void *ptr; | |
14710 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
14711 | _v = 0; | |
14712 | PyErr_Clear(); | |
14713 | } else { | |
14714 | _v = 1; | |
14715 | } | |
14716 | } | |
14717 | if (_v) { | |
14718 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
14719 | } | |
14720 | } | |
14721 | } | |
14722 | if ((argc >= 2) && (argc <= 3)) { | |
14723 | int _v; | |
14724 | { | |
14725 | void *ptr; | |
14726 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
14727 | _v = 0; | |
14728 | PyErr_Clear(); | |
14729 | } else { | |
14730 | _v = 1; | |
14731 | } | |
14732 | } | |
14733 | if (_v) { | |
14734 | { | |
14735 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
14736 | } | |
14737 | if (_v) { | |
14738 | if (argc <= 2) { | |
14739 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
14740 | } | |
14741 | { | |
14742 | SWIG_PyObj_AsInt(argv[2]); | |
14743 | if (PyErr_Occurred()) { | |
14744 | _v = 0; | |
14745 | PyErr_Clear(); | |
14746 | } else { | |
14747 | _v = 1; | |
14748 | } | |
14749 | } | |
14750 | if (_v) { | |
14751 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
14752 | } | |
14753 | } | |
14754 | } | |
14755 | } | |
14756 | ||
14757 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
14758 | return NULL; | |
14759 | } | |
14760 | ||
14761 | ||
14762 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
14763 | PyObject *resultobj; | |
14764 | wxDC *arg1 = (wxDC *) 0 ; | |
14765 | wxSize *arg2 = 0 ; | |
14766 | int arg3 = (int) wxBUFFER_DC_DEFAULT ; | |
14767 | wxBufferedDC *result; | |
14768 | wxSize temp2 ; | |
14769 | PyObject * obj0 = 0 ; | |
14770 | PyObject * obj1 = 0 ; | |
14771 | PyObject * obj2 = 0 ; | |
d14a1e28 | 14772 | |
3adfb63b | 14773 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDCInternalBuffer",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
14774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14775 | { | |
14776 | arg2 = &temp2; | |
14777 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14778 | } | |
3adfb63b RD |
14779 | if (obj2) { |
14780 | { | |
14781 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
14782 | if (PyErr_Occurred()) SWIG_fail; | |
14783 | } | |
14784 | } | |
d14a1e28 RD |
14785 | { |
14786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 14787 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); |
d14a1e28 RD |
14788 | |
14789 | wxPyEndAllowThreads(__tstate); | |
14790 | if (PyErr_Occurred()) SWIG_fail; | |
14791 | } | |
14792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
14793 | return resultobj; | |
14794 | fail: | |
14795 | return NULL; | |
14796 | } | |
14797 | ||
14798 | ||
14799 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14800 | PyObject *resultobj; | |
14801 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
14802 | PyObject * obj0 = 0 ; | |
14803 | char *kwnames[] = { | |
14804 | (char *) "self", NULL | |
14805 | }; | |
14806 | ||
14807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
14808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14809 | { | |
14810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14811 | (arg1)->UnMask(); | |
14812 | ||
14813 | wxPyEndAllowThreads(__tstate); | |
14814 | if (PyErr_Occurred()) SWIG_fail; | |
14815 | } | |
14816 | Py_INCREF(Py_None); resultobj = Py_None; | |
14817 | return resultobj; | |
14818 | fail: | |
14819 | return NULL; | |
14820 | } | |
14821 | ||
14822 | ||
14823 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
14824 | PyObject *obj; | |
14825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14826 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
14827 | Py_INCREF(obj); | |
14828 | return Py_BuildValue((char *)""); | |
14829 | } | |
3adfb63b | 14830 | static PyObject *_wrap_new_BufferedPaintDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
14831 | PyObject *resultobj; |
14832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3adfb63b RD |
14833 | wxBitmap *arg2 = 0 ; |
14834 | wxBufferedPaintDC *result; | |
14835 | PyObject * obj0 = 0 ; | |
14836 | PyObject * obj1 = 0 ; | |
14837 | ||
14838 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedPaintDC",&obj0,&obj1)) goto fail; | |
14839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14840 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14841 | if (arg2 == NULL) { | |
14842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14843 | } | |
14844 | { | |
14845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14846 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
14847 | ||
14848 | wxPyEndAllowThreads(__tstate); | |
14849 | if (PyErr_Occurred()) SWIG_fail; | |
14850 | } | |
14851 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14852 | return resultobj; | |
14853 | fail: | |
14854 | return NULL; | |
14855 | } | |
14856 | ||
14857 | ||
14858 | static PyObject *_wrap_new_BufferedPaintDC__SWIG_1(PyObject *self, PyObject *args) { | |
14859 | PyObject *resultobj; | |
14860 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14861 | int arg2 = (int) wxBUFFER_DC_DEFAULT ; | |
d14a1e28 RD |
14862 | wxBufferedPaintDC *result; |
14863 | PyObject * obj0 = 0 ; | |
14864 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14865 | |
3adfb63b | 14866 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_BufferedPaintDC",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
14867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14868 | if (obj1) { | |
3adfb63b RD |
14869 | { |
14870 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14872 | } |
14873 | } | |
14874 | { | |
14875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 14876 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,arg2); |
d14a1e28 RD |
14877 | |
14878 | wxPyEndAllowThreads(__tstate); | |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
14880 | } | |
14881 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
14882 | return resultobj; | |
14883 | fail: | |
14884 | return NULL; | |
14885 | } | |
14886 | ||
14887 | ||
3adfb63b RD |
14888 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args) { |
14889 | int argc; | |
14890 | PyObject *argv[3]; | |
14891 | int ii; | |
14892 | ||
14893 | argc = PyObject_Length(args); | |
14894 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
14895 | argv[ii] = PyTuple_GetItem(args,ii); | |
14896 | } | |
14897 | if ((argc >= 1) && (argc <= 2)) { | |
14898 | int _v; | |
14899 | { | |
14900 | void *ptr; | |
14901 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
14902 | _v = 0; | |
14903 | PyErr_Clear(); | |
14904 | } else { | |
14905 | _v = 1; | |
14906 | } | |
14907 | } | |
14908 | if (_v) { | |
14909 | if (argc <= 1) { | |
14910 | return _wrap_new_BufferedPaintDC__SWIG_1(self,args); | |
14911 | } | |
14912 | { | |
14913 | SWIG_PyObj_AsInt(argv[1]); | |
14914 | if (PyErr_Occurred()) { | |
14915 | _v = 0; | |
14916 | PyErr_Clear(); | |
14917 | } else { | |
14918 | _v = 1; | |
14919 | } | |
14920 | } | |
14921 | if (_v) { | |
14922 | return _wrap_new_BufferedPaintDC__SWIG_1(self,args); | |
14923 | } | |
14924 | } | |
14925 | } | |
14926 | if (argc == 2) { | |
14927 | int _v; | |
14928 | { | |
14929 | void *ptr; | |
14930 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
14931 | _v = 0; | |
14932 | PyErr_Clear(); | |
14933 | } else { | |
14934 | _v = 1; | |
14935 | } | |
14936 | } | |
14937 | if (_v) { | |
14938 | { | |
14939 | void *ptr; | |
14940 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
14941 | _v = 0; | |
14942 | PyErr_Clear(); | |
14943 | } else { | |
14944 | _v = 1; | |
14945 | } | |
14946 | } | |
14947 | if (_v) { | |
14948 | return _wrap_new_BufferedPaintDC__SWIG_0(self,args); | |
14949 | } | |
14950 | } | |
14951 | } | |
14952 | ||
14953 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedPaintDC'"); | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
d14a1e28 RD |
14958 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { |
14959 | PyObject *obj; | |
14960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14961 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
14962 | Py_INCREF(obj); | |
14963 | return Py_BuildValue((char *)""); | |
14964 | } | |
14965 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14966 | PyObject *resultobj; | |
14967 | wxScreenDC *result; | |
14968 | char *kwnames[] = { | |
14969 | NULL | |
14970 | }; | |
14971 | ||
14972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | result = (wxScreenDC *)new wxScreenDC(); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
14980 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
14981 | return resultobj; | |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
14990 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14991 | bool result; | |
14992 | PyObject * obj0 = 0 ; | |
14993 | PyObject * obj1 = 0 ; | |
14994 | char *kwnames[] = { | |
14995 | (char *) "self",(char *) "window", NULL | |
14996 | }; | |
14997 | ||
14998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
14999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15000 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15001 | { | |
15002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15003 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15004 | ||
15005 | wxPyEndAllowThreads(__tstate); | |
15006 | if (PyErr_Occurred()) SWIG_fail; | |
15007 | } | |
4d5c3d91 | 15008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15009 | return resultobj; |
15010 | fail: | |
15011 | return NULL; | |
15012 | } | |
15013 | ||
15014 | ||
15015 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15016 | PyObject *resultobj; | |
15017 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15018 | wxRect *arg2 = (wxRect *) NULL ; | |
15019 | bool result; | |
15020 | PyObject * obj0 = 0 ; | |
15021 | PyObject * obj1 = 0 ; | |
15022 | char *kwnames[] = { | |
15023 | (char *) "self",(char *) "rect", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15028 | if (obj1) { | |
15029 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15030 | } | |
15031 | { | |
15032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15033 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15034 | ||
15035 | wxPyEndAllowThreads(__tstate); | |
15036 | if (PyErr_Occurred()) SWIG_fail; | |
15037 | } | |
4d5c3d91 | 15038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15039 | return resultobj; |
15040 | fail: | |
15041 | return NULL; | |
15042 | } | |
15043 | ||
15044 | ||
15045 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15046 | PyObject *resultobj; | |
15047 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15048 | bool result; | |
15049 | PyObject * obj0 = 0 ; | |
15050 | char *kwnames[] = { | |
15051 | (char *) "self", NULL | |
15052 | }; | |
15053 | ||
15054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15056 | { | |
15057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15058 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15059 | ||
15060 | wxPyEndAllowThreads(__tstate); | |
15061 | if (PyErr_Occurred()) SWIG_fail; | |
15062 | } | |
4d5c3d91 | 15063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15064 | return resultobj; |
15065 | fail: | |
15066 | return NULL; | |
15067 | } | |
15068 | ||
15069 | ||
15070 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15071 | PyObject *obj; | |
15072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15073 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15074 | Py_INCREF(obj); | |
15075 | return Py_BuildValue((char *)""); | |
15076 | } | |
15077 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15078 | PyObject *resultobj; | |
15079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15080 | wxClientDC *result; | |
15081 | PyObject * obj0 = 0 ; | |
15082 | char *kwnames[] = { | |
15083 | (char *) "win", NULL | |
15084 | }; | |
15085 | ||
15086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15088 | { | |
15089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15090 | result = (wxClientDC *)new wxClientDC(arg1); | |
15091 | ||
15092 | wxPyEndAllowThreads(__tstate); | |
15093 | if (PyErr_Occurred()) SWIG_fail; | |
15094 | } | |
15095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
15096 | return resultobj; | |
15097 | fail: | |
15098 | return NULL; | |
15099 | } | |
15100 | ||
15101 | ||
15102 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15103 | PyObject *obj; | |
15104 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15105 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15106 | Py_INCREF(obj); | |
15107 | return Py_BuildValue((char *)""); | |
15108 | } | |
15109 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj; | |
15111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15112 | wxPaintDC *result; | |
15113 | PyObject * obj0 = 0 ; | |
15114 | char *kwnames[] = { | |
15115 | (char *) "win", NULL | |
15116 | }; | |
15117 | ||
15118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15120 | { | |
15121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15122 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15123 | ||
15124 | wxPyEndAllowThreads(__tstate); | |
15125 | if (PyErr_Occurred()) SWIG_fail; | |
15126 | } | |
15127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
15128 | return resultobj; | |
15129 | fail: | |
15130 | return NULL; | |
15131 | } | |
15132 | ||
15133 | ||
15134 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15135 | PyObject *obj; | |
15136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15137 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15138 | Py_INCREF(obj); | |
15139 | return Py_BuildValue((char *)""); | |
15140 | } | |
15141 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15142 | PyObject *resultobj; | |
15143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15144 | wxWindowDC *result; | |
15145 | PyObject * obj0 = 0 ; | |
15146 | char *kwnames[] = { | |
15147 | (char *) "win", NULL | |
15148 | }; | |
15149 | ||
15150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15152 | { | |
15153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15154 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15155 | ||
15156 | wxPyEndAllowThreads(__tstate); | |
15157 | if (PyErr_Occurred()) SWIG_fail; | |
15158 | } | |
15159 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
15160 | return resultobj; | |
15161 | fail: | |
15162 | return NULL; | |
15163 | } | |
15164 | ||
15165 | ||
15166 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15167 | PyObject *obj; | |
15168 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15169 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15170 | Py_INCREF(obj); | |
15171 | return Py_BuildValue((char *)""); | |
15172 | } | |
15173 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15174 | PyObject *resultobj; | |
15175 | wxDC *arg1 = 0 ; | |
15176 | bool arg2 ; | |
15177 | wxMirrorDC *result; | |
15178 | PyObject * obj0 = 0 ; | |
15179 | PyObject * obj1 = 0 ; | |
15180 | char *kwnames[] = { | |
15181 | (char *) "dc",(char *) "mirror", NULL | |
15182 | }; | |
15183 | ||
15184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15186 | if (arg1 == NULL) { | |
15187 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15188 | } | |
a41e16b6 | 15189 | { |
994141e6 | 15190 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15191 | if (PyErr_Occurred()) SWIG_fail; |
15192 | } | |
d14a1e28 RD |
15193 | { |
15194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15195 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15196 | ||
15197 | wxPyEndAllowThreads(__tstate); | |
15198 | if (PyErr_Occurred()) SWIG_fail; | |
15199 | } | |
15200 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
15201 | return resultobj; | |
15202 | fail: | |
15203 | return NULL; | |
15204 | } | |
15205 | ||
15206 | ||
15207 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15208 | PyObject *obj; | |
15209 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15210 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15211 | Py_INCREF(obj); | |
15212 | return Py_BuildValue((char *)""); | |
15213 | } | |
15214 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15215 | PyObject *resultobj; | |
15216 | wxPrintData *arg1 = 0 ; | |
15217 | wxPostScriptDC *result; | |
15218 | PyObject * obj0 = 0 ; | |
15219 | char *kwnames[] = { | |
15220 | (char *) "printData", NULL | |
15221 | }; | |
15222 | ||
15223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15225 | if (arg1 == NULL) { | |
15226 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15227 | } | |
15228 | { | |
15229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15230 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15231 | ||
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
15235 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
15236 | return resultobj; | |
15237 | fail: | |
15238 | return NULL; | |
15239 | } | |
15240 | ||
15241 | ||
15242 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15243 | PyObject *resultobj; | |
15244 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15245 | wxPrintData *result; | |
15246 | PyObject * obj0 = 0 ; | |
15247 | char *kwnames[] = { | |
15248 | (char *) "self", NULL | |
15249 | }; | |
15250 | ||
15251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15253 | { | |
15254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15255 | { | |
15256 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15257 | result = (wxPrintData *) &_result_ref; | |
15258 | } | |
15259 | ||
15260 | wxPyEndAllowThreads(__tstate); | |
15261 | if (PyErr_Occurred()) SWIG_fail; | |
15262 | } | |
15263 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
15264 | return resultobj; | |
15265 | fail: | |
15266 | return NULL; | |
15267 | } | |
15268 | ||
15269 | ||
15270 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15271 | PyObject *resultobj; | |
15272 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15273 | wxPrintData *arg2 = 0 ; | |
15274 | PyObject * obj0 = 0 ; | |
15275 | PyObject * obj1 = 0 ; | |
15276 | char *kwnames[] = { | |
15277 | (char *) "self",(char *) "data", NULL | |
15278 | }; | |
15279 | ||
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15282 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15283 | if (arg2 == NULL) { | |
15284 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15285 | } | |
15286 | { | |
15287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15288 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15289 | ||
15290 | wxPyEndAllowThreads(__tstate); | |
15291 | if (PyErr_Occurred()) SWIG_fail; | |
15292 | } | |
15293 | Py_INCREF(Py_None); resultobj = Py_None; | |
15294 | return resultobj; | |
15295 | fail: | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
15300 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15301 | PyObject *resultobj; | |
15302 | int arg1 ; | |
994141e6 | 15303 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15304 | char *kwnames[] = { |
15305 | (char *) "ppi", NULL | |
15306 | }; | |
15307 | ||
994141e6 RD |
15308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15309 | { | |
15310 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15311 | if (PyErr_Occurred()) SWIG_fail; | |
15312 | } | |
d14a1e28 RD |
15313 | { |
15314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15315 | wxPostScriptDC::SetResolution(arg1); | |
15316 | ||
15317 | wxPyEndAllowThreads(__tstate); | |
15318 | if (PyErr_Occurred()) SWIG_fail; | |
15319 | } | |
15320 | Py_INCREF(Py_None); resultobj = Py_None; | |
15321 | return resultobj; | |
15322 | fail: | |
15323 | return NULL; | |
15324 | } | |
15325 | ||
15326 | ||
15327 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15328 | PyObject *resultobj; | |
15329 | int result; | |
15330 | char *kwnames[] = { | |
15331 | NULL | |
15332 | }; | |
15333 | ||
15334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15335 | { | |
15336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15337 | result = (int)wxPostScriptDC::GetResolution(); | |
15338 | ||
15339 | wxPyEndAllowThreads(__tstate); | |
15340 | if (PyErr_Occurred()) SWIG_fail; | |
15341 | } | |
994141e6 | 15342 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15343 | return resultobj; |
15344 | fail: | |
15345 | return NULL; | |
15346 | } | |
15347 | ||
15348 | ||
15349 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15350 | PyObject *obj; | |
15351 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15352 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15353 | Py_INCREF(obj); | |
15354 | return Py_BuildValue((char *)""); | |
15355 | } | |
15356 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15357 | PyObject *resultobj; | |
15358 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15359 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15360 | wxMetaFile *result; | |
e811c8ce | 15361 | bool temp1 = False ; |
d14a1e28 RD |
15362 | PyObject * obj0 = 0 ; |
15363 | char *kwnames[] = { | |
15364 | (char *) "filename", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15368 | if (obj0) { | |
15369 | { | |
15370 | arg1 = wxString_in_helper(obj0); | |
15371 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15372 | temp1 = True; |
d14a1e28 RD |
15373 | } |
15374 | } | |
15375 | { | |
15376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15377 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15378 | ||
15379 | wxPyEndAllowThreads(__tstate); | |
15380 | if (PyErr_Occurred()) SWIG_fail; | |
15381 | } | |
15382 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
15383 | { | |
15384 | if (temp1) | |
15385 | delete arg1; | |
15386 | } | |
15387 | return resultobj; | |
15388 | fail: | |
15389 | { | |
15390 | if (temp1) | |
15391 | delete arg1; | |
15392 | } | |
15393 | return NULL; | |
15394 | } | |
15395 | ||
15396 | ||
15397 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15398 | PyObject *obj; | |
15399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15400 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15401 | Py_INCREF(obj); | |
15402 | return Py_BuildValue((char *)""); | |
15403 | } | |
15404 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15405 | PyObject *resultobj; | |
15406 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15407 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15408 | int arg2 = (int) 0 ; | |
15409 | int arg3 = (int) 0 ; | |
15410 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15411 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15412 | wxMetaFileDC *result; | |
e811c8ce RD |
15413 | bool temp1 = False ; |
15414 | bool temp4 = False ; | |
d14a1e28 | 15415 | PyObject * obj0 = 0 ; |
994141e6 RD |
15416 | PyObject * obj1 = 0 ; |
15417 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15418 | PyObject * obj3 = 0 ; |
15419 | char *kwnames[] = { | |
15420 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15421 | }; | |
15422 | ||
994141e6 | 15423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15424 | if (obj0) { |
15425 | { | |
15426 | arg1 = wxString_in_helper(obj0); | |
15427 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15428 | temp1 = True; |
d14a1e28 RD |
15429 | } |
15430 | } | |
994141e6 RD |
15431 | if (obj1) { |
15432 | { | |
15433 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15434 | if (PyErr_Occurred()) SWIG_fail; | |
15435 | } | |
15436 | } | |
15437 | if (obj2) { | |
15438 | { | |
15439 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15440 | if (PyErr_Occurred()) SWIG_fail; | |
15441 | } | |
15442 | } | |
d14a1e28 RD |
15443 | if (obj3) { |
15444 | { | |
15445 | arg4 = wxString_in_helper(obj3); | |
15446 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15447 | temp4 = True; |
d14a1e28 RD |
15448 | } |
15449 | } | |
15450 | { | |
15451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15452 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15453 | ||
15454 | wxPyEndAllowThreads(__tstate); | |
15455 | if (PyErr_Occurred()) SWIG_fail; | |
15456 | } | |
15457 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
15458 | { | |
15459 | if (temp1) | |
15460 | delete arg1; | |
15461 | } | |
15462 | { | |
15463 | if (temp4) | |
15464 | delete arg4; | |
15465 | } | |
15466 | return resultobj; | |
15467 | fail: | |
15468 | { | |
15469 | if (temp1) | |
15470 | delete arg1; | |
15471 | } | |
15472 | { | |
15473 | if (temp4) | |
15474 | delete arg4; | |
15475 | } | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
15480 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15481 | PyObject *obj; | |
15482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15483 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15484 | Py_INCREF(obj); | |
15485 | return Py_BuildValue((char *)""); | |
15486 | } | |
15487 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15488 | PyObject *resultobj; | |
15489 | wxPrintData *arg1 = 0 ; | |
15490 | wxPrinterDC *result; | |
15491 | PyObject * obj0 = 0 ; | |
15492 | char *kwnames[] = { | |
15493 | (char *) "printData", NULL | |
15494 | }; | |
15495 | ||
15496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15498 | if (arg1 == NULL) { | |
15499 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15500 | } | |
15501 | { | |
15502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15503 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15504 | ||
15505 | wxPyEndAllowThreads(__tstate); | |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
15507 | } | |
15508 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
15509 | return resultobj; | |
15510 | fail: | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
15516 | PyObject *obj; | |
15517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15518 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15519 | Py_INCREF(obj); | |
15520 | return Py_BuildValue((char *)""); | |
15521 | } | |
15522 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15523 | PyObject *resultobj; | |
15524 | int arg1 ; | |
15525 | int arg2 ; | |
e811c8ce | 15526 | int arg3 = (int) True ; |
d14a1e28 RD |
15527 | int arg4 = (int) 1 ; |
15528 | wxImageList *result; | |
994141e6 RD |
15529 | PyObject * obj0 = 0 ; |
15530 | PyObject * obj1 = 0 ; | |
15531 | PyObject * obj2 = 0 ; | |
15532 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15533 | char *kwnames[] = { |
15534 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15535 | }; | |
15536 | ||
994141e6 RD |
15537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15538 | { | |
15539 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
15540 | if (PyErr_Occurred()) SWIG_fail; | |
15541 | } | |
15542 | { | |
15543 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15544 | if (PyErr_Occurred()) SWIG_fail; | |
15545 | } | |
15546 | if (obj2) { | |
15547 | { | |
15548 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15549 | if (PyErr_Occurred()) SWIG_fail; | |
15550 | } | |
15551 | } | |
15552 | if (obj3) { | |
15553 | { | |
15554 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | } | |
15557 | } | |
d14a1e28 RD |
15558 | { |
15559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15560 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15561 | ||
15562 | wxPyEndAllowThreads(__tstate); | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
15564 | } | |
15565 | { | |
15566 | resultobj = wxPyMake_wxObject(result); | |
15567 | } | |
15568 | return resultobj; | |
15569 | fail: | |
15570 | return NULL; | |
15571 | } | |
15572 | ||
15573 | ||
15574 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15575 | PyObject *resultobj; | |
15576 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15577 | PyObject * obj0 = 0 ; | |
15578 | char *kwnames[] = { | |
15579 | (char *) "self", NULL | |
15580 | }; | |
15581 | ||
15582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15584 | { | |
15585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15586 | delete arg1; | |
15587 | ||
15588 | wxPyEndAllowThreads(__tstate); | |
15589 | if (PyErr_Occurred()) SWIG_fail; | |
15590 | } | |
15591 | Py_INCREF(Py_None); resultobj = Py_None; | |
15592 | return resultobj; | |
15593 | fail: | |
15594 | return NULL; | |
15595 | } | |
15596 | ||
15597 | ||
15598 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15599 | PyObject *resultobj; | |
15600 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15601 | wxBitmap *arg2 = 0 ; | |
15602 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15603 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15604 | int result; | |
15605 | PyObject * obj0 = 0 ; | |
15606 | PyObject * obj1 = 0 ; | |
15607 | PyObject * obj2 = 0 ; | |
15608 | char *kwnames[] = { | |
15609 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15610 | }; | |
15611 | ||
15612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15614 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15615 | if (arg2 == NULL) { | |
15616 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15617 | } | |
15618 | if (obj2) { | |
15619 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15620 | if (arg3 == NULL) { | |
15621 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15622 | } | |
15623 | } | |
15624 | { | |
15625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15626 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15627 | ||
15628 | wxPyEndAllowThreads(__tstate); | |
15629 | if (PyErr_Occurred()) SWIG_fail; | |
15630 | } | |
994141e6 | 15631 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15632 | return resultobj; |
15633 | fail: | |
15634 | return NULL; | |
15635 | } | |
15636 | ||
15637 | ||
15638 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15639 | PyObject *resultobj; | |
15640 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15641 | wxBitmap *arg2 = 0 ; | |
15642 | wxColour *arg3 = 0 ; | |
15643 | int result; | |
15644 | wxColour temp3 ; | |
15645 | PyObject * obj0 = 0 ; | |
15646 | PyObject * obj1 = 0 ; | |
15647 | PyObject * obj2 = 0 ; | |
15648 | char *kwnames[] = { | |
15649 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
15650 | }; | |
15651 | ||
15652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15654 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15655 | if (arg2 == NULL) { | |
15656 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15657 | } | |
15658 | { | |
15659 | arg3 = &temp3; | |
15660 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15661 | } | |
15662 | { | |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15664 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
15665 | ||
15666 | wxPyEndAllowThreads(__tstate); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
994141e6 | 15669 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15670 | return resultobj; |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15677 | PyObject *resultobj; | |
15678 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15679 | wxIcon *arg2 = 0 ; | |
15680 | int result; | |
15681 | PyObject * obj0 = 0 ; | |
15682 | PyObject * obj1 = 0 ; | |
15683 | char *kwnames[] = { | |
15684 | (char *) "self",(char *) "icon", NULL | |
15685 | }; | |
15686 | ||
15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15689 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15690 | if (arg2 == NULL) { | |
15691 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15692 | } | |
15693 | { | |
15694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15695 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
15696 | ||
15697 | wxPyEndAllowThreads(__tstate); | |
15698 | if (PyErr_Occurred()) SWIG_fail; | |
15699 | } | |
994141e6 | 15700 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15701 | return resultobj; |
15702 | fail: | |
15703 | return NULL; | |
15704 | } | |
15705 | ||
15706 | ||
15707 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15708 | PyObject *resultobj; | |
15709 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15710 | int arg2 ; | |
15711 | wxBitmap *arg3 = 0 ; | |
15712 | bool result; | |
15713 | PyObject * obj0 = 0 ; | |
994141e6 | 15714 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15715 | PyObject * obj2 = 0 ; |
15716 | char *kwnames[] = { | |
15717 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
15718 | }; | |
15719 | ||
994141e6 | 15720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15722 | { |
15723 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15724 | if (PyErr_Occurred()) SWIG_fail; | |
15725 | } | |
d14a1e28 RD |
15726 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15727 | if (arg3 == NULL) { | |
15728 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15729 | } | |
15730 | { | |
15731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15732 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
15733 | ||
15734 | wxPyEndAllowThreads(__tstate); | |
15735 | if (PyErr_Occurred()) SWIG_fail; | |
15736 | } | |
4d5c3d91 | 15737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15738 | return resultobj; |
15739 | fail: | |
15740 | return NULL; | |
15741 | } | |
15742 | ||
15743 | ||
15744 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15745 | PyObject *resultobj; | |
15746 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15747 | int arg2 ; | |
15748 | wxDC *arg3 = 0 ; | |
15749 | int arg4 ; | |
15750 | int arg5 ; | |
15751 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
e811c8ce | 15752 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15753 | bool result; |
15754 | PyObject * obj0 = 0 ; | |
994141e6 | 15755 | PyObject * obj1 = 0 ; |
d14a1e28 | 15756 | PyObject * obj2 = 0 ; |
994141e6 RD |
15757 | PyObject * obj3 = 0 ; |
15758 | PyObject * obj4 = 0 ; | |
15759 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15760 | PyObject * obj6 = 0 ; |
15761 | char *kwnames[] = { | |
15762 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15763 | }; | |
15764 | ||
994141e6 | 15765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 15766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15767 | { |
15768 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15769 | if (PyErr_Occurred()) SWIG_fail; | |
15770 | } | |
d14a1e28 RD |
15771 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15772 | if (arg3 == NULL) { | |
15773 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15774 | } | |
994141e6 RD |
15775 | { |
15776 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15777 | if (PyErr_Occurred()) SWIG_fail; | |
15778 | } | |
15779 | { | |
15780 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15781 | if (PyErr_Occurred()) SWIG_fail; | |
15782 | } | |
15783 | if (obj5) { | |
15784 | { | |
15785 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15786 | if (PyErr_Occurred()) SWIG_fail; | |
15787 | } | |
15788 | } | |
d14a1e28 | 15789 | if (obj6) { |
a41e16b6 | 15790 | { |
994141e6 | 15791 | arg7 = (bool const) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
15792 | if (PyErr_Occurred()) SWIG_fail; |
15793 | } | |
d14a1e28 RD |
15794 | } |
15795 | { | |
15796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15797 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15798 | ||
15799 | wxPyEndAllowThreads(__tstate); | |
15800 | if (PyErr_Occurred()) SWIG_fail; | |
15801 | } | |
4d5c3d91 | 15802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15803 | return resultobj; |
15804 | fail: | |
15805 | return NULL; | |
15806 | } | |
15807 | ||
15808 | ||
15809 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15810 | PyObject *resultobj; | |
15811 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15812 | int result; | |
15813 | PyObject * obj0 = 0 ; | |
15814 | char *kwnames[] = { | |
15815 | (char *) "self", NULL | |
15816 | }; | |
15817 | ||
15818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15820 | { | |
15821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15822 | result = (int)(arg1)->GetImageCount(); | |
15823 | ||
15824 | wxPyEndAllowThreads(__tstate); | |
15825 | if (PyErr_Occurred()) SWIG_fail; | |
15826 | } | |
994141e6 | 15827 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15828 | return resultobj; |
15829 | fail: | |
15830 | return NULL; | |
15831 | } | |
15832 | ||
15833 | ||
15834 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15835 | PyObject *resultobj; | |
15836 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15837 | int arg2 ; | |
15838 | bool result; | |
15839 | PyObject * obj0 = 0 ; | |
994141e6 | 15840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15841 | char *kwnames[] = { |
15842 | (char *) "self",(char *) "index", NULL | |
15843 | }; | |
15844 | ||
994141e6 | 15845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15847 | { |
15848 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15849 | if (PyErr_Occurred()) SWIG_fail; | |
15850 | } | |
d14a1e28 RD |
15851 | { |
15852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15853 | result = (bool)(arg1)->Remove(arg2); | |
15854 | ||
15855 | wxPyEndAllowThreads(__tstate); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | } | |
4d5c3d91 | 15858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15859 | return resultobj; |
15860 | fail: | |
15861 | return NULL; | |
15862 | } | |
15863 | ||
15864 | ||
15865 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15866 | PyObject *resultobj; | |
15867 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15868 | bool result; | |
15869 | PyObject * obj0 = 0 ; | |
15870 | char *kwnames[] = { | |
15871 | (char *) "self", NULL | |
15872 | }; | |
15873 | ||
15874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15876 | { | |
15877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15878 | result = (bool)(arg1)->RemoveAll(); | |
15879 | ||
15880 | wxPyEndAllowThreads(__tstate); | |
15881 | if (PyErr_Occurred()) SWIG_fail; | |
15882 | } | |
4d5c3d91 | 15883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15884 | return resultobj; |
15885 | fail: | |
15886 | return NULL; | |
15887 | } | |
15888 | ||
15889 | ||
15890 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15891 | PyObject *resultobj; | |
15892 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15893 | int arg2 ; | |
15894 | int *arg3 = 0 ; | |
15895 | int *arg4 = 0 ; | |
15896 | int temp3 ; | |
15897 | int temp4 ; | |
15898 | PyObject * obj0 = 0 ; | |
994141e6 | 15899 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15900 | char *kwnames[] = { |
15901 | (char *) "self",(char *) "index", NULL | |
15902 | }; | |
15903 | ||
15904 | arg3 = &temp3; | |
15905 | arg4 = &temp4; | |
994141e6 | 15906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15908 | { |
15909 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15910 | if (PyErr_Occurred()) SWIG_fail; | |
15911 | } | |
d14a1e28 RD |
15912 | { |
15913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15914 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
15915 | ||
15916 | wxPyEndAllowThreads(__tstate); | |
15917 | if (PyErr_Occurred()) SWIG_fail; | |
15918 | } | |
15919 | Py_INCREF(Py_None); resultobj = Py_None; | |
15920 | { | |
15921 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15922 | resultobj = t_output_helper(resultobj,o); | |
15923 | } | |
15924 | { | |
15925 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15926 | resultobj = t_output_helper(resultobj,o); | |
15927 | } | |
15928 | return resultobj; | |
15929 | fail: | |
15930 | return NULL; | |
15931 | } | |
15932 | ||
15933 | ||
15934 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
15935 | PyObject *obj; | |
15936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15937 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
15938 | Py_INCREF(obj); | |
15939 | return Py_BuildValue((char *)""); | |
15940 | } | |
994141e6 RD |
15941 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { |
15942 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15943 | return 1; | |
d14a1e28 RD |
15944 | } |
15945 | ||
15946 | ||
994141e6 RD |
15947 | static PyObject *_wrap_NORMAL_FONT_get() { |
15948 | PyObject *pyobj; | |
d14a1e28 | 15949 | |
994141e6 RD |
15950 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); |
15951 | return pyobj; | |
d14a1e28 RD |
15952 | } |
15953 | ||
15954 | ||
994141e6 RD |
15955 | static int _wrap_SMALL_FONT_set(PyObject *_val) { |
15956 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15957 | return 1; | |
d14a1e28 RD |
15958 | } |
15959 | ||
15960 | ||
994141e6 RD |
15961 | static PyObject *_wrap_SMALL_FONT_get() { |
15962 | PyObject *pyobj; | |
d14a1e28 | 15963 | |
994141e6 RD |
15964 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); |
15965 | return pyobj; | |
d14a1e28 RD |
15966 | } |
15967 | ||
15968 | ||
994141e6 RD |
15969 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { |
15970 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15971 | return 1; | |
d14a1e28 | 15972 | } |
994141e6 RD |
15973 | |
15974 | ||
15975 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15976 | PyObject *pyobj; | |
d14a1e28 | 15977 | |
994141e6 RD |
15978 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); |
15979 | return pyobj; | |
d14a1e28 RD |
15980 | } |
15981 | ||
15982 | ||
994141e6 RD |
15983 | static int _wrap_SWISS_FONT_set(PyObject *_val) { |
15984 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15985 | return 1; | |
d14a1e28 RD |
15986 | } |
15987 | ||
15988 | ||
994141e6 RD |
15989 | static PyObject *_wrap_SWISS_FONT_get() { |
15990 | PyObject *pyobj; | |
d14a1e28 | 15991 | |
994141e6 RD |
15992 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); |
15993 | return pyobj; | |
d14a1e28 RD |
15994 | } |
15995 | ||
15996 | ||
994141e6 RD |
15997 | static int _wrap_RED_PEN_set(PyObject *_val) { |
15998 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15999 | return 1; | |
16000 | } | |
16001 | ||
16002 | ||
16003 | static PyObject *_wrap_RED_PEN_get() { | |
16004 | PyObject *pyobj; | |
d14a1e28 | 16005 | |
994141e6 RD |
16006 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); |
16007 | return pyobj; | |
d14a1e28 RD |
16008 | } |
16009 | ||
16010 | ||
994141e6 RD |
16011 | static int _wrap_CYAN_PEN_set(PyObject *_val) { |
16012 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16013 | return 1; | |
d14a1e28 | 16014 | } |
994141e6 RD |
16015 | |
16016 | ||
16017 | static PyObject *_wrap_CYAN_PEN_get() { | |
16018 | PyObject *pyobj; | |
d14a1e28 | 16019 | |
994141e6 RD |
16020 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); |
16021 | return pyobj; | |
d14a1e28 RD |
16022 | } |
16023 | ||
16024 | ||
994141e6 RD |
16025 | static int _wrap_GREEN_PEN_set(PyObject *_val) { |
16026 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16027 | return 1; | |
16028 | } | |
16029 | ||
16030 | ||
16031 | static PyObject *_wrap_GREEN_PEN_get() { | |
16032 | PyObject *pyobj; | |
d14a1e28 | 16033 | |
994141e6 RD |
16034 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); |
16035 | return pyobj; | |
d14a1e28 RD |
16036 | } |
16037 | ||
16038 | ||
994141e6 RD |
16039 | static int _wrap_BLACK_PEN_set(PyObject *_val) { |
16040 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16041 | return 1; | |
16042 | } | |
16043 | ||
16044 | ||
16045 | static PyObject *_wrap_BLACK_PEN_get() { | |
16046 | PyObject *pyobj; | |
d14a1e28 | 16047 | |
994141e6 RD |
16048 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); |
16049 | return pyobj; | |
d14a1e28 RD |
16050 | } |
16051 | ||
16052 | ||
994141e6 RD |
16053 | static int _wrap_WHITE_PEN_set(PyObject *_val) { |
16054 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16055 | return 1; | |
d14a1e28 RD |
16056 | } |
16057 | ||
16058 | ||
994141e6 RD |
16059 | static PyObject *_wrap_WHITE_PEN_get() { |
16060 | PyObject *pyobj; | |
d14a1e28 | 16061 | |
994141e6 RD |
16062 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); |
16063 | return pyobj; | |
d14a1e28 RD |
16064 | } |
16065 | ||
16066 | ||
994141e6 RD |
16067 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { |
16068 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16069 | return 1; | |
d14a1e28 RD |
16070 | } |
16071 | ||
16072 | ||
994141e6 RD |
16073 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
16074 | PyObject *pyobj; | |
d14a1e28 | 16075 | |
994141e6 RD |
16076 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); |
16077 | return pyobj; | |
d14a1e28 RD |
16078 | } |
16079 | ||
16080 | ||
994141e6 RD |
16081 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { |
16082 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16083 | return 1; | |
d14a1e28 RD |
16084 | } |
16085 | ||
16086 | ||
994141e6 RD |
16087 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
16088 | PyObject *pyobj; | |
d14a1e28 | 16089 | |
994141e6 RD |
16090 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); |
16091 | return pyobj; | |
d14a1e28 RD |
16092 | } |
16093 | ||
16094 | ||
994141e6 RD |
16095 | static int _wrap_GREY_PEN_set(PyObject *_val) { |
16096 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16097 | return 1; | |
d14a1e28 RD |
16098 | } |
16099 | ||
16100 | ||
994141e6 RD |
16101 | static PyObject *_wrap_GREY_PEN_get() { |
16102 | PyObject *pyobj; | |
16103 | ||
16104 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
16105 | return pyobj; | |
d14a1e28 | 16106 | } |
994141e6 RD |
16107 | |
16108 | ||
16109 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
16110 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
16111 | return 1; |
16112 | } | |
16113 | ||
16114 | ||
994141e6 | 16115 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
16116 | PyObject *pyobj; |
16117 | ||
994141e6 | 16118 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16119 | return pyobj; |
16120 | } | |
16121 | ||
16122 | ||
994141e6 RD |
16123 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { |
16124 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
d14a1e28 RD |
16125 | return 1; |
16126 | } | |
16127 | ||
16128 | ||
994141e6 | 16129 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
16130 | PyObject *pyobj; |
16131 | ||
994141e6 | 16132 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16133 | return pyobj; |
16134 | } | |
16135 | ||
16136 | ||
994141e6 RD |
16137 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { |
16138 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16139 | return 1; |
16140 | } | |
16141 | ||
16142 | ||
994141e6 | 16143 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16144 | PyObject *pyobj; |
16145 | ||
994141e6 | 16146 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16147 | return pyobj; |
16148 | } | |
16149 | ||
16150 | ||
994141e6 RD |
16151 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { |
16152 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16153 | return 1; |
16154 | } | |
16155 | ||
16156 | ||
994141e6 | 16157 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16158 | PyObject *pyobj; |
16159 | ||
994141e6 | 16160 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16161 | return pyobj; |
16162 | } | |
16163 | ||
16164 | ||
994141e6 RD |
16165 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { |
16166 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16167 | return 1; |
16168 | } | |
16169 | ||
16170 | ||
994141e6 | 16171 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16172 | PyObject *pyobj; |
16173 | ||
994141e6 | 16174 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16175 | return pyobj; |
16176 | } | |
16177 | ||
16178 | ||
994141e6 RD |
16179 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { |
16180 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16181 | return 1; |
16182 | } | |
16183 | ||
16184 | ||
994141e6 | 16185 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16186 | PyObject *pyobj; |
16187 | ||
994141e6 | 16188 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16189 | return pyobj; |
16190 | } | |
16191 | ||
16192 | ||
994141e6 RD |
16193 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { |
16194 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
16195 | return 1; |
16196 | } | |
16197 | ||
16198 | ||
994141e6 | 16199 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16200 | PyObject *pyobj; |
16201 | ||
994141e6 | 16202 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16203 | return pyobj; |
16204 | } | |
16205 | ||
16206 | ||
994141e6 RD |
16207 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { |
16208 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
16209 | return 1; |
16210 | } | |
16211 | ||
16212 | ||
994141e6 | 16213 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16214 | PyObject *pyobj; |
16215 | ||
994141e6 | 16216 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16217 | return pyobj; |
16218 | } | |
16219 | ||
16220 | ||
994141e6 RD |
16221 | static int _wrap_RED_BRUSH_set(PyObject *_val) { |
16222 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
16223 | return 1; |
16224 | } | |
16225 | ||
16226 | ||
994141e6 | 16227 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16228 | PyObject *pyobj; |
16229 | ||
994141e6 | 16230 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16231 | return pyobj; |
16232 | } | |
16233 | ||
16234 | ||
994141e6 RD |
16235 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { |
16236 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16237 | return 1; |
16238 | } | |
16239 | ||
16240 | ||
994141e6 | 16241 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16242 | PyObject *pyobj; |
16243 | ||
994141e6 | 16244 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16245 | return pyobj; |
16246 | } | |
16247 | ||
16248 | ||
994141e6 RD |
16249 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { |
16250 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16251 | return 1; |
16252 | } | |
16253 | ||
16254 | ||
994141e6 | 16255 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
16256 | PyObject *pyobj; |
16257 | ||
994141e6 | 16258 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16259 | return pyobj; |
16260 | } | |
16261 | ||
16262 | ||
994141e6 RD |
16263 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { |
16264 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16265 | return 1; |
16266 | } | |
16267 | ||
16268 | ||
994141e6 | 16269 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16270 | PyObject *pyobj; |
16271 | ||
994141e6 | 16272 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16273 | return pyobj; |
16274 | } | |
16275 | ||
16276 | ||
994141e6 RD |
16277 | static int _wrap_BLACK_set(PyObject *_val) { |
16278 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16279 | return 1; |
16280 | } | |
16281 | ||
16282 | ||
994141e6 | 16283 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16284 | PyObject *pyobj; |
16285 | ||
994141e6 | 16286 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16287 | return pyobj; |
16288 | } | |
16289 | ||
16290 | ||
994141e6 RD |
16291 | static int _wrap_WHITE_set(PyObject *_val) { |
16292 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16293 | return 1; |
16294 | } | |
16295 | ||
16296 | ||
994141e6 | 16297 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16298 | PyObject *pyobj; |
16299 | ||
994141e6 | 16300 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16301 | return pyobj; |
16302 | } | |
16303 | ||
16304 | ||
994141e6 RD |
16305 | static int _wrap_RED_set(PyObject *_val) { |
16306 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16307 | return 1; |
16308 | } | |
16309 | ||
16310 | ||
994141e6 | 16311 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16312 | PyObject *pyobj; |
16313 | ||
994141e6 | 16314 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16315 | return pyobj; |
16316 | } | |
16317 | ||
16318 | ||
994141e6 RD |
16319 | static int _wrap_BLUE_set(PyObject *_val) { |
16320 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16321 | return 1; |
16322 | } | |
16323 | ||
16324 | ||
994141e6 | 16325 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16326 | PyObject *pyobj; |
16327 | ||
994141e6 | 16328 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16329 | return pyobj; |
16330 | } | |
16331 | ||
16332 | ||
994141e6 RD |
16333 | static int _wrap_GREEN_set(PyObject *_val) { |
16334 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16335 | return 1; |
16336 | } | |
16337 | ||
16338 | ||
994141e6 | 16339 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16340 | PyObject *pyobj; |
16341 | ||
994141e6 | 16342 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16343 | return pyobj; |
16344 | } | |
16345 | ||
16346 | ||
994141e6 RD |
16347 | static int _wrap_CYAN_set(PyObject *_val) { |
16348 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16349 | return 1; |
16350 | } | |
16351 | ||
16352 | ||
994141e6 | 16353 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16354 | PyObject *pyobj; |
16355 | ||
994141e6 | 16356 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16357 | return pyobj; |
16358 | } | |
16359 | ||
16360 | ||
994141e6 RD |
16361 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { |
16362 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16363 | return 1; |
16364 | } | |
16365 | ||
16366 | ||
994141e6 | 16367 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16368 | PyObject *pyobj; |
16369 | ||
994141e6 | 16370 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16371 | return pyobj; |
16372 | } | |
16373 | ||
16374 | ||
994141e6 RD |
16375 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { |
16376 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16377 | return 1; |
16378 | } | |
16379 | ||
16380 | ||
994141e6 | 16381 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16382 | PyObject *pyobj; |
16383 | ||
994141e6 | 16384 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16385 | return pyobj; |
16386 | } | |
16387 | ||
16388 | ||
994141e6 RD |
16389 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { |
16390 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16391 | return 1; |
16392 | } | |
16393 | ||
16394 | ||
994141e6 | 16395 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16396 | PyObject *pyobj; |
16397 | ||
994141e6 | 16398 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16399 | return pyobj; |
16400 | } | |
16401 | ||
16402 | ||
994141e6 RD |
16403 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { |
16404 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16405 | return 1; |
16406 | } | |
16407 | ||
16408 | ||
994141e6 | 16409 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16410 | PyObject *pyobj; |
16411 | ||
994141e6 | 16412 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16413 | return pyobj; |
16414 | } | |
16415 | ||
16416 | ||
994141e6 RD |
16417 | static int _wrap_NullBitmap_set(PyObject *_val) { |
16418 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16419 | return 1; |
16420 | } | |
16421 | ||
16422 | ||
994141e6 | 16423 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16424 | PyObject *pyobj; |
16425 | ||
994141e6 | 16426 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16427 | return pyobj; |
16428 | } | |
16429 | ||
16430 | ||
994141e6 RD |
16431 | static int _wrap_NullIcon_set(PyObject *_val) { |
16432 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16433 | return 1; |
16434 | } | |
16435 | ||
16436 | ||
994141e6 | 16437 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16438 | PyObject *pyobj; |
16439 | ||
994141e6 | 16440 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16441 | return pyobj; |
16442 | } | |
16443 | ||
16444 | ||
994141e6 RD |
16445 | static int _wrap_NullCursor_set(PyObject *_val) { |
16446 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16447 | return 1; |
16448 | } | |
16449 | ||
16450 | ||
994141e6 | 16451 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16452 | PyObject *pyobj; |
16453 | ||
994141e6 | 16454 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16455 | return pyobj; |
16456 | } | |
16457 | ||
16458 | ||
994141e6 RD |
16459 | static int _wrap_NullPen_set(PyObject *_val) { |
16460 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16461 | return 1; |
16462 | } | |
16463 | ||
16464 | ||
994141e6 | 16465 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16466 | PyObject *pyobj; |
16467 | ||
994141e6 | 16468 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16469 | return pyobj; |
16470 | } | |
16471 | ||
16472 | ||
994141e6 RD |
16473 | static int _wrap_NullBrush_set(PyObject *_val) { |
16474 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16475 | return 1; |
16476 | } | |
16477 | ||
16478 | ||
994141e6 | 16479 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16480 | PyObject *pyobj; |
16481 | ||
994141e6 | 16482 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16483 | return pyobj; |
16484 | } | |
16485 | ||
16486 | ||
994141e6 RD |
16487 | static int _wrap_NullPalette_set(PyObject *_val) { |
16488 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16489 | return 1; |
16490 | } | |
16491 | ||
16492 | ||
994141e6 | 16493 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16494 | PyObject *pyobj; |
16495 | ||
994141e6 | 16496 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16497 | return pyobj; |
16498 | } | |
16499 | ||
16500 | ||
994141e6 RD |
16501 | static int _wrap_NullFont_set(PyObject *_val) { |
16502 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16503 | return 1; |
16504 | } | |
16505 | ||
16506 | ||
994141e6 | 16507 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16508 | PyObject *pyobj; |
16509 | ||
994141e6 | 16510 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16511 | return pyobj; |
16512 | } | |
16513 | ||
16514 | ||
994141e6 RD |
16515 | static int _wrap_NullColour_set(PyObject *_val) { |
16516 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16517 | return 1; |
16518 | } | |
16519 | ||
16520 | ||
994141e6 | 16521 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16522 | PyObject *pyobj; |
16523 | ||
994141e6 | 16524 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16525 | return pyobj; |
16526 | } | |
16527 | ||
16528 | ||
994141e6 RD |
16529 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16530 | PyObject *resultobj; | |
16531 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16532 | wxPen *arg2 = (wxPen *) 0 ; | |
16533 | PyObject * obj0 = 0 ; | |
16534 | PyObject * obj1 = 0 ; | |
16535 | char *kwnames[] = { | |
16536 | (char *) "self",(char *) "pen", NULL | |
16537 | }; | |
16538 | ||
16539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
16540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16542 | { | |
16543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16544 | (arg1)->AddPen(arg2); | |
16545 | ||
16546 | wxPyEndAllowThreads(__tstate); | |
16547 | if (PyErr_Occurred()) SWIG_fail; | |
16548 | } | |
16549 | Py_INCREF(Py_None); resultobj = Py_None; | |
16550 | return resultobj; | |
16551 | fail: | |
16552 | return NULL; | |
d14a1e28 RD |
16553 | } |
16554 | ||
16555 | ||
994141e6 RD |
16556 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16557 | PyObject *resultobj; | |
16558 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16559 | wxColour *arg2 = 0 ; | |
16560 | int arg3 ; | |
16561 | int arg4 ; | |
16562 | wxPen *result; | |
16563 | wxColour temp2 ; | |
16564 | PyObject * obj0 = 0 ; | |
16565 | PyObject * obj1 = 0 ; | |
16566 | PyObject * obj2 = 0 ; | |
16567 | PyObject * obj3 = 0 ; | |
16568 | char *kwnames[] = { | |
16569 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16570 | }; | |
d14a1e28 | 16571 | |
994141e6 RD |
16572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
16573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16574 | { | |
16575 | arg2 = &temp2; | |
16576 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16577 | } | |
16578 | { | |
16579 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16580 | if (PyErr_Occurred()) SWIG_fail; | |
16581 | } | |
16582 | { | |
16583 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16584 | if (PyErr_Occurred()) SWIG_fail; | |
16585 | } | |
16586 | { | |
16587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16588 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16589 | ||
16590 | wxPyEndAllowThreads(__tstate); | |
16591 | if (PyErr_Occurred()) SWIG_fail; | |
16592 | } | |
16593 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
16594 | return resultobj; | |
16595 | fail: | |
16596 | return NULL; | |
d14a1e28 RD |
16597 | } |
16598 | ||
16599 | ||
994141e6 RD |
16600 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16601 | PyObject *resultobj; | |
16602 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16603 | wxPen *arg2 = (wxPen *) 0 ; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | PyObject * obj1 = 0 ; | |
16606 | char *kwnames[] = { | |
16607 | (char *) "self",(char *) "pen", NULL | |
16608 | }; | |
16609 | ||
16610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
16611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16612 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16613 | { | |
16614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16615 | (arg1)->RemovePen(arg2); | |
16616 | ||
16617 | wxPyEndAllowThreads(__tstate); | |
16618 | if (PyErr_Occurred()) SWIG_fail; | |
16619 | } | |
16620 | Py_INCREF(Py_None); resultobj = Py_None; | |
16621 | return resultobj; | |
16622 | fail: | |
16623 | return NULL; | |
d14a1e28 RD |
16624 | } |
16625 | ||
16626 | ||
994141e6 RD |
16627 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16628 | PyObject *resultobj; | |
16629 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16630 | int result; | |
16631 | PyObject * obj0 = 0 ; | |
16632 | char *kwnames[] = { | |
16633 | (char *) "self", NULL | |
16634 | }; | |
d14a1e28 | 16635 | |
994141e6 RD |
16636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
16637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16638 | { | |
16639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16640 | result = (int)(arg1)->GetCount(); | |
16641 | ||
16642 | wxPyEndAllowThreads(__tstate); | |
16643 | if (PyErr_Occurred()) SWIG_fail; | |
16644 | } | |
16645 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16646 | return resultobj; | |
16647 | fail: | |
16648 | return NULL; | |
d14a1e28 RD |
16649 | } |
16650 | ||
16651 | ||
994141e6 RD |
16652 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
16653 | PyObject *obj; | |
16654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16655 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
16656 | Py_INCREF(obj); | |
16657 | return Py_BuildValue((char *)""); | |
16658 | } | |
16659 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16660 | PyObject *resultobj; | |
16661 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16662 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16663 | PyObject * obj0 = 0 ; | |
16664 | PyObject * obj1 = 0 ; | |
16665 | char *kwnames[] = { | |
16666 | (char *) "self",(char *) "brush", NULL | |
16667 | }; | |
16668 | ||
16669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
16670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16671 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | (arg1)->AddBrush(arg2); | |
16675 | ||
16676 | wxPyEndAllowThreads(__tstate); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | } | |
16679 | Py_INCREF(Py_None); resultobj = Py_None; | |
16680 | return resultobj; | |
16681 | fail: | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
16686 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16687 | PyObject *resultobj; | |
16688 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16689 | wxColour *arg2 = 0 ; | |
16690 | int arg3 ; | |
16691 | wxBrush *result; | |
16692 | wxColour temp2 ; | |
16693 | PyObject * obj0 = 0 ; | |
16694 | PyObject * obj1 = 0 ; | |
16695 | PyObject * obj2 = 0 ; | |
16696 | char *kwnames[] = { | |
16697 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
16698 | }; | |
16699 | ||
16700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16702 | { | |
16703 | arg2 = &temp2; | |
16704 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16705 | } | |
16706 | { | |
16707 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | { | |
16711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16712 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
16713 | ||
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
16718 | return resultobj; | |
16719 | fail: | |
16720 | return NULL; | |
d14a1e28 RD |
16721 | } |
16722 | ||
16723 | ||
994141e6 RD |
16724 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
16725 | PyObject *resultobj; | |
16726 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16727 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16728 | PyObject * obj0 = 0 ; | |
16729 | PyObject * obj1 = 0 ; | |
16730 | char *kwnames[] = { | |
16731 | (char *) "self",(char *) "brush", NULL | |
16732 | }; | |
d14a1e28 | 16733 | |
994141e6 RD |
16734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
16735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16736 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16737 | { | |
16738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16739 | (arg1)->RemoveBrush(arg2); | |
16740 | ||
16741 | wxPyEndAllowThreads(__tstate); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | } | |
16744 | Py_INCREF(Py_None); resultobj = Py_None; | |
16745 | return resultobj; | |
16746 | fail: | |
16747 | return NULL; | |
d14a1e28 RD |
16748 | } |
16749 | ||
16750 | ||
994141e6 RD |
16751 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
16752 | PyObject *resultobj; | |
16753 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16754 | int result; | |
16755 | PyObject * obj0 = 0 ; | |
16756 | char *kwnames[] = { | |
16757 | (char *) "self", NULL | |
16758 | }; | |
d14a1e28 | 16759 | |
994141e6 RD |
16760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
16761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16762 | { | |
16763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16764 | result = (int)(arg1)->GetCount(); | |
16765 | ||
16766 | wxPyEndAllowThreads(__tstate); | |
16767 | if (PyErr_Occurred()) SWIG_fail; | |
16768 | } | |
16769 | resultobj = SWIG_PyObj_FromInt((int)result); | |
16770 | return resultobj; | |
16771 | fail: | |
16772 | return NULL; | |
d14a1e28 RD |
16773 | } |
16774 | ||
16775 | ||
994141e6 RD |
16776 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
16777 | PyObject *obj; | |
16778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16779 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
16780 | Py_INCREF(obj); | |
16781 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16782 | } |
994141e6 RD |
16783 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16784 | PyObject *resultobj; | |
16785 | wxColourDatabase *result; | |
16786 | char *kwnames[] = { | |
16787 | NULL | |
16788 | }; | |
d14a1e28 | 16789 | |
994141e6 RD |
16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
16791 | { | |
16792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16793 | result = (wxColourDatabase *)new wxColourDatabase(); | |
16794 | ||
16795 | wxPyEndAllowThreads(__tstate); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
16797 | } | |
16798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
16799 | return resultobj; | |
16800 | fail: | |
16801 | return NULL; | |
d14a1e28 RD |
16802 | } |
16803 | ||
16804 | ||
994141e6 RD |
16805 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
16806 | PyObject *resultobj; | |
16807 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16808 | PyObject * obj0 = 0 ; | |
16809 | char *kwnames[] = { | |
16810 | (char *) "self", NULL | |
16811 | }; | |
d14a1e28 | 16812 | |
994141e6 RD |
16813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
16814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16815 | { | |
16816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16817 | delete arg1; | |
16818 | ||
16819 | wxPyEndAllowThreads(__tstate); | |
16820 | if (PyErr_Occurred()) SWIG_fail; | |
16821 | } | |
16822 | Py_INCREF(Py_None); resultobj = Py_None; | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | return NULL; | |
d14a1e28 RD |
16826 | } |
16827 | ||
16828 | ||
994141e6 RD |
16829 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
16830 | PyObject *resultobj; | |
16831 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16832 | wxString *arg2 = 0 ; | |
16833 | wxColour result; | |
16834 | bool temp2 = False ; | |
16835 | PyObject * obj0 = 0 ; | |
16836 | PyObject * obj1 = 0 ; | |
16837 | char *kwnames[] = { | |
16838 | (char *) "self",(char *) "name", NULL | |
16839 | }; | |
16840 | ||
16841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
16842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16843 | { | |
16844 | arg2 = wxString_in_helper(obj1); | |
16845 | if (arg2 == NULL) SWIG_fail; | |
16846 | temp2 = True; | |
16847 | } | |
16848 | { | |
16849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16850 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
16851 | ||
16852 | wxPyEndAllowThreads(__tstate); | |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
16854 | } | |
16855 | { | |
16856 | wxColour * resultptr; | |
16857 | resultptr = new wxColour((wxColour &) result); | |
16858 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16859 | } | |
16860 | { | |
16861 | if (temp2) | |
16862 | delete arg2; | |
16863 | } | |
16864 | return resultobj; | |
16865 | fail: | |
16866 | { | |
16867 | if (temp2) | |
16868 | delete arg2; | |
16869 | } | |
16870 | return NULL; | |
d14a1e28 RD |
16871 | } |
16872 | ||
16873 | ||
994141e6 RD |
16874 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
16875 | PyObject *resultobj; | |
16876 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16877 | wxColour *arg2 = 0 ; | |
16878 | wxString result; | |
16879 | wxColour temp2 ; | |
16880 | PyObject * obj0 = 0 ; | |
16881 | PyObject * obj1 = 0 ; | |
16882 | char *kwnames[] = { | |
16883 | (char *) "self",(char *) "colour", NULL | |
16884 | }; | |
d14a1e28 | 16885 | |
994141e6 RD |
16886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
16887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16888 | { | |
16889 | arg2 = &temp2; | |
16890 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16891 | } | |
16892 | { | |
16893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16894 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
16895 | ||
16896 | wxPyEndAllowThreads(__tstate); | |
16897 | if (PyErr_Occurred()) SWIG_fail; | |
16898 | } | |
16899 | { | |
16900 | #if wxUSE_UNICODE | |
16901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16902 | #else | |
16903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16904 | #endif | |
16905 | } | |
16906 | return resultobj; | |
16907 | fail: | |
16908 | return NULL; | |
d14a1e28 RD |
16909 | } |
16910 | ||
16911 | ||
994141e6 RD |
16912 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
16913 | PyObject *resultobj; | |
16914 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16915 | wxString *arg2 = 0 ; | |
16916 | wxColour *arg3 = 0 ; | |
16917 | bool temp2 = False ; | |
16918 | wxColour temp3 ; | |
16919 | PyObject * obj0 = 0 ; | |
16920 | PyObject * obj1 = 0 ; | |
16921 | PyObject * obj2 = 0 ; | |
16922 | char *kwnames[] = { | |
16923 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
16924 | }; | |
16925 | ||
16926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16928 | { | |
16929 | arg2 = wxString_in_helper(obj1); | |
16930 | if (arg2 == NULL) SWIG_fail; | |
16931 | temp2 = True; | |
16932 | } | |
16933 | { | |
16934 | arg3 = &temp3; | |
16935 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16936 | } | |
16937 | { | |
16938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16939 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
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 *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
16960 | PyObject *resultobj; | |
16961 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16962 | wxString *arg2 = 0 ; | |
16963 | int arg3 ; | |
16964 | int arg4 ; | |
16965 | int arg5 ; | |
16966 | bool temp2 = False ; | |
16967 | PyObject * obj0 = 0 ; | |
16968 | PyObject * obj1 = 0 ; | |
16969 | PyObject * obj2 = 0 ; | |
16970 | PyObject * obj3 = 0 ; | |
16971 | PyObject * obj4 = 0 ; | |
16972 | char *kwnames[] = { | |
16973 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
16974 | }; | |
d14a1e28 | 16975 | |
994141e6 RD |
16976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
16977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16978 | { | |
16979 | arg2 = wxString_in_helper(obj1); | |
16980 | if (arg2 == NULL) SWIG_fail; | |
16981 | temp2 = True; | |
16982 | } | |
16983 | { | |
16984 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
16985 | if (PyErr_Occurred()) SWIG_fail; | |
16986 | } | |
16987 | { | |
16988 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
16989 | if (PyErr_Occurred()) SWIG_fail; | |
16990 | } | |
16991 | { | |
16992 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | } | |
16995 | { | |
16996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16997 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
16998 | ||
16999 | wxPyEndAllowThreads(__tstate); | |
17000 | if (PyErr_Occurred()) SWIG_fail; | |
17001 | } | |
17002 | Py_INCREF(Py_None); resultobj = Py_None; | |
17003 | { | |
17004 | if (temp2) | |
17005 | delete arg2; | |
17006 | } | |
17007 | return resultobj; | |
17008 | fail: | |
17009 | { | |
17010 | if (temp2) | |
17011 | delete arg2; | |
17012 | } | |
17013 | return NULL; | |
d14a1e28 RD |
17014 | } |
17015 | ||
17016 | ||
994141e6 RD |
17017 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
17018 | PyObject *obj; | |
17019 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17020 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17021 | Py_INCREF(obj); | |
17022 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17023 | } |
994141e6 RD |
17024 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17025 | PyObject *resultobj; | |
17026 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17027 | wxFont *arg2 = (wxFont *) 0 ; | |
17028 | PyObject * obj0 = 0 ; | |
17029 | PyObject * obj1 = 0 ; | |
17030 | char *kwnames[] = { | |
17031 | (char *) "self",(char *) "font", NULL | |
17032 | }; | |
d14a1e28 | 17033 | |
994141e6 RD |
17034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
17035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17036 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17037 | { | |
17038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17039 | (arg1)->AddFont(arg2); | |
17040 | ||
17041 | wxPyEndAllowThreads(__tstate); | |
17042 | if (PyErr_Occurred()) SWIG_fail; | |
17043 | } | |
17044 | Py_INCREF(Py_None); resultobj = Py_None; | |
17045 | return resultobj; | |
17046 | fail: | |
17047 | return NULL; | |
d14a1e28 RD |
17048 | } |
17049 | ||
17050 | ||
994141e6 RD |
17051 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17052 | PyObject *resultobj; | |
17053 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17054 | int arg2 ; | |
17055 | int arg3 ; | |
17056 | int arg4 ; | |
17057 | int arg5 ; | |
17058 | bool arg6 = (bool) False ; | |
17059 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17060 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17061 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17062 | wxFont *result; | |
17063 | bool temp7 = False ; | |
17064 | PyObject * obj0 = 0 ; | |
17065 | PyObject * obj1 = 0 ; | |
17066 | PyObject * obj2 = 0 ; | |
17067 | PyObject * obj3 = 0 ; | |
17068 | PyObject * obj4 = 0 ; | |
17069 | PyObject * obj5 = 0 ; | |
17070 | PyObject * obj6 = 0 ; | |
17071 | PyObject * obj7 = 0 ; | |
17072 | char *kwnames[] = { | |
17073 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17074 | }; | |
d14a1e28 | 17075 | |
994141e6 RD |
17076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
17077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17078 | { | |
17079 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17080 | if (PyErr_Occurred()) SWIG_fail; | |
17081 | } | |
17082 | { | |
17083 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17084 | if (PyErr_Occurred()) SWIG_fail; | |
17085 | } | |
17086 | { | |
17087 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
17089 | } | |
17090 | { | |
17091 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17092 | if (PyErr_Occurred()) SWIG_fail; | |
17093 | } | |
17094 | if (obj5) { | |
17095 | { | |
17096 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); | |
17097 | if (PyErr_Occurred()) SWIG_fail; | |
17098 | } | |
17099 | } | |
17100 | if (obj6) { | |
17101 | { | |
17102 | arg7 = wxString_in_helper(obj6); | |
17103 | if (arg7 == NULL) SWIG_fail; | |
17104 | temp7 = True; | |
17105 | } | |
17106 | } | |
17107 | if (obj7) { | |
17108 | { | |
17109 | arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7); | |
17110 | if (PyErr_Occurred()) SWIG_fail; | |
17111 | } | |
17112 | } | |
17113 | { | |
17114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17115 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17116 | ||
17117 | wxPyEndAllowThreads(__tstate); | |
17118 | if (PyErr_Occurred()) SWIG_fail; | |
17119 | } | |
17120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
17121 | { | |
17122 | if (temp7) | |
17123 | delete arg7; | |
17124 | } | |
17125 | return resultobj; | |
17126 | fail: | |
17127 | { | |
17128 | if (temp7) | |
17129 | delete arg7; | |
17130 | } | |
17131 | return NULL; | |
d14a1e28 RD |
17132 | } |
17133 | ||
17134 | ||
994141e6 RD |
17135 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17136 | PyObject *resultobj; | |
17137 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17138 | wxFont *arg2 = (wxFont *) 0 ; | |
17139 | PyObject * obj0 = 0 ; | |
17140 | PyObject * obj1 = 0 ; | |
17141 | char *kwnames[] = { | |
17142 | (char *) "self",(char *) "font", NULL | |
17143 | }; | |
d14a1e28 | 17144 | |
994141e6 RD |
17145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
17146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17147 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17148 | { | |
17149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17150 | (arg1)->RemoveFont(arg2); | |
17151 | ||
17152 | wxPyEndAllowThreads(__tstate); | |
17153 | if (PyErr_Occurred()) SWIG_fail; | |
17154 | } | |
17155 | Py_INCREF(Py_None); resultobj = Py_None; | |
17156 | return resultobj; | |
17157 | fail: | |
17158 | return NULL; | |
d14a1e28 RD |
17159 | } |
17160 | ||
17161 | ||
994141e6 RD |
17162 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17163 | PyObject *resultobj; | |
17164 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17165 | int result; | |
17166 | PyObject * obj0 = 0 ; | |
17167 | char *kwnames[] = { | |
17168 | (char *) "self", NULL | |
17169 | }; | |
d14a1e28 | 17170 | |
994141e6 RD |
17171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
17172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17173 | { | |
17174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17175 | result = (int)(arg1)->GetCount(); | |
17176 | ||
17177 | wxPyEndAllowThreads(__tstate); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
17179 | } | |
17180 | resultobj = SWIG_PyObj_FromInt((int)result); | |
17181 | return resultobj; | |
17182 | fail: | |
17183 | return NULL; | |
d14a1e28 RD |
17184 | } |
17185 | ||
17186 | ||
994141e6 RD |
17187 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
17188 | PyObject *obj; | |
17189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17190 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17191 | Py_INCREF(obj); | |
17192 | return Py_BuildValue((char *)""); | |
17193 | } | |
d14a1e28 RD |
17194 | static int _wrap_TheFontList_set(PyObject *_val) { |
17195 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
17196 | return 1; | |
17197 | } | |
17198 | ||
17199 | ||
17200 | static PyObject *_wrap_TheFontList_get() { | |
17201 | PyObject *pyobj; | |
17202 | ||
17203 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
17204 | return pyobj; | |
17205 | } | |
17206 | ||
17207 | ||
17208 | static int _wrap_ThePenList_set(PyObject *_val) { | |
17209 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
17210 | return 1; | |
17211 | } | |
17212 | ||
17213 | ||
17214 | static PyObject *_wrap_ThePenList_get() { | |
17215 | PyObject *pyobj; | |
17216 | ||
17217 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
17218 | return pyobj; | |
17219 | } | |
17220 | ||
17221 | ||
17222 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
17223 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
17224 | return 1; | |
17225 | } | |
17226 | ||
17227 | ||
17228 | static PyObject *_wrap_TheBrushList_get() { | |
17229 | PyObject *pyobj; | |
17230 | ||
17231 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
17232 | return pyobj; | |
17233 | } | |
17234 | ||
17235 | ||
17236 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
17237 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
17238 | return 1; | |
17239 | } | |
17240 | ||
17241 | ||
17242 | static PyObject *_wrap_TheColourDatabase_get() { | |
17243 | PyObject *pyobj; | |
17244 | ||
17245 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
17246 | return pyobj; | |
17247 | } | |
17248 | ||
17249 | ||
e811c8ce | 17250 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17251 | PyObject *resultobj; |
e811c8ce | 17252 | wxEffects *result; |
d14a1e28 | 17253 | char *kwnames[] = { |
e811c8ce | 17254 | NULL |
d14a1e28 RD |
17255 | }; |
17256 | ||
e811c8ce | 17257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
17258 | { |
17259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17260 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
17261 | |
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
e811c8ce | 17265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
17266 | return resultobj; |
17267 | fail: | |
17268 | return NULL; | |
17269 | } | |
17270 | ||
17271 | ||
e811c8ce | 17272 | static PyObject *_wrap_Effects_GetHighlightColour(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_GetHighlightColour",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)->GetHighlightColour(); |
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_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17302 | PyObject *resultobj; |
e811c8ce RD |
17303 | wxEffects *arg1 = (wxEffects *) 0 ; |
17304 | wxColour result; | |
d14a1e28 | 17305 | PyObject * obj0 = 0 ; |
d14a1e28 | 17306 | char *kwnames[] = { |
e811c8ce | 17307 | (char *) "self", NULL |
d14a1e28 RD |
17308 | }; |
17309 | ||
e811c8ce RD |
17310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
17311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17312 | { |
17313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17314 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17315 | |
17316 | wxPyEndAllowThreads(__tstate); | |
17317 | if (PyErr_Occurred()) SWIG_fail; | |
17318 | } | |
d14a1e28 | 17319 | { |
e811c8ce RD |
17320 | wxColour * resultptr; |
17321 | resultptr = new wxColour((wxColour &) result); | |
17322 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
17323 | } |
17324 | return resultobj; | |
17325 | fail: | |
d14a1e28 RD |
17326 | return NULL; |
17327 | } | |
17328 | ||
17329 | ||
e811c8ce | 17330 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17331 | PyObject *resultobj; |
e811c8ce RD |
17332 | wxEffects *arg1 = (wxEffects *) 0 ; |
17333 | wxColour result; | |
d14a1e28 | 17334 | PyObject * obj0 = 0 ; |
d14a1e28 | 17335 | char *kwnames[] = { |
e811c8ce | 17336 | (char *) "self", NULL |
d14a1e28 RD |
17337 | }; |
17338 | ||
e811c8ce RD |
17339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
17340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
17341 | { |
17342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17343 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17344 | |
17345 | wxPyEndAllowThreads(__tstate); | |
17346 | if (PyErr_Occurred()) SWIG_fail; | |
17347 | } | |
e811c8ce RD |
17348 | { |
17349 | wxColour * resultptr; | |
17350 | resultptr = new wxColour((wxColour &) result); | |
17351 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17352 | } | |
d14a1e28 RD |
17353 | return resultobj; |
17354 | fail: | |
17355 | return NULL; | |
17356 | } | |
17357 | ||
17358 | ||
e811c8ce | 17359 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17360 | PyObject *resultobj; |
e811c8ce RD |
17361 | wxEffects *arg1 = (wxEffects *) 0 ; |
17362 | wxColour result; | |
d14a1e28 RD |
17363 | PyObject * obj0 = 0 ; |
17364 | char *kwnames[] = { | |
e811c8ce | 17365 | (char *) "self", NULL |
d14a1e28 RD |
17366 | }; |
17367 | ||
17368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
17369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17370 | { | |
17371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17372 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17373 | ||
17374 | wxPyEndAllowThreads(__tstate); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | } | |
17377 | { | |
17378 | wxColour * resultptr; | |
17379 | resultptr = new wxColour((wxColour &) result); | |
17380 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17381 | } | |
17382 | return resultobj; | |
17383 | fail: | |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj; | |
17390 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17391 | wxColour result; | |
17392 | PyObject * obj0 = 0 ; | |
17393 | char *kwnames[] = { | |
17394 | (char *) "self", NULL | |
17395 | }; | |
17396 | ||
17397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
17398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17399 | { | |
17400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17401 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17402 | ||
17403 | wxPyEndAllowThreads(__tstate); | |
17404 | if (PyErr_Occurred()) SWIG_fail; | |
17405 | } | |
17406 | { | |
17407 | wxColour * resultptr; | |
17408 | resultptr = new wxColour((wxColour &) result); | |
17409 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
17410 | } | |
17411 | return resultobj; | |
17412 | fail: | |
17413 | return NULL; | |
17414 | } | |
17415 | ||
17416 | ||
17417 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17418 | PyObject *resultobj; | |
17419 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17420 | wxColour *arg2 = 0 ; | |
17421 | wxColour temp2 ; | |
17422 | PyObject * obj0 = 0 ; | |
17423 | PyObject * obj1 = 0 ; | |
17424 | char *kwnames[] = { | |
17425 | (char *) "self",(char *) "c", NULL | |
17426 | }; | |
17427 | ||
17428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
17429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17430 | { | |
17431 | arg2 = &temp2; | |
17432 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17433 | } | |
17434 | { | |
17435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17436 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17437 | ||
17438 | wxPyEndAllowThreads(__tstate); | |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
17440 | } | |
17441 | Py_INCREF(Py_None); resultobj = Py_None; | |
17442 | return resultobj; | |
17443 | fail: | |
17444 | return NULL; | |
17445 | } | |
17446 | ||
17447 | ||
17448 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17449 | PyObject *resultobj; | |
17450 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17451 | wxColour *arg2 = 0 ; | |
17452 | wxColour temp2 ; | |
17453 | PyObject * obj0 = 0 ; | |
17454 | PyObject * obj1 = 0 ; | |
17455 | char *kwnames[] = { | |
17456 | (char *) "self",(char *) "c", NULL | |
17457 | }; | |
17458 | ||
17459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
17460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17461 | { | |
17462 | arg2 = &temp2; | |
17463 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17464 | } | |
17465 | { | |
17466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17467 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17468 | ||
17469 | wxPyEndAllowThreads(__tstate); | |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
17471 | } | |
17472 | Py_INCREF(Py_None); resultobj = Py_None; | |
17473 | return resultobj; | |
17474 | fail: | |
17475 | return NULL; | |
17476 | } | |
17477 | ||
17478 | ||
17479 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17480 | PyObject *resultobj; | |
17481 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17482 | wxColour *arg2 = 0 ; | |
17483 | wxColour temp2 ; | |
17484 | PyObject * obj0 = 0 ; | |
17485 | PyObject * obj1 = 0 ; | |
17486 | char *kwnames[] = { | |
17487 | (char *) "self",(char *) "c", NULL | |
17488 | }; | |
17489 | ||
17490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
17491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17492 | { | |
17493 | arg2 = &temp2; | |
17494 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17495 | } | |
17496 | { | |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17499 | ||
17500 | wxPyEndAllowThreads(__tstate); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | } | |
17503 | Py_INCREF(Py_None); resultobj = Py_None; | |
17504 | return resultobj; | |
17505 | fail: | |
17506 | return NULL; | |
17507 | } | |
17508 | ||
17509 | ||
17510 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17511 | PyObject *resultobj; | |
17512 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17513 | wxColour *arg2 = 0 ; | |
17514 | wxColour temp2 ; | |
17515 | PyObject * obj0 = 0 ; | |
17516 | PyObject * obj1 = 0 ; | |
17517 | char *kwnames[] = { | |
17518 | (char *) "self",(char *) "c", NULL | |
17519 | }; | |
17520 | ||
17521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
17522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17523 | { | |
17524 | arg2 = &temp2; | |
17525 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17526 | } | |
17527 | { | |
17528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17529 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17530 | ||
17531 | wxPyEndAllowThreads(__tstate); | |
17532 | if (PyErr_Occurred()) SWIG_fail; | |
17533 | } | |
17534 | Py_INCREF(Py_None); resultobj = Py_None; | |
17535 | return resultobj; | |
17536 | fail: | |
17537 | return NULL; | |
17538 | } | |
17539 | ||
17540 | ||
17541 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17542 | PyObject *resultobj; | |
17543 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17544 | wxColour *arg2 = 0 ; | |
17545 | wxColour temp2 ; | |
17546 | PyObject * obj0 = 0 ; | |
17547 | PyObject * obj1 = 0 ; | |
17548 | char *kwnames[] = { | |
17549 | (char *) "self",(char *) "c", NULL | |
17550 | }; | |
17551 | ||
17552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
17553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17554 | { | |
17555 | arg2 = &temp2; | |
17556 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17557 | } | |
17558 | { | |
17559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17560 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17561 | ||
17562 | wxPyEndAllowThreads(__tstate); | |
17563 | if (PyErr_Occurred()) SWIG_fail; | |
17564 | } | |
17565 | Py_INCREF(Py_None); resultobj = Py_None; | |
17566 | return resultobj; | |
17567 | fail: | |
17568 | return NULL; | |
17569 | } | |
17570 | ||
17571 | ||
17572 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17573 | PyObject *resultobj; | |
17574 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17575 | wxColour *arg2 = 0 ; | |
17576 | wxColour *arg3 = 0 ; | |
17577 | wxColour *arg4 = 0 ; | |
17578 | wxColour *arg5 = 0 ; | |
17579 | wxColour *arg6 = 0 ; | |
17580 | wxColour temp2 ; | |
17581 | wxColour temp3 ; | |
17582 | wxColour temp4 ; | |
17583 | wxColour temp5 ; | |
17584 | wxColour temp6 ; | |
17585 | PyObject * obj0 = 0 ; | |
17586 | PyObject * obj1 = 0 ; | |
17587 | PyObject * obj2 = 0 ; | |
17588 | PyObject * obj3 = 0 ; | |
17589 | PyObject * obj4 = 0 ; | |
17590 | PyObject * obj5 = 0 ; | |
17591 | char *kwnames[] = { | |
17592 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17593 | }; | |
17594 | ||
17595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17597 | { | |
17598 | arg2 = &temp2; | |
17599 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17600 | } | |
17601 | { | |
17602 | arg3 = &temp3; | |
17603 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17604 | } | |
17605 | { | |
17606 | arg4 = &temp4; | |
17607 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17608 | } | |
17609 | { | |
17610 | arg5 = &temp5; | |
17611 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17612 | } | |
17613 | { | |
17614 | arg6 = &temp6; | |
17615 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
17616 | } | |
17617 | { | |
17618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17619 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
17620 | ||
17621 | wxPyEndAllowThreads(__tstate); | |
17622 | if (PyErr_Occurred()) SWIG_fail; | |
17623 | } | |
17624 | Py_INCREF(Py_None); resultobj = Py_None; | |
17625 | return resultobj; | |
17626 | fail: | |
17627 | return NULL; | |
17628 | } | |
17629 | ||
17630 | ||
17631 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17632 | PyObject *resultobj; | |
17633 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17634 | wxDC *arg2 = 0 ; | |
17635 | wxRect *arg3 = 0 ; | |
17636 | int arg4 = (int) 1 ; | |
17637 | wxRect temp3 ; | |
17638 | PyObject * obj0 = 0 ; | |
17639 | PyObject * obj1 = 0 ; | |
17640 | PyObject * obj2 = 0 ; | |
994141e6 | 17641 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
17642 | char *kwnames[] = { |
17643 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17644 | }; | |
17645 | ||
994141e6 | 17646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
17647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
17648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17649 | if (arg2 == NULL) { | |
17650 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17651 | } | |
17652 | { | |
17653 | arg3 = &temp3; | |
17654 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17655 | } | |
994141e6 RD |
17656 | if (obj3) { |
17657 | { | |
17658 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17659 | if (PyErr_Occurred()) SWIG_fail; | |
17660 | } | |
17661 | } | |
d14a1e28 RD |
17662 | { |
17663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17664 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17665 | ||
17666 | wxPyEndAllowThreads(__tstate); | |
17667 | if (PyErr_Occurred()) SWIG_fail; | |
17668 | } | |
17669 | Py_INCREF(Py_None); resultobj = Py_None; | |
17670 | return resultobj; | |
17671 | fail: | |
17672 | return NULL; | |
17673 | } | |
17674 | ||
17675 | ||
17676 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17677 | PyObject *resultobj; | |
17678 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17679 | wxRect *arg2 = 0 ; | |
17680 | wxDC *arg3 = 0 ; | |
17681 | wxBitmap *arg4 = 0 ; | |
17682 | bool result; | |
17683 | wxRect temp2 ; | |
17684 | PyObject * obj0 = 0 ; | |
17685 | PyObject * obj1 = 0 ; | |
17686 | PyObject * obj2 = 0 ; | |
17687 | PyObject * obj3 = 0 ; | |
17688 | char *kwnames[] = { | |
17689 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17690 | }; | |
17691 | ||
17692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17694 | { | |
17695 | arg2 = &temp2; | |
17696 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17697 | } | |
17698 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17699 | if (arg3 == NULL) { | |
17700 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17701 | } | |
17702 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17703 | if (arg4 == NULL) { | |
17704 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17705 | } | |
17706 | { | |
17707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17708 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17709 | ||
17710 | wxPyEndAllowThreads(__tstate); | |
17711 | if (PyErr_Occurred()) SWIG_fail; | |
17712 | } | |
4d5c3d91 | 17713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17714 | return resultobj; |
17715 | fail: | |
17716 | return NULL; | |
17717 | } | |
17718 | ||
17719 | ||
17720 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
17721 | PyObject *obj; | |
17722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17723 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17724 | Py_INCREF(obj); | |
17725 | return Py_BuildValue((char *)""); | |
17726 | } | |
17727 | static PyMethodDef SwigMethods[] = { | |
17728 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17729 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
17730 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17731 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
17732 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
17733 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
17734 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17735 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
17736 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
17737 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
17738 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
17739 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
17740 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
17741 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17742 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17743 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17744 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
17745 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 17746 | { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17747 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, |
17748 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
17749 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17750 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
17751 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
17752 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
17753 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17754 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
17755 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17756 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
17757 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
17758 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17759 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17760 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17761 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17762 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17763 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
17764 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17765 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
17766 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17767 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17768 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17769 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 17770 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
22faec7d | 17771 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, |
c9c7117a | 17772 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
17773 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
17774 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17775 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
17776 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
17777 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
17778 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17779 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
17780 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
17781 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17782 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17783 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
17784 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17785 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
17786 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17787 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
17788 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17789 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
17790 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17791 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17792 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17793 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17794 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17795 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17796 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17797 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17798 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17799 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
17800 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
17801 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
17802 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
17803 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17804 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
17805 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17806 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17807 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17808 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17809 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17810 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
17811 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
17812 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, |
17813 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17814 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
17815 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
17816 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
17817 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17818 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
17819 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
17820 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17821 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17822 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17823 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17824 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17825 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17826 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
17827 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17828 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
17829 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17830 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
17831 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
17832 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17833 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17834 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17835 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
17836 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
17837 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17838 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17839 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
17840 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
17841 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17842 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
17843 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
17844 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
17845 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17846 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
17847 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
17848 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
17849 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
17850 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17851 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
17852 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
17853 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17854 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
17855 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
17856 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
17857 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
17858 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
17859 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
17860 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
17861 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
17862 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
17863 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
17864 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
17865 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
17866 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
17867 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
17868 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
17869 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
17870 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
17871 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
17872 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
17873 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
17874 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
17875 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
17876 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17877 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17878 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
17879 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17880 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
17881 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
17882 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
17883 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
17884 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17885 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
17886 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17887 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
17888 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
17889 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
17890 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
17891 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
17892 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
17893 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17894 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17895 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
17896 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
17897 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17898 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17899 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17900 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17901 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17902 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17903 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17904 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17905 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17906 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17907 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17908 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17909 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17910 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17911 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17912 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17913 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
17914 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
17915 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
17916 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
17917 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
17918 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
17919 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
17920 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
17921 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17922 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
17923 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
17924 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
17925 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
17926 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17927 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17928 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17929 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
17930 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
17931 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
17932 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17933 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
17934 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17935 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
17936 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
17937 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
17938 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17939 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
17940 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17941 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
17942 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
17943 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
17944 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
17945 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
17946 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
17947 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
17948 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
17949 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
17950 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
17951 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
17952 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
17953 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17954 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17955 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17956 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17957 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17958 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17959 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17960 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17961 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
17962 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
17963 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17964 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
17965 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
17966 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
17967 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
17968 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
17969 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
17970 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17971 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
17972 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
17973 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
17974 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
17975 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
17976 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
17977 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17978 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
17979 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17980 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
17981 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
17982 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17983 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
17984 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
17985 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17986 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17987 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
17988 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
17989 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
17990 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
17991 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
17992 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
17993 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
17994 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
17995 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
17996 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
17997 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17998 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
17999 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
18000 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
18001 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18002 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18003 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18004 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18005 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18006 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18007 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
18008 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
18009 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
18010 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
18011 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
18012 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18013 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
18014 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18015 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18016 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
18017 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
18018 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
18019 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18020 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
18021 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18022 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18023 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
18024 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
18025 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18026 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18027 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
18028 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
18029 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
18030 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18031 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18032 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
18033 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
18034 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
18035 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18036 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
18037 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
18038 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
18039 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
18040 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18041 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
18042 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
18043 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
18044 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
18045 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
18046 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
18047 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
18048 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18049 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18050 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18051 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
18052 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
18053 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
18054 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
18055 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
18056 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
18057 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
18058 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
18059 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
18060 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
18061 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
18062 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18063 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18064 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
18065 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
18066 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
18067 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
18068 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
18069 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
18070 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18071 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18072 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18073 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18074 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18075 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18076 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18077 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18078 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18079 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18080 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18081 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18082 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18083 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18084 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
242b7b46 | 18085 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18086 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18087 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18088 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18089 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18090 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18091 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18092 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18093 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18094 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18095 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18096 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 18097 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18098 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18099 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18100 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18101 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18102 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
18103 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18104 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18105 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18106 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18107 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18108 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18109 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18110 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18111 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18112 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18113 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18114 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18115 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18116 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18117 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18118 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18119 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18120 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18121 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18122 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18123 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18124 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18125 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18126 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18127 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18128 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18129 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18130 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18131 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18132 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18133 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18134 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18135 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
18136 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
18137 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18138 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18139 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18140 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18141 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18142 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18143 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18144 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18145 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18146 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18147 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18148 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18149 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18150 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18151 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18152 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18153 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18154 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18155 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18156 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18157 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18158 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
3adfb63b RD |
18159 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
18160 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
d14a1e28 RD |
18161 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
18162 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
3adfb63b | 18163 | { (char *)"new_BufferedPaintDC", _wrap_new_BufferedPaintDC, METH_VARARGS }, |
d14a1e28 RD |
18164 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
18165 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
18166 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
18167 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18168 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18169 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
18170 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
18171 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
18172 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18173 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
18174 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
18175 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
18176 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
18177 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
18178 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
18179 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18180 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18181 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18182 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18183 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
18184 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18185 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
18186 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
18187 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
18188 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
18189 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
18190 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18191 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18192 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
18193 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
18194 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18195 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
18196 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
18197 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
18198 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
18199 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
18200 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18201 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
18202 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
18203 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
18204 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
18205 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18206 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
18207 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
18208 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
18209 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
18210 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18211 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
18212 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18213 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18214 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
18215 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
18216 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
18217 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
18218 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
18219 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
18220 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
18221 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
18222 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18223 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
18224 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
18225 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18226 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18227 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18228 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18229 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18230 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18231 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18232 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18233 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18234 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18235 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
18236 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
18237 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18238 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
18239 | { NULL, NULL } | |
18240 | }; | |
18241 | ||
18242 | ||
18243 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18244 | ||
e811c8ce RD |
18245 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
18246 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18247 | } | |
18248 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18249 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18250 | } | |
18251 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18252 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18253 | } | |
d14a1e28 RD |
18254 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
18255 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18256 | } | |
18257 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18258 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18259 | } | |
d14a1e28 RD |
18260 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
18261 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18262 | } | |
18263 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18264 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18265 | } | |
18266 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18267 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18268 | } | |
18269 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18270 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18271 | } | |
18272 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18273 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18274 | } | |
18275 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18276 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18277 | } | |
18278 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18279 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18280 | } | |
18281 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18282 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18283 | } | |
18284 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18285 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18286 | } | |
18287 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18288 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18289 | } | |
18290 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18291 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18292 | } | |
18293 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18294 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18295 | } | |
18296 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18297 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18298 | } | |
18299 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18300 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18301 | } | |
18302 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18303 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18304 | } | |
18305 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18306 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18307 | } | |
18308 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18309 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18310 | } | |
18311 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18312 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18313 | } | |
18314 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18315 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18316 | } | |
18317 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18318 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18319 | } | |
18320 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18321 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18322 | } | |
18323 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18324 | return (void *)((wxObject *) ((wxDC *) x)); | |
18325 | } | |
18326 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18327 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18328 | } | |
18329 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18330 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18331 | } | |
18332 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18333 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18334 | } | |
18335 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18336 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18337 | } | |
18338 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18339 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18340 | } | |
18341 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18342 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18343 | } | |
18344 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18345 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18346 | } | |
18347 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18348 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18349 | } | |
18350 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18351 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18352 | } | |
18353 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18354 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18355 | } | |
18356 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18357 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18358 | } | |
18359 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18360 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18361 | } | |
18362 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18363 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18364 | } | |
18365 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18366 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18367 | } | |
18368 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18369 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18370 | } | |
18371 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18372 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18373 | } | |
18374 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18375 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18376 | } | |
18377 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18378 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18379 | } | |
18380 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18381 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18382 | } | |
18383 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18384 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18385 | } | |
18386 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18387 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18388 | } | |
18389 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18390 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18391 | } | |
18392 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18393 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18394 | } | |
18395 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18396 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18397 | } | |
18398 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18399 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18400 | } | |
18401 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18402 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18403 | } | |
18404 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18405 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18406 | } | |
18407 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18408 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18409 | } | |
18410 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18411 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18412 | } | |
18413 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18414 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18415 | } | |
18416 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18417 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18418 | } | |
18419 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18420 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18421 | } | |
18422 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18423 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18424 | } | |
18425 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18426 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18427 | } | |
18428 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18429 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18430 | } | |
18431 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18432 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18433 | } | |
18434 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18435 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18436 | } | |
18437 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18438 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18439 | } | |
18440 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18441 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18442 | } | |
18443 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18444 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18445 | } | |
18446 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18447 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18448 | } | |
18449 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18450 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18451 | } | |
18452 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18453 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18454 | } | |
18455 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18456 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18457 | } | |
1e0c8722 RD |
18458 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18459 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18460 | } | |
d14a1e28 RD |
18461 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18462 | return (void *)((wxObject *) ((wxImage *) x)); | |
18463 | } | |
18464 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18465 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18466 | } | |
d14a1e28 RD |
18467 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18468 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18469 | } | |
18470 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18471 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18472 | } | |
18473 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18474 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18475 | } | |
18476 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18477 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18478 | } | |
18479 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18480 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18481 | } | |
18482 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18483 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18484 | } | |
18485 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18486 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18487 | } | |
18488 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18489 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18490 | } | |
18491 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18492 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18493 | } | |
18494 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18495 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18496 | } | |
18497 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18498 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18499 | } | |
18500 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18501 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18502 | } | |
18503 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18504 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18505 | } | |
18506 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18507 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18508 | } | |
18509 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
18510 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
18511 | } | |
18512 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
18513 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18514 | } | |
18515 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18516 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18517 | } | |
18518 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18519 | return (void *)((wxObject *) ((wxMask *) x)); | |
18520 | } | |
18521 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18522 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18523 | } | |
18524 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18525 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18526 | } | |
18527 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18528 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18529 | } | |
18530 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18531 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18532 | } | |
18533 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18534 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18535 | } | |
18536 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18537 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18538 | } | |
18539 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18540 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18541 | } | |
18542 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18543 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18544 | } | |
18545 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18546 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18547 | } | |
18548 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18549 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18550 | } | |
18551 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18552 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18553 | } | |
18554 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18555 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18556 | } | |
18557 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18558 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18559 | } | |
18560 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18561 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18562 | } | |
18563 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18564 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18565 | } | |
18566 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18567 | return (void *)((wxObject *) ((wxColour *) x)); | |
18568 | } | |
18569 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18570 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18571 | } | |
18572 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18573 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18574 | } | |
18575 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18576 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18577 | } | |
e811c8ce RD |
18578 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18579 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18580 | } |
e811c8ce RD |
18581 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18582 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18583 | } |
e811c8ce RD |
18584 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18585 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18586 | } | |
18587 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18588 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18589 | } | |
18590 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18591 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18592 | } | |
18593 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18594 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18595 | } | |
18596 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18597 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18598 | } | |
18599 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
18600 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18601 | } | |
18602 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
18603 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
18604 | } | |
18605 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
18606 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
18607 | } | |
18608 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
18609 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
18610 | } | |
18611 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
18612 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
18613 | } | |
18614 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
18615 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
18616 | } | |
18617 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
18618 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
18619 | } | |
18620 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
18621 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
18622 | } | |
18623 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
18624 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
18625 | } | |
18626 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
18627 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
18628 | } | |
18629 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
18630 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
18631 | } | |
18632 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
18633 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
18634 | } | |
18635 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
18636 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
18637 | } | |
18638 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
18639 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
18640 | } | |
18641 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
18642 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
18643 | } |
18644 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
18645 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
18646 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
18647 | 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}}; |
18648 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
18649 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18650 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
994141e6 | 18651 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
18652 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; |
18653 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
18654 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
18655 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
18656 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
18657 | 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}}; | |
18658 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
18659 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
18660 | 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}}; | |
18661 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
18662 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
18663 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
18664 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
18665 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
1e0c8722 | 18666 | 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 |
18667 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
18668 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
18669 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
18670 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
18671 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
18672 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
18673 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
18674 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
18675 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
18676 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
18677 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
18678 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
18679 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
18680 | 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 | 18681 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; |
994141e6 | 18682 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; |
d14a1e28 RD |
18683 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; |
18684 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
18685 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
18686 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
18687 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
18688 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
18689 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
18690 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
18691 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
18692 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
18693 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 18694 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
e811c8ce | 18695 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
18696 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
18697 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
18698 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
18699 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
18700 | ||
18701 | static swig_type_info *swig_types_initial[] = { | |
18702 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
18703 | _swigt__p_wxBrush, |
18704 | _swigt__p_wxColour, | |
d14a1e28 RD |
18705 | _swigt__p_wxDC, |
18706 | _swigt__p_wxMirrorDC, | |
18707 | _swigt__p_byte, | |
18708 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 18709 | _swigt__p_char, |
d14a1e28 RD |
18710 | _swigt__p_wxIconLocation, |
18711 | _swigt__p_wxImage, | |
18712 | _swigt__p_wxMetaFileDC, | |
18713 | _swigt__p_wxMask, | |
18714 | _swigt__p_wxFont, | |
18715 | _swigt__p_wxWindow, | |
18716 | _swigt__p_wxSize, | |
18717 | _swigt__p_double, | |
18718 | _swigt__p_wxMemoryDC, | |
18719 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
18720 | _swigt__p_wxEffects, |
18721 | _swigt__p_wxNativeEncodingInfo, | |
18722 | _swigt__p_wxPalette, | |
18723 | _swigt__p_wxBitmap, | |
18724 | _swigt__p_wxObject, | |
18725 | _swigt__p_wxRegionIterator, | |
18726 | _swigt__p_wxRect, | |
18727 | _swigt__p_wxString, | |
18728 | _swigt__p_wxPrinterDC, | |
18729 | _swigt__p_wxIconBundle, | |
18730 | _swigt__p_wxPoint, | |
18731 | _swigt__p_wxDash, | |
18732 | _swigt__p_wxScreenDC, | |
18733 | _swigt__p_wxCursor, | |
18734 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
18735 | _swigt__p_wxBufferedDC, |
18736 | _swigt__p_wxImageList, | |
18737 | _swigt__p_unsigned_char, | |
18738 | _swigt__p_wxGDIObject, | |
d14a1e28 | 18739 | _swigt__p_wxIcon, |
994141e6 | 18740 | _swigt__p_wxLocale, |
d14a1e28 RD |
18741 | _swigt__p_wxRegion, |
18742 | _swigt__p_wxLanguageInfo, | |
18743 | _swigt__p_wxConfigBase, | |
18744 | _swigt__p_wxWindowDC, | |
18745 | _swigt__p_wxPrintData, | |
18746 | _swigt__p_wxBrushList, | |
18747 | _swigt__p_wxFontList, | |
18748 | _swigt__p_wxPen, | |
18749 | _swigt__p_wxBufferedPaintDC, | |
18750 | _swigt__p_wxPaintDC, | |
18751 | _swigt__p_wxPenList, | |
d14a1e28 RD |
18752 | _swigt__p_wxPyPen, |
18753 | _swigt__p_int, | |
18754 | _swigt__p_wxMetaFile, | |
18755 | _swigt__p_wxNativeFontInfo, | |
18756 | _swigt__p_wxEncodingConverter, | |
18757 | _swigt__p_wxColourDatabase, | |
18758 | 0 | |
18759 | }; | |
18760 | ||
18761 | ||
18762 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18763 | ||
18764 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
18765 | {0}}; |
18766 | ||
18767 | #ifdef __cplusplus | |
18768 | } | |
18769 | #endif | |
18770 | ||
18771 | #ifdef __cplusplus | |
18772 | extern "C" | |
18773 | #endif | |
18774 | SWIGEXPORT(void) SWIG_init(void) { | |
18775 | static PyObject *SWIG_globals = 0; | |
18776 | static int typeinit = 0; | |
18777 | PyObject *m, *d; | |
18778 | int i; | |
18779 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18780 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18781 | d = PyModule_GetDict(m); | |
18782 | ||
18783 | if (!typeinit) { | |
18784 | for (i = 0; swig_types_initial[i]; i++) { | |
18785 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18786 | } | |
18787 | typeinit = 1; | |
18788 | } | |
18789 | SWIG_InstallConstants(d,swig_const_table); | |
18790 | ||
994141e6 RD |
18791 | PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion)); |
18792 | PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion)); | |
18793 | PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion)); | |
18794 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
18795 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
18796 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN)); | |
18797 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
18798 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS)); | |
18799 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN)); | |
18800 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
18801 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX)); | |
18802 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
18803 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL)); | |
18804 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC)); | |
18805 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT)); | |
18806 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX)); | |
18807 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
18808 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
18809 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD)); | |
18810 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX)); | |
18811 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT)); | |
18812 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC)); | |
18813 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT)); | |
18814 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT)); | |
18815 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD)); | |
18816 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
18817 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
18818 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
18819 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
18820 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK)); | |
18821 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM)); | |
18822 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT)); | |
18823 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
18824 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
18825 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
18826 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
18827 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
18828 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
18829 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
18830 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
18831 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
18832 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
18833 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
18834 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
18835 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
18836 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
18837 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
18838 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
18839 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8)); | |
18840 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
18841 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
18842 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437)); | |
18843 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850)); | |
18844 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852)); | |
18845 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855)); | |
18846 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866)); | |
18847 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874)); | |
18848 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932)); | |
18849 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936)); | |
18850 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949)); | |
18851 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950)); | |
18852 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250)); | |
18853 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251)); | |
18854 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252)); | |
18855 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253)); | |
18856 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254)); | |
18857 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255)); | |
18858 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256)); | |
18859 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257)); | |
18860 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
18861 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7)); | |
18862 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8)); | |
18863 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP)); | |
18864 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE)); | |
18865 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE)); | |
18866 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE)); | |
18867 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE)); | |
18868 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN)); | |
18869 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
18870 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
18871 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
18872 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC)); | |
18873 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
18874 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK)); | |
18875 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
18876 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
18877 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
18878 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
18879 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA)); | |
18880 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
18881 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
18882 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
18883 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
18884 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
18885 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
18886 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
18887 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER)); | |
18888 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI)); | |
18889 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
18890 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
18891 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
18892 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
18893 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
18894 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
18895 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
18896 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
18897 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
18898 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
18899 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
18900 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
18901 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
18902 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
18903 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
18904 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
18905 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
18906 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
18907 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
18908 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN)); | |
18909 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX)); | |
18910 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX)); | |
18911 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16)); | |
18912 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32)); | |
18913 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE)); | |
18914 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312)); | |
18915 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5)); | |
18916 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
18917 | |
18918 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18919 | ||
994141e6 RD |
18920 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT)); |
18921 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
18922 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
18923 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR)); | |
18924 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
18925 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
18926 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC)); | |
18927 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC)); | |
18928 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
18929 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
18930 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
18931 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
18932 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
18933 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
18934 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
18935 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
18936 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
18937 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
18938 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
18939 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
18940 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
18941 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
18942 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
18943 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
18944 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
18945 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
18946 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
18947 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA)); | |
18948 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI)); | |
18949 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
18950 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
18951 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR)); | |
18952 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE)); | |
18953 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
18954 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI)); | |
18955 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI)); | |
18956 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI)); | |
18957 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA)); | |
18958 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON)); | |
18959 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
18960 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE)); | |
18961 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
18962 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN)); | |
18963 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE)); | |
18964 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
18965 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
18966 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
18967 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
18968 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
18969 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
18970 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN)); | |
18971 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN)); | |
18972 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH)); | |
18973 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH)); | |
18974 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH)); | |
18975 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
18976 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH)); | |
18977 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
18978 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
18979 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
18980 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
18981 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
18982 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
18983 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
18984 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
18985 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
18986 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
18987 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
18988 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
18989 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
18990 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
18991 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
18992 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
18993 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
18994 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE)); | |
18995 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI)); | |
18996 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI)); | |
18997 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH)); | |
18998 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH)); | |
18999 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19000 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19001 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19002 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
19003 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
19004 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN)); | |
19005 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN)); | |
19006 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
19007 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN)); | |
19008 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19009 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19010 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19011 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19012 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19013 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK)); | |
19014 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19015 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI)); | |
19016 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19017 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA)); | |
19018 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW)); | |
19019 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI)); | |
19020 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19021 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19022 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19023 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19024 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19025 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19026 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19027 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH)); | |
19028 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19029 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19030 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19031 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19032 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA)); | |
19033 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19034 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19035 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19036 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19037 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19038 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19039 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19040 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI)); | |
19041 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN)); | |
19042 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH)); | |
19043 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19044 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN)); | |
19045 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19046 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA)); | |
19047 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19048 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19049 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19050 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY)); | |
19051 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19052 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19053 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19054 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE)); | |
19055 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19056 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI)); | |
19057 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI)); | |
19058 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19059 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19060 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU)); | |
19061 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI)); | |
19062 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19063 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19064 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19065 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19066 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA)); | |
19067 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO)); | |
19068 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO)); | |
19069 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH)); | |
19070 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19071 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19072 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19073 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19074 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19075 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19076 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19077 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19078 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19079 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO)); | |
19080 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19081 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19082 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19083 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19084 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19085 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19086 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19087 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19088 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA)); | |
19089 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI)); | |
19090 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19091 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI)); | |
19092 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19093 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19094 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI)); | |
19095 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH)); | |
19096 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19097 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19098 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19099 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19100 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19101 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19102 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19103 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19104 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19105 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19106 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19107 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19108 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19109 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19110 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19111 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19112 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19113 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19114 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19115 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19116 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19117 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19118 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19119 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19120 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19121 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK)); | |
19122 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL)); | |
19123 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR)); | |
19124 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU)); | |
19125 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI)); | |
19126 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19127 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19128 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA)); | |
19129 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA)); | |
19130 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH)); | |
19131 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19132 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI)); | |
19133 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19134 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19135 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU)); | |
19136 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19137 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19138 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK)); | |
19139 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19140 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19141 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19142 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19143 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH)); | |
19144 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF)); | |
19145 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA)); | |
19146 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19147 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA)); | |
19148 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19149 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU)); | |
19150 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19151 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19152 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE)); | |
19153 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19154 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX)); | |
19155 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19156 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19157 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19158 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19159 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT)); | |
19160 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19161 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT)); | |
19162 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX)); | |
19163 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS)); | |
19164 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2)); | |
19165 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC)); | |
3adfb63b RD |
19166 | PyDict_SetItemString(d,"BUFFER_DC_OVERWRITE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_OVERWRITE_BG)); |
19167 | PyDict_SetItemString(d,"BUFFER_DC_PRESERVE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_PRESERVE_BG)); | |
19168 | PyDict_SetItemString(d,"BUFFER_DC_DEFAULT", SWIG_PyObj_FromInt((int)wxBUFFER_DC_DEFAULT)); | |
994141e6 RD |
19169 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); |
19170 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19171 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19172 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19173 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19174 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19175 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19176 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19177 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19178 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19179 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19180 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19181 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19182 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19183 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19184 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19185 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19186 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19187 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19188 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19189 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19190 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19191 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19192 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19193 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19194 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19195 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19196 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19197 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19198 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19199 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19200 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19201 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19202 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19203 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19204 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19205 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19206 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19207 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19208 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19209 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19210 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19211 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19212 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19213 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19214 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19215 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19216 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19217 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19218 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19219 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19220 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19221 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19222 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
19223 | |
19224 | // Work around a chicken/egg problem in drawlist.cpp | |
19225 | wxPyDrawList_SetAPIPtr(); | |
19226 | ||
d14a1e28 RD |
19227 | } |
19228 |