]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
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 | |
f0983263 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
d14a1e28 RD |
50 | |
51 | /*********************************************************************** | |
52 | * common.swg for wxPython | |
53 | * | |
54 | * Include only the function prototypes and such from SWIG's common.swg, | |
55 | * but not the runtime functions themselves. This helps keep the | |
56 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
57 | * anyway. | |
58 | * | |
59 | ************************************************************************/ | |
60 | ||
61 | #include <string.h> | |
62 | ||
f0983263 RD |
63 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
64 | # if defined(_MSC_VER) || defined(__GNUC__) | |
65 | # if defined(STATIC_LINKED) | |
66 | # define SWIGEXPORT(a) a | |
67 | # define SWIGIMPORT(a) extern a | |
68 | # else | |
69 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
70 | # define SWIGIMPORT(a) extern a | |
71 | # endif | |
72 | # else | |
73 | # if defined(__BORLANDC__) | |
74 | # define SWIGEXPORT(a) a _export | |
75 | # define SWIGIMPORT(a) a _export | |
76 | # else | |
77 | # define SWIGEXPORT(a) a | |
78 | # define SWIGIMPORT(a) a | |
79 | # endif | |
80 | # endif | |
d14a1e28 | 81 | #else |
f0983263 RD |
82 | # define SWIGEXPORT(a) a |
83 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
84 | #endif |
85 | ||
86 | #ifdef SWIG_GLOBAL | |
f0983263 | 87 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 88 | #else |
f0983263 | 89 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
90 | #endif |
91 | ||
d14a1e28 RD |
92 | #ifdef __cplusplus |
93 | extern "C" { | |
94 | #endif | |
95 | ||
96 | typedef void *(*swig_converter_func)(void *); | |
97 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
98 | ||
99 | typedef struct swig_type_info { | |
f0983263 | 100 | const char *name; |
d14a1e28 RD |
101 | swig_converter_func converter; |
102 | const char *str; | |
f0983263 | 103 | void *clientdata; |
d14a1e28 RD |
104 | swig_dycast_func dcast; |
105 | struct swig_type_info *next; | |
106 | struct swig_type_info *prev; | |
107 | } swig_type_info; | |
108 | ||
109 | ||
110 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
112 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
114 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
116 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
f0983263 RD |
117 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
118 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
119 | |
120 | ||
121 | #ifdef __cplusplus | |
122 | } | |
423f194a | 123 | |
d14a1e28 RD |
124 | #endif |
125 | ||
f0983263 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
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 | ||
187 | ||
f0983263 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | ||
199 | /* Contract support */ | |
200 | ||
423f194a | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
208 | ||
209 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
210 | ||
211 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
423f194a RD |
212 | #define SWIGTYPE_p_wxBrush swig_types[1] |
213 | #define SWIGTYPE_p_wxColour swig_types[2] | |
214 | #define SWIGTYPE_p_wxDC swig_types[3] | |
215 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
216 | #define SWIGTYPE_p_byte swig_types[5] | |
217 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
218 | #define SWIGTYPE_p_wxIconLocation swig_types[7] | |
219 | #define SWIGTYPE_p_wxImage swig_types[8] | |
220 | #define SWIGTYPE_p_wxMetaFileDC swig_types[9] | |
221 | #define SWIGTYPE_p_wxMask swig_types[10] | |
222 | #define SWIGTYPE_p_wxFont swig_types[11] | |
223 | #define SWIGTYPE_p_wxWindow swig_types[12] | |
224 | #define SWIGTYPE_p_wxSize swig_types[13] | |
225 | #define SWIGTYPE_p_double swig_types[14] | |
226 | #define SWIGTYPE_p_wxMemoryDC swig_types[15] | |
227 | #define SWIGTYPE_p_wxFontMapper swig_types[16] | |
228 | #define SWIGTYPE_p_wxEffects swig_types[17] | |
229 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[18] | |
230 | #define SWIGTYPE_p_wxPalette swig_types[19] | |
231 | #define SWIGTYPE_p_wxBitmap swig_types[20] | |
232 | #define SWIGTYPE_p_wxObject swig_types[21] | |
233 | #define SWIGTYPE_p_wxRegionIterator swig_types[22] | |
234 | #define SWIGTYPE_p_wxRect swig_types[23] | |
235 | #define SWIGTYPE_p_wxString swig_types[24] | |
236 | #define SWIGTYPE_p_wxPrinterDC swig_types[25] | |
237 | #define SWIGTYPE_p_wxIconBundle swig_types[26] | |
238 | #define SWIGTYPE_p_wxPoint swig_types[27] | |
239 | #define SWIGTYPE_p_wxDash swig_types[28] | |
240 | #define SWIGTYPE_p_wxScreenDC swig_types[29] | |
241 | #define SWIGTYPE_p_wxCursor swig_types[30] | |
242 | #define SWIGTYPE_p_wxClientDC swig_types[31] | |
243 | #define SWIGTYPE_p_wxBufferedDC swig_types[32] | |
244 | #define SWIGTYPE_p_wxImageList swig_types[33] | |
245 | #define SWIGTYPE_p_unsigned_char swig_types[34] | |
246 | #define SWIGTYPE_p_wxGDIObject swig_types[35] | |
247 | #define SWIGTYPE_p_wxLocale swig_types[36] | |
248 | #define SWIGTYPE_p_wxIcon swig_types[37] | |
249 | #define SWIGTYPE_p_wxRegion swig_types[38] | |
250 | #define SWIGTYPE_p_wxLanguageInfo swig_types[39] | |
251 | #define SWIGTYPE_p_wxConfigBase swig_types[40] | |
252 | #define SWIGTYPE_p_wxWindowDC swig_types[41] | |
253 | #define SWIGTYPE_p_wxPrintData swig_types[42] | |
254 | #define SWIGTYPE_p_wxBrushList swig_types[43] | |
255 | #define SWIGTYPE_p_wxFontList swig_types[44] | |
256 | #define SWIGTYPE_p_wxPen swig_types[45] | |
257 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[46] | |
258 | #define SWIGTYPE_p_wxPaintDC swig_types[47] | |
259 | #define SWIGTYPE_p_wxPenList swig_types[48] | |
260 | #define SWIGTYPE_p_wxPyPen swig_types[49] | |
261 | #define SWIGTYPE_p_int swig_types[50] | |
262 | #define SWIGTYPE_p_wxMetaFile swig_types[51] | |
263 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[52] | |
264 | #define SWIGTYPE_p_wxEncodingConverter swig_types[53] | |
265 | #define SWIGTYPE_p_wxColourDatabase swig_types[54] | |
266 | static swig_type_info *swig_types[56]; | |
d14a1e28 RD |
267 | |
268 | /* -------- TYPES TABLE (END) -------- */ | |
269 | ||
270 | ||
271 | /*----------------------------------------------- | |
272 | @(target):= _gdi.so | |
273 | ------------------------------------------------*/ | |
274 | #define SWIG_init init_gdi | |
275 | ||
276 | #define SWIG_name "_gdi" | |
277 | ||
278 | #include "wx/wxPython/wxPython.h" | |
279 | #include "wx/wxPython/pyclasses.h" | |
280 | ||
281 | DECLARE_DEF_STRING(EmptyString); | |
282 | ||
283 | PyObject *wxColour_Get(wxColour *self){ | |
284 | PyObject* rv = PyTuple_New(3); | |
285 | int red = -1; | |
286 | int green = -1; | |
287 | int blue = -1; | |
288 | if (self->Ok()) { | |
289 | red = self->Red(); | |
290 | green = self->Green(); | |
291 | blue = self->Blue(); | |
292 | } | |
293 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
294 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
295 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
296 | return rv; | |
297 | } | |
298 | ||
299 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
300 | PyObject* o2; | |
301 | PyObject* o3; | |
302 | ||
303 | if (!target) { | |
304 | target = o; | |
305 | } else if (target == Py_None) { | |
306 | Py_DECREF(Py_None); | |
307 | target = o; | |
308 | } else { | |
309 | if (!PyTuple_Check(target)) { | |
310 | o2 = target; | |
311 | target = PyTuple_New(1); | |
312 | PyTuple_SetItem(target, 0, o2); | |
313 | } | |
314 | o3 = PyTuple_New(1); | |
315 | PyTuple_SetItem(o3, 0, o); | |
316 | ||
317 | o2 = target; | |
318 | target = PySequence_Concat(o2, o3); | |
319 | Py_DECREF(o2); | |
320 | Py_DECREF(o3); | |
321 | } | |
322 | return target; | |
323 | } | |
324 | ||
325 | PyObject *wxPen_GetDashes(wxPen *self){ | |
326 | wxDash* dashes; | |
327 | int count = self->GetDashes(&dashes); | |
328 | wxPyBeginBlockThreads(); | |
329 | PyObject* retval = PyList_New(0); | |
330 | for (int x=0; x<count; x++) | |
331 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
332 | wxPyEndBlockThreads(); | |
333 | return retval; | |
334 | } | |
335 | ||
336 | wxPyPen::~wxPyPen() | |
337 | { | |
338 | if (m_dash) | |
339 | delete [] m_dash; | |
340 | } | |
341 | ||
342 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
343 | { | |
344 | if (m_dash) | |
345 | delete [] m_dash; | |
346 | m_dash = new wxDash[nb_dashes]; | |
347 | for (int i=0; i<nb_dashes; i++) { | |
348 | m_dash[i] = dash[i]; | |
349 | } | |
350 | wxPen::SetDashes(nb_dashes, m_dash); | |
351 | } | |
352 | ||
353 | ||
354 | #include <wx/image.h> | |
355 | ||
356 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
357 | char** cArray = NULL; | |
358 | int count; | |
359 | ||
360 | if (!PyList_Check(listOfStrings)) { | |
361 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
362 | return NULL; | |
363 | } | |
364 | count = PyList_Size(listOfStrings); | |
365 | cArray = new char*[count]; | |
366 | ||
367 | for(int x=0; x<count; x++) { | |
368 | // TODO: Need some validation and error checking here | |
369 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
370 | } | |
371 | return cArray; | |
372 | } | |
373 | ||
374 | ||
375 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
376 | char** cArray = NULL; | |
377 | wxBitmap* bmp; | |
378 | ||
379 | cArray = ConvertListOfStrings(listOfStrings); | |
380 | if (! cArray) | |
381 | return NULL; | |
382 | bmp = new wxBitmap(cArray); | |
383 | delete [] cArray; | |
384 | return bmp; | |
385 | } | |
386 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
387 | char* buf; | |
388 | int length; | |
389 | PyString_AsStringAndSize(bits, &buf, &length); | |
390 | return new wxBitmap(buf, width, height, depth); | |
391 | } | |
392 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
393 | wxMask *mask = new wxMask(*self, colour); | |
394 | self->SetMask(mask); | |
395 | } | |
396 | ||
397 | #include <wx/iconbndl.h> | |
398 | ||
399 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
400 | wxIcon* icon = new wxIcon(); | |
401 | icon->CopyFromBitmap(bmp); | |
402 | return icon; | |
403 | } | |
404 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
405 | char** cArray = NULL; | |
406 | wxIcon* icon; | |
407 | ||
408 | cArray = ConvertListOfStrings(listOfStrings); | |
409 | if (! cArray) | |
410 | return NULL; | |
411 | icon = new wxIcon(cArray); | |
412 | delete [] cArray; | |
413 | return icon; | |
414 | } | |
415 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
416 | ||
417 | return new wxIconLocation(*filename, num); | |
418 | ||
419 | ||
420 | ||
421 | } | |
422 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
423 | ||
424 | self->SetIndex(num); | |
425 | ||
426 | ||
427 | ||
428 | } | |
429 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
430 | ||
431 | return self->GetIndex(); | |
432 | ||
433 | ||
434 | ||
435 | } | |
436 | wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){ | |
437 | ||
438 | ||
439 | ||
440 | ||
441 | return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); | |
442 | ||
443 | } | |
444 | wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){ | |
445 | char* bitsbuf; | |
446 | char* maskbuf = NULL; | |
447 | int length; | |
448 | PyString_AsStringAndSize(bits, &bitsbuf, &length); | |
449 | if (maskBits) | |
450 | PyString_AsStringAndSize(maskBits, &maskbuf, &length); | |
451 | return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf); | |
452 | } | |
453 | ||
454 | ||
455 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
456 | (*self) ++; | |
457 | } | |
458 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
459 | return self->operator bool(); | |
460 | } | |
461 | ||
462 | #include <wx/fontutil.h> | |
463 | #include <wx/fontmap.h> | |
464 | #include <wx/fontenum.h> | |
465 | ||
466 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
467 | return self->ToString(); | |
468 | } | |
469 | ||
470 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
471 | { PyErr_SetNone(PyExc_NotImplementedError); return NULL; } | |
472 | ||
473 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
423f194a | 474 | { PyErr_SetNone(PyExc_NotImplementedError); return False; } |
d14a1e28 RD |
475 | |
476 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
477 | wxFontEncoding alt_enc; | |
478 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
479 | return PyInt_FromLong(alt_enc); | |
480 | else { | |
481 | Py_INCREF(Py_None); | |
482 | return Py_None; | |
483 | } | |
484 | } | |
485 | wxFont *new_wxFont(wxString const &info){ | |
486 | wxNativeFontInfo nfi; | |
487 | nfi.FromString(info); | |
488 | return new wxFont(nfi); | |
489 | } | |
490 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
491 | return wxFont::New(pointSize, family, flags, face, encoding); | |
492 | } | |
493 | ||
494 | class wxPyFontEnumerator : public wxFontEnumerator { | |
495 | public: | |
496 | wxPyFontEnumerator() {} | |
497 | ~wxPyFontEnumerator() {} | |
498 | ||
499 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
500 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
501 | ||
502 | PYPRIVATE; | |
503 | }; | |
504 | ||
505 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
506 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
507 | ||
508 | ||
509 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
510 | wxArrayString* arr = self->GetEncodings(); | |
511 | return wxArrayString2PyList_helper(*arr); | |
512 | } | |
513 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
514 | wxArrayString* arr = self->GetFacenames(); | |
515 | return wxArrayString2PyList_helper(*arr); | |
516 | } | |
517 | ||
518 | ||
519 | ||
520 | #include "wx/wxPython/pydrawxxx.h" | |
521 | ||
423f194a | 522 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
523 | wxColour col; |
524 | self->GetPixel(x, y, &col); | |
525 | return col; | |
526 | } | |
527 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
528 | wxColour col; | |
529 | self->GetPixel(pt, &col); | |
530 | return col; | |
531 | } | |
532 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
533 | wxRect rv; | |
534 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
535 | return rv; | |
536 | } | |
537 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
538 | wxRect rect; | |
539 | self->GetClippingBox(rect); | |
540 | return rect; | |
541 | } | |
542 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
543 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
544 | } | |
545 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
546 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
547 | } | |
548 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
549 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
550 | } | |
551 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
552 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
553 | } | |
554 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
555 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
556 | } | |
557 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
558 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
559 | } | |
560 | ||
561 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
562 | *x1 = dc->MinX(); | |
563 | *y1 = dc->MinY(); | |
564 | *x2 = dc->MaxX(); | |
565 | *y2 = dc->MaxY(); | |
566 | } | |
567 | ||
568 | ||
569 | #include <wx/dcps.h> | |
570 | ||
571 | ||
572 | #include <wx/metafile.h> | |
573 | ||
574 | ||
575 | ||
576 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
577 | self->AddColour(name, wxColour(red, green, blue)); | |
578 | } | |
579 | ||
d14a1e28 RD |
580 | #include <wx/effects.h> |
581 | ||
582 | #ifdef __cplusplus | |
583 | extern "C" { | |
584 | #endif | |
585 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
586 | PyObject *resultobj; | |
587 | wxGDIObject *result; | |
588 | char *kwnames[] = { | |
589 | NULL | |
590 | }; | |
591 | ||
592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
593 | { | |
594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
595 | result = (wxGDIObject *)new wxGDIObject(); | |
596 | ||
597 | wxPyEndAllowThreads(__tstate); | |
598 | if (PyErr_Occurred()) SWIG_fail; | |
599 | } | |
600 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1); | |
601 | return resultobj; | |
602 | fail: | |
603 | return NULL; | |
604 | } | |
605 | ||
606 | ||
607 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
608 | PyObject *resultobj; | |
609 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
610 | PyObject * obj0 = 0 ; | |
611 | char *kwnames[] = { | |
612 | (char *) "self", NULL | |
613 | }; | |
614 | ||
615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
617 | { | |
618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
619 | delete arg1; | |
620 | ||
621 | wxPyEndAllowThreads(__tstate); | |
622 | if (PyErr_Occurred()) SWIG_fail; | |
623 | } | |
624 | Py_INCREF(Py_None); resultobj = Py_None; | |
625 | return resultobj; | |
626 | fail: | |
627 | return NULL; | |
628 | } | |
629 | ||
630 | ||
631 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
632 | PyObject *resultobj; | |
633 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
634 | bool result; | |
635 | PyObject * obj0 = 0 ; | |
636 | char *kwnames[] = { | |
637 | (char *) "self", NULL | |
638 | }; | |
639 | ||
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
642 | { | |
643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
644 | result = (bool)(arg1)->GetVisible(); | |
645 | ||
646 | wxPyEndAllowThreads(__tstate); | |
647 | if (PyErr_Occurred()) SWIG_fail; | |
648 | } | |
649 | resultobj = PyInt_FromLong((long)result); | |
650 | return resultobj; | |
651 | fail: | |
652 | return NULL; | |
653 | } | |
654 | ||
655 | ||
656 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
657 | PyObject *resultobj; | |
658 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
659 | bool arg2 ; | |
660 | PyObject * obj0 = 0 ; | |
661 | PyObject * obj1 = 0 ; | |
662 | char *kwnames[] = { | |
663 | (char *) "self",(char *) "visible", NULL | |
664 | }; | |
665 | ||
666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
668 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
669 | if (PyErr_Occurred()) SWIG_fail; | |
670 | { | |
671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
672 | (arg1)->SetVisible(arg2); | |
673 | ||
674 | wxPyEndAllowThreads(__tstate); | |
675 | if (PyErr_Occurred()) SWIG_fail; | |
676 | } | |
677 | Py_INCREF(Py_None); resultobj = Py_None; | |
678 | return resultobj; | |
679 | fail: | |
680 | return NULL; | |
681 | } | |
682 | ||
683 | ||
684 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
685 | PyObject *resultobj; | |
686 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
687 | bool result; | |
688 | PyObject * obj0 = 0 ; | |
689 | char *kwnames[] = { | |
690 | (char *) "self", NULL | |
691 | }; | |
692 | ||
693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
695 | { | |
696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
697 | result = (bool)(arg1)->IsNull(); | |
698 | ||
699 | wxPyEndAllowThreads(__tstate); | |
700 | if (PyErr_Occurred()) SWIG_fail; | |
701 | } | |
702 | resultobj = PyInt_FromLong((long)result); | |
703 | return resultobj; | |
704 | fail: | |
705 | return NULL; | |
706 | } | |
707 | ||
708 | ||
709 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
710 | PyObject *obj; | |
711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
712 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
713 | Py_INCREF(obj); | |
714 | return Py_BuildValue((char *)""); | |
715 | } | |
716 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
717 | PyObject *resultobj; | |
718 | unsigned char arg1 = (unsigned char) 0 ; | |
719 | unsigned char arg2 = (unsigned char) 0 ; | |
720 | unsigned char arg3 = (unsigned char) 0 ; | |
721 | wxColour *result; | |
722 | PyObject * obj0 = 0 ; | |
723 | PyObject * obj1 = 0 ; | |
724 | PyObject * obj2 = 0 ; | |
725 | char *kwnames[] = { | |
726 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
727 | }; | |
728 | ||
729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
730 | if (obj0) { | |
731 | arg1 = (unsigned char) PyInt_AsLong(obj0); | |
732 | if (PyErr_Occurred()) SWIG_fail; | |
733 | } | |
734 | if (obj1) { | |
735 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
736 | if (PyErr_Occurred()) SWIG_fail; | |
737 | } | |
738 | if (obj2) { | |
739 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
740 | if (PyErr_Occurred()) SWIG_fail; | |
741 | } | |
742 | { | |
743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
744 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
745 | ||
746 | wxPyEndAllowThreads(__tstate); | |
747 | if (PyErr_Occurred()) SWIG_fail; | |
748 | } | |
749 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
750 | return resultobj; | |
751 | fail: | |
752 | return NULL; | |
753 | } | |
754 | ||
755 | ||
756 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
757 | PyObject *resultobj; | |
758 | wxColour *arg1 = (wxColour *) 0 ; | |
759 | PyObject * obj0 = 0 ; | |
760 | char *kwnames[] = { | |
761 | (char *) "self", NULL | |
762 | }; | |
763 | ||
764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
766 | { | |
767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
768 | delete arg1; | |
769 | ||
770 | wxPyEndAllowThreads(__tstate); | |
771 | if (PyErr_Occurred()) SWIG_fail; | |
772 | } | |
773 | Py_INCREF(Py_None); resultobj = Py_None; | |
774 | return resultobj; | |
775 | fail: | |
776 | return NULL; | |
777 | } | |
778 | ||
779 | ||
780 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
781 | PyObject *resultobj; | |
782 | wxString *arg1 = 0 ; | |
783 | wxColour *result; | |
423f194a | 784 | bool temp1 = False ; |
d14a1e28 RD |
785 | PyObject * obj0 = 0 ; |
786 | char *kwnames[] = { | |
787 | (char *) "colorName", NULL | |
788 | }; | |
789 | ||
790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
791 | { | |
792 | arg1 = wxString_in_helper(obj0); | |
793 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 794 | temp1 = True; |
d14a1e28 RD |
795 | } |
796 | { | |
797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
798 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
799 | ||
800 | wxPyEndAllowThreads(__tstate); | |
801 | if (PyErr_Occurred()) SWIG_fail; | |
802 | } | |
803 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
804 | { | |
805 | if (temp1) | |
806 | delete arg1; | |
807 | } | |
808 | return resultobj; | |
809 | fail: | |
810 | { | |
811 | if (temp1) | |
812 | delete arg1; | |
813 | } | |
814 | return NULL; | |
815 | } | |
816 | ||
817 | ||
818 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
819 | PyObject *resultobj; | |
820 | unsigned long arg1 ; | |
821 | wxColour *result; | |
822 | PyObject * obj0 = 0 ; | |
823 | char *kwnames[] = { | |
824 | (char *) "colRGB", NULL | |
825 | }; | |
826 | ||
827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
828 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
829 | if (PyErr_Occurred()) SWIG_fail; | |
830 | { | |
831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
832 | result = (wxColour *)new wxColour(arg1); | |
833 | ||
834 | wxPyEndAllowThreads(__tstate); | |
835 | if (PyErr_Occurred()) SWIG_fail; | |
836 | } | |
837 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1); | |
838 | return resultobj; | |
839 | fail: | |
840 | return NULL; | |
841 | } | |
842 | ||
843 | ||
844 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
845 | PyObject *resultobj; | |
846 | wxColour *arg1 = (wxColour *) 0 ; | |
847 | unsigned char result; | |
848 | PyObject * obj0 = 0 ; | |
849 | char *kwnames[] = { | |
850 | (char *) "self", NULL | |
851 | }; | |
852 | ||
853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
855 | { | |
856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
857 | result = (unsigned char)(arg1)->Red(); | |
858 | ||
859 | wxPyEndAllowThreads(__tstate); | |
860 | if (PyErr_Occurred()) SWIG_fail; | |
861 | } | |
862 | resultobj = PyInt_FromLong((long)result); | |
863 | return resultobj; | |
864 | fail: | |
865 | return NULL; | |
866 | } | |
867 | ||
868 | ||
869 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
870 | PyObject *resultobj; | |
871 | wxColour *arg1 = (wxColour *) 0 ; | |
872 | unsigned char result; | |
873 | PyObject * obj0 = 0 ; | |
874 | char *kwnames[] = { | |
875 | (char *) "self", NULL | |
876 | }; | |
877 | ||
878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
880 | { | |
881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
882 | result = (unsigned char)(arg1)->Green(); | |
883 | ||
884 | wxPyEndAllowThreads(__tstate); | |
885 | if (PyErr_Occurred()) SWIG_fail; | |
886 | } | |
887 | resultobj = PyInt_FromLong((long)result); | |
888 | return resultobj; | |
889 | fail: | |
890 | return NULL; | |
891 | } | |
892 | ||
893 | ||
894 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
895 | PyObject *resultobj; | |
896 | wxColour *arg1 = (wxColour *) 0 ; | |
897 | unsigned char result; | |
898 | PyObject * obj0 = 0 ; | |
899 | char *kwnames[] = { | |
900 | (char *) "self", NULL | |
901 | }; | |
902 | ||
903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
905 | { | |
906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
907 | result = (unsigned char)(arg1)->Blue(); | |
908 | ||
909 | wxPyEndAllowThreads(__tstate); | |
910 | if (PyErr_Occurred()) SWIG_fail; | |
911 | } | |
912 | resultobj = PyInt_FromLong((long)result); | |
913 | return resultobj; | |
914 | fail: | |
915 | return NULL; | |
916 | } | |
917 | ||
918 | ||
919 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
920 | PyObject *resultobj; | |
921 | wxColour *arg1 = (wxColour *) 0 ; | |
922 | bool result; | |
923 | PyObject * obj0 = 0 ; | |
924 | char *kwnames[] = { | |
925 | (char *) "self", NULL | |
926 | }; | |
927 | ||
928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
930 | { | |
931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
932 | result = (bool)(arg1)->Ok(); | |
933 | ||
934 | wxPyEndAllowThreads(__tstate); | |
935 | if (PyErr_Occurred()) SWIG_fail; | |
936 | } | |
937 | resultobj = PyInt_FromLong((long)result); | |
938 | return resultobj; | |
939 | fail: | |
940 | return NULL; | |
941 | } | |
942 | ||
943 | ||
944 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
945 | PyObject *resultobj; | |
946 | wxColour *arg1 = (wxColour *) 0 ; | |
947 | unsigned char arg2 ; | |
948 | unsigned char arg3 ; | |
949 | unsigned char arg4 ; | |
950 | PyObject * obj0 = 0 ; | |
951 | PyObject * obj1 = 0 ; | |
952 | PyObject * obj2 = 0 ; | |
953 | PyObject * obj3 = 0 ; | |
954 | char *kwnames[] = { | |
955 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
956 | }; | |
957 | ||
958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
960 | arg2 = (unsigned char) PyInt_AsLong(obj1); | |
961 | if (PyErr_Occurred()) SWIG_fail; | |
962 | arg3 = (unsigned char) PyInt_AsLong(obj2); | |
963 | if (PyErr_Occurred()) SWIG_fail; | |
964 | arg4 = (unsigned char) PyInt_AsLong(obj3); | |
965 | if (PyErr_Occurred()) SWIG_fail; | |
966 | { | |
967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
968 | (arg1)->Set(arg2,arg3,arg4); | |
969 | ||
970 | wxPyEndAllowThreads(__tstate); | |
971 | if (PyErr_Occurred()) SWIG_fail; | |
972 | } | |
973 | Py_INCREF(Py_None); resultobj = Py_None; | |
974 | return resultobj; | |
975 | fail: | |
976 | return NULL; | |
977 | } | |
978 | ||
979 | ||
980 | static PyObject *_wrap_Colour_SetRBG(PyObject *self, PyObject *args, PyObject *kwargs) { | |
981 | PyObject *resultobj; | |
982 | wxColour *arg1 = (wxColour *) 0 ; | |
983 | unsigned long arg2 ; | |
984 | PyObject * obj0 = 0 ; | |
985 | PyObject * obj1 = 0 ; | |
986 | char *kwnames[] = { | |
987 | (char *) "self",(char *) "colRGB", NULL | |
988 | }; | |
989 | ||
990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRBG",kwnames,&obj0,&obj1)) goto fail; | |
991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
992 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
993 | if (PyErr_Occurred()) SWIG_fail; | |
994 | { | |
995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
996 | (arg1)->Set(arg2); | |
997 | ||
998 | wxPyEndAllowThreads(__tstate); | |
999 | if (PyErr_Occurred()) SWIG_fail; | |
1000 | } | |
1001 | Py_INCREF(Py_None); resultobj = Py_None; | |
1002 | return resultobj; | |
1003 | fail: | |
1004 | return NULL; | |
1005 | } | |
1006 | ||
1007 | ||
1008 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1009 | PyObject *resultobj; | |
1010 | wxColour *arg1 = (wxColour *) 0 ; | |
1011 | wxColour *arg2 = 0 ; | |
1012 | bool result; | |
1013 | wxColour temp2 ; | |
1014 | PyObject * obj0 = 0 ; | |
1015 | PyObject * obj1 = 0 ; | |
1016 | char *kwnames[] = { | |
1017 | (char *) "self",(char *) "colour", NULL | |
1018 | }; | |
1019 | ||
1020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1022 | { | |
1023 | arg2 = &temp2; | |
1024 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1025 | } | |
1026 | { | |
1027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1028 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1029 | ||
1030 | wxPyEndAllowThreads(__tstate); | |
1031 | if (PyErr_Occurred()) SWIG_fail; | |
1032 | } | |
1033 | resultobj = PyInt_FromLong((long)result); | |
1034 | return resultobj; | |
1035 | fail: | |
1036 | return NULL; | |
1037 | } | |
1038 | ||
1039 | ||
1040 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject *resultobj; | |
1042 | wxColour *arg1 = (wxColour *) 0 ; | |
1043 | wxColour *arg2 = 0 ; | |
1044 | bool result; | |
1045 | wxColour temp2 ; | |
1046 | PyObject * obj0 = 0 ; | |
1047 | PyObject * obj1 = 0 ; | |
1048 | char *kwnames[] = { | |
1049 | (char *) "self",(char *) "colour", NULL | |
1050 | }; | |
1051 | ||
1052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1054 | { | |
1055 | arg2 = &temp2; | |
1056 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1057 | } | |
1058 | { | |
1059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1060 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1061 | ||
1062 | wxPyEndAllowThreads(__tstate); | |
1063 | if (PyErr_Occurred()) SWIG_fail; | |
1064 | } | |
1065 | resultobj = PyInt_FromLong((long)result); | |
1066 | return resultobj; | |
1067 | fail: | |
1068 | return NULL; | |
1069 | } | |
1070 | ||
1071 | ||
1072 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1073 | PyObject *resultobj; | |
1074 | wxColour *arg1 = (wxColour *) 0 ; | |
1075 | PyObject *result; | |
1076 | PyObject * obj0 = 0 ; | |
1077 | char *kwnames[] = { | |
1078 | (char *) "self", NULL | |
1079 | }; | |
1080 | ||
1081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1083 | { | |
1084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1085 | result = (PyObject *)wxColour_Get(arg1); | |
1086 | ||
1087 | wxPyEndAllowThreads(__tstate); | |
1088 | if (PyErr_Occurred()) SWIG_fail; | |
1089 | } | |
1090 | resultobj = result; | |
1091 | return resultobj; | |
1092 | fail: | |
1093 | return NULL; | |
1094 | } | |
1095 | ||
1096 | ||
1097 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1098 | PyObject *obj; | |
1099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1100 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1101 | Py_INCREF(obj); | |
1102 | return Py_BuildValue((char *)""); | |
1103 | } | |
1104 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1105 | PyObject *resultobj; | |
1106 | int arg1 ; | |
1107 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1108 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1109 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1110 | wxPalette *result; | |
1111 | PyObject * obj1 = 0 ; | |
1112 | PyObject * obj2 = 0 ; | |
1113 | PyObject * obj3 = 0 ; | |
1114 | char *kwnames[] = { | |
1115 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1116 | }; | |
1117 | ||
1118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOOO:new_Palette",kwnames,&arg1,&obj1,&obj2,&obj3)) goto fail; | |
1119 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1120 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1121 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1122 | { | |
1123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1124 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1125 | ||
1126 | wxPyEndAllowThreads(__tstate); | |
1127 | if (PyErr_Occurred()) SWIG_fail; | |
1128 | } | |
1129 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1); | |
1130 | return resultobj; | |
1131 | fail: | |
1132 | return NULL; | |
1133 | } | |
1134 | ||
1135 | ||
1136 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1137 | PyObject *resultobj; | |
1138 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1139 | PyObject * obj0 = 0 ; | |
1140 | char *kwnames[] = { | |
1141 | (char *) "self", NULL | |
1142 | }; | |
1143 | ||
1144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1146 | { | |
1147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1148 | delete arg1; | |
1149 | ||
1150 | wxPyEndAllowThreads(__tstate); | |
1151 | if (PyErr_Occurred()) SWIG_fail; | |
1152 | } | |
1153 | Py_INCREF(Py_None); resultobj = Py_None; | |
1154 | return resultobj; | |
1155 | fail: | |
1156 | return NULL; | |
1157 | } | |
1158 | ||
1159 | ||
1160 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1161 | PyObject *resultobj; | |
1162 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1163 | byte arg2 ; | |
1164 | byte arg3 ; | |
1165 | byte arg4 ; | |
1166 | int result; | |
1167 | PyObject * obj0 = 0 ; | |
1168 | PyObject * obj1 = 0 ; | |
1169 | PyObject * obj2 = 0 ; | |
1170 | PyObject * obj3 = 0 ; | |
1171 | char *kwnames[] = { | |
1172 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1173 | }; | |
1174 | ||
1175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1177 | arg2 = (byte) PyInt_AsLong(obj1); | |
1178 | if (PyErr_Occurred()) SWIG_fail; | |
1179 | arg3 = (byte) PyInt_AsLong(obj2); | |
1180 | if (PyErr_Occurred()) SWIG_fail; | |
1181 | arg4 = (byte) PyInt_AsLong(obj3); | |
1182 | if (PyErr_Occurred()) SWIG_fail; | |
1183 | { | |
1184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1185 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1186 | ||
1187 | wxPyEndAllowThreads(__tstate); | |
1188 | if (PyErr_Occurred()) SWIG_fail; | |
1189 | } | |
1190 | resultobj = PyInt_FromLong((long)result); | |
1191 | return resultobj; | |
1192 | fail: | |
1193 | return NULL; | |
1194 | } | |
1195 | ||
1196 | ||
1197 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1198 | PyObject *resultobj; | |
1199 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1200 | int arg2 ; | |
1201 | byte *arg3 = (byte *) 0 ; | |
1202 | byte *arg4 = (byte *) 0 ; | |
1203 | byte *arg5 = (byte *) 0 ; | |
1204 | bool result; | |
1205 | byte temp3 ; | |
1206 | byte temp4 ; | |
1207 | byte temp5 ; | |
1208 | PyObject * obj0 = 0 ; | |
1209 | char *kwnames[] = { | |
1210 | (char *) "self",(char *) "pixel", NULL | |
1211 | }; | |
1212 | ||
1213 | arg3 = &temp3; | |
1214 | arg4 = &temp4; | |
1215 | arg5 = &temp5; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Palette_GetRGB",kwnames,&obj0,&arg2)) goto fail; | |
1217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1218 | { | |
1219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1220 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1221 | ||
1222 | wxPyEndAllowThreads(__tstate); | |
1223 | if (PyErr_Occurred()) SWIG_fail; | |
1224 | } | |
1225 | resultobj = PyInt_FromLong((long)result); | |
1226 | { | |
1227 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1228 | resultobj = t_output_helper(resultobj,o); | |
1229 | } | |
1230 | { | |
1231 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1232 | resultobj = t_output_helper(resultobj,o); | |
1233 | } | |
1234 | { | |
1235 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1236 | resultobj = t_output_helper(resultobj,o); | |
1237 | } | |
1238 | return resultobj; | |
1239 | fail: | |
1240 | return NULL; | |
1241 | } | |
1242 | ||
1243 | ||
1244 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1245 | PyObject *resultobj; | |
1246 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1247 | bool result; | |
1248 | PyObject * obj0 = 0 ; | |
1249 | char *kwnames[] = { | |
1250 | (char *) "self", NULL | |
1251 | }; | |
1252 | ||
1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1255 | { | |
1256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1257 | result = (bool)(arg1)->Ok(); | |
1258 | ||
1259 | wxPyEndAllowThreads(__tstate); | |
1260 | if (PyErr_Occurred()) SWIG_fail; | |
1261 | } | |
1262 | resultobj = PyInt_FromLong((long)result); | |
1263 | return resultobj; | |
1264 | fail: | |
1265 | return NULL; | |
1266 | } | |
1267 | ||
1268 | ||
1269 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1270 | PyObject *obj; | |
1271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1272 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1273 | Py_INCREF(obj); | |
1274 | return Py_BuildValue((char *)""); | |
1275 | } | |
1276 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1277 | PyObject *resultobj; | |
1278 | wxColour *arg1 = 0 ; | |
1279 | int arg2 = (int) 1 ; | |
1280 | int arg3 = (int) wxSOLID ; | |
1281 | wxPen *result; | |
1282 | wxColour temp1 ; | |
1283 | PyObject * obj0 = 0 ; | |
1284 | char *kwnames[] = { | |
1285 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1286 | }; | |
1287 | ||
1288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_Pen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1289 | { | |
1290 | arg1 = &temp1; | |
1291 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1292 | } | |
1293 | { | |
1294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1295 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1296 | ||
1297 | wxPyEndAllowThreads(__tstate); | |
1298 | if (PyErr_Occurred()) SWIG_fail; | |
1299 | } | |
1300 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1); | |
1301 | return resultobj; | |
1302 | fail: | |
1303 | return NULL; | |
1304 | } | |
1305 | ||
1306 | ||
1307 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1308 | PyObject *resultobj; | |
1309 | wxPen *arg1 = (wxPen *) 0 ; | |
1310 | PyObject * obj0 = 0 ; | |
1311 | char *kwnames[] = { | |
1312 | (char *) "self", NULL | |
1313 | }; | |
1314 | ||
1315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1317 | { | |
1318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1319 | delete arg1; | |
1320 | ||
1321 | wxPyEndAllowThreads(__tstate); | |
1322 | if (PyErr_Occurred()) SWIG_fail; | |
1323 | } | |
1324 | Py_INCREF(Py_None); resultobj = Py_None; | |
1325 | return resultobj; | |
1326 | fail: | |
1327 | return NULL; | |
1328 | } | |
1329 | ||
1330 | ||
1331 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1332 | PyObject *resultobj; | |
1333 | wxPen *arg1 = (wxPen *) 0 ; | |
1334 | int result; | |
1335 | PyObject * obj0 = 0 ; | |
1336 | char *kwnames[] = { | |
1337 | (char *) "self", NULL | |
1338 | }; | |
1339 | ||
1340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1342 | { | |
1343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1344 | result = (int)(arg1)->GetCap(); | |
1345 | ||
1346 | wxPyEndAllowThreads(__tstate); | |
1347 | if (PyErr_Occurred()) SWIG_fail; | |
1348 | } | |
1349 | resultobj = PyInt_FromLong((long)result); | |
1350 | return resultobj; | |
1351 | fail: | |
1352 | return NULL; | |
1353 | } | |
1354 | ||
1355 | ||
1356 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1357 | PyObject *resultobj; | |
1358 | wxPen *arg1 = (wxPen *) 0 ; | |
1359 | wxColour result; | |
1360 | PyObject * obj0 = 0 ; | |
1361 | char *kwnames[] = { | |
1362 | (char *) "self", NULL | |
1363 | }; | |
1364 | ||
1365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1367 | { | |
1368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1369 | result = (arg1)->GetColour(); | |
1370 | ||
1371 | wxPyEndAllowThreads(__tstate); | |
1372 | if (PyErr_Occurred()) SWIG_fail; | |
1373 | } | |
1374 | { | |
1375 | wxColour * resultptr; | |
1376 | resultptr = new wxColour((wxColour &) result); | |
1377 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1378 | } | |
1379 | return resultobj; | |
1380 | fail: | |
1381 | return NULL; | |
1382 | } | |
1383 | ||
1384 | ||
1385 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject *resultobj; | |
1387 | wxPen *arg1 = (wxPen *) 0 ; | |
1388 | int result; | |
1389 | PyObject * obj0 = 0 ; | |
1390 | char *kwnames[] = { | |
1391 | (char *) "self", NULL | |
1392 | }; | |
1393 | ||
1394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1396 | { | |
1397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1398 | result = (int)(arg1)->GetJoin(); | |
1399 | ||
1400 | wxPyEndAllowThreads(__tstate); | |
1401 | if (PyErr_Occurred()) SWIG_fail; | |
1402 | } | |
1403 | resultobj = PyInt_FromLong((long)result); | |
1404 | return resultobj; | |
1405 | fail: | |
1406 | return NULL; | |
1407 | } | |
1408 | ||
1409 | ||
1410 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject *resultobj; | |
1412 | wxPen *arg1 = (wxPen *) 0 ; | |
1413 | int result; | |
1414 | PyObject * obj0 = 0 ; | |
1415 | char *kwnames[] = { | |
1416 | (char *) "self", NULL | |
1417 | }; | |
1418 | ||
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1421 | { | |
1422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1423 | result = (int)(arg1)->GetStyle(); | |
1424 | ||
1425 | wxPyEndAllowThreads(__tstate); | |
1426 | if (PyErr_Occurred()) SWIG_fail; | |
1427 | } | |
1428 | resultobj = PyInt_FromLong((long)result); | |
1429 | return resultobj; | |
1430 | fail: | |
1431 | return NULL; | |
1432 | } | |
1433 | ||
1434 | ||
1435 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1436 | PyObject *resultobj; | |
1437 | wxPen *arg1 = (wxPen *) 0 ; | |
1438 | int result; | |
1439 | PyObject * obj0 = 0 ; | |
1440 | char *kwnames[] = { | |
1441 | (char *) "self", NULL | |
1442 | }; | |
1443 | ||
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1446 | { | |
1447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1448 | result = (int)(arg1)->GetWidth(); | |
1449 | ||
1450 | wxPyEndAllowThreads(__tstate); | |
1451 | if (PyErr_Occurred()) SWIG_fail; | |
1452 | } | |
1453 | resultobj = PyInt_FromLong((long)result); | |
1454 | return resultobj; | |
1455 | fail: | |
1456 | return NULL; | |
1457 | } | |
1458 | ||
1459 | ||
1460 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1461 | PyObject *resultobj; | |
1462 | wxPen *arg1 = (wxPen *) 0 ; | |
1463 | bool result; | |
1464 | PyObject * obj0 = 0 ; | |
1465 | char *kwnames[] = { | |
1466 | (char *) "self", NULL | |
1467 | }; | |
1468 | ||
1469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1471 | { | |
1472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1473 | result = (bool)(arg1)->Ok(); | |
1474 | ||
1475 | wxPyEndAllowThreads(__tstate); | |
1476 | if (PyErr_Occurred()) SWIG_fail; | |
1477 | } | |
1478 | resultobj = PyInt_FromLong((long)result); | |
1479 | return resultobj; | |
1480 | fail: | |
1481 | return NULL; | |
1482 | } | |
1483 | ||
1484 | ||
1485 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject *resultobj; | |
1487 | wxPen *arg1 = (wxPen *) 0 ; | |
1488 | int arg2 ; | |
1489 | PyObject * obj0 = 0 ; | |
1490 | char *kwnames[] = { | |
1491 | (char *) "self",(char *) "cap_style", NULL | |
1492 | }; | |
1493 | ||
1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetCap",kwnames,&obj0,&arg2)) goto fail; | |
1495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1496 | { | |
1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1498 | (arg1)->SetCap(arg2); | |
1499 | ||
1500 | wxPyEndAllowThreads(__tstate); | |
1501 | if (PyErr_Occurred()) SWIG_fail; | |
1502 | } | |
1503 | Py_INCREF(Py_None); resultobj = Py_None; | |
1504 | return resultobj; | |
1505 | fail: | |
1506 | return NULL; | |
1507 | } | |
1508 | ||
1509 | ||
1510 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1511 | PyObject *resultobj; | |
1512 | wxPen *arg1 = (wxPen *) 0 ; | |
1513 | wxColour *arg2 = 0 ; | |
1514 | wxColour temp2 ; | |
1515 | PyObject * obj0 = 0 ; | |
1516 | PyObject * obj1 = 0 ; | |
1517 | char *kwnames[] = { | |
1518 | (char *) "self",(char *) "colour", NULL | |
1519 | }; | |
1520 | ||
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1523 | { | |
1524 | arg2 = &temp2; | |
1525 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1526 | } | |
1527 | { | |
1528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1529 | (arg1)->SetColour(*arg2); | |
1530 | ||
1531 | wxPyEndAllowThreads(__tstate); | |
1532 | if (PyErr_Occurred()) SWIG_fail; | |
1533 | } | |
1534 | Py_INCREF(Py_None); resultobj = Py_None; | |
1535 | return resultobj; | |
1536 | fail: | |
1537 | return NULL; | |
1538 | } | |
1539 | ||
1540 | ||
1541 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject *resultobj; | |
1543 | wxPen *arg1 = (wxPen *) 0 ; | |
1544 | int arg2 ; | |
1545 | PyObject * obj0 = 0 ; | |
1546 | char *kwnames[] = { | |
1547 | (char *) "self",(char *) "join_style", NULL | |
1548 | }; | |
1549 | ||
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetJoin",kwnames,&obj0,&arg2)) goto fail; | |
1551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1552 | { | |
1553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1554 | (arg1)->SetJoin(arg2); | |
1555 | ||
1556 | wxPyEndAllowThreads(__tstate); | |
1557 | if (PyErr_Occurred()) SWIG_fail; | |
1558 | } | |
1559 | Py_INCREF(Py_None); resultobj = Py_None; | |
1560 | return resultobj; | |
1561 | fail: | |
1562 | return NULL; | |
1563 | } | |
1564 | ||
1565 | ||
1566 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1567 | PyObject *resultobj; | |
1568 | wxPen *arg1 = (wxPen *) 0 ; | |
1569 | int arg2 ; | |
1570 | PyObject * obj0 = 0 ; | |
1571 | char *kwnames[] = { | |
1572 | (char *) "self",(char *) "style", NULL | |
1573 | }; | |
1574 | ||
1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1577 | { | |
1578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1579 | (arg1)->SetStyle(arg2); | |
1580 | ||
1581 | wxPyEndAllowThreads(__tstate); | |
1582 | if (PyErr_Occurred()) SWIG_fail; | |
1583 | } | |
1584 | Py_INCREF(Py_None); resultobj = Py_None; | |
1585 | return resultobj; | |
1586 | fail: | |
1587 | return NULL; | |
1588 | } | |
1589 | ||
1590 | ||
1591 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1592 | PyObject *resultobj; | |
1593 | wxPen *arg1 = (wxPen *) 0 ; | |
1594 | int arg2 ; | |
1595 | PyObject * obj0 = 0 ; | |
1596 | char *kwnames[] = { | |
1597 | (char *) "self",(char *) "width", NULL | |
1598 | }; | |
1599 | ||
1600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Pen_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
1601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1602 | { | |
1603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1604 | (arg1)->SetWidth(arg2); | |
1605 | ||
1606 | wxPyEndAllowThreads(__tstate); | |
1607 | if (PyErr_Occurred()) SWIG_fail; | |
1608 | } | |
1609 | Py_INCREF(Py_None); resultobj = Py_None; | |
1610 | return resultobj; | |
1611 | fail: | |
1612 | return NULL; | |
1613 | } | |
1614 | ||
1615 | ||
1616 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject *resultobj; | |
1618 | wxPen *arg1 = (wxPen *) 0 ; | |
1619 | int arg2 ; | |
1620 | wxDash *arg3 = (wxDash *) 0 ; | |
1621 | PyObject * obj0 = 0 ; | |
1622 | PyObject * obj1 = 0 ; | |
1623 | char *kwnames[] = { | |
1624 | (char *) "self",(char *) "dashes", NULL | |
1625 | }; | |
1626 | ||
1627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1629 | { | |
1630 | arg2 = PyList_Size(obj1); | |
1631 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1632 | if (arg3 == NULL) SWIG_fail; | |
1633 | } | |
1634 | { | |
1635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1636 | (arg1)->SetDashes(arg2,arg3); | |
1637 | ||
1638 | wxPyEndAllowThreads(__tstate); | |
1639 | if (PyErr_Occurred()) SWIG_fail; | |
1640 | } | |
1641 | Py_INCREF(Py_None); resultobj = Py_None; | |
1642 | { | |
1643 | if (arg3) delete [] arg3; | |
1644 | } | |
1645 | return resultobj; | |
1646 | fail: | |
1647 | { | |
1648 | if (arg3) delete [] arg3; | |
1649 | } | |
1650 | return NULL; | |
1651 | } | |
1652 | ||
1653 | ||
1654 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1655 | PyObject *resultobj; | |
1656 | wxPen *arg1 = (wxPen *) 0 ; | |
1657 | PyObject *result; | |
1658 | PyObject * obj0 = 0 ; | |
1659 | char *kwnames[] = { | |
1660 | (char *) "self", NULL | |
1661 | }; | |
1662 | ||
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
1664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1665 | { | |
1666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1667 | result = (PyObject *)wxPen_GetDashes(arg1); | |
1668 | ||
1669 | wxPyEndAllowThreads(__tstate); | |
1670 | if (PyErr_Occurred()) SWIG_fail; | |
1671 | } | |
1672 | resultobj = result; | |
1673 | return resultobj; | |
1674 | fail: | |
1675 | return NULL; | |
1676 | } | |
1677 | ||
1678 | ||
1679 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject *resultobj; | |
1681 | wxPen *arg1 = (wxPen *) 0 ; | |
1682 | wxBitmap *result; | |
1683 | PyObject * obj0 = 0 ; | |
1684 | char *kwnames[] = { | |
1685 | (char *) "self", NULL | |
1686 | }; | |
1687 | ||
1688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
1689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1690 | { | |
1691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1692 | result = (wxBitmap *)(arg1)->GetStipple(); | |
1693 | ||
1694 | wxPyEndAllowThreads(__tstate); | |
1695 | if (PyErr_Occurred()) SWIG_fail; | |
1696 | } | |
1697 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
1698 | return resultobj; | |
1699 | fail: | |
1700 | return NULL; | |
1701 | } | |
1702 | ||
1703 | ||
1704 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1705 | PyObject *resultobj; | |
1706 | wxPen *arg1 = (wxPen *) 0 ; | |
1707 | wxBitmap *arg2 = 0 ; | |
1708 | PyObject * obj0 = 0 ; | |
1709 | PyObject * obj1 = 0 ; | |
1710 | char *kwnames[] = { | |
1711 | (char *) "self",(char *) "stipple", NULL | |
1712 | }; | |
1713 | ||
1714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1716 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1717 | if (arg2 == NULL) { | |
1718 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1719 | } | |
1720 | { | |
1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1722 | (arg1)->SetStipple(*arg2); | |
1723 | ||
1724 | wxPyEndAllowThreads(__tstate); | |
1725 | if (PyErr_Occurred()) SWIG_fail; | |
1726 | } | |
1727 | Py_INCREF(Py_None); resultobj = Py_None; | |
1728 | return resultobj; | |
1729 | fail: | |
1730 | return NULL; | |
1731 | } | |
1732 | ||
1733 | ||
1734 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
1735 | PyObject *obj; | |
1736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1737 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
1738 | Py_INCREF(obj); | |
1739 | return Py_BuildValue((char *)""); | |
1740 | } | |
1741 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1742 | PyObject *resultobj; | |
1743 | wxColour *arg1 = 0 ; | |
1744 | int arg2 = (int) 1 ; | |
1745 | int arg3 = (int) wxSOLID ; | |
1746 | wxPyPen *result; | |
1747 | wxColour temp1 ; | |
1748 | PyObject * obj0 = 0 ; | |
1749 | char *kwnames[] = { | |
1750 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1751 | }; | |
1752 | ||
1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:new_PyPen",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1754 | { | |
1755 | arg1 = &temp1; | |
1756 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1757 | } | |
1758 | { | |
1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1760 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
1761 | ||
1762 | wxPyEndAllowThreads(__tstate); | |
1763 | if (PyErr_Occurred()) SWIG_fail; | |
1764 | } | |
1765 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1); | |
1766 | return resultobj; | |
1767 | fail: | |
1768 | return NULL; | |
1769 | } | |
1770 | ||
1771 | ||
1772 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject *resultobj; | |
1774 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1775 | PyObject * obj0 = 0 ; | |
1776 | char *kwnames[] = { | |
1777 | (char *) "self", NULL | |
1778 | }; | |
1779 | ||
1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
1781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1782 | { | |
1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1784 | delete arg1; | |
1785 | ||
1786 | wxPyEndAllowThreads(__tstate); | |
1787 | if (PyErr_Occurred()) SWIG_fail; | |
1788 | } | |
1789 | Py_INCREF(Py_None); resultobj = Py_None; | |
1790 | return resultobj; | |
1791 | fail: | |
1792 | return NULL; | |
1793 | } | |
1794 | ||
1795 | ||
1796 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1797 | PyObject *resultobj; | |
1798 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
1799 | int arg2 ; | |
1800 | wxDash *arg3 = (wxDash *) 0 ; | |
1801 | PyObject * obj0 = 0 ; | |
1802 | PyObject * obj1 = 0 ; | |
1803 | char *kwnames[] = { | |
1804 | (char *) "self",(char *) "dashes", NULL | |
1805 | }; | |
1806 | ||
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
1808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1809 | { | |
1810 | arg2 = PyList_Size(obj1); | |
1811 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
1812 | if (arg3 == NULL) SWIG_fail; | |
1813 | } | |
1814 | { | |
1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1816 | (arg1)->SetDashes(arg2,arg3); | |
1817 | ||
1818 | wxPyEndAllowThreads(__tstate); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | Py_INCREF(Py_None); resultobj = Py_None; | |
1822 | { | |
1823 | if (arg3) delete [] arg3; | |
1824 | } | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | { | |
1828 | if (arg3) delete [] arg3; | |
1829 | } | |
1830 | return NULL; | |
1831 | } | |
1832 | ||
1833 | ||
1834 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
1835 | PyObject *obj; | |
1836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1837 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
1838 | Py_INCREF(obj); | |
1839 | return Py_BuildValue((char *)""); | |
1840 | } | |
1841 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1842 | PyObject *resultobj; | |
1843 | wxColour *arg1 = 0 ; | |
1844 | int arg2 = (int) wxSOLID ; | |
1845 | wxBrush *result; | |
1846 | wxColour temp1 ; | |
1847 | PyObject * obj0 = 0 ; | |
1848 | char *kwnames[] = { | |
1849 | (char *) "colour",(char *) "style", NULL | |
1850 | }; | |
1851 | ||
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Brush",kwnames,&obj0,&arg2)) goto fail; | |
1853 | { | |
1854 | arg1 = &temp1; | |
1855 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1856 | } | |
1857 | { | |
1858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1859 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
1860 | ||
1861 | wxPyEndAllowThreads(__tstate); | |
1862 | if (PyErr_Occurred()) SWIG_fail; | |
1863 | } | |
1864 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1); | |
1865 | return resultobj; | |
1866 | fail: | |
1867 | return NULL; | |
1868 | } | |
1869 | ||
1870 | ||
1871 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1872 | PyObject *resultobj; | |
1873 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1874 | PyObject * obj0 = 0 ; | |
1875 | char *kwnames[] = { | |
1876 | (char *) "self", NULL | |
1877 | }; | |
1878 | ||
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
1880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1881 | { | |
1882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1883 | delete arg1; | |
1884 | ||
1885 | wxPyEndAllowThreads(__tstate); | |
1886 | if (PyErr_Occurred()) SWIG_fail; | |
1887 | } | |
1888 | Py_INCREF(Py_None); resultobj = Py_None; | |
1889 | return resultobj; | |
1890 | fail: | |
1891 | return NULL; | |
1892 | } | |
1893 | ||
1894 | ||
1895 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1896 | PyObject *resultobj; | |
1897 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1898 | wxColour *arg2 = 0 ; | |
1899 | wxColour temp2 ; | |
1900 | PyObject * obj0 = 0 ; | |
1901 | PyObject * obj1 = 0 ; | |
1902 | char *kwnames[] = { | |
1903 | (char *) "self",(char *) "col", NULL | |
1904 | }; | |
1905 | ||
1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1908 | { | |
1909 | arg2 = &temp2; | |
1910 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1911 | } | |
1912 | { | |
1913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1914 | (arg1)->SetColour((wxColour const &)*arg2); | |
1915 | ||
1916 | wxPyEndAllowThreads(__tstate); | |
1917 | if (PyErr_Occurred()) SWIG_fail; | |
1918 | } | |
1919 | Py_INCREF(Py_None); resultobj = Py_None; | |
1920 | return resultobj; | |
1921 | fail: | |
1922 | return NULL; | |
1923 | } | |
1924 | ||
1925 | ||
1926 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1927 | PyObject *resultobj; | |
1928 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1929 | int arg2 ; | |
1930 | PyObject * obj0 = 0 ; | |
1931 | char *kwnames[] = { | |
1932 | (char *) "self",(char *) "style", NULL | |
1933 | }; | |
1934 | ||
1935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Brush_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
1936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1937 | { | |
1938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1939 | (arg1)->SetStyle(arg2); | |
1940 | ||
1941 | wxPyEndAllowThreads(__tstate); | |
1942 | if (PyErr_Occurred()) SWIG_fail; | |
1943 | } | |
1944 | Py_INCREF(Py_None); resultobj = Py_None; | |
1945 | return resultobj; | |
1946 | fail: | |
1947 | return NULL; | |
1948 | } | |
1949 | ||
1950 | ||
1951 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1952 | PyObject *resultobj; | |
1953 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1954 | wxBitmap *arg2 = 0 ; | |
1955 | PyObject * obj0 = 0 ; | |
1956 | PyObject * obj1 = 0 ; | |
1957 | char *kwnames[] = { | |
1958 | (char *) "self",(char *) "stipple", NULL | |
1959 | }; | |
1960 | ||
1961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
1962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1963 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1964 | if (arg2 == NULL) { | |
1965 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1966 | } | |
1967 | { | |
1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1969 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
1970 | ||
1971 | wxPyEndAllowThreads(__tstate); | |
1972 | if (PyErr_Occurred()) SWIG_fail; | |
1973 | } | |
1974 | Py_INCREF(Py_None); resultobj = Py_None; | |
1975 | return resultobj; | |
1976 | fail: | |
1977 | return NULL; | |
1978 | } | |
1979 | ||
1980 | ||
1981 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1982 | PyObject *resultobj; | |
1983 | wxBrush *arg1 = (wxBrush *) 0 ; | |
1984 | wxColour result; | |
1985 | PyObject * obj0 = 0 ; | |
1986 | char *kwnames[] = { | |
1987 | (char *) "self", NULL | |
1988 | }; | |
1989 | ||
1990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
1991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1992 | { | |
1993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1994 | result = ((wxBrush const *)arg1)->GetColour(); | |
1995 | ||
1996 | wxPyEndAllowThreads(__tstate); | |
1997 | if (PyErr_Occurred()) SWIG_fail; | |
1998 | } | |
1999 | { | |
2000 | wxColour * resultptr; | |
2001 | resultptr = new wxColour((wxColour &) result); | |
2002 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
2003 | } | |
2004 | return resultobj; | |
2005 | fail: | |
2006 | return NULL; | |
2007 | } | |
2008 | ||
2009 | ||
2010 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2011 | PyObject *resultobj; | |
2012 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2013 | int result; | |
2014 | PyObject * obj0 = 0 ; | |
2015 | char *kwnames[] = { | |
2016 | (char *) "self", NULL | |
2017 | }; | |
2018 | ||
2019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2021 | { | |
2022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2023 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2024 | ||
2025 | wxPyEndAllowThreads(__tstate); | |
2026 | if (PyErr_Occurred()) SWIG_fail; | |
2027 | } | |
2028 | resultobj = PyInt_FromLong((long)result); | |
2029 | return resultobj; | |
2030 | fail: | |
2031 | return NULL; | |
2032 | } | |
2033 | ||
2034 | ||
2035 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2036 | PyObject *resultobj; | |
2037 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2038 | wxBitmap *result; | |
2039 | PyObject * obj0 = 0 ; | |
2040 | char *kwnames[] = { | |
2041 | (char *) "self", NULL | |
2042 | }; | |
2043 | ||
2044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2046 | { | |
2047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2048 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2049 | ||
2050 | wxPyEndAllowThreads(__tstate); | |
2051 | if (PyErr_Occurred()) SWIG_fail; | |
2052 | } | |
2053 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
2054 | return resultobj; | |
2055 | fail: | |
2056 | return NULL; | |
2057 | } | |
2058 | ||
2059 | ||
2060 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2061 | PyObject *resultobj; | |
2062 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2063 | bool result; | |
2064 | PyObject * obj0 = 0 ; | |
2065 | char *kwnames[] = { | |
2066 | (char *) "self", NULL | |
2067 | }; | |
2068 | ||
2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2071 | { | |
2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2073 | result = (bool)(arg1)->Ok(); | |
2074 | ||
2075 | wxPyEndAllowThreads(__tstate); | |
2076 | if (PyErr_Occurred()) SWIG_fail; | |
2077 | } | |
2078 | resultobj = PyInt_FromLong((long)result); | |
2079 | return resultobj; | |
2080 | fail: | |
2081 | return NULL; | |
2082 | } | |
2083 | ||
2084 | ||
2085 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2086 | PyObject *obj; | |
2087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2088 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2089 | Py_INCREF(obj); | |
2090 | return Py_BuildValue((char *)""); | |
2091 | } | |
2092 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2093 | PyObject *resultobj; | |
2094 | wxString *arg1 = 0 ; | |
2095 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2096 | wxBitmap *result; | |
423f194a | 2097 | bool temp1 = False ; |
d14a1e28 RD |
2098 | PyObject * obj0 = 0 ; |
2099 | char *kwnames[] = { | |
2100 | (char *) "name",(char *) "type", NULL | |
2101 | }; | |
2102 | ||
2103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_Bitmap",kwnames,&obj0,&arg2)) goto fail; | |
2104 | { | |
2105 | arg1 = wxString_in_helper(obj0); | |
2106 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2107 | temp1 = True; |
d14a1e28 RD |
2108 | } |
2109 | { | |
2110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2111 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2112 | ||
2113 | wxPyEndAllowThreads(__tstate); | |
2114 | if (PyErr_Occurred()) SWIG_fail; | |
2115 | } | |
2116 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2117 | { | |
2118 | if (temp1) | |
2119 | delete arg1; | |
2120 | } | |
2121 | return resultobj; | |
2122 | fail: | |
2123 | { | |
2124 | if (temp1) | |
2125 | delete arg1; | |
2126 | } | |
2127 | return NULL; | |
2128 | } | |
2129 | ||
2130 | ||
2131 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2132 | PyObject *resultobj; | |
2133 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2134 | PyObject * obj0 = 0 ; | |
2135 | char *kwnames[] = { | |
2136 | (char *) "self", NULL | |
2137 | }; | |
2138 | ||
2139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2141 | { | |
2142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2143 | delete arg1; | |
2144 | ||
2145 | wxPyEndAllowThreads(__tstate); | |
2146 | if (PyErr_Occurred()) SWIG_fail; | |
2147 | } | |
2148 | Py_INCREF(Py_None); resultobj = Py_None; | |
2149 | return resultobj; | |
2150 | fail: | |
2151 | return NULL; | |
2152 | } | |
2153 | ||
2154 | ||
2155 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2156 | PyObject *resultobj; | |
2157 | int arg1 ; | |
2158 | int arg2 ; | |
2159 | int arg3 = (int) -1 ; | |
2160 | wxBitmap *result; | |
2161 | char *kwnames[] = { | |
2162 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2163 | }; | |
2164 | ||
2165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|i:new_EmptyBitmap",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
2166 | { | |
2167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2168 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2169 | ||
2170 | wxPyEndAllowThreads(__tstate); | |
2171 | if (PyErr_Occurred()) SWIG_fail; | |
2172 | } | |
2173 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2174 | return resultobj; | |
2175 | fail: | |
2176 | return NULL; | |
2177 | } | |
2178 | ||
2179 | ||
2180 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2181 | PyObject *resultobj; | |
2182 | wxIcon *arg1 = 0 ; | |
2183 | wxBitmap *result; | |
2184 | PyObject * obj0 = 0 ; | |
2185 | char *kwnames[] = { | |
2186 | (char *) "icon", NULL | |
2187 | }; | |
2188 | ||
2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2191 | if (arg1 == NULL) { | |
2192 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2193 | } | |
2194 | { | |
2195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2196 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2197 | ||
2198 | wxPyEndAllowThreads(__tstate); | |
2199 | if (PyErr_Occurred()) SWIG_fail; | |
2200 | } | |
2201 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2202 | return resultobj; | |
2203 | fail: | |
2204 | return NULL; | |
2205 | } | |
2206 | ||
2207 | ||
2208 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2209 | PyObject *resultobj; | |
2210 | wxImage *arg1 = 0 ; | |
2211 | int arg2 = (int) -1 ; | |
2212 | wxBitmap *result; | |
2213 | PyObject * obj0 = 0 ; | |
2214 | char *kwnames[] = { | |
2215 | (char *) "image",(char *) "depth", NULL | |
2216 | }; | |
2217 | ||
2218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_BitmapFromImage",kwnames,&obj0,&arg2)) goto fail; | |
2219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2220 | if (arg1 == NULL) { | |
2221 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2222 | } | |
2223 | { | |
2224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2225 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2226 | ||
2227 | wxPyEndAllowThreads(__tstate); | |
2228 | if (PyErr_Occurred()) SWIG_fail; | |
2229 | } | |
2230 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2231 | return resultobj; | |
2232 | fail: | |
2233 | return NULL; | |
2234 | } | |
2235 | ||
2236 | ||
2237 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2238 | PyObject *resultobj; | |
2239 | PyObject *arg1 = (PyObject *) 0 ; | |
2240 | wxBitmap *result; | |
2241 | PyObject * obj0 = 0 ; | |
2242 | char *kwnames[] = { | |
2243 | (char *) "listOfStrings", NULL | |
2244 | }; | |
2245 | ||
2246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2247 | arg1 = obj0; | |
2248 | { | |
2249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2250 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2251 | ||
2252 | wxPyEndAllowThreads(__tstate); | |
2253 | if (PyErr_Occurred()) SWIG_fail; | |
2254 | } | |
2255 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2256 | return resultobj; | |
2257 | fail: | |
2258 | return NULL; | |
2259 | } | |
2260 | ||
2261 | ||
2262 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2263 | PyObject *resultobj; | |
2264 | PyObject *arg1 = (PyObject *) 0 ; | |
2265 | int arg2 ; | |
2266 | int arg3 ; | |
2267 | int arg4 = (int) 1 ; | |
2268 | wxBitmap *result; | |
2269 | PyObject * obj0 = 0 ; | |
2270 | char *kwnames[] = { | |
2271 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2272 | }; | |
2273 | ||
2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:new_BitmapFromBits",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2275 | arg1 = obj0; | |
2276 | { | |
2277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2278 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2279 | ||
2280 | wxPyEndAllowThreads(__tstate); | |
2281 | if (PyErr_Occurred()) SWIG_fail; | |
2282 | } | |
2283 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1); | |
2284 | return resultobj; | |
2285 | fail: | |
2286 | return NULL; | |
2287 | } | |
2288 | ||
2289 | ||
2290 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject *resultobj; | |
2292 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2293 | wxPalette *arg2 = 0 ; | |
2294 | PyObject * obj0 = 0 ; | |
2295 | PyObject * obj1 = 0 ; | |
2296 | char *kwnames[] = { | |
2297 | (char *) "self",(char *) "palette", NULL | |
2298 | }; | |
2299 | ||
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2302 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2303 | if (arg2 == NULL) { | |
2304 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2305 | } | |
2306 | { | |
2307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2308 | (arg1)->SetPalette(*arg2); | |
2309 | ||
2310 | wxPyEndAllowThreads(__tstate); | |
2311 | if (PyErr_Occurred()) SWIG_fail; | |
2312 | } | |
2313 | Py_INCREF(Py_None); resultobj = Py_None; | |
2314 | return resultobj; | |
2315 | fail: | |
2316 | return NULL; | |
2317 | } | |
2318 | ||
2319 | ||
2320 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2321 | PyObject *resultobj; | |
2322 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2323 | long result; | |
2324 | PyObject * obj0 = 0 ; | |
2325 | char *kwnames[] = { | |
2326 | (char *) "self", NULL | |
2327 | }; | |
2328 | ||
2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; | |
2330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2331 | { | |
2332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2333 | result = (long)(arg1)->GetHandle(); | |
2334 | ||
2335 | wxPyEndAllowThreads(__tstate); | |
2336 | if (PyErr_Occurred()) SWIG_fail; | |
2337 | } | |
2338 | resultobj = PyInt_FromLong((long)result); | |
2339 | return resultobj; | |
2340 | fail: | |
2341 | return NULL; | |
2342 | } | |
2343 | ||
2344 | ||
2345 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject *resultobj; | |
2347 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2348 | long arg2 ; | |
2349 | PyObject * obj0 = 0 ; | |
2350 | char *kwnames[] = { | |
2351 | (char *) "self",(char *) "handle", NULL | |
2352 | }; | |
2353 | ||
2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Bitmap_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
2355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2356 | { | |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | (arg1)->SetHandle(arg2); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
2362 | } | |
2363 | Py_INCREF(Py_None); resultobj = Py_None; | |
2364 | return resultobj; | |
2365 | fail: | |
2366 | return NULL; | |
2367 | } | |
2368 | ||
2369 | ||
2370 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2371 | PyObject *resultobj; | |
2372 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2373 | bool result; | |
2374 | PyObject * obj0 = 0 ; | |
2375 | char *kwnames[] = { | |
2376 | (char *) "self", NULL | |
2377 | }; | |
2378 | ||
2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2381 | { | |
2382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2383 | result = (bool)(arg1)->Ok(); | |
2384 | ||
2385 | wxPyEndAllowThreads(__tstate); | |
2386 | if (PyErr_Occurred()) SWIG_fail; | |
2387 | } | |
2388 | resultobj = PyInt_FromLong((long)result); | |
2389 | return resultobj; | |
2390 | fail: | |
2391 | return NULL; | |
2392 | } | |
2393 | ||
2394 | ||
2395 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2396 | PyObject *resultobj; | |
2397 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2398 | int result; | |
2399 | PyObject * obj0 = 0 ; | |
2400 | char *kwnames[] = { | |
2401 | (char *) "self", NULL | |
2402 | }; | |
2403 | ||
2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2406 | { | |
2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2408 | result = (int)(arg1)->GetWidth(); | |
2409 | ||
2410 | wxPyEndAllowThreads(__tstate); | |
2411 | if (PyErr_Occurred()) SWIG_fail; | |
2412 | } | |
2413 | resultobj = PyInt_FromLong((long)result); | |
2414 | return resultobj; | |
2415 | fail: | |
2416 | return NULL; | |
2417 | } | |
2418 | ||
2419 | ||
2420 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2421 | PyObject *resultobj; | |
2422 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2423 | int result; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | char *kwnames[] = { | |
2426 | (char *) "self", NULL | |
2427 | }; | |
2428 | ||
2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2431 | { | |
2432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2433 | result = (int)(arg1)->GetHeight(); | |
2434 | ||
2435 | wxPyEndAllowThreads(__tstate); | |
2436 | if (PyErr_Occurred()) SWIG_fail; | |
2437 | } | |
2438 | resultobj = PyInt_FromLong((long)result); | |
2439 | return resultobj; | |
2440 | fail: | |
2441 | return NULL; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2446 | PyObject *resultobj; | |
2447 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2448 | int result; | |
2449 | PyObject * obj0 = 0 ; | |
2450 | char *kwnames[] = { | |
2451 | (char *) "self", NULL | |
2452 | }; | |
2453 | ||
2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2456 | { | |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2458 | result = (int)(arg1)->GetDepth(); | |
2459 | ||
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) SWIG_fail; | |
2462 | } | |
2463 | resultobj = PyInt_FromLong((long)result); | |
2464 | return resultobj; | |
2465 | fail: | |
2466 | return NULL; | |
2467 | } | |
2468 | ||
2469 | ||
2470 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2471 | PyObject *resultobj; | |
2472 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2473 | SwigValueWrapper< wxImage > result; | |
2474 | PyObject * obj0 = 0 ; | |
2475 | char *kwnames[] = { | |
2476 | (char *) "self", NULL | |
2477 | }; | |
2478 | ||
2479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2481 | { | |
2482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2483 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2484 | ||
2485 | wxPyEndAllowThreads(__tstate); | |
2486 | if (PyErr_Occurred()) SWIG_fail; | |
2487 | } | |
2488 | { | |
2489 | wxImage * resultptr; | |
2490 | resultptr = new wxImage((wxImage &) result); | |
2491 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
2492 | } | |
2493 | return resultobj; | |
2494 | fail: | |
2495 | return NULL; | |
2496 | } | |
2497 | ||
2498 | ||
2499 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2500 | PyObject *resultobj; | |
2501 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2502 | wxMask *result; | |
2503 | PyObject * obj0 = 0 ; | |
2504 | char *kwnames[] = { | |
2505 | (char *) "self", NULL | |
2506 | }; | |
2507 | ||
2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2510 | { | |
2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2512 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2513 | ||
2514 | wxPyEndAllowThreads(__tstate); | |
2515 | if (PyErr_Occurred()) SWIG_fail; | |
2516 | } | |
2517 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0); | |
2518 | return resultobj; | |
2519 | fail: | |
2520 | return NULL; | |
2521 | } | |
2522 | ||
2523 | ||
2524 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject *resultobj; | |
2526 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2527 | wxMask *arg2 = (wxMask *) 0 ; | |
2528 | PyObject * obj0 = 0 ; | |
2529 | PyObject * obj1 = 0 ; | |
2530 | char *kwnames[] = { | |
2531 | (char *) "self",(char *) "mask", NULL | |
2532 | }; | |
2533 | ||
2534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2536 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2537 | { | |
2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2539 | (arg1)->SetMask(arg2); | |
2540 | ||
2541 | wxPyEndAllowThreads(__tstate); | |
2542 | if (PyErr_Occurred()) SWIG_fail; | |
2543 | } | |
2544 | Py_INCREF(Py_None); resultobj = Py_None; | |
2545 | return resultobj; | |
2546 | fail: | |
2547 | return NULL; | |
2548 | } | |
2549 | ||
2550 | ||
2551 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject *resultobj; | |
2553 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2554 | wxColour *arg2 = 0 ; | |
2555 | wxColour temp2 ; | |
2556 | PyObject * obj0 = 0 ; | |
2557 | PyObject * obj1 = 0 ; | |
2558 | char *kwnames[] = { | |
2559 | (char *) "self",(char *) "colour", NULL | |
2560 | }; | |
2561 | ||
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2564 | { | |
2565 | arg2 = &temp2; | |
2566 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2567 | } | |
2568 | { | |
2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2570 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
2571 | ||
2572 | wxPyEndAllowThreads(__tstate); | |
2573 | if (PyErr_Occurred()) SWIG_fail; | |
2574 | } | |
2575 | Py_INCREF(Py_None); resultobj = Py_None; | |
2576 | return resultobj; | |
2577 | fail: | |
2578 | return NULL; | |
2579 | } | |
2580 | ||
2581 | ||
2582 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject *resultobj; | |
2584 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2585 | wxRect *arg2 = 0 ; | |
2586 | SwigValueWrapper< wxBitmap > result; | |
2587 | wxRect temp2 ; | |
2588 | PyObject * obj0 = 0 ; | |
2589 | PyObject * obj1 = 0 ; | |
2590 | char *kwnames[] = { | |
2591 | (char *) "self",(char *) "rect", NULL | |
2592 | }; | |
2593 | ||
2594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2596 | { | |
2597 | arg2 = &temp2; | |
2598 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2599 | } | |
2600 | { | |
2601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2602 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
2603 | ||
2604 | wxPyEndAllowThreads(__tstate); | |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
2606 | } | |
2607 | { | |
2608 | wxBitmap * resultptr; | |
2609 | resultptr = new wxBitmap((wxBitmap &) result); | |
2610 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
2611 | } | |
2612 | return resultobj; | |
2613 | fail: | |
2614 | return NULL; | |
2615 | } | |
2616 | ||
2617 | ||
2618 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2619 | PyObject *resultobj; | |
2620 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2621 | wxString *arg2 = 0 ; | |
2622 | int arg3 ; | |
2623 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
2624 | bool result; | |
423f194a | 2625 | bool temp2 = False ; |
d14a1e28 RD |
2626 | PyObject * obj0 = 0 ; |
2627 | PyObject * obj1 = 0 ; | |
2628 | PyObject * obj3 = 0 ; | |
2629 | char *kwnames[] = { | |
2630 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
2631 | }; | |
2632 | ||
2633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
2634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2635 | { | |
2636 | arg2 = wxString_in_helper(obj1); | |
2637 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2638 | temp2 = True; |
d14a1e28 RD |
2639 | } |
2640 | if (obj3) { | |
2641 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2642 | } | |
2643 | { | |
2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2645 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
2646 | ||
2647 | wxPyEndAllowThreads(__tstate); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
2650 | resultobj = PyInt_FromLong((long)result); | |
2651 | { | |
2652 | if (temp2) | |
2653 | delete arg2; | |
2654 | } | |
2655 | return resultobj; | |
2656 | fail: | |
2657 | { | |
2658 | if (temp2) | |
2659 | delete arg2; | |
2660 | } | |
2661 | return NULL; | |
2662 | } | |
2663 | ||
2664 | ||
2665 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2666 | PyObject *resultobj; | |
2667 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2668 | wxString *arg2 = 0 ; | |
2669 | int arg3 ; | |
2670 | bool result; | |
423f194a | 2671 | bool temp2 = False ; |
d14a1e28 RD |
2672 | PyObject * obj0 = 0 ; |
2673 | PyObject * obj1 = 0 ; | |
2674 | char *kwnames[] = { | |
2675 | (char *) "self",(char *) "name",(char *) "type", NULL | |
2676 | }; | |
2677 | ||
2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:Bitmap_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
2679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2680 | { | |
2681 | arg2 = wxString_in_helper(obj1); | |
2682 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2683 | temp2 = True; |
d14a1e28 RD |
2684 | } |
2685 | { | |
2686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2687 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
2688 | ||
2689 | wxPyEndAllowThreads(__tstate); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | } | |
2692 | resultobj = PyInt_FromLong((long)result); | |
2693 | { | |
2694 | if (temp2) | |
2695 | delete arg2; | |
2696 | } | |
2697 | return resultobj; | |
2698 | fail: | |
2699 | { | |
2700 | if (temp2) | |
2701 | delete arg2; | |
2702 | } | |
2703 | return NULL; | |
2704 | } | |
2705 | ||
2706 | ||
2707 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2708 | PyObject *resultobj; | |
2709 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2710 | wxIcon *arg2 = 0 ; | |
2711 | bool result; | |
2712 | PyObject * obj0 = 0 ; | |
2713 | PyObject * obj1 = 0 ; | |
2714 | char *kwnames[] = { | |
2715 | (char *) "self",(char *) "icon", NULL | |
2716 | }; | |
2717 | ||
2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2720 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2721 | if (arg2 == NULL) { | |
2722 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2723 | } | |
2724 | { | |
2725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2726 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
2727 | ||
2728 | wxPyEndAllowThreads(__tstate); | |
2729 | if (PyErr_Occurred()) SWIG_fail; | |
2730 | } | |
2731 | resultobj = PyInt_FromLong((long)result); | |
2732 | return resultobj; | |
2733 | fail: | |
2734 | return NULL; | |
2735 | } | |
2736 | ||
2737 | ||
2738 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject *resultobj; | |
2740 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2741 | int arg2 ; | |
2742 | PyObject * obj0 = 0 ; | |
2743 | char *kwnames[] = { | |
2744 | (char *) "self",(char *) "height", NULL | |
2745 | }; | |
2746 | ||
2747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
2748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2749 | { | |
2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2751 | (arg1)->SetHeight(arg2); | |
2752 | ||
2753 | wxPyEndAllowThreads(__tstate); | |
2754 | if (PyErr_Occurred()) SWIG_fail; | |
2755 | } | |
2756 | Py_INCREF(Py_None); resultobj = Py_None; | |
2757 | return resultobj; | |
2758 | fail: | |
2759 | return NULL; | |
2760 | } | |
2761 | ||
2762 | ||
2763 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2764 | PyObject *resultobj; | |
2765 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2766 | int arg2 ; | |
2767 | PyObject * obj0 = 0 ; | |
2768 | char *kwnames[] = { | |
2769 | (char *) "self",(char *) "width", NULL | |
2770 | }; | |
2771 | ||
2772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
2773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2776 | (arg1)->SetWidth(arg2); | |
2777 | ||
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | Py_INCREF(Py_None); resultobj = Py_None; | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
2788 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject *resultobj; | |
2790 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2791 | int arg2 ; | |
2792 | PyObject * obj0 = 0 ; | |
2793 | char *kwnames[] = { | |
2794 | (char *) "self",(char *) "depth", NULL | |
2795 | }; | |
2796 | ||
2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
2798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | (arg1)->SetDepth(arg2); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | Py_INCREF(Py_None); resultobj = Py_None; | |
2807 | return resultobj; | |
2808 | fail: | |
2809 | return NULL; | |
2810 | } | |
2811 | ||
2812 | ||
2813 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2814 | PyObject *resultobj; | |
2815 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2816 | wxCursor *arg2 = 0 ; | |
2817 | bool result; | |
2818 | PyObject * obj0 = 0 ; | |
2819 | PyObject * obj1 = 0 ; | |
2820 | char *kwnames[] = { | |
2821 | (char *) "self",(char *) "cursor", NULL | |
2822 | }; | |
2823 | ||
2824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
2825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2826 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2827 | if (arg2 == NULL) { | |
2828 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2829 | } | |
2830 | { | |
2831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2832 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
2833 | ||
2834 | wxPyEndAllowThreads(__tstate); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | } | |
2837 | resultobj = PyInt_FromLong((long)result); | |
2838 | return resultobj; | |
2839 | fail: | |
2840 | return NULL; | |
2841 | } | |
2842 | ||
2843 | ||
2844 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2845 | PyObject *resultobj; | |
2846 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2847 | int result; | |
2848 | PyObject * obj0 = 0 ; | |
2849 | char *kwnames[] = { | |
2850 | (char *) "self", NULL | |
2851 | }; | |
2852 | ||
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
2854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2855 | { | |
2856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2857 | result = (int)(arg1)->GetQuality(); | |
2858 | ||
2859 | wxPyEndAllowThreads(__tstate); | |
2860 | if (PyErr_Occurred()) SWIG_fail; | |
2861 | } | |
2862 | resultobj = PyInt_FromLong((long)result); | |
2863 | return resultobj; | |
2864 | fail: | |
2865 | return NULL; | |
2866 | } | |
2867 | ||
2868 | ||
2869 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2870 | PyObject *resultobj; | |
2871 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2872 | int arg2 ; | |
2873 | PyObject * obj0 = 0 ; | |
2874 | char *kwnames[] = { | |
2875 | (char *) "self",(char *) "q", NULL | |
2876 | }; | |
2877 | ||
2878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Bitmap_SetQuality",kwnames,&obj0,&arg2)) goto fail; | |
2879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2880 | { | |
2881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2882 | (arg1)->SetQuality(arg2); | |
2883 | ||
2884 | wxPyEndAllowThreads(__tstate); | |
2885 | if (PyErr_Occurred()) SWIG_fail; | |
2886 | } | |
2887 | Py_INCREF(Py_None); resultobj = Py_None; | |
2888 | return resultobj; | |
2889 | fail: | |
2890 | return NULL; | |
2891 | } | |
2892 | ||
2893 | ||
2894 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
2895 | PyObject *obj; | |
2896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2897 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
2898 | Py_INCREF(obj); | |
2899 | return Py_BuildValue((char *)""); | |
2900 | } | |
2901 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2902 | PyObject *resultobj; | |
2903 | wxBitmap *arg1 = 0 ; | |
2904 | wxMask *result; | |
2905 | PyObject * obj0 = 0 ; | |
2906 | char *kwnames[] = { | |
2907 | (char *) "bitmap", NULL | |
2908 | }; | |
2909 | ||
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail; | |
2911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2912 | if (arg1 == NULL) { | |
2913 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2914 | } | |
2915 | { | |
2916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2917 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1); | |
2918 | ||
2919 | wxPyEndAllowThreads(__tstate); | |
2920 | if (PyErr_Occurred()) SWIG_fail; | |
2921 | } | |
2922 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2923 | return resultobj; | |
2924 | fail: | |
2925 | return NULL; | |
2926 | } | |
2927 | ||
2928 | ||
2929 | static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2930 | PyObject *resultobj; | |
2931 | wxBitmap *arg1 = 0 ; | |
2932 | wxColour *arg2 = 0 ; | |
2933 | wxMask *result; | |
2934 | wxColour temp2 ; | |
2935 | PyObject * obj0 = 0 ; | |
2936 | PyObject * obj1 = 0 ; | |
2937 | char *kwnames[] = { | |
2938 | (char *) "bitmap",(char *) "colour", NULL | |
2939 | }; | |
2940 | ||
2941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2943 | if (arg1 == NULL) { | |
2944 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2945 | } | |
2946 | { | |
2947 | arg2 = &temp2; | |
2948 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2949 | } | |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1); | |
2958 | return resultobj; | |
2959 | fail: | |
2960 | return NULL; | |
2961 | } | |
2962 | ||
2963 | ||
2964 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
2965 | PyObject *obj; | |
2966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2967 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
2968 | Py_INCREF(obj); | |
2969 | return Py_BuildValue((char *)""); | |
2970 | } | |
2971 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2972 | PyObject *resultobj; | |
2973 | wxString *arg1 = 0 ; | |
2974 | long arg2 ; | |
2975 | int arg3 = (int) -1 ; | |
2976 | int arg4 = (int) -1 ; | |
2977 | wxIcon *result; | |
423f194a | 2978 | bool temp1 = False ; |
d14a1e28 RD |
2979 | PyObject * obj0 = 0 ; |
2980 | char *kwnames[] = { | |
2981 | (char *) "name",(char *) "flags",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
2982 | }; | |
2983 | ||
2984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Icon",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
2985 | { | |
2986 | arg1 = wxString_in_helper(obj0); | |
2987 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2988 | temp1 = True; |
d14a1e28 RD |
2989 | } |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) SWIG_fail; | |
2996 | } | |
2997 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
2998 | { | |
2999 | if (temp1) | |
3000 | delete arg1; | |
3001 | } | |
3002 | return resultobj; | |
3003 | fail: | |
3004 | { | |
3005 | if (temp1) | |
3006 | delete arg1; | |
3007 | } | |
3008 | return NULL; | |
3009 | } | |
3010 | ||
3011 | ||
3012 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3013 | PyObject *resultobj; | |
3014 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3015 | PyObject * obj0 = 0 ; | |
3016 | char *kwnames[] = { | |
3017 | (char *) "self", NULL | |
3018 | }; | |
3019 | ||
3020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3022 | { | |
3023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3024 | delete arg1; | |
3025 | ||
3026 | wxPyEndAllowThreads(__tstate); | |
3027 | if (PyErr_Occurred()) SWIG_fail; | |
3028 | } | |
3029 | Py_INCREF(Py_None); resultobj = Py_None; | |
3030 | return resultobj; | |
3031 | fail: | |
3032 | return NULL; | |
3033 | } | |
3034 | ||
3035 | ||
3036 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject *resultobj; | |
3038 | wxIcon *result; | |
3039 | char *kwnames[] = { | |
3040 | NULL | |
3041 | }; | |
3042 | ||
3043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3044 | { | |
3045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3046 | result = (wxIcon *)new wxIcon(); | |
3047 | ||
3048 | wxPyEndAllowThreads(__tstate); | |
3049 | if (PyErr_Occurred()) SWIG_fail; | |
3050 | } | |
3051 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3052 | return resultobj; | |
3053 | fail: | |
3054 | return NULL; | |
3055 | } | |
3056 | ||
3057 | ||
3058 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3059 | PyObject *resultobj; | |
3060 | wxIconLocation *arg1 = 0 ; | |
3061 | wxIcon *result; | |
3062 | PyObject * obj0 = 0 ; | |
3063 | char *kwnames[] = { | |
3064 | (char *) "loc", NULL | |
3065 | }; | |
3066 | ||
3067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3069 | if (arg1 == NULL) { | |
3070 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3071 | } | |
3072 | { | |
3073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3074 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3075 | ||
3076 | wxPyEndAllowThreads(__tstate); | |
3077 | if (PyErr_Occurred()) SWIG_fail; | |
3078 | } | |
3079 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3080 | return resultobj; | |
3081 | fail: | |
3082 | return NULL; | |
3083 | } | |
3084 | ||
3085 | ||
3086 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3087 | PyObject *resultobj; | |
3088 | wxBitmap *arg1 = 0 ; | |
3089 | wxIcon *result; | |
3090 | PyObject * obj0 = 0 ; | |
3091 | char *kwnames[] = { | |
3092 | (char *) "bmp", NULL | |
3093 | }; | |
3094 | ||
3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3097 | if (arg1 == NULL) { | |
3098 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3099 | } | |
3100 | { | |
3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3102 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3103 | ||
3104 | wxPyEndAllowThreads(__tstate); | |
3105 | if (PyErr_Occurred()) SWIG_fail; | |
3106 | } | |
3107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3108 | return resultobj; | |
3109 | fail: | |
3110 | return NULL; | |
3111 | } | |
3112 | ||
3113 | ||
3114 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3115 | PyObject *resultobj; | |
3116 | PyObject *arg1 = (PyObject *) 0 ; | |
3117 | wxIcon *result; | |
3118 | PyObject * obj0 = 0 ; | |
3119 | char *kwnames[] = { | |
3120 | (char *) "listOfStrings", NULL | |
3121 | }; | |
3122 | ||
3123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3124 | arg1 = obj0; | |
3125 | { | |
3126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3127 | result = (wxIcon *)new_wxIcon(arg1); | |
3128 | ||
3129 | wxPyEndAllowThreads(__tstate); | |
3130 | if (PyErr_Occurred()) SWIG_fail; | |
3131 | } | |
3132 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
3133 | return resultobj; | |
3134 | fail: | |
3135 | return NULL; | |
3136 | } | |
3137 | ||
3138 | ||
3139 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3140 | PyObject *resultobj; | |
3141 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3142 | wxString *arg2 = 0 ; | |
3143 | long arg3 ; | |
3144 | bool result; | |
423f194a | 3145 | bool temp2 = False ; |
d14a1e28 RD |
3146 | PyObject * obj0 = 0 ; |
3147 | PyObject * obj1 = 0 ; | |
3148 | char *kwnames[] = { | |
3149 | (char *) "self",(char *) "name",(char *) "flags", NULL | |
3150 | }; | |
3151 | ||
3152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:Icon_LoadFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3154 | { | |
3155 | arg2 = wxString_in_helper(obj1); | |
3156 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3157 | temp2 = True; |
d14a1e28 RD |
3158 | } |
3159 | { | |
3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3161 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
3162 | ||
3163 | wxPyEndAllowThreads(__tstate); | |
3164 | if (PyErr_Occurred()) SWIG_fail; | |
3165 | } | |
3166 | resultobj = PyInt_FromLong((long)result); | |
3167 | { | |
3168 | if (temp2) | |
3169 | delete arg2; | |
3170 | } | |
3171 | return resultobj; | |
3172 | fail: | |
3173 | { | |
3174 | if (temp2) | |
3175 | delete arg2; | |
3176 | } | |
3177 | return NULL; | |
3178 | } | |
3179 | ||
3180 | ||
3181 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3182 | PyObject *resultobj; | |
3183 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3184 | long result; | |
3185 | PyObject * obj0 = 0 ; | |
3186 | char *kwnames[] = { | |
3187 | (char *) "self", NULL | |
3188 | }; | |
3189 | ||
3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3192 | { | |
3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3194 | result = (long)(arg1)->GetHandle(); | |
3195 | ||
3196 | wxPyEndAllowThreads(__tstate); | |
3197 | if (PyErr_Occurred()) SWIG_fail; | |
3198 | } | |
3199 | resultobj = PyInt_FromLong((long)result); | |
3200 | return resultobj; | |
3201 | fail: | |
3202 | return NULL; | |
3203 | } | |
3204 | ||
3205 | ||
3206 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3207 | PyObject *resultobj; | |
3208 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3209 | long arg2 ; | |
3210 | PyObject * obj0 = 0 ; | |
3211 | char *kwnames[] = { | |
3212 | (char *) "self",(char *) "handle", NULL | |
3213 | }; | |
3214 | ||
3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Icon_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
3216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3217 | { | |
3218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3219 | (arg1)->SetHandle(arg2); | |
3220 | ||
3221 | wxPyEndAllowThreads(__tstate); | |
3222 | if (PyErr_Occurred()) SWIG_fail; | |
3223 | } | |
3224 | Py_INCREF(Py_None); resultobj = Py_None; | |
3225 | return resultobj; | |
3226 | fail: | |
3227 | return NULL; | |
3228 | } | |
3229 | ||
3230 | ||
3231 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3232 | PyObject *resultobj; | |
3233 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3234 | bool result; | |
3235 | PyObject * obj0 = 0 ; | |
3236 | char *kwnames[] = { | |
3237 | (char *) "self", NULL | |
3238 | }; | |
3239 | ||
3240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3242 | { | |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | result = (bool)(arg1)->Ok(); | |
3245 | ||
3246 | wxPyEndAllowThreads(__tstate); | |
3247 | if (PyErr_Occurred()) SWIG_fail; | |
3248 | } | |
3249 | resultobj = PyInt_FromLong((long)result); | |
3250 | return resultobj; | |
3251 | fail: | |
3252 | return NULL; | |
3253 | } | |
3254 | ||
3255 | ||
3256 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3257 | PyObject *resultobj; | |
3258 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3259 | int result; | |
3260 | PyObject * obj0 = 0 ; | |
3261 | char *kwnames[] = { | |
3262 | (char *) "self", NULL | |
3263 | }; | |
3264 | ||
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3267 | { | |
3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3269 | result = (int)(arg1)->GetWidth(); | |
3270 | ||
3271 | wxPyEndAllowThreads(__tstate); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | } | |
3274 | resultobj = PyInt_FromLong((long)result); | |
3275 | return resultobj; | |
3276 | fail: | |
3277 | return NULL; | |
3278 | } | |
3279 | ||
3280 | ||
3281 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3282 | PyObject *resultobj; | |
3283 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3284 | int result; | |
3285 | PyObject * obj0 = 0 ; | |
3286 | char *kwnames[] = { | |
3287 | (char *) "self", NULL | |
3288 | }; | |
3289 | ||
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3292 | { | |
3293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3294 | result = (int)(arg1)->GetHeight(); | |
3295 | ||
3296 | wxPyEndAllowThreads(__tstate); | |
3297 | if (PyErr_Occurred()) SWIG_fail; | |
3298 | } | |
3299 | resultobj = PyInt_FromLong((long)result); | |
3300 | return resultobj; | |
3301 | fail: | |
3302 | return NULL; | |
3303 | } | |
3304 | ||
3305 | ||
3306 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3307 | PyObject *resultobj; | |
3308 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3309 | int result; | |
3310 | PyObject * obj0 = 0 ; | |
3311 | char *kwnames[] = { | |
3312 | (char *) "self", NULL | |
3313 | }; | |
3314 | ||
3315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3317 | { | |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | result = (int)(arg1)->GetDepth(); | |
3320 | ||
3321 | wxPyEndAllowThreads(__tstate); | |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
3323 | } | |
3324 | resultobj = PyInt_FromLong((long)result); | |
3325 | return resultobj; | |
3326 | fail: | |
3327 | return NULL; | |
3328 | } | |
3329 | ||
3330 | ||
3331 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3332 | PyObject *resultobj; | |
3333 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3334 | int arg2 ; | |
3335 | PyObject * obj0 = 0 ; | |
3336 | char *kwnames[] = { | |
3337 | (char *) "self",(char *) "w", NULL | |
3338 | }; | |
3339 | ||
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
3341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3342 | { | |
3343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3344 | (arg1)->SetWidth(arg2); | |
3345 | ||
3346 | wxPyEndAllowThreads(__tstate); | |
3347 | if (PyErr_Occurred()) SWIG_fail; | |
3348 | } | |
3349 | Py_INCREF(Py_None); resultobj = Py_None; | |
3350 | return resultobj; | |
3351 | fail: | |
3352 | return NULL; | |
3353 | } | |
3354 | ||
3355 | ||
3356 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3357 | PyObject *resultobj; | |
3358 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3359 | int arg2 ; | |
3360 | PyObject * obj0 = 0 ; | |
3361 | char *kwnames[] = { | |
3362 | (char *) "self",(char *) "h", NULL | |
3363 | }; | |
3364 | ||
3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
3366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3367 | { | |
3368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3369 | (arg1)->SetHeight(arg2); | |
3370 | ||
3371 | wxPyEndAllowThreads(__tstate); | |
3372 | if (PyErr_Occurred()) SWIG_fail; | |
3373 | } | |
3374 | Py_INCREF(Py_None); resultobj = Py_None; | |
3375 | return resultobj; | |
3376 | fail: | |
3377 | return NULL; | |
3378 | } | |
3379 | ||
3380 | ||
3381 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3382 | PyObject *resultobj; | |
3383 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3384 | int arg2 ; | |
3385 | PyObject * obj0 = 0 ; | |
3386 | char *kwnames[] = { | |
3387 | (char *) "self",(char *) "d", NULL | |
3388 | }; | |
3389 | ||
3390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Icon_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
3391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3392 | { | |
3393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3394 | (arg1)->SetDepth(arg2); | |
3395 | ||
3396 | wxPyEndAllowThreads(__tstate); | |
3397 | if (PyErr_Occurred()) SWIG_fail; | |
3398 | } | |
3399 | Py_INCREF(Py_None); resultobj = Py_None; | |
3400 | return resultobj; | |
3401 | fail: | |
3402 | return NULL; | |
3403 | } | |
3404 | ||
3405 | ||
3406 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3407 | PyObject *resultobj; | |
3408 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3409 | wxSize *arg2 = 0 ; | |
3410 | wxSize temp2 ; | |
3411 | PyObject * obj0 = 0 ; | |
3412 | PyObject * obj1 = 0 ; | |
3413 | char *kwnames[] = { | |
3414 | (char *) "self",(char *) "size", NULL | |
3415 | }; | |
3416 | ||
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3419 | { | |
3420 | arg2 = &temp2; | |
3421 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3422 | } | |
3423 | { | |
3424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3425 | (arg1)->SetSize((wxSize const &)*arg2); | |
3426 | ||
3427 | wxPyEndAllowThreads(__tstate); | |
3428 | if (PyErr_Occurred()) SWIG_fail; | |
3429 | } | |
3430 | Py_INCREF(Py_None); resultobj = Py_None; | |
3431 | return resultobj; | |
3432 | fail: | |
3433 | return NULL; | |
3434 | } | |
3435 | ||
3436 | ||
3437 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3438 | PyObject *resultobj; | |
3439 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3440 | wxBitmap *arg2 = 0 ; | |
3441 | PyObject * obj0 = 0 ; | |
3442 | PyObject * obj1 = 0 ; | |
3443 | char *kwnames[] = { | |
3444 | (char *) "self",(char *) "bmp", NULL | |
3445 | }; | |
3446 | ||
3447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3449 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3450 | if (arg2 == NULL) { | |
3451 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3452 | } | |
3453 | { | |
3454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3455 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3456 | ||
3457 | wxPyEndAllowThreads(__tstate); | |
3458 | if (PyErr_Occurred()) SWIG_fail; | |
3459 | } | |
3460 | Py_INCREF(Py_None); resultobj = Py_None; | |
3461 | return resultobj; | |
3462 | fail: | |
3463 | return NULL; | |
3464 | } | |
3465 | ||
3466 | ||
3467 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3468 | PyObject *obj; | |
3469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3470 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3471 | Py_INCREF(obj); | |
3472 | return Py_BuildValue((char *)""); | |
3473 | } | |
3474 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject *resultobj; | |
3476 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3477 | int arg2 = (int) 0 ; | |
3478 | wxIconLocation *result; | |
3479 | PyObject * obj0 = 0 ; | |
3480 | char *kwnames[] = { | |
3481 | (char *) "filename",(char *) "num", NULL | |
3482 | }; | |
3483 | ||
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_IconLocation",kwnames,&obj0,&arg2)) goto fail; | |
3485 | if (obj0) { | |
3486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3487 | } | |
3488 | { | |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3491 | ||
3492 | wxPyEndAllowThreads(__tstate); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | } | |
3495 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1); | |
3496 | return resultobj; | |
3497 | fail: | |
3498 | return NULL; | |
3499 | } | |
3500 | ||
3501 | ||
3502 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3503 | PyObject *resultobj; | |
3504 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3505 | PyObject * obj0 = 0 ; | |
3506 | char *kwnames[] = { | |
3507 | (char *) "self", NULL | |
3508 | }; | |
3509 | ||
3510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3512 | { | |
3513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3514 | delete arg1; | |
3515 | ||
3516 | wxPyEndAllowThreads(__tstate); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
3519 | Py_INCREF(Py_None); resultobj = Py_None; | |
3520 | return resultobj; | |
3521 | fail: | |
3522 | return NULL; | |
3523 | } | |
3524 | ||
3525 | ||
3526 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3527 | PyObject *resultobj; | |
3528 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3529 | bool result; | |
3530 | PyObject * obj0 = 0 ; | |
3531 | char *kwnames[] = { | |
3532 | (char *) "self", NULL | |
3533 | }; | |
3534 | ||
3535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3537 | { | |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3539 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3540 | ||
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
3543 | } | |
3544 | resultobj = PyInt_FromLong((long)result); | |
3545 | return resultobj; | |
3546 | fail: | |
3547 | return NULL; | |
3548 | } | |
3549 | ||
3550 | ||
3551 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3552 | PyObject *resultobj; | |
3553 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3554 | wxString *arg2 = 0 ; | |
423f194a | 3555 | bool temp2 = False ; |
d14a1e28 RD |
3556 | PyObject * obj0 = 0 ; |
3557 | PyObject * obj1 = 0 ; | |
3558 | char *kwnames[] = { | |
3559 | (char *) "self",(char *) "filename", NULL | |
3560 | }; | |
3561 | ||
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
3563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3564 | { | |
3565 | arg2 = wxString_in_helper(obj1); | |
3566 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3567 | temp2 = True; |
d14a1e28 RD |
3568 | } |
3569 | { | |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | (arg1)->SetFileName((wxString const &)*arg2); | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
3576 | Py_INCREF(Py_None); resultobj = Py_None; | |
3577 | { | |
3578 | if (temp2) | |
3579 | delete arg2; | |
3580 | } | |
3581 | return resultobj; | |
3582 | fail: | |
3583 | { | |
3584 | if (temp2) | |
3585 | delete arg2; | |
3586 | } | |
3587 | return NULL; | |
3588 | } | |
3589 | ||
3590 | ||
3591 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3592 | PyObject *resultobj; | |
3593 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3594 | wxString *result; | |
3595 | PyObject * obj0 = 0 ; | |
3596 | char *kwnames[] = { | |
3597 | (char *) "self", NULL | |
3598 | }; | |
3599 | ||
3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
3601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3602 | { | |
3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3604 | { | |
3605 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
3606 | result = (wxString *) &_result_ref; | |
3607 | } | |
3608 | ||
3609 | wxPyEndAllowThreads(__tstate); | |
3610 | if (PyErr_Occurred()) SWIG_fail; | |
3611 | } | |
f0983263 RD |
3612 | { |
3613 | #if wxUSE_UNICODE | |
3614 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
3615 | #else | |
3616 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
3617 | #endif | |
3618 | } | |
d14a1e28 RD |
3619 | return resultobj; |
3620 | fail: | |
3621 | return NULL; | |
3622 | } | |
3623 | ||
3624 | ||
3625 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3626 | PyObject *resultobj; | |
3627 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3628 | int arg2 ; | |
3629 | PyObject * obj0 = 0 ; | |
3630 | char *kwnames[] = { | |
3631 | (char *) "self",(char *) "num", NULL | |
3632 | }; | |
3633 | ||
3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:IconLocation_SetIndex",kwnames,&obj0,&arg2)) goto fail; | |
3635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | wxIconLocation_SetIndex(arg1,arg2); | |
3639 | ||
3640 | wxPyEndAllowThreads(__tstate); | |
3641 | if (PyErr_Occurred()) SWIG_fail; | |
3642 | } | |
3643 | Py_INCREF(Py_None); resultobj = Py_None; | |
3644 | return resultobj; | |
3645 | fail: | |
3646 | return NULL; | |
3647 | } | |
3648 | ||
3649 | ||
3650 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3651 | PyObject *resultobj; | |
3652 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3653 | int result; | |
3654 | PyObject * obj0 = 0 ; | |
3655 | char *kwnames[] = { | |
3656 | (char *) "self", NULL | |
3657 | }; | |
3658 | ||
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
3660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3661 | { | |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | result = (int)wxIconLocation_GetIndex(arg1); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
3668 | resultobj = PyInt_FromLong((long)result); | |
3669 | return resultobj; | |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
3675 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
3676 | PyObject *obj; | |
3677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3678 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
3679 | Py_INCREF(obj); | |
3680 | return Py_BuildValue((char *)""); | |
3681 | } | |
3682 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject *resultobj; | |
3684 | wxIconBundle *result; | |
3685 | char *kwnames[] = { | |
3686 | NULL | |
3687 | }; | |
3688 | ||
3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
3690 | { | |
3691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3692 | result = (wxIconBundle *)new wxIconBundle(); | |
3693 | ||
3694 | wxPyEndAllowThreads(__tstate); | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3698 | return resultobj; | |
3699 | fail: | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
3704 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject *resultobj; | |
3706 | wxString *arg1 = 0 ; | |
3707 | long arg2 ; | |
3708 | wxIconBundle *result; | |
423f194a | 3709 | bool temp1 = False ; |
d14a1e28 RD |
3710 | PyObject * obj0 = 0 ; |
3711 | char *kwnames[] = { | |
3712 | (char *) "file",(char *) "type", NULL | |
3713 | }; | |
3714 | ||
3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_IconBundleFromFile",kwnames,&obj0,&arg2)) goto fail; | |
3716 | { | |
3717 | arg1 = wxString_in_helper(obj0); | |
3718 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3719 | temp1 = True; |
d14a1e28 RD |
3720 | } |
3721 | { | |
3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3723 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
3724 | ||
3725 | wxPyEndAllowThreads(__tstate); | |
3726 | if (PyErr_Occurred()) SWIG_fail; | |
3727 | } | |
3728 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3729 | { | |
3730 | if (temp1) | |
3731 | delete arg1; | |
3732 | } | |
3733 | return resultobj; | |
3734 | fail: | |
3735 | { | |
3736 | if (temp1) | |
3737 | delete arg1; | |
3738 | } | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
3743 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3744 | PyObject *resultobj; | |
3745 | wxIcon *arg1 = 0 ; | |
3746 | wxIconBundle *result; | |
3747 | PyObject * obj0 = 0 ; | |
3748 | char *kwnames[] = { | |
3749 | (char *) "icon", NULL | |
3750 | }; | |
3751 | ||
3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
3753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3754 | if (arg1 == NULL) { | |
3755 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3756 | } | |
3757 | { | |
3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3759 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
3760 | ||
3761 | wxPyEndAllowThreads(__tstate); | |
3762 | if (PyErr_Occurred()) SWIG_fail; | |
3763 | } | |
3764 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1); | |
3765 | return resultobj; | |
3766 | fail: | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
3771 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject *resultobj; | |
3773 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3774 | PyObject * obj0 = 0 ; | |
3775 | char *kwnames[] = { | |
3776 | (char *) "self", NULL | |
3777 | }; | |
3778 | ||
3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
3780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3781 | { | |
3782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3783 | delete arg1; | |
3784 | ||
3785 | wxPyEndAllowThreads(__tstate); | |
3786 | if (PyErr_Occurred()) SWIG_fail; | |
3787 | } | |
3788 | Py_INCREF(Py_None); resultobj = Py_None; | |
3789 | return resultobj; | |
3790 | fail: | |
3791 | return NULL; | |
3792 | } | |
3793 | ||
3794 | ||
3795 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3796 | PyObject *resultobj; | |
3797 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3798 | wxIcon *arg2 = 0 ; | |
3799 | PyObject * obj0 = 0 ; | |
3800 | PyObject * obj1 = 0 ; | |
3801 | char *kwnames[] = { | |
3802 | (char *) "self",(char *) "icon", NULL | |
3803 | }; | |
3804 | ||
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
3806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3807 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3808 | if (arg2 == NULL) { | |
3809 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3810 | } | |
3811 | { | |
3812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3813 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
3814 | ||
3815 | wxPyEndAllowThreads(__tstate); | |
3816 | if (PyErr_Occurred()) SWIG_fail; | |
3817 | } | |
3818 | Py_INCREF(Py_None); resultobj = Py_None; | |
3819 | return resultobj; | |
3820 | fail: | |
3821 | return NULL; | |
3822 | } | |
3823 | ||
3824 | ||
3825 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3826 | PyObject *resultobj; | |
3827 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3828 | wxString *arg2 = 0 ; | |
3829 | long arg3 ; | |
423f194a | 3830 | bool temp2 = False ; |
d14a1e28 RD |
3831 | PyObject * obj0 = 0 ; |
3832 | PyObject * obj1 = 0 ; | |
3833 | char *kwnames[] = { | |
3834 | (char *) "self",(char *) "file",(char *) "type", NULL | |
3835 | }; | |
3836 | ||
3837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
3838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3839 | { | |
3840 | arg2 = wxString_in_helper(obj1); | |
3841 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3842 | temp2 = True; |
d14a1e28 RD |
3843 | } |
3844 | { | |
3845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3846 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
3847 | ||
3848 | wxPyEndAllowThreads(__tstate); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | } | |
3851 | Py_INCREF(Py_None); resultobj = Py_None; | |
3852 | { | |
3853 | if (temp2) | |
3854 | delete arg2; | |
3855 | } | |
3856 | return resultobj; | |
3857 | fail: | |
3858 | { | |
3859 | if (temp2) | |
3860 | delete arg2; | |
3861 | } | |
3862 | return NULL; | |
3863 | } | |
3864 | ||
3865 | ||
3866 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3867 | PyObject *resultobj; | |
3868 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
3869 | wxSize *arg2 = 0 ; | |
3870 | wxIcon *result; | |
3871 | wxSize temp2 ; | |
3872 | PyObject * obj0 = 0 ; | |
3873 | PyObject * obj1 = 0 ; | |
3874 | char *kwnames[] = { | |
3875 | (char *) "self",(char *) "size", NULL | |
3876 | }; | |
3877 | ||
3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
3879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3880 | { | |
3881 | arg2 = &temp2; | |
3882 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3883 | } | |
3884 | { | |
3885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3886 | { | |
3887 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
3888 | result = (wxIcon *) &_result_ref; | |
3889 | } | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0); | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
3901 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
3902 | PyObject *obj; | |
3903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3904 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
3905 | Py_INCREF(obj); | |
3906 | return Py_BuildValue((char *)""); | |
3907 | } | |
3908 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3909 | PyObject *resultobj; | |
3910 | wxString *arg1 = (wxString *) 0 ; | |
3911 | long arg2 ; | |
3912 | int arg3 = (int) 0 ; | |
3913 | int arg4 = (int) 0 ; | |
3914 | wxCursor *result; | |
3915 | PyObject * obj0 = 0 ; | |
3916 | char *kwnames[] = { | |
3917 | (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
3918 | }; | |
3919 | ||
3920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:new_Cursor",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
3921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3922 | { | |
3923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3924 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
3925 | ||
3926 | wxPyEndAllowThreads(__tstate); | |
3927 | if (PyErr_Occurred()) SWIG_fail; | |
3928 | } | |
3929 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3930 | return resultobj; | |
3931 | fail: | |
3932 | return NULL; | |
3933 | } | |
3934 | ||
3935 | ||
3936 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3937 | PyObject *resultobj; | |
3938 | wxCursor *arg1 = (wxCursor *) 0 ; | |
3939 | PyObject * obj0 = 0 ; | |
3940 | char *kwnames[] = { | |
3941 | (char *) "self", NULL | |
3942 | }; | |
3943 | ||
3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
3945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3946 | { | |
3947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3948 | delete arg1; | |
3949 | ||
3950 | wxPyEndAllowThreads(__tstate); | |
3951 | if (PyErr_Occurred()) SWIG_fail; | |
3952 | } | |
3953 | Py_INCREF(Py_None); resultobj = Py_None; | |
3954 | return resultobj; | |
3955 | fail: | |
3956 | return NULL; | |
3957 | } | |
3958 | ||
3959 | ||
3960 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3961 | PyObject *resultobj; | |
3962 | int arg1 ; | |
3963 | wxCursor *result; | |
3964 | char *kwnames[] = { | |
3965 | (char *) "id", NULL | |
3966 | }; | |
3967 | ||
3968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_StockCursor",kwnames,&arg1)) goto fail; | |
3969 | { | |
3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3971 | result = (wxCursor *)new wxCursor(arg1); | |
3972 | ||
3973 | wxPyEndAllowThreads(__tstate); | |
3974 | if (PyErr_Occurred()) SWIG_fail; | |
3975 | } | |
3976 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
3977 | return resultobj; | |
3978 | fail: | |
3979 | return NULL; | |
3980 | } | |
3981 | ||
3982 | ||
3983 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3984 | PyObject *resultobj; | |
3985 | wxImage *arg1 = 0 ; | |
3986 | wxCursor *result; | |
3987 | PyObject * obj0 = 0 ; | |
3988 | char *kwnames[] = { | |
3989 | (char *) "image", NULL | |
3990 | }; | |
3991 | ||
3992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
3993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3994 | if (arg1 == NULL) { | |
3995 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3996 | } | |
3997 | { | |
3998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3999 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4000 | ||
4001 | wxPyEndAllowThreads(__tstate); | |
4002 | if (PyErr_Occurred()) SWIG_fail; | |
4003 | } | |
4004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4005 | return resultobj; | |
4006 | fail: | |
4007 | return NULL; | |
4008 | } | |
4009 | ||
4010 | ||
4011 | static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4012 | PyObject *resultobj; | |
4013 | PyObject *arg1 = (PyObject *) 0 ; | |
4014 | int arg2 ; | |
4015 | int arg3 ; | |
4016 | int arg4 = (int) -1 ; | |
4017 | int arg5 = (int) -1 ; | |
4018 | PyObject *arg6 = (PyObject *) 0 ; | |
4019 | wxCursor *result; | |
4020 | PyObject * obj0 = 0 ; | |
4021 | PyObject * obj5 = 0 ; | |
4022 | char *kwnames[] = { | |
4023 | (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL | |
4024 | }; | |
4025 | ||
4026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|iiO:new_CursorFromBits",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
4027 | arg1 = obj0; | |
4028 | if (obj5) { | |
4029 | arg6 = obj5; | |
4030 | } | |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6); | |
4034 | ||
4035 | wxPyEndAllowThreads(__tstate); | |
4036 | if (PyErr_Occurred()) SWIG_fail; | |
4037 | } | |
4038 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1); | |
4039 | return resultobj; | |
4040 | fail: | |
4041 | return NULL; | |
4042 | } | |
4043 | ||
4044 | ||
4045 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4046 | PyObject *resultobj; | |
4047 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4048 | long result; | |
4049 | PyObject * obj0 = 0 ; | |
4050 | char *kwnames[] = { | |
4051 | (char *) "self", NULL | |
4052 | }; | |
4053 | ||
4054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4056 | { | |
4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4058 | result = (long)(arg1)->GetHandle(); | |
4059 | ||
4060 | wxPyEndAllowThreads(__tstate); | |
4061 | if (PyErr_Occurred()) SWIG_fail; | |
4062 | } | |
4063 | resultobj = PyInt_FromLong((long)result); | |
4064 | return resultobj; | |
4065 | fail: | |
4066 | return NULL; | |
4067 | } | |
4068 | ||
4069 | ||
4070 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4071 | PyObject *resultobj; | |
4072 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4073 | long arg2 ; | |
4074 | PyObject * obj0 = 0 ; | |
4075 | char *kwnames[] = { | |
4076 | (char *) "self",(char *) "handle", NULL | |
4077 | }; | |
4078 | ||
4079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:Cursor_SetHandle",kwnames,&obj0,&arg2)) goto fail; | |
4080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4081 | { | |
4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4083 | (arg1)->SetHandle(arg2); | |
4084 | ||
4085 | wxPyEndAllowThreads(__tstate); | |
4086 | if (PyErr_Occurred()) SWIG_fail; | |
4087 | } | |
4088 | Py_INCREF(Py_None); resultobj = Py_None; | |
4089 | return resultobj; | |
4090 | fail: | |
4091 | return NULL; | |
4092 | } | |
4093 | ||
4094 | ||
4095 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4096 | PyObject *resultobj; | |
4097 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4098 | bool result; | |
4099 | PyObject * obj0 = 0 ; | |
4100 | char *kwnames[] = { | |
4101 | (char *) "self", NULL | |
4102 | }; | |
4103 | ||
4104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4106 | { | |
4107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4108 | result = (bool)(arg1)->Ok(); | |
4109 | ||
4110 | wxPyEndAllowThreads(__tstate); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | } | |
4113 | resultobj = PyInt_FromLong((long)result); | |
4114 | return resultobj; | |
4115 | fail: | |
4116 | return NULL; | |
4117 | } | |
4118 | ||
4119 | ||
4120 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4121 | PyObject *resultobj; | |
4122 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4123 | int result; | |
4124 | PyObject * obj0 = 0 ; | |
4125 | char *kwnames[] = { | |
4126 | (char *) "self", NULL | |
4127 | }; | |
4128 | ||
4129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4131 | { | |
4132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4133 | result = (int)(arg1)->GetWidth(); | |
4134 | ||
4135 | wxPyEndAllowThreads(__tstate); | |
4136 | if (PyErr_Occurred()) SWIG_fail; | |
4137 | } | |
4138 | resultobj = PyInt_FromLong((long)result); | |
4139 | return resultobj; | |
4140 | fail: | |
4141 | return NULL; | |
4142 | } | |
4143 | ||
4144 | ||
4145 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4146 | PyObject *resultobj; | |
4147 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4148 | int result; | |
4149 | PyObject * obj0 = 0 ; | |
4150 | char *kwnames[] = { | |
4151 | (char *) "self", NULL | |
4152 | }; | |
4153 | ||
4154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
4155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4156 | { | |
4157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4158 | result = (int)(arg1)->GetHeight(); | |
4159 | ||
4160 | wxPyEndAllowThreads(__tstate); | |
4161 | if (PyErr_Occurred()) SWIG_fail; | |
4162 | } | |
4163 | resultobj = PyInt_FromLong((long)result); | |
4164 | return resultobj; | |
4165 | fail: | |
4166 | return NULL; | |
4167 | } | |
4168 | ||
4169 | ||
4170 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4171 | PyObject *resultobj; | |
4172 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4173 | int result; | |
4174 | PyObject * obj0 = 0 ; | |
4175 | char *kwnames[] = { | |
4176 | (char *) "self", NULL | |
4177 | }; | |
4178 | ||
4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
4180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4181 | { | |
4182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4183 | result = (int)(arg1)->GetDepth(); | |
4184 | ||
4185 | wxPyEndAllowThreads(__tstate); | |
4186 | if (PyErr_Occurred()) SWIG_fail; | |
4187 | } | |
4188 | resultobj = PyInt_FromLong((long)result); | |
4189 | return resultobj; | |
4190 | fail: | |
4191 | return NULL; | |
4192 | } | |
4193 | ||
4194 | ||
4195 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4196 | PyObject *resultobj; | |
4197 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4198 | int arg2 ; | |
4199 | PyObject * obj0 = 0 ; | |
4200 | char *kwnames[] = { | |
4201 | (char *) "self",(char *) "w", NULL | |
4202 | }; | |
4203 | ||
4204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
4205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | (arg1)->SetWidth(arg2); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) SWIG_fail; | |
4212 | } | |
4213 | Py_INCREF(Py_None); resultobj = Py_None; | |
4214 | return resultobj; | |
4215 | fail: | |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
4220 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4221 | PyObject *resultobj; | |
4222 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4223 | int arg2 ; | |
4224 | PyObject * obj0 = 0 ; | |
4225 | char *kwnames[] = { | |
4226 | (char *) "self",(char *) "h", NULL | |
4227 | }; | |
4228 | ||
4229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetHeight",kwnames,&obj0,&arg2)) goto fail; | |
4230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4231 | { | |
4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4233 | (arg1)->SetHeight(arg2); | |
4234 | ||
4235 | wxPyEndAllowThreads(__tstate); | |
4236 | if (PyErr_Occurred()) SWIG_fail; | |
4237 | } | |
4238 | Py_INCREF(Py_None); resultobj = Py_None; | |
4239 | return resultobj; | |
4240 | fail: | |
4241 | return NULL; | |
4242 | } | |
4243 | ||
4244 | ||
4245 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4246 | PyObject *resultobj; | |
4247 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4248 | int arg2 ; | |
4249 | PyObject * obj0 = 0 ; | |
4250 | char *kwnames[] = { | |
4251 | (char *) "self",(char *) "d", NULL | |
4252 | }; | |
4253 | ||
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Cursor_SetDepth",kwnames,&obj0,&arg2)) goto fail; | |
4255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4256 | { | |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4258 | (arg1)->SetDepth(arg2); | |
4259 | ||
4260 | wxPyEndAllowThreads(__tstate); | |
4261 | if (PyErr_Occurred()) SWIG_fail; | |
4262 | } | |
4263 | Py_INCREF(Py_None); resultobj = Py_None; | |
4264 | return resultobj; | |
4265 | fail: | |
4266 | return NULL; | |
4267 | } | |
4268 | ||
4269 | ||
4270 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4271 | PyObject *resultobj; | |
4272 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4273 | wxSize *arg2 = 0 ; | |
4274 | wxSize temp2 ; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | PyObject * obj1 = 0 ; | |
4277 | char *kwnames[] = { | |
4278 | (char *) "self",(char *) "size", NULL | |
4279 | }; | |
4280 | ||
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4283 | { | |
4284 | arg2 = &temp2; | |
4285 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4286 | } | |
4287 | { | |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4289 | (arg1)->SetSize((wxSize const &)*arg2); | |
4290 | ||
4291 | wxPyEndAllowThreads(__tstate); | |
4292 | if (PyErr_Occurred()) SWIG_fail; | |
4293 | } | |
4294 | Py_INCREF(Py_None); resultobj = Py_None; | |
4295 | return resultobj; | |
4296 | fail: | |
4297 | return NULL; | |
4298 | } | |
4299 | ||
4300 | ||
4301 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4302 | PyObject *obj; | |
4303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4304 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4305 | Py_INCREF(obj); | |
4306 | return Py_BuildValue((char *)""); | |
4307 | } | |
4308 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4309 | PyObject *resultobj; | |
423f194a RD |
4310 | int arg1 = (int) 0 ; |
4311 | int arg2 = (int) 0 ; | |
4312 | int arg3 = (int) 0 ; | |
4313 | int arg4 = (int) 0 ; | |
d14a1e28 RD |
4314 | wxRegion *result; |
4315 | char *kwnames[] = { | |
4316 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4317 | }; | |
4318 | ||
4319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_Region",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
4320 | { | |
4321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4322 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4323 | ||
4324 | wxPyEndAllowThreads(__tstate); | |
4325 | if (PyErr_Occurred()) SWIG_fail; | |
4326 | } | |
4327 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4328 | return resultobj; | |
4329 | fail: | |
4330 | return NULL; | |
4331 | } | |
4332 | ||
4333 | ||
4334 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4335 | PyObject *resultobj; | |
4336 | wxBitmap *arg1 = 0 ; | |
4337 | wxColour const &arg2_defvalue = wxNullColour ; | |
4338 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4339 | int arg3 = (int) 0 ; | |
4340 | wxRegion *result; | |
4341 | wxColour temp2 ; | |
4342 | PyObject * obj0 = 0 ; | |
4343 | PyObject * obj1 = 0 ; | |
4344 | char *kwnames[] = { | |
4345 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4346 | }; | |
4347 | ||
4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:new_RegionFromBitmap",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4350 | if (arg1 == NULL) { | |
4351 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4352 | } | |
4353 | if (obj1) { | |
4354 | { | |
4355 | arg2 = &temp2; | |
4356 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4357 | } | |
4358 | } | |
4359 | { | |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
4366 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4367 | return resultobj; | |
4368 | fail: | |
4369 | return NULL; | |
4370 | } | |
4371 | ||
4372 | ||
4373 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4374 | PyObject *resultobj; | |
4375 | int arg1 ; | |
4376 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4377 | int arg3 = (int) wxWINDING_RULE ; | |
4378 | wxRegion *result; | |
4379 | PyObject * obj0 = 0 ; | |
4380 | char *kwnames[] = { | |
4381 | (char *) "points",(char *) "fillStyle", NULL | |
4382 | }; | |
4383 | ||
4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:new_RegionFromPoints",kwnames,&obj0,&arg3)) goto fail; | |
4385 | { | |
4386 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4387 | if (arg2 == NULL) SWIG_fail; | |
4388 | } | |
4389 | { | |
4390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4391 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4392 | ||
4393 | wxPyEndAllowThreads(__tstate); | |
4394 | if (PyErr_Occurred()) SWIG_fail; | |
4395 | } | |
4396 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1); | |
4397 | { | |
4398 | if (arg2) delete [] arg2; | |
4399 | } | |
4400 | return resultobj; | |
4401 | fail: | |
4402 | { | |
4403 | if (arg2) delete [] arg2; | |
4404 | } | |
4405 | return NULL; | |
4406 | } | |
4407 | ||
4408 | ||
4409 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4410 | PyObject *resultobj; | |
4411 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4412 | PyObject * obj0 = 0 ; | |
4413 | char *kwnames[] = { | |
4414 | (char *) "self", NULL | |
4415 | }; | |
4416 | ||
4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4419 | { | |
4420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4421 | delete arg1; | |
4422 | ||
4423 | wxPyEndAllowThreads(__tstate); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | Py_INCREF(Py_None); resultobj = Py_None; | |
4427 | return resultobj; | |
4428 | fail: | |
4429 | return NULL; | |
4430 | } | |
4431 | ||
4432 | ||
4433 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4434 | PyObject *resultobj; | |
4435 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4436 | PyObject * obj0 = 0 ; | |
4437 | char *kwnames[] = { | |
4438 | (char *) "self", NULL | |
4439 | }; | |
4440 | ||
4441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4443 | { | |
4444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4445 | (arg1)->Clear(); | |
4446 | ||
4447 | wxPyEndAllowThreads(__tstate); | |
4448 | if (PyErr_Occurred()) SWIG_fail; | |
4449 | } | |
4450 | Py_INCREF(Py_None); resultobj = Py_None; | |
4451 | return resultobj; | |
4452 | fail: | |
4453 | return NULL; | |
4454 | } | |
4455 | ||
4456 | ||
4457 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4458 | PyObject *resultobj; | |
4459 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4460 | int arg2 ; |
4461 | int arg3 ; | |
d14a1e28 RD |
4462 | bool result; |
4463 | PyObject * obj0 = 0 ; | |
4464 | char *kwnames[] = { | |
4465 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4466 | }; | |
4467 | ||
4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Offset",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4470 | { | |
4471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4472 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4473 | ||
4474 | wxPyEndAllowThreads(__tstate); | |
4475 | if (PyErr_Occurred()) SWIG_fail; | |
4476 | } | |
4477 | resultobj = PyInt_FromLong((long)result); | |
4478 | return resultobj; | |
4479 | fail: | |
4480 | return NULL; | |
4481 | } | |
4482 | ||
4483 | ||
4484 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4485 | PyObject *resultobj; | |
4486 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4487 | int arg2 ; |
4488 | int arg3 ; | |
d14a1e28 RD |
4489 | int result; |
4490 | PyObject * obj0 = 0 ; | |
4491 | char *kwnames[] = { | |
4492 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4493 | }; | |
4494 | ||
4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Region_Contains",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4497 | { | |
4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4499 | result = (int)(arg1)->Contains(arg2,arg3); | |
4500 | ||
4501 | wxPyEndAllowThreads(__tstate); | |
4502 | if (PyErr_Occurred()) SWIG_fail; | |
4503 | } | |
4504 | resultobj = PyInt_FromLong((long)result); | |
4505 | return resultobj; | |
4506 | fail: | |
4507 | return NULL; | |
4508 | } | |
4509 | ||
4510 | ||
4511 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4512 | PyObject *resultobj; | |
4513 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4514 | wxPoint *arg2 = 0 ; | |
4515 | int result; | |
4516 | wxPoint temp2 ; | |
4517 | PyObject * obj0 = 0 ; | |
4518 | PyObject * obj1 = 0 ; | |
4519 | char *kwnames[] = { | |
4520 | (char *) "self",(char *) "pt", NULL | |
4521 | }; | |
4522 | ||
4523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4525 | { | |
4526 | arg2 = &temp2; | |
4527 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4528 | } | |
4529 | { | |
4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4531 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4532 | ||
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | resultobj = PyInt_FromLong((long)result); | |
4537 | return resultobj; | |
4538 | fail: | |
4539 | return NULL; | |
4540 | } | |
4541 | ||
4542 | ||
4543 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4544 | PyObject *resultobj; | |
4545 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4546 | wxRect *arg2 = 0 ; | |
4547 | int result; | |
4548 | wxRect temp2 ; | |
4549 | PyObject * obj0 = 0 ; | |
4550 | PyObject * obj1 = 0 ; | |
4551 | char *kwnames[] = { | |
4552 | (char *) "self",(char *) "rect", NULL | |
4553 | }; | |
4554 | ||
4555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4557 | { | |
4558 | arg2 = &temp2; | |
4559 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4560 | } | |
4561 | { | |
4562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4563 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4564 | ||
4565 | wxPyEndAllowThreads(__tstate); | |
4566 | if (PyErr_Occurred()) SWIG_fail; | |
4567 | } | |
4568 | resultobj = PyInt_FromLong((long)result); | |
4569 | return resultobj; | |
4570 | fail: | |
4571 | return NULL; | |
4572 | } | |
4573 | ||
4574 | ||
4575 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4576 | PyObject *resultobj; | |
4577 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4578 | int arg2 ; |
4579 | int arg3 ; | |
4580 | int arg4 ; | |
4581 | int arg5 ; | |
d14a1e28 RD |
4582 | int result; |
4583 | PyObject * obj0 = 0 ; | |
4584 | char *kwnames[] = { | |
4585 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4586 | }; | |
4587 | ||
4588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_ContainsRectDim",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4590 | { | |
4591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4592 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4593 | ||
4594 | wxPyEndAllowThreads(__tstate); | |
4595 | if (PyErr_Occurred()) SWIG_fail; | |
4596 | } | |
4597 | resultobj = PyInt_FromLong((long)result); | |
4598 | return resultobj; | |
4599 | fail: | |
4600 | return NULL; | |
4601 | } | |
4602 | ||
4603 | ||
4604 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4605 | PyObject *resultobj; | |
4606 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4607 | wxRect result; | |
4608 | PyObject * obj0 = 0 ; | |
4609 | char *kwnames[] = { | |
4610 | (char *) "self", NULL | |
4611 | }; | |
4612 | ||
4613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4615 | { | |
4616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4617 | result = (arg1)->GetBox(); | |
4618 | ||
4619 | wxPyEndAllowThreads(__tstate); | |
4620 | if (PyErr_Occurred()) SWIG_fail; | |
4621 | } | |
4622 | { | |
4623 | wxRect * resultptr; | |
4624 | resultptr = new wxRect((wxRect &) result); | |
4625 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
4626 | } | |
4627 | return resultobj; | |
4628 | fail: | |
4629 | return NULL; | |
4630 | } | |
4631 | ||
4632 | ||
4633 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4634 | PyObject *resultobj; | |
4635 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4636 | int arg2 ; |
4637 | int arg3 ; | |
4638 | int arg4 ; | |
4639 | int arg5 ; | |
d14a1e28 RD |
4640 | bool result; |
4641 | PyObject * obj0 = 0 ; | |
4642 | char *kwnames[] = { | |
4643 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4644 | }; | |
4645 | ||
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Intersect",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4648 | { | |
4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4650 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4651 | ||
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | resultobj = PyInt_FromLong((long)result); | |
4656 | return resultobj; | |
4657 | fail: | |
4658 | return NULL; | |
4659 | } | |
4660 | ||
4661 | ||
4662 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4663 | PyObject *resultobj; | |
4664 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4665 | wxRect *arg2 = 0 ; | |
4666 | bool result; | |
4667 | wxRect temp2 ; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | PyObject * obj1 = 0 ; | |
4670 | char *kwnames[] = { | |
4671 | (char *) "self",(char *) "rect", NULL | |
4672 | }; | |
4673 | ||
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4676 | { | |
4677 | arg2 = &temp2; | |
4678 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4679 | } | |
4680 | { | |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
4687 | resultobj = PyInt_FromLong((long)result); | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
4694 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject *resultobj; | |
4696 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4697 | wxRegion *arg2 = 0 ; | |
4698 | bool result; | |
4699 | PyObject * obj0 = 0 ; | |
4700 | PyObject * obj1 = 0 ; | |
4701 | char *kwnames[] = { | |
4702 | (char *) "self",(char *) "region", NULL | |
4703 | }; | |
4704 | ||
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
4706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4707 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4708 | if (arg2 == NULL) { | |
4709 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4710 | } | |
4711 | { | |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4713 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
4717 | } | |
4718 | resultobj = PyInt_FromLong((long)result); | |
4719 | return resultobj; | |
4720 | fail: | |
4721 | return NULL; | |
4722 | } | |
4723 | ||
4724 | ||
4725 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4726 | PyObject *resultobj; | |
4727 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4728 | bool result; | |
4729 | PyObject * obj0 = 0 ; | |
4730 | char *kwnames[] = { | |
4731 | (char *) "self", NULL | |
4732 | }; | |
4733 | ||
4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
4735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4736 | { | |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | result = (bool)(arg1)->IsEmpty(); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
4743 | resultobj = PyInt_FromLong((long)result); | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4753 | int arg2 ; |
4754 | int arg3 ; | |
4755 | int arg4 ; | |
4756 | int arg5 ; | |
d14a1e28 RD |
4757 | bool result; |
4758 | PyObject * obj0 = 0 ; | |
4759 | char *kwnames[] = { | |
4760 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4761 | }; | |
4762 | ||
4763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Union",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4765 | { | |
4766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4767 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
4768 | ||
4769 | wxPyEndAllowThreads(__tstate); | |
4770 | if (PyErr_Occurred()) SWIG_fail; | |
4771 | } | |
4772 | resultobj = PyInt_FromLong((long)result); | |
4773 | return resultobj; | |
4774 | fail: | |
4775 | return NULL; | |
4776 | } | |
4777 | ||
4778 | ||
4779 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4780 | PyObject *resultobj; | |
4781 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4782 | wxRect *arg2 = 0 ; | |
4783 | bool result; | |
4784 | wxRect temp2 ; | |
4785 | PyObject * obj0 = 0 ; | |
4786 | PyObject * obj1 = 0 ; | |
4787 | char *kwnames[] = { | |
4788 | (char *) "self",(char *) "rect", NULL | |
4789 | }; | |
4790 | ||
4791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
4792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4793 | { | |
4794 | arg2 = &temp2; | |
4795 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4796 | } | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | resultobj = PyInt_FromLong((long)result); | |
4805 | return resultobj; | |
4806 | fail: | |
4807 | return NULL; | |
4808 | } | |
4809 | ||
4810 | ||
4811 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4812 | PyObject *resultobj; | |
4813 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4814 | wxRegion *arg2 = 0 ; | |
4815 | bool result; | |
4816 | PyObject * obj0 = 0 ; | |
4817 | PyObject * obj1 = 0 ; | |
4818 | char *kwnames[] = { | |
4819 | (char *) "self",(char *) "region", NULL | |
4820 | }; | |
4821 | ||
4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
4823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4824 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4825 | if (arg2 == NULL) { | |
4826 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4827 | } | |
4828 | { | |
4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4830 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
4831 | ||
4832 | wxPyEndAllowThreads(__tstate); | |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
4834 | } | |
4835 | resultobj = PyInt_FromLong((long)result); | |
4836 | return resultobj; | |
4837 | fail: | |
4838 | return NULL; | |
4839 | } | |
4840 | ||
4841 | ||
4842 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4843 | PyObject *resultobj; | |
4844 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4845 | int arg2 ; |
4846 | int arg3 ; | |
4847 | int arg4 ; | |
4848 | int arg5 ; | |
d14a1e28 RD |
4849 | bool result; |
4850 | PyObject * obj0 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Subtract",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4857 | { | |
4858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4859 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
4860 | ||
4861 | wxPyEndAllowThreads(__tstate); | |
4862 | if (PyErr_Occurred()) SWIG_fail; | |
4863 | } | |
4864 | resultobj = PyInt_FromLong((long)result); | |
4865 | return resultobj; | |
4866 | fail: | |
4867 | return NULL; | |
4868 | } | |
4869 | ||
4870 | ||
4871 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4872 | PyObject *resultobj; | |
4873 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4874 | wxRect *arg2 = 0 ; | |
4875 | bool result; | |
4876 | wxRect temp2 ; | |
4877 | PyObject * obj0 = 0 ; | |
4878 | PyObject * obj1 = 0 ; | |
4879 | char *kwnames[] = { | |
4880 | (char *) "self",(char *) "rect", NULL | |
4881 | }; | |
4882 | ||
4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
4884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4885 | { | |
4886 | arg2 = &temp2; | |
4887 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4888 | } | |
4889 | { | |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
4892 | ||
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
4896 | resultobj = PyInt_FromLong((long)result); | |
4897 | return resultobj; | |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4904 | PyObject *resultobj; | |
4905 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4906 | wxRegion *arg2 = 0 ; | |
4907 | bool result; | |
4908 | PyObject * obj0 = 0 ; | |
4909 | PyObject * obj1 = 0 ; | |
4910 | char *kwnames[] = { | |
4911 | (char *) "self",(char *) "region", NULL | |
4912 | }; | |
4913 | ||
4914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
4915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4916 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4917 | if (arg2 == NULL) { | |
4918 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4919 | } | |
4920 | { | |
4921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4922 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
4923 | ||
4924 | wxPyEndAllowThreads(__tstate); | |
4925 | if (PyErr_Occurred()) SWIG_fail; | |
4926 | } | |
4927 | resultobj = PyInt_FromLong((long)result); | |
4928 | return resultobj; | |
4929 | fail: | |
4930 | return NULL; | |
4931 | } | |
4932 | ||
4933 | ||
4934 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4935 | PyObject *resultobj; | |
4936 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4937 | int arg2 ; |
4938 | int arg3 ; | |
4939 | int arg4 ; | |
4940 | int arg5 ; | |
d14a1e28 RD |
4941 | bool result; |
4942 | PyObject * obj0 = 0 ; | |
4943 | char *kwnames[] = { | |
4944 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4945 | }; | |
4946 | ||
4947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Region_Xor",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
4948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4949 | { | |
4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4951 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
4952 | ||
4953 | wxPyEndAllowThreads(__tstate); | |
4954 | if (PyErr_Occurred()) SWIG_fail; | |
4955 | } | |
4956 | resultobj = PyInt_FromLong((long)result); | |
4957 | return resultobj; | |
4958 | fail: | |
4959 | return NULL; | |
4960 | } | |
4961 | ||
4962 | ||
4963 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4964 | PyObject *resultobj; | |
4965 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4966 | wxRect *arg2 = 0 ; | |
4967 | bool result; | |
4968 | wxRect temp2 ; | |
4969 | PyObject * obj0 = 0 ; | |
4970 | PyObject * obj1 = 0 ; | |
4971 | char *kwnames[] = { | |
4972 | (char *) "self",(char *) "rect", NULL | |
4973 | }; | |
4974 | ||
4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
4976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4977 | { | |
4978 | arg2 = &temp2; | |
4979 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4980 | } | |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | resultobj = PyInt_FromLong((long)result); | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
4995 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4996 | PyObject *resultobj; | |
4997 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4998 | wxRegion *arg2 = 0 ; | |
4999 | bool result; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | PyObject * obj1 = 0 ; | |
5002 | char *kwnames[] = { | |
5003 | (char *) "self",(char *) "region", NULL | |
5004 | }; | |
5005 | ||
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5008 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5009 | if (arg2 == NULL) { | |
5010 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5011 | } | |
5012 | { | |
5013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5014 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5015 | ||
5016 | wxPyEndAllowThreads(__tstate); | |
5017 | if (PyErr_Occurred()) SWIG_fail; | |
5018 | } | |
5019 | resultobj = PyInt_FromLong((long)result); | |
5020 | return resultobj; | |
5021 | fail: | |
5022 | return NULL; | |
5023 | } | |
5024 | ||
5025 | ||
5026 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5027 | PyObject *resultobj; | |
5028 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5029 | SwigValueWrapper< wxBitmap > result; | |
5030 | PyObject * obj0 = 0 ; | |
5031 | char *kwnames[] = { | |
5032 | (char *) "self", NULL | |
5033 | }; | |
5034 | ||
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5037 | { | |
5038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5039 | result = (arg1)->ConvertToBitmap(); | |
5040 | ||
5041 | wxPyEndAllowThreads(__tstate); | |
5042 | if (PyErr_Occurred()) SWIG_fail; | |
5043 | } | |
5044 | { | |
5045 | wxBitmap * resultptr; | |
5046 | resultptr = new wxBitmap((wxBitmap &) result); | |
5047 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
5048 | } | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
5055 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5056 | PyObject *resultobj; | |
5057 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5058 | wxBitmap *arg2 = 0 ; | |
5059 | wxColour const &arg3_defvalue = wxNullColour ; | |
5060 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5061 | int arg4 = (int) 0 ; | |
5062 | bool result; | |
5063 | wxColour temp3 ; | |
5064 | PyObject * obj0 = 0 ; | |
5065 | PyObject * obj1 = 0 ; | |
5066 | PyObject * obj2 = 0 ; | |
5067 | char *kwnames[] = { | |
5068 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5069 | }; | |
5070 | ||
5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5074 | if (arg2 == NULL) { | |
5075 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5076 | } | |
5077 | if (obj2) { | |
5078 | { | |
5079 | arg3 = &temp3; | |
5080 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5081 | } | |
5082 | } | |
5083 | { | |
5084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5085 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5086 | ||
5087 | wxPyEndAllowThreads(__tstate); | |
5088 | if (PyErr_Occurred()) SWIG_fail; | |
5089 | } | |
5090 | resultobj = PyInt_FromLong((long)result); | |
5091 | return resultobj; | |
5092 | fail: | |
5093 | return NULL; | |
5094 | } | |
5095 | ||
5096 | ||
5097 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5098 | PyObject *obj; | |
5099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5100 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5101 | Py_INCREF(obj); | |
5102 | return Py_BuildValue((char *)""); | |
5103 | } | |
5104 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5105 | PyObject *resultobj; | |
5106 | wxRegion *arg1 = 0 ; | |
5107 | wxRegionIterator *result; | |
5108 | PyObject * obj0 = 0 ; | |
5109 | char *kwnames[] = { | |
5110 | (char *) "region", NULL | |
5111 | }; | |
5112 | ||
5113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5115 | if (arg1 == NULL) { | |
5116 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5117 | } | |
5118 | { | |
5119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5120 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5121 | ||
5122 | wxPyEndAllowThreads(__tstate); | |
5123 | if (PyErr_Occurred()) SWIG_fail; | |
5124 | } | |
5125 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1); | |
5126 | return resultobj; | |
5127 | fail: | |
5128 | return NULL; | |
5129 | } | |
5130 | ||
5131 | ||
5132 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject *resultobj; | |
5134 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5135 | PyObject * obj0 = 0 ; | |
5136 | char *kwnames[] = { | |
5137 | (char *) "self", NULL | |
5138 | }; | |
5139 | ||
5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5142 | { | |
5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5144 | delete arg1; | |
5145 | ||
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | Py_INCREF(Py_None); resultobj = Py_None; | |
5150 | return resultobj; | |
5151 | fail: | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
5156 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5157 | PyObject *resultobj; | |
5158 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5159 | int result; |
d14a1e28 RD |
5160 | PyObject * obj0 = 0 ; |
5161 | char *kwnames[] = { | |
5162 | (char *) "self", NULL | |
5163 | }; | |
5164 | ||
5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5167 | { | |
5168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5169 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5170 | |
5171 | wxPyEndAllowThreads(__tstate); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
5173 | } | |
5174 | resultobj = PyInt_FromLong((long)result); | |
5175 | return resultobj; | |
5176 | fail: | |
5177 | return NULL; | |
5178 | } | |
5179 | ||
5180 | ||
5181 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5182 | PyObject *resultobj; | |
5183 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5184 | int result; |
d14a1e28 RD |
5185 | PyObject * obj0 = 0 ; |
5186 | char *kwnames[] = { | |
5187 | (char *) "self", NULL | |
5188 | }; | |
5189 | ||
5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5192 | { | |
5193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5194 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5195 | |
5196 | wxPyEndAllowThreads(__tstate); | |
5197 | if (PyErr_Occurred()) SWIG_fail; | |
5198 | } | |
5199 | resultobj = PyInt_FromLong((long)result); | |
5200 | return resultobj; | |
5201 | fail: | |
5202 | return NULL; | |
5203 | } | |
5204 | ||
5205 | ||
5206 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5207 | PyObject *resultobj; | |
5208 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5209 | int result; |
d14a1e28 RD |
5210 | PyObject * obj0 = 0 ; |
5211 | char *kwnames[] = { | |
5212 | (char *) "self", NULL | |
5213 | }; | |
5214 | ||
5215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5219 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5220 | |
5221 | wxPyEndAllowThreads(__tstate); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | } | |
5224 | resultobj = PyInt_FromLong((long)result); | |
5225 | return resultobj; | |
5226 | fail: | |
5227 | return NULL; | |
5228 | } | |
5229 | ||
5230 | ||
5231 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5232 | PyObject *resultobj; | |
5233 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5234 | int result; |
d14a1e28 RD |
5235 | PyObject * obj0 = 0 ; |
5236 | char *kwnames[] = { | |
5237 | (char *) "self", NULL | |
5238 | }; | |
5239 | ||
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5244 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5245 | |
5246 | wxPyEndAllowThreads(__tstate); | |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
5248 | } | |
5249 | resultobj = PyInt_FromLong((long)result); | |
5250 | return resultobj; | |
5251 | fail: | |
5252 | return NULL; | |
5253 | } | |
5254 | ||
5255 | ||
5256 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject *resultobj; | |
5258 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5259 | int result; |
d14a1e28 RD |
5260 | PyObject * obj0 = 0 ; |
5261 | char *kwnames[] = { | |
5262 | (char *) "self", NULL | |
5263 | }; | |
5264 | ||
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5267 | { | |
5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5269 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5270 | |
5271 | wxPyEndAllowThreads(__tstate); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
5274 | resultobj = PyInt_FromLong((long)result); | |
5275 | return resultobj; | |
5276 | fail: | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5284 | int result; |
d14a1e28 RD |
5285 | PyObject * obj0 = 0 ; |
5286 | char *kwnames[] = { | |
5287 | (char *) "self", NULL | |
5288 | }; | |
5289 | ||
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5294 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5295 | |
5296 | wxPyEndAllowThreads(__tstate); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
5299 | resultobj = PyInt_FromLong((long)result); | |
5300 | return resultobj; | |
5301 | fail: | |
5302 | return NULL; | |
5303 | } | |
5304 | ||
5305 | ||
5306 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5307 | PyObject *resultobj; | |
5308 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5309 | wxRect result; | |
5310 | PyObject * obj0 = 0 ; | |
5311 | char *kwnames[] = { | |
5312 | (char *) "self", NULL | |
5313 | }; | |
5314 | ||
5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5317 | { | |
5318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5319 | result = (arg1)->GetRect(); | |
5320 | ||
5321 | wxPyEndAllowThreads(__tstate); | |
5322 | if (PyErr_Occurred()) SWIG_fail; | |
5323 | } | |
5324 | { | |
5325 | wxRect * resultptr; | |
5326 | resultptr = new wxRect((wxRect &) result); | |
5327 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5328 | } | |
5329 | return resultobj; | |
5330 | fail: | |
5331 | return NULL; | |
5332 | } | |
5333 | ||
5334 | ||
5335 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5336 | PyObject *resultobj; | |
5337 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5338 | bool result; | |
5339 | PyObject * obj0 = 0 ; | |
5340 | char *kwnames[] = { | |
5341 | (char *) "self", NULL | |
5342 | }; | |
5343 | ||
5344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5346 | { | |
5347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5348 | result = (bool)(arg1)->HaveRects(); | |
5349 | ||
5350 | wxPyEndAllowThreads(__tstate); | |
5351 | if (PyErr_Occurred()) SWIG_fail; | |
5352 | } | |
5353 | resultobj = PyInt_FromLong((long)result); | |
5354 | return resultobj; | |
5355 | fail: | |
5356 | return NULL; | |
5357 | } | |
5358 | ||
5359 | ||
5360 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5361 | PyObject *resultobj; | |
5362 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5363 | PyObject * obj0 = 0 ; | |
5364 | char *kwnames[] = { | |
5365 | (char *) "self", NULL | |
5366 | }; | |
5367 | ||
5368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5370 | { | |
5371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5372 | (arg1)->Reset(); | |
5373 | ||
5374 | wxPyEndAllowThreads(__tstate); | |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
5376 | } | |
5377 | Py_INCREF(Py_None); resultobj = Py_None; | |
5378 | return resultobj; | |
5379 | fail: | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5387 | PyObject * obj0 = 0 ; | |
5388 | char *kwnames[] = { | |
5389 | (char *) "self", NULL | |
5390 | }; | |
5391 | ||
5392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5394 | { | |
5395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5396 | wxRegionIterator_Next(arg1); | |
5397 | ||
5398 | wxPyEndAllowThreads(__tstate); | |
5399 | if (PyErr_Occurred()) SWIG_fail; | |
5400 | } | |
5401 | Py_INCREF(Py_None); resultobj = Py_None; | |
5402 | return resultobj; | |
5403 | fail: | |
5404 | return NULL; | |
5405 | } | |
5406 | ||
5407 | ||
5408 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5409 | PyObject *resultobj; | |
5410 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5411 | bool result; | |
5412 | PyObject * obj0 = 0 ; | |
5413 | char *kwnames[] = { | |
5414 | (char *) "self", NULL | |
5415 | }; | |
5416 | ||
5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5419 | { | |
5420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5421 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5422 | ||
5423 | wxPyEndAllowThreads(__tstate); | |
5424 | if (PyErr_Occurred()) SWIG_fail; | |
5425 | } | |
5426 | resultobj = PyInt_FromLong((long)result); | |
5427 | return resultobj; | |
5428 | fail: | |
5429 | return NULL; | |
5430 | } | |
5431 | ||
5432 | ||
5433 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5434 | PyObject *obj; | |
5435 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5436 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5437 | Py_INCREF(obj); | |
5438 | return Py_BuildValue((char *)""); | |
5439 | } | |
5440 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5441 | PyObject *resultobj; | |
5442 | wxNativeFontInfo *result; | |
5443 | char *kwnames[] = { | |
5444 | NULL | |
5445 | }; | |
5446 | ||
5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5448 | { | |
5449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5450 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5451 | ||
5452 | wxPyEndAllowThreads(__tstate); | |
5453 | if (PyErr_Occurred()) SWIG_fail; | |
5454 | } | |
5455 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1); | |
5456 | return resultobj; | |
5457 | fail: | |
5458 | return NULL; | |
5459 | } | |
5460 | ||
5461 | ||
5462 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5463 | PyObject *resultobj; | |
5464 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | char *kwnames[] = { | |
5467 | (char *) "self", NULL | |
5468 | }; | |
5469 | ||
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5472 | { | |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5474 | delete arg1; | |
5475 | ||
5476 | wxPyEndAllowThreads(__tstate); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
5479 | Py_INCREF(Py_None); resultobj = Py_None; | |
5480 | return resultobj; | |
5481 | fail: | |
5482 | return NULL; | |
5483 | } | |
5484 | ||
5485 | ||
5486 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5487 | PyObject *resultobj; | |
5488 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5489 | PyObject * obj0 = 0 ; | |
5490 | char *kwnames[] = { | |
5491 | (char *) "self", NULL | |
5492 | }; | |
5493 | ||
5494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5496 | { | |
5497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5498 | (arg1)->Init(); | |
5499 | ||
5500 | wxPyEndAllowThreads(__tstate); | |
5501 | if (PyErr_Occurred()) SWIG_fail; | |
5502 | } | |
5503 | Py_INCREF(Py_None); resultobj = Py_None; | |
5504 | return resultobj; | |
5505 | fail: | |
5506 | return NULL; | |
5507 | } | |
5508 | ||
5509 | ||
5510 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5511 | PyObject *resultobj; | |
5512 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5513 | wxFont *arg2 = 0 ; | |
5514 | PyObject * obj0 = 0 ; | |
5515 | PyObject * obj1 = 0 ; | |
5516 | char *kwnames[] = { | |
5517 | (char *) "self",(char *) "font", NULL | |
5518 | }; | |
5519 | ||
5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5523 | if (arg2 == NULL) { | |
5524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5525 | } | |
5526 | { | |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5528 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5529 | ||
5530 | wxPyEndAllowThreads(__tstate); | |
5531 | if (PyErr_Occurred()) SWIG_fail; | |
5532 | } | |
5533 | Py_INCREF(Py_None); resultobj = Py_None; | |
5534 | return resultobj; | |
5535 | fail: | |
5536 | return NULL; | |
5537 | } | |
5538 | ||
5539 | ||
5540 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject *resultobj; | |
5542 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5543 | int result; | |
5544 | PyObject * obj0 = 0 ; | |
5545 | char *kwnames[] = { | |
5546 | (char *) "self", NULL | |
5547 | }; | |
5548 | ||
5549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
5558 | resultobj = PyInt_FromLong((long)result); | |
5559 | return resultobj; | |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
5565 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5566 | PyObject *resultobj; | |
5567 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5568 | int result; | |
5569 | PyObject * obj0 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "self", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
5575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5576 | { | |
5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5578 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5579 | ||
5580 | wxPyEndAllowThreads(__tstate); | |
5581 | if (PyErr_Occurred()) SWIG_fail; | |
5582 | } | |
5583 | resultobj = PyInt_FromLong((long)result); | |
5584 | return resultobj; | |
5585 | fail: | |
5586 | return NULL; | |
5587 | } | |
5588 | ||
5589 | ||
5590 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject *resultobj; | |
5592 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5593 | int result; | |
5594 | PyObject * obj0 = 0 ; | |
5595 | char *kwnames[] = { | |
5596 | (char *) "self", NULL | |
5597 | }; | |
5598 | ||
5599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
5600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5601 | { | |
5602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5603 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5604 | ||
5605 | wxPyEndAllowThreads(__tstate); | |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
5607 | } | |
5608 | resultobj = PyInt_FromLong((long)result); | |
5609 | return resultobj; | |
5610 | fail: | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
5615 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject *resultobj; | |
5617 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5618 | bool result; | |
5619 | PyObject * obj0 = 0 ; | |
5620 | char *kwnames[] = { | |
5621 | (char *) "self", NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
5625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5626 | { | |
5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5628 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
5629 | ||
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
5633 | resultobj = PyInt_FromLong((long)result); | |
5634 | return resultobj; | |
5635 | fail: | |
5636 | return NULL; | |
5637 | } | |
5638 | ||
5639 | ||
5640 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5641 | PyObject *resultobj; | |
5642 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5643 | wxString result; | |
5644 | PyObject * obj0 = 0 ; | |
5645 | char *kwnames[] = { | |
5646 | (char *) "self", NULL | |
5647 | }; | |
5648 | ||
5649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
5650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5651 | { | |
5652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5653 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
5654 | ||
5655 | wxPyEndAllowThreads(__tstate); | |
5656 | if (PyErr_Occurred()) SWIG_fail; | |
5657 | } | |
5658 | { | |
5659 | #if wxUSE_UNICODE | |
5660 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5661 | #else | |
5662 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5663 | #endif | |
5664 | } | |
5665 | return resultobj; | |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
5671 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject *resultobj; | |
5673 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5674 | int result; | |
5675 | PyObject * obj0 = 0 ; | |
5676 | char *kwnames[] = { | |
5677 | (char *) "self", NULL | |
5678 | }; | |
5679 | ||
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
5681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5682 | { | |
5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5684 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
5685 | ||
5686 | wxPyEndAllowThreads(__tstate); | |
5687 | if (PyErr_Occurred()) SWIG_fail; | |
5688 | } | |
5689 | resultobj = PyInt_FromLong((long)result); | |
5690 | return resultobj; | |
5691 | fail: | |
5692 | return NULL; | |
5693 | } | |
5694 | ||
5695 | ||
5696 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject *resultobj; | |
5698 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5699 | int result; | |
5700 | PyObject * obj0 = 0 ; | |
5701 | char *kwnames[] = { | |
5702 | (char *) "self", NULL | |
5703 | }; | |
5704 | ||
5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
5706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5707 | { | |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
5710 | ||
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | resultobj = PyInt_FromLong((long)result); | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5722 | PyObject *resultobj; | |
5723 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5724 | int arg2 ; | |
5725 | PyObject * obj0 = 0 ; | |
5726 | char *kwnames[] = { | |
5727 | (char *) "self",(char *) "pointsize", NULL | |
5728 | }; | |
5729 | ||
5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
5731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5732 | { | |
5733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5734 | (arg1)->SetPointSize(arg2); | |
5735 | ||
5736 | wxPyEndAllowThreads(__tstate); | |
5737 | if (PyErr_Occurred()) SWIG_fail; | |
5738 | } | |
5739 | Py_INCREF(Py_None); resultobj = Py_None; | |
5740 | return resultobj; | |
5741 | fail: | |
5742 | return NULL; | |
5743 | } | |
5744 | ||
5745 | ||
5746 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject *resultobj; | |
5748 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5749 | int arg2 ; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | char *kwnames[] = { | |
5752 | (char *) "self",(char *) "style", NULL | |
5753 | }; | |
5754 | ||
5755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
5756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5757 | { | |
5758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5759 | (arg1)->SetStyle((wxFontStyle )arg2); | |
5760 | ||
5761 | wxPyEndAllowThreads(__tstate); | |
5762 | if (PyErr_Occurred()) SWIG_fail; | |
5763 | } | |
5764 | Py_INCREF(Py_None); resultobj = Py_None; | |
5765 | return resultobj; | |
5766 | fail: | |
5767 | return NULL; | |
5768 | } | |
5769 | ||
5770 | ||
5771 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5772 | PyObject *resultobj; | |
5773 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5774 | int arg2 ; | |
5775 | PyObject * obj0 = 0 ; | |
5776 | char *kwnames[] = { | |
5777 | (char *) "self",(char *) "weight", NULL | |
5778 | }; | |
5779 | ||
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
5781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5782 | { | |
5783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5784 | (arg1)->SetWeight((wxFontWeight )arg2); | |
5785 | ||
5786 | wxPyEndAllowThreads(__tstate); | |
5787 | if (PyErr_Occurred()) SWIG_fail; | |
5788 | } | |
5789 | Py_INCREF(Py_None); resultobj = Py_None; | |
5790 | return resultobj; | |
5791 | fail: | |
5792 | return NULL; | |
5793 | } | |
5794 | ||
5795 | ||
5796 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5797 | PyObject *resultobj; | |
5798 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5799 | bool arg2 ; | |
5800 | PyObject * obj0 = 0 ; | |
5801 | PyObject * obj1 = 0 ; | |
5802 | char *kwnames[] = { | |
5803 | (char *) "self",(char *) "underlined", NULL | |
5804 | }; | |
5805 | ||
5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
5807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5808 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | { | |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5812 | (arg1)->SetUnderlined(arg2); | |
5813 | ||
5814 | wxPyEndAllowThreads(__tstate); | |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
5816 | } | |
5817 | Py_INCREF(Py_None); resultobj = Py_None; | |
5818 | return resultobj; | |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
5824 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5825 | PyObject *resultobj; | |
5826 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5827 | wxString arg2 ; | |
d14a1e28 RD |
5828 | PyObject * obj0 = 0 ; |
5829 | PyObject * obj1 = 0 ; | |
5830 | char *kwnames[] = { | |
5831 | (char *) "self",(char *) "facename", NULL | |
5832 | }; | |
5833 | ||
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
5835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
5836 | { |
5837 | wxString* sptr = wxString_in_helper(obj1); | |
5838 | if (sptr == NULL) SWIG_fail; | |
5839 | arg2 = *sptr; | |
5840 | delete sptr; | |
5841 | } | |
d14a1e28 RD |
5842 | { |
5843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5844 | (arg1)->SetFaceName(arg2); | |
5845 | ||
5846 | wxPyEndAllowThreads(__tstate); | |
5847 | if (PyErr_Occurred()) SWIG_fail; | |
5848 | } | |
5849 | Py_INCREF(Py_None); resultobj = Py_None; | |
5850 | return resultobj; | |
5851 | fail: | |
5852 | return NULL; | |
5853 | } | |
5854 | ||
5855 | ||
5856 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5857 | PyObject *resultobj; | |
5858 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5859 | int arg2 ; | |
5860 | PyObject * obj0 = 0 ; | |
5861 | char *kwnames[] = { | |
5862 | (char *) "self",(char *) "family", NULL | |
5863 | }; | |
5864 | ||
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
5866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5867 | { | |
5868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5869 | (arg1)->SetFamily((wxFontFamily )arg2); | |
5870 | ||
5871 | wxPyEndAllowThreads(__tstate); | |
5872 | if (PyErr_Occurred()) SWIG_fail; | |
5873 | } | |
5874 | Py_INCREF(Py_None); resultobj = Py_None; | |
5875 | return resultobj; | |
5876 | fail: | |
5877 | return NULL; | |
5878 | } | |
5879 | ||
5880 | ||
5881 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject *resultobj; | |
5883 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5884 | int arg2 ; | |
5885 | PyObject * obj0 = 0 ; | |
5886 | char *kwnames[] = { | |
5887 | (char *) "self",(char *) "encoding", NULL | |
5888 | }; | |
5889 | ||
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeFontInfo_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
5891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5892 | { | |
5893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5894 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
5895 | ||
5896 | wxPyEndAllowThreads(__tstate); | |
5897 | if (PyErr_Occurred()) SWIG_fail; | |
5898 | } | |
5899 | Py_INCREF(Py_None); resultobj = Py_None; | |
5900 | return resultobj; | |
5901 | fail: | |
5902 | return NULL; | |
5903 | } | |
5904 | ||
5905 | ||
5906 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5907 | PyObject *resultobj; | |
5908 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5909 | wxString *arg2 = 0 ; | |
5910 | bool result; | |
423f194a | 5911 | bool temp2 = False ; |
d14a1e28 RD |
5912 | PyObject * obj0 = 0 ; |
5913 | PyObject * obj1 = 0 ; | |
5914 | char *kwnames[] = { | |
5915 | (char *) "self",(char *) "s", NULL | |
5916 | }; | |
5917 | ||
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
5919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5920 | { | |
5921 | arg2 = wxString_in_helper(obj1); | |
5922 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5923 | temp2 = True; |
d14a1e28 RD |
5924 | } |
5925 | { | |
5926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5927 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
5928 | ||
5929 | wxPyEndAllowThreads(__tstate); | |
5930 | if (PyErr_Occurred()) SWIG_fail; | |
5931 | } | |
5932 | resultobj = PyInt_FromLong((long)result); | |
5933 | { | |
5934 | if (temp2) | |
5935 | delete arg2; | |
5936 | } | |
5937 | return resultobj; | |
5938 | fail: | |
5939 | { | |
5940 | if (temp2) | |
5941 | delete arg2; | |
5942 | } | |
5943 | return NULL; | |
5944 | } | |
5945 | ||
5946 | ||
5947 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5948 | PyObject *resultobj; | |
5949 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5950 | wxString result; | |
5951 | PyObject * obj0 = 0 ; | |
5952 | char *kwnames[] = { | |
5953 | (char *) "self", NULL | |
5954 | }; | |
5955 | ||
5956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
5957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | { | |
5966 | #if wxUSE_UNICODE | |
5967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5968 | #else | |
5969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5970 | #endif | |
5971 | } | |
5972 | return resultobj; | |
5973 | fail: | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
5978 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5979 | PyObject *resultobj; | |
5980 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5981 | wxString result; | |
5982 | PyObject * obj0 = 0 ; | |
5983 | char *kwnames[] = { | |
5984 | (char *) "self", NULL | |
5985 | }; | |
5986 | ||
5987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
5988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5989 | { | |
5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5991 | result = wxNativeFontInfo___str__(arg1); | |
5992 | ||
5993 | wxPyEndAllowThreads(__tstate); | |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
5995 | } | |
5996 | { | |
5997 | #if wxUSE_UNICODE | |
5998 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5999 | #else | |
6000 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6001 | #endif | |
6002 | } | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
6009 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6010 | PyObject *resultobj; | |
6011 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6012 | wxString *arg2 = 0 ; | |
6013 | bool result; | |
423f194a | 6014 | bool temp2 = False ; |
d14a1e28 RD |
6015 | PyObject * obj0 = 0 ; |
6016 | PyObject * obj1 = 0 ; | |
6017 | char *kwnames[] = { | |
6018 | (char *) "self",(char *) "s", NULL | |
6019 | }; | |
6020 | ||
6021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6023 | { | |
6024 | arg2 = wxString_in_helper(obj1); | |
6025 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6026 | temp2 = True; |
d14a1e28 RD |
6027 | } |
6028 | { | |
6029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6030 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6031 | ||
6032 | wxPyEndAllowThreads(__tstate); | |
6033 | if (PyErr_Occurred()) SWIG_fail; | |
6034 | } | |
6035 | resultobj = PyInt_FromLong((long)result); | |
6036 | { | |
6037 | if (temp2) | |
6038 | delete arg2; | |
6039 | } | |
6040 | return resultobj; | |
6041 | fail: | |
6042 | { | |
6043 | if (temp2) | |
6044 | delete arg2; | |
6045 | } | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
6050 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject *resultobj; | |
6052 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6053 | wxString result; | |
6054 | PyObject * obj0 = 0 ; | |
6055 | char *kwnames[] = { | |
6056 | (char *) "self", NULL | |
6057 | }; | |
6058 | ||
6059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6061 | { | |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | { | |
6069 | #if wxUSE_UNICODE | |
6070 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6071 | #else | |
6072 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6073 | #endif | |
6074 | } | |
6075 | return resultobj; | |
6076 | fail: | |
6077 | return NULL; | |
6078 | } | |
6079 | ||
6080 | ||
6081 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6082 | PyObject *obj; | |
6083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6084 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6085 | Py_INCREF(obj); | |
6086 | return Py_BuildValue((char *)""); | |
6087 | } | |
6088 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject *resultobj; | |
6090 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6091 | wxString arg2 ; | |
d14a1e28 RD |
6092 | PyObject * obj0 = 0 ; |
6093 | PyObject * obj1 = 0 ; | |
6094 | char *kwnames[] = { | |
6095 | (char *) "self",(char *) "facename", NULL | |
6096 | }; | |
6097 | ||
6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
6100 | { |
6101 | wxString* sptr = wxString_in_helper(obj1); | |
6102 | if (sptr == NULL) SWIG_fail; | |
6103 | arg2 = *sptr; | |
6104 | delete sptr; | |
6105 | } | |
d14a1e28 RD |
6106 | if (arg1) (arg1)->facename = arg2; |
6107 | ||
6108 | Py_INCREF(Py_None); resultobj = Py_None; | |
6109 | return resultobj; | |
6110 | fail: | |
6111 | return NULL; | |
6112 | } | |
6113 | ||
6114 | ||
6115 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6116 | PyObject *resultobj; | |
6117 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6118 | wxString result; | |
6119 | PyObject * obj0 = 0 ; | |
6120 | char *kwnames[] = { | |
6121 | (char *) "self", NULL | |
6122 | }; | |
6123 | ||
6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6126 | result = ((arg1)->facename); | |
6127 | ||
6128 | { | |
6129 | #if wxUSE_UNICODE | |
6130 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6131 | #else | |
6132 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6133 | #endif | |
6134 | } | |
6135 | return resultobj; | |
6136 | fail: | |
6137 | return NULL; | |
6138 | } | |
6139 | ||
6140 | ||
6141 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6142 | PyObject *resultobj; | |
6143 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6144 | int arg2 ; | |
6145 | PyObject * obj0 = 0 ; | |
6146 | char *kwnames[] = { | |
6147 | (char *) "self",(char *) "encoding", NULL | |
6148 | }; | |
6149 | ||
6150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:NativeEncodingInfo_encoding_set",kwnames,&obj0,&arg2)) goto fail; | |
6151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6152 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
6153 | ||
6154 | Py_INCREF(Py_None); resultobj = Py_None; | |
6155 | return resultobj; | |
6156 | fail: | |
6157 | return NULL; | |
6158 | } | |
6159 | ||
6160 | ||
6161 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6162 | PyObject *resultobj; | |
6163 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6164 | int result; | |
6165 | PyObject * obj0 = 0 ; | |
6166 | char *kwnames[] = { | |
6167 | (char *) "self", NULL | |
6168 | }; | |
6169 | ||
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6172 | result = (int) ((arg1)->encoding); | |
6173 | ||
6174 | resultobj = PyInt_FromLong((long)result); | |
6175 | return resultobj; | |
6176 | fail: | |
6177 | return NULL; | |
6178 | } | |
6179 | ||
6180 | ||
6181 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject *resultobj; | |
6183 | wxNativeEncodingInfo *result; | |
6184 | char *kwnames[] = { | |
6185 | NULL | |
6186 | }; | |
6187 | ||
6188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6189 | { | |
6190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6191 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6192 | ||
6193 | wxPyEndAllowThreads(__tstate); | |
6194 | if (PyErr_Occurred()) SWIG_fail; | |
6195 | } | |
6196 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6197 | return resultobj; | |
6198 | fail: | |
6199 | return NULL; | |
6200 | } | |
6201 | ||
6202 | ||
6203 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6204 | PyObject *resultobj; | |
6205 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6206 | PyObject * obj0 = 0 ; | |
6207 | char *kwnames[] = { | |
6208 | (char *) "self", NULL | |
6209 | }; | |
6210 | ||
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6213 | { | |
6214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6215 | delete arg1; | |
6216 | ||
6217 | wxPyEndAllowThreads(__tstate); | |
6218 | if (PyErr_Occurred()) SWIG_fail; | |
6219 | } | |
6220 | Py_INCREF(Py_None); resultobj = Py_None; | |
6221 | return resultobj; | |
6222 | fail: | |
6223 | return NULL; | |
6224 | } | |
6225 | ||
6226 | ||
6227 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6228 | PyObject *resultobj; | |
6229 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6230 | wxString *arg2 = 0 ; | |
6231 | bool result; | |
423f194a | 6232 | bool temp2 = False ; |
d14a1e28 RD |
6233 | PyObject * obj0 = 0 ; |
6234 | PyObject * obj1 = 0 ; | |
6235 | char *kwnames[] = { | |
6236 | (char *) "self",(char *) "s", NULL | |
6237 | }; | |
6238 | ||
6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6241 | { | |
6242 | arg2 = wxString_in_helper(obj1); | |
6243 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6244 | temp2 = True; |
d14a1e28 RD |
6245 | } |
6246 | { | |
6247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6248 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6249 | ||
6250 | wxPyEndAllowThreads(__tstate); | |
6251 | if (PyErr_Occurred()) SWIG_fail; | |
6252 | } | |
6253 | resultobj = PyInt_FromLong((long)result); | |
6254 | { | |
6255 | if (temp2) | |
6256 | delete arg2; | |
6257 | } | |
6258 | return resultobj; | |
6259 | fail: | |
6260 | { | |
6261 | if (temp2) | |
6262 | delete arg2; | |
6263 | } | |
6264 | return NULL; | |
6265 | } | |
6266 | ||
6267 | ||
6268 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6269 | PyObject *resultobj; | |
6270 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6271 | wxString result; | |
6272 | PyObject * obj0 = 0 ; | |
6273 | char *kwnames[] = { | |
6274 | (char *) "self", NULL | |
6275 | }; | |
6276 | ||
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) SWIG_fail; | |
6285 | } | |
6286 | { | |
6287 | #if wxUSE_UNICODE | |
6288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6289 | #else | |
6290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6291 | #endif | |
6292 | } | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
6299 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6300 | PyObject *obj; | |
6301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6302 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6303 | Py_INCREF(obj); | |
6304 | return Py_BuildValue((char *)""); | |
6305 | } | |
6306 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6307 | PyObject *resultobj; | |
6308 | int arg1 ; | |
6309 | wxNativeEncodingInfo *result; | |
6310 | char *kwnames[] = { | |
6311 | (char *) "encoding", NULL | |
6312 | }; | |
6313 | ||
6314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetNativeFontEncoding",kwnames,&arg1)) goto fail; | |
6315 | { | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6317 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6318 | ||
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
6329 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj; | |
6331 | wxNativeEncodingInfo *arg1 = 0 ; | |
6332 | bool result; | |
6333 | PyObject * obj0 = 0 ; | |
6334 | char *kwnames[] = { | |
6335 | (char *) "info", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6340 | if (arg1 == NULL) { | |
6341 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6342 | } | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | resultobj = PyInt_FromLong((long)result); | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
6357 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxFontMapper *result; | |
6360 | char *kwnames[] = { | |
6361 | NULL | |
6362 | }; | |
6363 | ||
6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6365 | { | |
6366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6367 | result = (wxFontMapper *)new wxFontMapper(); | |
6368 | ||
6369 | wxPyEndAllowThreads(__tstate); | |
6370 | if (PyErr_Occurred()) SWIG_fail; | |
6371 | } | |
6372 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1); | |
6373 | return resultobj; | |
6374 | fail: | |
6375 | return NULL; | |
6376 | } | |
6377 | ||
6378 | ||
6379 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6380 | PyObject *resultobj; | |
6381 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6382 | PyObject * obj0 = 0 ; | |
6383 | char *kwnames[] = { | |
6384 | (char *) "self", NULL | |
6385 | }; | |
6386 | ||
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6389 | { | |
6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6391 | delete arg1; | |
6392 | ||
6393 | wxPyEndAllowThreads(__tstate); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | } | |
6396 | Py_INCREF(Py_None); resultobj = Py_None; | |
6397 | return resultobj; | |
6398 | fail: | |
6399 | return NULL; | |
6400 | } | |
6401 | ||
6402 | ||
6403 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6404 | PyObject *resultobj; | |
6405 | wxFontMapper *result; | |
6406 | char *kwnames[] = { | |
6407 | NULL | |
6408 | }; | |
6409 | ||
6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6411 | { | |
6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6413 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6414 | ||
6415 | wxPyEndAllowThreads(__tstate); | |
6416 | if (PyErr_Occurred()) SWIG_fail; | |
6417 | } | |
6418 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
6422 | } | |
6423 | ||
6424 | ||
6425 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6426 | PyObject *resultobj; | |
6427 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6428 | wxFontMapper *result; | |
6429 | PyObject * obj0 = 0 ; | |
6430 | char *kwnames[] = { | |
6431 | (char *) "mapper", NULL | |
6432 | }; | |
6433 | ||
6434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6436 | { | |
6437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6438 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6439 | ||
6440 | wxPyEndAllowThreads(__tstate); | |
6441 | if (PyErr_Occurred()) SWIG_fail; | |
6442 | } | |
6443 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0); | |
6444 | return resultobj; | |
6445 | fail: | |
6446 | return NULL; | |
6447 | } | |
6448 | ||
6449 | ||
6450 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6451 | PyObject *resultobj; | |
6452 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6453 | wxString *arg2 = 0 ; | |
423f194a | 6454 | bool arg3 = (bool) True ; |
d14a1e28 | 6455 | int result; |
423f194a | 6456 | bool temp2 = False ; |
d14a1e28 RD |
6457 | PyObject * obj0 = 0 ; |
6458 | PyObject * obj1 = 0 ; | |
6459 | PyObject * obj2 = 0 ; | |
6460 | char *kwnames[] = { | |
6461 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6462 | }; | |
6463 | ||
6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6466 | { | |
6467 | arg2 = wxString_in_helper(obj1); | |
6468 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6469 | temp2 = True; |
d14a1e28 RD |
6470 | } |
6471 | if (obj2) { | |
6472 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6473 | if (PyErr_Occurred()) SWIG_fail; | |
6474 | } | |
6475 | { | |
6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6477 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6478 | ||
6479 | wxPyEndAllowThreads(__tstate); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | } | |
6482 | resultobj = PyInt_FromLong((long)result); | |
6483 | { | |
6484 | if (temp2) | |
6485 | delete arg2; | |
6486 | } | |
6487 | return resultobj; | |
6488 | fail: | |
6489 | { | |
6490 | if (temp2) | |
6491 | delete arg2; | |
6492 | } | |
6493 | return NULL; | |
6494 | } | |
6495 | ||
6496 | ||
6497 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6498 | PyObject *resultobj; | |
6499 | size_t result; | |
6500 | char *kwnames[] = { | |
6501 | NULL | |
6502 | }; | |
6503 | ||
6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6505 | { | |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6508 | ||
6509 | wxPyEndAllowThreads(__tstate); | |
6510 | if (PyErr_Occurred()) SWIG_fail; | |
6511 | } | |
6512 | resultobj = PyInt_FromLong((long)result); | |
6513 | return resultobj; | |
6514 | fail: | |
6515 | return NULL; | |
6516 | } | |
6517 | ||
6518 | ||
6519 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6520 | PyObject *resultobj; | |
6521 | size_t arg1 ; | |
6522 | int result; | |
6523 | PyObject * obj0 = 0 ; | |
6524 | char *kwnames[] = { | |
6525 | (char *) "n", NULL | |
6526 | }; | |
6527 | ||
6528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
6529 | arg1 = (size_t) PyInt_AsLong(obj0); | |
6530 | if (PyErr_Occurred()) SWIG_fail; | |
6531 | { | |
6532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6533 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6534 | ||
6535 | wxPyEndAllowThreads(__tstate); | |
6536 | if (PyErr_Occurred()) SWIG_fail; | |
6537 | } | |
6538 | resultobj = PyInt_FromLong((long)result); | |
6539 | return resultobj; | |
6540 | fail: | |
6541 | return NULL; | |
6542 | } | |
6543 | ||
6544 | ||
6545 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6546 | PyObject *resultobj; | |
6547 | int arg1 ; | |
6548 | wxString result; | |
6549 | char *kwnames[] = { | |
6550 | (char *) "encoding", NULL | |
6551 | }; | |
6552 | ||
6553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingName",kwnames,&arg1)) goto fail; | |
6554 | { | |
6555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6556 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
6557 | ||
6558 | wxPyEndAllowThreads(__tstate); | |
6559 | if (PyErr_Occurred()) SWIG_fail; | |
6560 | } | |
6561 | { | |
6562 | #if wxUSE_UNICODE | |
6563 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6564 | #else | |
6565 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6566 | #endif | |
6567 | } | |
6568 | return resultobj; | |
6569 | fail: | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | int arg1 ; | |
6577 | wxString result; | |
6578 | char *kwnames[] = { | |
6579 | (char *) "encoding", NULL | |
6580 | }; | |
6581 | ||
6582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:FontMapper_GetEncodingDescription",kwnames,&arg1)) goto fail; | |
6583 | { | |
6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6585 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
6586 | ||
6587 | wxPyEndAllowThreads(__tstate); | |
6588 | if (PyErr_Occurred()) SWIG_fail; | |
6589 | } | |
6590 | { | |
6591 | #if wxUSE_UNICODE | |
6592 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6593 | #else | |
6594 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6595 | #endif | |
6596 | } | |
6597 | return resultobj; | |
6598 | fail: | |
6599 | return NULL; | |
6600 | } | |
6601 | ||
6602 | ||
6603 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6604 | PyObject *resultobj; | |
6605 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6606 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
6607 | PyObject * obj0 = 0 ; | |
6608 | PyObject * obj1 = 0 ; | |
6609 | char *kwnames[] = { | |
6610 | (char *) "self",(char *) "config", NULL | |
6611 | }; | |
6612 | ||
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
6614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6615 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6616 | { | |
6617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6618 | (arg1)->SetConfig(arg2); | |
6619 | ||
6620 | wxPyEndAllowThreads(__tstate); | |
6621 | if (PyErr_Occurred()) SWIG_fail; | |
6622 | } | |
6623 | Py_INCREF(Py_None); resultobj = Py_None; | |
6624 | return resultobj; | |
6625 | fail: | |
6626 | return NULL; | |
6627 | } | |
6628 | ||
6629 | ||
6630 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6631 | PyObject *resultobj; | |
6632 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6633 | wxString *arg2 = 0 ; | |
423f194a | 6634 | bool temp2 = False ; |
d14a1e28 RD |
6635 | PyObject * obj0 = 0 ; |
6636 | PyObject * obj1 = 0 ; | |
6637 | char *kwnames[] = { | |
6638 | (char *) "self",(char *) "prefix", NULL | |
6639 | }; | |
6640 | ||
6641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
6642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6643 | { | |
6644 | arg2 = wxString_in_helper(obj1); | |
6645 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6646 | temp2 = True; |
d14a1e28 RD |
6647 | } |
6648 | { | |
6649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6650 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
6651 | ||
6652 | wxPyEndAllowThreads(__tstate); | |
6653 | if (PyErr_Occurred()) SWIG_fail; | |
6654 | } | |
6655 | Py_INCREF(Py_None); resultobj = Py_None; | |
6656 | { | |
6657 | if (temp2) | |
6658 | delete arg2; | |
6659 | } | |
6660 | return resultobj; | |
6661 | fail: | |
6662 | { | |
6663 | if (temp2) | |
6664 | delete arg2; | |
6665 | } | |
6666 | return NULL; | |
6667 | } | |
6668 | ||
6669 | ||
6670 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6671 | PyObject *resultobj; | |
6672 | wxString result; | |
6673 | char *kwnames[] = { | |
6674 | NULL | |
6675 | }; | |
6676 | ||
6677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
6678 | { | |
6679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6680 | result = wxFontMapper::GetDefaultConfigPath(); | |
6681 | ||
6682 | wxPyEndAllowThreads(__tstate); | |
6683 | if (PyErr_Occurred()) SWIG_fail; | |
6684 | } | |
6685 | { | |
6686 | #if wxUSE_UNICODE | |
6687 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6688 | #else | |
6689 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6690 | #endif | |
6691 | } | |
6692 | return resultobj; | |
6693 | fail: | |
6694 | return NULL; | |
6695 | } | |
6696 | ||
6697 | ||
6698 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6699 | PyObject *resultobj; | |
6700 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6701 | int arg2 ; | |
6702 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6703 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 6704 | bool arg4 = (bool) True ; |
d14a1e28 | 6705 | PyObject *result; |
423f194a | 6706 | bool temp3 = False ; |
d14a1e28 RD |
6707 | PyObject * obj0 = 0 ; |
6708 | PyObject * obj2 = 0 ; | |
6709 | PyObject * obj3 = 0 ; | |
6710 | char *kwnames[] = { | |
6711 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
6712 | }; | |
6713 | ||
6714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
6715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6716 | if (obj2) { | |
6717 | { | |
6718 | arg3 = wxString_in_helper(obj2); | |
6719 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6720 | temp3 = True; |
d14a1e28 RD |
6721 | } |
6722 | } | |
6723 | if (obj3) { | |
6724 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6725 | if (PyErr_Occurred()) SWIG_fail; | |
6726 | } | |
6727 | { | |
6728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6729 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
6730 | ||
6731 | wxPyEndAllowThreads(__tstate); | |
6732 | if (PyErr_Occurred()) SWIG_fail; | |
6733 | } | |
6734 | resultobj = result; | |
6735 | { | |
6736 | if (temp3) | |
6737 | delete arg3; | |
6738 | } | |
6739 | return resultobj; | |
6740 | fail: | |
6741 | { | |
6742 | if (temp3) | |
6743 | delete arg3; | |
6744 | } | |
6745 | return NULL; | |
6746 | } | |
6747 | ||
6748 | ||
6749 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6750 | PyObject *resultobj; | |
6751 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6752 | int arg2 ; | |
6753 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6754 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6755 | bool result; | |
423f194a | 6756 | bool temp3 = False ; |
d14a1e28 RD |
6757 | PyObject * obj0 = 0 ; |
6758 | PyObject * obj2 = 0 ; | |
6759 | char *kwnames[] = { | |
6760 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
6761 | }; | |
6762 | ||
6763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6765 | if (obj2) { | |
6766 | { | |
6767 | arg3 = wxString_in_helper(obj2); | |
6768 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6769 | temp3 = True; |
d14a1e28 RD |
6770 | } |
6771 | } | |
6772 | { | |
6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6774 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
6775 | ||
6776 | wxPyEndAllowThreads(__tstate); | |
6777 | if (PyErr_Occurred()) SWIG_fail; | |
6778 | } | |
6779 | resultobj = PyInt_FromLong((long)result); | |
6780 | { | |
6781 | if (temp3) | |
6782 | delete arg3; | |
6783 | } | |
6784 | return resultobj; | |
6785 | fail: | |
6786 | { | |
6787 | if (temp3) | |
6788 | delete arg3; | |
6789 | } | |
6790 | return NULL; | |
6791 | } | |
6792 | ||
6793 | ||
6794 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6795 | PyObject *resultobj; | |
6796 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6797 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6798 | PyObject * obj0 = 0 ; | |
6799 | PyObject * obj1 = 0 ; | |
6800 | char *kwnames[] = { | |
6801 | (char *) "self",(char *) "parent", NULL | |
6802 | }; | |
6803 | ||
6804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
6805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6806 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6807 | { | |
6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6809 | (arg1)->SetDialogParent(arg2); | |
6810 | ||
6811 | wxPyEndAllowThreads(__tstate); | |
6812 | if (PyErr_Occurred()) SWIG_fail; | |
6813 | } | |
6814 | Py_INCREF(Py_None); resultobj = Py_None; | |
6815 | return resultobj; | |
6816 | fail: | |
6817 | return NULL; | |
6818 | } | |
6819 | ||
6820 | ||
6821 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6822 | PyObject *resultobj; | |
6823 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6824 | wxString *arg2 = 0 ; | |
423f194a | 6825 | bool temp2 = False ; |
d14a1e28 RD |
6826 | PyObject * obj0 = 0 ; |
6827 | PyObject * obj1 = 0 ; | |
6828 | char *kwnames[] = { | |
6829 | (char *) "self",(char *) "title", NULL | |
6830 | }; | |
6831 | ||
6832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
6833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6834 | { | |
6835 | arg2 = wxString_in_helper(obj1); | |
6836 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6837 | temp2 = True; |
d14a1e28 RD |
6838 | } |
6839 | { | |
6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6841 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
6842 | ||
6843 | wxPyEndAllowThreads(__tstate); | |
6844 | if (PyErr_Occurred()) SWIG_fail; | |
6845 | } | |
6846 | Py_INCREF(Py_None); resultobj = Py_None; | |
6847 | { | |
6848 | if (temp2) | |
6849 | delete arg2; | |
6850 | } | |
6851 | return resultobj; | |
6852 | fail: | |
6853 | { | |
6854 | if (temp2) | |
6855 | delete arg2; | |
6856 | } | |
6857 | return NULL; | |
6858 | } | |
6859 | ||
6860 | ||
6861 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
6862 | PyObject *obj; | |
6863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6864 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
6865 | Py_INCREF(obj); | |
6866 | return Py_BuildValue((char *)""); | |
6867 | } | |
6868 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6869 | PyObject *resultobj; | |
6870 | int arg1 ; | |
6871 | int arg2 ; | |
6872 | int arg3 ; | |
6873 | int arg4 ; | |
423f194a | 6874 | bool arg5 = (bool) False ; |
d14a1e28 RD |
6875 | wxString const &arg6_defvalue = wxPyEmptyString ; |
6876 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6877 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
6878 | wxFont *result; | |
423f194a | 6879 | bool temp6 = False ; |
d14a1e28 RD |
6880 | PyObject * obj4 = 0 ; |
6881 | PyObject * obj5 = 0 ; | |
6882 | char *kwnames[] = { | |
6883 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
6884 | }; | |
6885 | ||
6886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiii|OOi:new_Font",kwnames,&arg1,&arg2,&arg3,&arg4,&obj4,&obj5,&arg7)) goto fail; | |
6887 | if (obj4) { | |
6888 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
6889 | if (PyErr_Occurred()) SWIG_fail; | |
6890 | } | |
6891 | if (obj5) { | |
6892 | { | |
6893 | arg6 = wxString_in_helper(obj5); | |
6894 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 6895 | temp6 = True; |
d14a1e28 RD |
6896 | } |
6897 | } | |
6898 | { | |
6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6900 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
6901 | ||
6902 | wxPyEndAllowThreads(__tstate); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6906 | { | |
6907 | if (temp6) | |
6908 | delete arg6; | |
6909 | } | |
6910 | return resultobj; | |
6911 | fail: | |
6912 | { | |
6913 | if (temp6) | |
6914 | delete arg6; | |
6915 | } | |
6916 | return NULL; | |
6917 | } | |
6918 | ||
6919 | ||
6920 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6921 | PyObject *resultobj; | |
6922 | wxFont *arg1 = (wxFont *) 0 ; | |
6923 | PyObject * obj0 = 0 ; | |
6924 | char *kwnames[] = { | |
6925 | (char *) "self", NULL | |
6926 | }; | |
6927 | ||
6928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
6929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6930 | { | |
6931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6932 | delete arg1; | |
6933 | ||
6934 | wxPyEndAllowThreads(__tstate); | |
6935 | if (PyErr_Occurred()) SWIG_fail; | |
6936 | } | |
6937 | Py_INCREF(Py_None); resultobj = Py_None; | |
6938 | return resultobj; | |
6939 | fail: | |
6940 | return NULL; | |
6941 | } | |
6942 | ||
6943 | ||
6944 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6945 | PyObject *resultobj; | |
6946 | wxNativeFontInfo *arg1 = 0 ; | |
6947 | wxFont *result; | |
6948 | PyObject * obj0 = 0 ; | |
6949 | char *kwnames[] = { | |
6950 | (char *) "info", NULL | |
6951 | }; | |
6952 | ||
6953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
6954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6955 | if (arg1 == NULL) { | |
6956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6957 | } | |
6958 | { | |
6959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6960 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
6961 | ||
6962 | wxPyEndAllowThreads(__tstate); | |
6963 | if (PyErr_Occurred()) SWIG_fail; | |
6964 | } | |
6965 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6966 | return resultobj; | |
6967 | fail: | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj; | |
6974 | wxString *arg1 = 0 ; | |
6975 | wxFont *result; | |
423f194a | 6976 | bool temp1 = False ; |
d14a1e28 RD |
6977 | PyObject * obj0 = 0 ; |
6978 | char *kwnames[] = { | |
6979 | (char *) "info", NULL | |
6980 | }; | |
6981 | ||
6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
6983 | { | |
6984 | arg1 = wxString_in_helper(obj0); | |
6985 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6986 | temp1 = True; |
d14a1e28 RD |
6987 | } |
6988 | { | |
6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6990 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
6991 | ||
6992 | wxPyEndAllowThreads(__tstate); | |
6993 | if (PyErr_Occurred()) SWIG_fail; | |
6994 | } | |
6995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
6996 | { | |
6997 | if (temp1) | |
6998 | delete arg1; | |
6999 | } | |
7000 | return resultobj; | |
7001 | fail: | |
7002 | { | |
7003 | if (temp1) | |
7004 | delete arg1; | |
7005 | } | |
7006 | return NULL; | |
7007 | } | |
7008 | ||
7009 | ||
7010 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7011 | PyObject *resultobj; | |
7012 | int arg1 ; | |
7013 | int arg2 ; | |
7014 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7015 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7016 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7017 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7018 | wxFont *result; | |
423f194a | 7019 | bool temp4 = False ; |
d14a1e28 RD |
7020 | PyObject * obj3 = 0 ; |
7021 | char *kwnames[] = { | |
7022 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7023 | }; | |
7024 | ||
7025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|iOi:new_Font2",kwnames,&arg1,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
7026 | if (obj3) { | |
7027 | { | |
7028 | arg4 = wxString_in_helper(obj3); | |
7029 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7030 | temp4 = True; |
d14a1e28 RD |
7031 | } |
7032 | } | |
7033 | { | |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
7040 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1); | |
7041 | { | |
7042 | if (temp4) | |
7043 | delete arg4; | |
7044 | } | |
7045 | return resultobj; | |
7046 | fail: | |
7047 | { | |
7048 | if (temp4) | |
7049 | delete arg4; | |
7050 | } | |
7051 | return NULL; | |
7052 | } | |
7053 | ||
7054 | ||
7055 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7056 | PyObject *resultobj; | |
7057 | wxFont *arg1 = (wxFont *) 0 ; | |
7058 | bool result; | |
7059 | PyObject * obj0 = 0 ; | |
7060 | char *kwnames[] = { | |
7061 | (char *) "self", NULL | |
7062 | }; | |
7063 | ||
7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7066 | { | |
7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7068 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7069 | ||
7070 | wxPyEndAllowThreads(__tstate); | |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | } | |
7073 | resultobj = PyInt_FromLong((long)result); | |
7074 | return resultobj; | |
7075 | fail: | |
7076 | return NULL; | |
7077 | } | |
7078 | ||
7079 | ||
7080 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7081 | PyObject *resultobj; | |
7082 | wxFont *arg1 = (wxFont *) 0 ; | |
7083 | wxFont *arg2 = 0 ; | |
7084 | bool result; | |
7085 | PyObject * obj0 = 0 ; | |
7086 | PyObject * obj1 = 0 ; | |
7087 | char *kwnames[] = { | |
7088 | (char *) "self",(char *) "font", NULL | |
7089 | }; | |
7090 | ||
7091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7093 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7094 | if (arg2 == NULL) { | |
7095 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7096 | } | |
7097 | { | |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2); | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | resultobj = PyInt_FromLong((long)result); | |
7105 | return resultobj; | |
7106 | fail: | |
7107 | return NULL; | |
7108 | } | |
7109 | ||
7110 | ||
7111 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject *resultobj; | |
7113 | wxFont *arg1 = (wxFont *) 0 ; | |
7114 | wxFont *arg2 = 0 ; | |
7115 | bool result; | |
7116 | PyObject * obj0 = 0 ; | |
7117 | PyObject * obj1 = 0 ; | |
7118 | char *kwnames[] = { | |
7119 | (char *) "self",(char *) "font", NULL | |
7120 | }; | |
7121 | ||
7122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7124 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7125 | if (arg2 == NULL) { | |
7126 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7127 | } | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | resultobj = PyInt_FromLong((long)result); | |
7136 | return resultobj; | |
7137 | fail: | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
7142 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7143 | PyObject *resultobj; | |
7144 | wxFont *arg1 = (wxFont *) 0 ; | |
7145 | int result; | |
7146 | PyObject * obj0 = 0 ; | |
7147 | char *kwnames[] = { | |
7148 | (char *) "self", NULL | |
7149 | }; | |
7150 | ||
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7153 | { | |
7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7155 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7156 | ||
7157 | wxPyEndAllowThreads(__tstate); | |
7158 | if (PyErr_Occurred()) SWIG_fail; | |
7159 | } | |
7160 | resultobj = PyInt_FromLong((long)result); | |
7161 | return resultobj; | |
7162 | fail: | |
7163 | return NULL; | |
7164 | } | |
7165 | ||
7166 | ||
7167 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7168 | PyObject *resultobj; | |
7169 | wxFont *arg1 = (wxFont *) 0 ; | |
7170 | int result; | |
7171 | PyObject * obj0 = 0 ; | |
7172 | char *kwnames[] = { | |
7173 | (char *) "self", NULL | |
7174 | }; | |
7175 | ||
7176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7178 | { | |
7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7180 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7181 | ||
7182 | wxPyEndAllowThreads(__tstate); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | resultobj = PyInt_FromLong((long)result); | |
7186 | return resultobj; | |
7187 | fail: | |
7188 | return NULL; | |
7189 | } | |
7190 | ||
7191 | ||
7192 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject *resultobj; | |
7194 | wxFont *arg1 = (wxFont *) 0 ; | |
7195 | int result; | |
7196 | PyObject * obj0 = 0 ; | |
7197 | char *kwnames[] = { | |
7198 | (char *) "self", NULL | |
7199 | }; | |
7200 | ||
7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7203 | { | |
7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7205 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | } | |
7210 | resultobj = PyInt_FromLong((long)result); | |
7211 | return resultobj; | |
7212 | fail: | |
7213 | return NULL; | |
7214 | } | |
7215 | ||
7216 | ||
7217 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7218 | PyObject *resultobj; | |
7219 | wxFont *arg1 = (wxFont *) 0 ; | |
7220 | int result; | |
7221 | PyObject * obj0 = 0 ; | |
7222 | char *kwnames[] = { | |
7223 | (char *) "self", NULL | |
7224 | }; | |
7225 | ||
7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7228 | { | |
7229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7230 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7231 | ||
7232 | wxPyEndAllowThreads(__tstate); | |
7233 | if (PyErr_Occurred()) SWIG_fail; | |
7234 | } | |
7235 | resultobj = PyInt_FromLong((long)result); | |
7236 | return resultobj; | |
7237 | fail: | |
7238 | return NULL; | |
7239 | } | |
7240 | ||
7241 | ||
7242 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7243 | PyObject *resultobj; | |
7244 | wxFont *arg1 = (wxFont *) 0 ; | |
7245 | bool result; | |
7246 | PyObject * obj0 = 0 ; | |
7247 | char *kwnames[] = { | |
7248 | (char *) "self", NULL | |
7249 | }; | |
7250 | ||
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7253 | { | |
7254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7255 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7256 | ||
7257 | wxPyEndAllowThreads(__tstate); | |
7258 | if (PyErr_Occurred()) SWIG_fail; | |
7259 | } | |
7260 | resultobj = PyInt_FromLong((long)result); | |
7261 | return resultobj; | |
7262 | fail: | |
7263 | return NULL; | |
7264 | } | |
7265 | ||
7266 | ||
7267 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7268 | PyObject *resultobj; | |
7269 | wxFont *arg1 = (wxFont *) 0 ; | |
7270 | wxString result; | |
7271 | PyObject * obj0 = 0 ; | |
7272 | char *kwnames[] = { | |
7273 | (char *) "self", NULL | |
7274 | }; | |
7275 | ||
7276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7278 | { | |
7279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7280 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7281 | ||
7282 | wxPyEndAllowThreads(__tstate); | |
7283 | if (PyErr_Occurred()) SWIG_fail; | |
7284 | } | |
7285 | { | |
7286 | #if wxUSE_UNICODE | |
7287 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7288 | #else | |
7289 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7290 | #endif | |
7291 | } | |
7292 | return resultobj; | |
7293 | fail: | |
7294 | return NULL; | |
7295 | } | |
7296 | ||
7297 | ||
7298 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7299 | PyObject *resultobj; | |
7300 | wxFont *arg1 = (wxFont *) 0 ; | |
7301 | int result; | |
7302 | PyObject * obj0 = 0 ; | |
7303 | char *kwnames[] = { | |
7304 | (char *) "self", NULL | |
7305 | }; | |
7306 | ||
7307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7309 | { | |
7310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7311 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7312 | ||
7313 | wxPyEndAllowThreads(__tstate); | |
7314 | if (PyErr_Occurred()) SWIG_fail; | |
7315 | } | |
7316 | resultobj = PyInt_FromLong((long)result); | |
7317 | return resultobj; | |
7318 | fail: | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
7323 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject *resultobj; | |
7325 | wxFont *arg1 = (wxFont *) 0 ; | |
7326 | wxNativeFontInfo *result; | |
7327 | PyObject * obj0 = 0 ; | |
7328 | char *kwnames[] = { | |
7329 | (char *) "self", NULL | |
7330 | }; | |
7331 | ||
7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7334 | { | |
7335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7336 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7337 | ||
7338 | wxPyEndAllowThreads(__tstate); | |
7339 | if (PyErr_Occurred()) SWIG_fail; | |
7340 | } | |
7341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0); | |
7342 | return resultobj; | |
7343 | fail: | |
7344 | return NULL; | |
7345 | } | |
7346 | ||
7347 | ||
7348 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7349 | PyObject *resultobj; | |
7350 | wxFont *arg1 = (wxFont *) 0 ; | |
7351 | bool result; | |
7352 | PyObject * obj0 = 0 ; | |
7353 | char *kwnames[] = { | |
7354 | (char *) "self", NULL | |
7355 | }; | |
7356 | ||
7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7359 | { | |
7360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7361 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7362 | ||
7363 | wxPyEndAllowThreads(__tstate); | |
7364 | if (PyErr_Occurred()) SWIG_fail; | |
7365 | } | |
7366 | resultobj = PyInt_FromLong((long)result); | |
7367 | return resultobj; | |
7368 | fail: | |
7369 | return NULL; | |
7370 | } | |
7371 | ||
7372 | ||
7373 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7374 | PyObject *resultobj; | |
7375 | wxFont *arg1 = (wxFont *) 0 ; | |
7376 | wxString result; | |
7377 | PyObject * obj0 = 0 ; | |
7378 | char *kwnames[] = { | |
7379 | (char *) "self", NULL | |
7380 | }; | |
7381 | ||
7382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7384 | { | |
7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7386 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7387 | ||
7388 | wxPyEndAllowThreads(__tstate); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | } | |
7391 | { | |
7392 | #if wxUSE_UNICODE | |
7393 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7394 | #else | |
7395 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7396 | #endif | |
7397 | } | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject *resultobj; | |
7406 | wxFont *arg1 = (wxFont *) 0 ; | |
7407 | wxString result; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | char *kwnames[] = { | |
7410 | (char *) "self", NULL | |
7411 | }; | |
7412 | ||
7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
7414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7415 | { | |
7416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7417 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7418 | ||
7419 | wxPyEndAllowThreads(__tstate); | |
7420 | if (PyErr_Occurred()) SWIG_fail; | |
7421 | } | |
7422 | { | |
7423 | #if wxUSE_UNICODE | |
7424 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7425 | #else | |
7426 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7427 | #endif | |
7428 | } | |
7429 | return resultobj; | |
7430 | fail: | |
7431 | return NULL; | |
7432 | } | |
7433 | ||
7434 | ||
7435 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7436 | PyObject *resultobj; | |
7437 | wxFont *arg1 = (wxFont *) 0 ; | |
7438 | int arg2 ; | |
7439 | PyObject * obj0 = 0 ; | |
7440 | char *kwnames[] = { | |
7441 | (char *) "self",(char *) "pointSize", NULL | |
7442 | }; | |
7443 | ||
7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetPointSize",kwnames,&obj0,&arg2)) goto fail; | |
7445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7446 | { | |
7447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7448 | (arg1)->SetPointSize(arg2); | |
7449 | ||
7450 | wxPyEndAllowThreads(__tstate); | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | } | |
7453 | Py_INCREF(Py_None); resultobj = Py_None; | |
7454 | return resultobj; | |
7455 | fail: | |
7456 | return NULL; | |
7457 | } | |
7458 | ||
7459 | ||
7460 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7461 | PyObject *resultobj; | |
7462 | wxFont *arg1 = (wxFont *) 0 ; | |
7463 | int arg2 ; | |
7464 | PyObject * obj0 = 0 ; | |
7465 | char *kwnames[] = { | |
7466 | (char *) "self",(char *) "family", NULL | |
7467 | }; | |
7468 | ||
7469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetFamily",kwnames,&obj0,&arg2)) goto fail; | |
7470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7471 | { | |
7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7473 | (arg1)->SetFamily(arg2); | |
7474 | ||
7475 | wxPyEndAllowThreads(__tstate); | |
7476 | if (PyErr_Occurred()) SWIG_fail; | |
7477 | } | |
7478 | Py_INCREF(Py_None); resultobj = Py_None; | |
7479 | return resultobj; | |
7480 | fail: | |
7481 | return NULL; | |
7482 | } | |
7483 | ||
7484 | ||
7485 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7486 | PyObject *resultobj; | |
7487 | wxFont *arg1 = (wxFont *) 0 ; | |
7488 | int arg2 ; | |
7489 | PyObject * obj0 = 0 ; | |
7490 | char *kwnames[] = { | |
7491 | (char *) "self",(char *) "style", NULL | |
7492 | }; | |
7493 | ||
7494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
7495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7496 | { | |
7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7498 | (arg1)->SetStyle(arg2); | |
7499 | ||
7500 | wxPyEndAllowThreads(__tstate); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | } | |
7503 | Py_INCREF(Py_None); resultobj = Py_None; | |
7504 | return resultobj; | |
7505 | fail: | |
7506 | return NULL; | |
7507 | } | |
7508 | ||
7509 | ||
7510 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7511 | PyObject *resultobj; | |
7512 | wxFont *arg1 = (wxFont *) 0 ; | |
7513 | int arg2 ; | |
7514 | PyObject * obj0 = 0 ; | |
7515 | char *kwnames[] = { | |
7516 | (char *) "self",(char *) "weight", NULL | |
7517 | }; | |
7518 | ||
7519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetWeight",kwnames,&obj0,&arg2)) goto fail; | |
7520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7521 | { | |
7522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7523 | (arg1)->SetWeight(arg2); | |
7524 | ||
7525 | wxPyEndAllowThreads(__tstate); | |
7526 | if (PyErr_Occurred()) SWIG_fail; | |
7527 | } | |
7528 | Py_INCREF(Py_None); resultobj = Py_None; | |
7529 | return resultobj; | |
7530 | fail: | |
7531 | return NULL; | |
7532 | } | |
7533 | ||
7534 | ||
7535 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7536 | PyObject *resultobj; | |
7537 | wxFont *arg1 = (wxFont *) 0 ; | |
7538 | wxString *arg2 = 0 ; | |
423f194a | 7539 | bool temp2 = False ; |
d14a1e28 RD |
7540 | PyObject * obj0 = 0 ; |
7541 | PyObject * obj1 = 0 ; | |
7542 | char *kwnames[] = { | |
7543 | (char *) "self",(char *) "faceName", NULL | |
7544 | }; | |
7545 | ||
7546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
7547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7548 | { | |
7549 | arg2 = wxString_in_helper(obj1); | |
7550 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7551 | temp2 = True; |
d14a1e28 RD |
7552 | } |
7553 | { | |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | (arg1)->SetFaceName((wxString const &)*arg2); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) SWIG_fail; | |
7559 | } | |
7560 | Py_INCREF(Py_None); resultobj = Py_None; | |
7561 | { | |
7562 | if (temp2) | |
7563 | delete arg2; | |
7564 | } | |
7565 | return resultobj; | |
7566 | fail: | |
7567 | { | |
7568 | if (temp2) | |
7569 | delete arg2; | |
7570 | } | |
7571 | return NULL; | |
7572 | } | |
7573 | ||
7574 | ||
7575 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7576 | PyObject *resultobj; | |
7577 | wxFont *arg1 = (wxFont *) 0 ; | |
7578 | bool arg2 ; | |
7579 | PyObject * obj0 = 0 ; | |
7580 | PyObject * obj1 = 0 ; | |
7581 | char *kwnames[] = { | |
7582 | (char *) "self",(char *) "underlined", NULL | |
7583 | }; | |
7584 | ||
7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
7586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7587 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7588 | if (PyErr_Occurred()) SWIG_fail; | |
7589 | { | |
7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7591 | (arg1)->SetUnderlined(arg2); | |
7592 | ||
7593 | wxPyEndAllowThreads(__tstate); | |
7594 | if (PyErr_Occurred()) SWIG_fail; | |
7595 | } | |
7596 | Py_INCREF(Py_None); resultobj = Py_None; | |
7597 | return resultobj; | |
7598 | fail: | |
7599 | return NULL; | |
7600 | } | |
7601 | ||
7602 | ||
7603 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7604 | PyObject *resultobj; | |
7605 | wxFont *arg1 = (wxFont *) 0 ; | |
7606 | int arg2 ; | |
7607 | PyObject * obj0 = 0 ; | |
7608 | char *kwnames[] = { | |
7609 | (char *) "self",(char *) "encoding", NULL | |
7610 | }; | |
7611 | ||
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Font_SetEncoding",kwnames,&obj0,&arg2)) goto fail; | |
7613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7616 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7617 | ||
7618 | wxPyEndAllowThreads(__tstate); | |
7619 | if (PyErr_Occurred()) SWIG_fail; | |
7620 | } | |
7621 | Py_INCREF(Py_None); resultobj = Py_None; | |
7622 | return resultobj; | |
7623 | fail: | |
7624 | return NULL; | |
7625 | } | |
7626 | ||
7627 | ||
7628 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7629 | PyObject *resultobj; | |
7630 | wxFont *arg1 = (wxFont *) 0 ; | |
7631 | wxNativeFontInfo *arg2 = 0 ; | |
7632 | PyObject * obj0 = 0 ; | |
7633 | PyObject * obj1 = 0 ; | |
7634 | char *kwnames[] = { | |
7635 | (char *) "self",(char *) "info", NULL | |
7636 | }; | |
7637 | ||
7638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
7639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7640 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7641 | if (arg2 == NULL) { | |
7642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7643 | } | |
7644 | { | |
7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7646 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
7647 | ||
7648 | wxPyEndAllowThreads(__tstate); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | } | |
7651 | Py_INCREF(Py_None); resultobj = Py_None; | |
7652 | return resultobj; | |
7653 | fail: | |
7654 | return NULL; | |
7655 | } | |
7656 | ||
7657 | ||
7658 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7659 | PyObject *resultobj; | |
7660 | wxFont *arg1 = (wxFont *) 0 ; | |
7661 | wxString *arg2 = 0 ; | |
423f194a | 7662 | bool temp2 = False ; |
d14a1e28 RD |
7663 | PyObject * obj0 = 0 ; |
7664 | PyObject * obj1 = 0 ; | |
7665 | char *kwnames[] = { | |
7666 | (char *) "self",(char *) "info", NULL | |
7667 | }; | |
7668 | ||
7669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
7670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7671 | { | |
7672 | arg2 = wxString_in_helper(obj1); | |
7673 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7674 | temp2 = True; |
d14a1e28 RD |
7675 | } |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | Py_INCREF(Py_None); resultobj = Py_None; | |
7684 | { | |
7685 | if (temp2) | |
7686 | delete arg2; | |
7687 | } | |
7688 | return resultobj; | |
7689 | fail: | |
7690 | { | |
7691 | if (temp2) | |
7692 | delete arg2; | |
7693 | } | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
7698 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7699 | PyObject *resultobj; | |
7700 | wxFont *arg1 = (wxFont *) 0 ; | |
7701 | wxString *arg2 = 0 ; | |
423f194a | 7702 | bool temp2 = False ; |
d14a1e28 RD |
7703 | PyObject * obj0 = 0 ; |
7704 | PyObject * obj1 = 0 ; | |
7705 | char *kwnames[] = { | |
7706 | (char *) "self",(char *) "info", NULL | |
7707 | }; | |
7708 | ||
7709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
7710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7711 | { | |
7712 | arg2 = wxString_in_helper(obj1); | |
7713 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7714 | temp2 = True; |
d14a1e28 RD |
7715 | } |
7716 | { | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
7719 | ||
7720 | wxPyEndAllowThreads(__tstate); | |
7721 | if (PyErr_Occurred()) SWIG_fail; | |
7722 | } | |
7723 | Py_INCREF(Py_None); resultobj = Py_None; | |
7724 | { | |
7725 | if (temp2) | |
7726 | delete arg2; | |
7727 | } | |
7728 | return resultobj; | |
7729 | fail: | |
7730 | { | |
7731 | if (temp2) | |
7732 | delete arg2; | |
7733 | } | |
7734 | return NULL; | |
7735 | } | |
7736 | ||
7737 | ||
7738 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7739 | PyObject *resultobj; | |
7740 | wxFont *arg1 = (wxFont *) 0 ; | |
7741 | wxString result; | |
7742 | PyObject * obj0 = 0 ; | |
7743 | char *kwnames[] = { | |
7744 | (char *) "self", NULL | |
7745 | }; | |
7746 | ||
7747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
7748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7749 | { | |
7750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7751 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
7752 | ||
7753 | wxPyEndAllowThreads(__tstate); | |
7754 | if (PyErr_Occurred()) SWIG_fail; | |
7755 | } | |
7756 | { | |
7757 | #if wxUSE_UNICODE | |
7758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7759 | #else | |
7760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7761 | #endif | |
7762 | } | |
7763 | return resultobj; | |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
7769 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7770 | PyObject *resultobj; | |
7771 | wxFont *arg1 = (wxFont *) 0 ; | |
7772 | wxString result; | |
7773 | PyObject * obj0 = 0 ; | |
7774 | char *kwnames[] = { | |
7775 | (char *) "self", NULL | |
7776 | }; | |
7777 | ||
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
7779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7780 | { | |
7781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7782 | result = ((wxFont const *)arg1)->GetStyleString(); | |
7783 | ||
7784 | wxPyEndAllowThreads(__tstate); | |
7785 | if (PyErr_Occurred()) SWIG_fail; | |
7786 | } | |
7787 | { | |
7788 | #if wxUSE_UNICODE | |
7789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7790 | #else | |
7791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7792 | #endif | |
7793 | } | |
7794 | return resultobj; | |
7795 | fail: | |
7796 | return NULL; | |
7797 | } | |
7798 | ||
7799 | ||
7800 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7801 | PyObject *resultobj; | |
7802 | wxFont *arg1 = (wxFont *) 0 ; | |
7803 | wxString result; | |
7804 | PyObject * obj0 = 0 ; | |
7805 | char *kwnames[] = { | |
7806 | (char *) "self", NULL | |
7807 | }; | |
7808 | ||
7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
7810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7811 | { | |
7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7813 | result = ((wxFont const *)arg1)->GetWeightString(); | |
7814 | ||
7815 | wxPyEndAllowThreads(__tstate); | |
7816 | if (PyErr_Occurred()) SWIG_fail; | |
7817 | } | |
7818 | { | |
7819 | #if wxUSE_UNICODE | |
7820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7821 | #else | |
7822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7823 | #endif | |
7824 | } | |
7825 | return resultobj; | |
7826 | fail: | |
7827 | return NULL; | |
7828 | } | |
7829 | ||
7830 | ||
7831 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7832 | PyObject *resultobj; | |
7833 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 7834 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7835 | PyObject * obj0 = 0 ; |
7836 | PyObject * obj1 = 0 ; | |
7837 | char *kwnames[] = { | |
7838 | (char *) "self",(char *) "no", NULL | |
7839 | }; | |
7840 | ||
7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
7842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7843 | if (obj1) { | |
7844 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7845 | if (PyErr_Occurred()) SWIG_fail; | |
7846 | } | |
7847 | { | |
7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7849 | (arg1)->SetNoAntiAliasing(arg2); | |
7850 | ||
7851 | wxPyEndAllowThreads(__tstate); | |
7852 | if (PyErr_Occurred()) SWIG_fail; | |
7853 | } | |
7854 | Py_INCREF(Py_None); resultobj = Py_None; | |
7855 | return resultobj; | |
7856 | fail: | |
7857 | return NULL; | |
7858 | } | |
7859 | ||
7860 | ||
7861 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7862 | PyObject *resultobj; | |
7863 | wxFont *arg1 = (wxFont *) 0 ; | |
7864 | bool result; | |
7865 | PyObject * obj0 = 0 ; | |
7866 | char *kwnames[] = { | |
7867 | (char *) "self", NULL | |
7868 | }; | |
7869 | ||
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
7871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7872 | { | |
7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7874 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
7875 | ||
7876 | wxPyEndAllowThreads(__tstate); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
7879 | resultobj = PyInt_FromLong((long)result); | |
7880 | return resultobj; | |
7881 | fail: | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
7886 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject *resultobj; | |
7888 | int result; | |
7889 | char *kwnames[] = { | |
7890 | NULL | |
7891 | }; | |
7892 | ||
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
7894 | { | |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | result = (int)wxFont::GetDefaultEncoding(); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
7901 | resultobj = PyInt_FromLong((long)result); | |
7902 | return resultobj; | |
7903 | fail: | |
7904 | return NULL; | |
7905 | } | |
7906 | ||
7907 | ||
7908 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7909 | PyObject *resultobj; | |
7910 | int arg1 ; | |
7911 | char *kwnames[] = { | |
7912 | (char *) "encoding", NULL | |
7913 | }; | |
7914 | ||
7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Font_SetDefaultEncoding",kwnames,&arg1)) goto fail; | |
7916 | { | |
7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7918 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
7919 | ||
7920 | wxPyEndAllowThreads(__tstate); | |
7921 | if (PyErr_Occurred()) SWIG_fail; | |
7922 | } | |
7923 | Py_INCREF(Py_None); resultobj = Py_None; | |
7924 | return resultobj; | |
7925 | fail: | |
7926 | return NULL; | |
7927 | } | |
7928 | ||
7929 | ||
7930 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
7931 | PyObject *obj; | |
7932 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7933 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
7934 | Py_INCREF(obj); | |
7935 | return Py_BuildValue((char *)""); | |
7936 | } | |
7937 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7938 | PyObject *resultobj; | |
7939 | wxPyFontEnumerator *result; | |
7940 | char *kwnames[] = { | |
7941 | NULL | |
7942 | }; | |
7943 | ||
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
7945 | { | |
7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7947 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
7948 | ||
7949 | wxPyEndAllowThreads(__tstate); | |
7950 | if (PyErr_Occurred()) SWIG_fail; | |
7951 | } | |
7952 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1); | |
7953 | return resultobj; | |
7954 | fail: | |
7955 | return NULL; | |
7956 | } | |
7957 | ||
7958 | ||
7959 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7960 | PyObject *resultobj; | |
7961 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7962 | PyObject * obj0 = 0 ; | |
7963 | char *kwnames[] = { | |
7964 | (char *) "self", NULL | |
7965 | }; | |
7966 | ||
7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
7968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7969 | { | |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7971 | delete arg1; | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | } | |
7976 | Py_INCREF(Py_None); resultobj = Py_None; | |
7977 | return resultobj; | |
7978 | fail: | |
7979 | return NULL; | |
7980 | } | |
7981 | ||
7982 | ||
7983 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7984 | PyObject *resultobj; | |
7985 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
7986 | PyObject *arg2 = (PyObject *) 0 ; | |
7987 | PyObject *arg3 = (PyObject *) 0 ; | |
7988 | bool arg4 ; | |
7989 | PyObject * obj0 = 0 ; | |
7990 | PyObject * obj1 = 0 ; | |
7991 | PyObject * obj2 = 0 ; | |
7992 | PyObject * obj3 = 0 ; | |
7993 | char *kwnames[] = { | |
7994 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
7995 | }; | |
7996 | ||
7997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7999 | arg2 = obj1; | |
8000 | arg3 = obj2; | |
8001 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
8002 | if (PyErr_Occurred()) SWIG_fail; | |
8003 | { | |
8004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8005 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8006 | ||
8007 | wxPyEndAllowThreads(__tstate); | |
8008 | if (PyErr_Occurred()) SWIG_fail; | |
8009 | } | |
8010 | Py_INCREF(Py_None); resultobj = Py_None; | |
8011 | return resultobj; | |
8012 | fail: | |
8013 | return NULL; | |
8014 | } | |
8015 | ||
8016 | ||
8017 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8018 | PyObject *resultobj; | |
8019 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8020 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 8021 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8022 | bool result; |
8023 | PyObject * obj0 = 0 ; | |
8024 | PyObject * obj2 = 0 ; | |
8025 | char *kwnames[] = { | |
8026 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8027 | }; | |
8028 | ||
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8031 | if (obj2) { | |
8032 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
8034 | } | |
8035 | { | |
8036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8037 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8038 | ||
8039 | wxPyEndAllowThreads(__tstate); | |
8040 | if (PyErr_Occurred()) SWIG_fail; | |
8041 | } | |
8042 | resultobj = PyInt_FromLong((long)result); | |
8043 | return resultobj; | |
8044 | fail: | |
8045 | return NULL; | |
8046 | } | |
8047 | ||
8048 | ||
8049 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8050 | PyObject *resultobj; | |
8051 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8052 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8053 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8054 | bool result; | |
423f194a | 8055 | bool temp2 = False ; |
d14a1e28 RD |
8056 | PyObject * obj0 = 0 ; |
8057 | PyObject * obj1 = 0 ; | |
8058 | char *kwnames[] = { | |
8059 | (char *) "self",(char *) "facename", NULL | |
8060 | }; | |
8061 | ||
8062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8064 | if (obj1) { | |
8065 | { | |
8066 | arg2 = wxString_in_helper(obj1); | |
8067 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8068 | temp2 = True; |
d14a1e28 RD |
8069 | } |
8070 | } | |
8071 | { | |
8072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8073 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8074 | ||
8075 | wxPyEndAllowThreads(__tstate); | |
8076 | if (PyErr_Occurred()) SWIG_fail; | |
8077 | } | |
8078 | resultobj = PyInt_FromLong((long)result); | |
8079 | { | |
8080 | if (temp2) | |
8081 | delete arg2; | |
8082 | } | |
8083 | return resultobj; | |
8084 | fail: | |
8085 | { | |
8086 | if (temp2) | |
8087 | delete arg2; | |
8088 | } | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
8093 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8094 | PyObject *resultobj; | |
8095 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8096 | PyObject *result; | |
8097 | PyObject * obj0 = 0 ; | |
8098 | char *kwnames[] = { | |
8099 | (char *) "self", NULL | |
8100 | }; | |
8101 | ||
8102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8104 | { | |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) SWIG_fail; | |
8110 | } | |
8111 | resultobj = result; | |
8112 | return resultobj; | |
8113 | fail: | |
8114 | return NULL; | |
8115 | } | |
8116 | ||
8117 | ||
8118 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8119 | PyObject *resultobj; | |
8120 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8121 | PyObject *result; | |
8122 | PyObject * obj0 = 0 ; | |
8123 | char *kwnames[] = { | |
8124 | (char *) "self", NULL | |
8125 | }; | |
8126 | ||
8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8129 | { | |
8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8131 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8132 | ||
8133 | wxPyEndAllowThreads(__tstate); | |
8134 | if (PyErr_Occurred()) SWIG_fail; | |
8135 | } | |
8136 | resultobj = result; | |
8137 | return resultobj; | |
8138 | fail: | |
8139 | return NULL; | |
8140 | } | |
8141 | ||
8142 | ||
8143 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8144 | PyObject *obj; | |
8145 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8146 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8147 | Py_INCREF(obj); | |
8148 | return Py_BuildValue((char *)""); | |
8149 | } | |
8150 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8151 | PyObject *resultobj; | |
8152 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8153 | int arg2 ; | |
8154 | PyObject * obj0 = 0 ; | |
8155 | char *kwnames[] = { | |
8156 | (char *) "self",(char *) "Language", NULL | |
8157 | }; | |
8158 | ||
8159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:LanguageInfo_Language_set",kwnames,&obj0,&arg2)) goto fail; | |
8160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8161 | if (arg1) (arg1)->Language = arg2; | |
8162 | ||
8163 | Py_INCREF(Py_None); resultobj = Py_None; | |
8164 | return resultobj; | |
8165 | fail: | |
8166 | return NULL; | |
8167 | } | |
8168 | ||
8169 | ||
8170 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8171 | PyObject *resultobj; | |
8172 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8173 | int result; | |
8174 | PyObject * obj0 = 0 ; | |
8175 | char *kwnames[] = { | |
8176 | (char *) "self", NULL | |
8177 | }; | |
8178 | ||
8179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8181 | result = (int) ((arg1)->Language); | |
8182 | ||
8183 | resultobj = PyInt_FromLong((long)result); | |
8184 | return resultobj; | |
8185 | fail: | |
8186 | return NULL; | |
8187 | } | |
8188 | ||
8189 | ||
8190 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8191 | PyObject *resultobj; | |
8192 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8193 | wxString arg2 ; | |
d14a1e28 RD |
8194 | PyObject * obj0 = 0 ; |
8195 | PyObject * obj1 = 0 ; | |
8196 | char *kwnames[] = { | |
8197 | (char *) "self",(char *) "CanonicalName", NULL | |
8198 | }; | |
8199 | ||
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
8202 | { |
8203 | wxString* sptr = wxString_in_helper(obj1); | |
8204 | if (sptr == NULL) SWIG_fail; | |
8205 | arg2 = *sptr; | |
8206 | delete sptr; | |
8207 | } | |
d14a1e28 RD |
8208 | if (arg1) (arg1)->CanonicalName = arg2; |
8209 | ||
8210 | Py_INCREF(Py_None); resultobj = Py_None; | |
8211 | return resultobj; | |
8212 | fail: | |
8213 | return NULL; | |
8214 | } | |
8215 | ||
8216 | ||
8217 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8218 | PyObject *resultobj; | |
8219 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8220 | wxString result; | |
8221 | PyObject * obj0 = 0 ; | |
8222 | char *kwnames[] = { | |
8223 | (char *) "self", NULL | |
8224 | }; | |
8225 | ||
8226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8228 | result = ((arg1)->CanonicalName); | |
8229 | ||
8230 | { | |
8231 | #if wxUSE_UNICODE | |
8232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8233 | #else | |
8234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8235 | #endif | |
8236 | } | |
8237 | return resultobj; | |
8238 | fail: | |
8239 | return NULL; | |
8240 | } | |
8241 | ||
8242 | ||
8243 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8244 | PyObject *resultobj; | |
8245 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8246 | wxString arg2 ; | |
d14a1e28 RD |
8247 | PyObject * obj0 = 0 ; |
8248 | PyObject * obj1 = 0 ; | |
8249 | char *kwnames[] = { | |
8250 | (char *) "self",(char *) "Description", NULL | |
8251 | }; | |
8252 | ||
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a RD |
8255 | { |
8256 | wxString* sptr = wxString_in_helper(obj1); | |
8257 | if (sptr == NULL) SWIG_fail; | |
8258 | arg2 = *sptr; | |
8259 | delete sptr; | |
8260 | } | |
d14a1e28 RD |
8261 | if (arg1) (arg1)->Description = arg2; |
8262 | ||
8263 | Py_INCREF(Py_None); resultobj = Py_None; | |
8264 | return resultobj; | |
8265 | fail: | |
8266 | return NULL; | |
8267 | } | |
8268 | ||
8269 | ||
8270 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8271 | PyObject *resultobj; | |
8272 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8273 | wxString result; | |
8274 | PyObject * obj0 = 0 ; | |
8275 | char *kwnames[] = { | |
8276 | (char *) "self", NULL | |
8277 | }; | |
8278 | ||
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8281 | result = ((arg1)->Description); | |
8282 | ||
8283 | { | |
8284 | #if wxUSE_UNICODE | |
8285 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8286 | #else | |
8287 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8288 | #endif | |
8289 | } | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | return NULL; | |
8293 | } | |
8294 | ||
8295 | ||
8296 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8297 | PyObject *obj; | |
8298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8299 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8300 | Py_INCREF(obj); | |
8301 | return Py_BuildValue((char *)""); | |
8302 | } | |
8303 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8304 | PyObject *resultobj; | |
8305 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8306 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8307 | wxLocale *result; | |
8308 | char *kwnames[] = { | |
8309 | (char *) "language",(char *) "flags", NULL | |
8310 | }; | |
8311 | ||
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_Locale",kwnames,&arg1,&arg2)) goto fail; | |
8313 | { | |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1); | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
8327 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8328 | PyObject *resultobj; | |
8329 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8330 | PyObject * obj0 = 0 ; | |
8331 | char *kwnames[] = { | |
8332 | (char *) "self", NULL | |
8333 | }; | |
8334 | ||
8335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
8336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8337 | { | |
8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8339 | delete arg1; | |
8340 | ||
8341 | wxPyEndAllowThreads(__tstate); | |
8342 | if (PyErr_Occurred()) SWIG_fail; | |
8343 | } | |
8344 | Py_INCREF(Py_None); resultobj = Py_None; | |
8345 | return resultobj; | |
8346 | fail: | |
8347 | return NULL; | |
8348 | } | |
8349 | ||
8350 | ||
8351 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8352 | PyObject *resultobj; | |
8353 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8354 | wxString *arg2 = 0 ; | |
8355 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8356 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8357 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8358 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
8359 | bool arg5 = (bool) True ; |
8360 | bool arg6 = (bool) False ; | |
d14a1e28 | 8361 | bool result; |
423f194a RD |
8362 | bool temp2 = False ; |
8363 | bool temp3 = False ; | |
8364 | bool temp4 = False ; | |
d14a1e28 RD |
8365 | PyObject * obj0 = 0 ; |
8366 | PyObject * obj1 = 0 ; | |
8367 | PyObject * obj2 = 0 ; | |
8368 | PyObject * obj3 = 0 ; | |
8369 | PyObject * obj4 = 0 ; | |
8370 | PyObject * obj5 = 0 ; | |
8371 | char *kwnames[] = { | |
8372 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8373 | }; | |
8374 | ||
8375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8377 | { | |
8378 | arg2 = wxString_in_helper(obj1); | |
8379 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8380 | temp2 = True; |
d14a1e28 RD |
8381 | } |
8382 | if (obj2) { | |
8383 | { | |
8384 | arg3 = wxString_in_helper(obj2); | |
8385 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8386 | temp3 = True; |
d14a1e28 RD |
8387 | } |
8388 | } | |
8389 | if (obj3) { | |
8390 | { | |
8391 | arg4 = wxString_in_helper(obj3); | |
8392 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8393 | temp4 = True; |
d14a1e28 RD |
8394 | } |
8395 | } | |
8396 | if (obj4) { | |
8397 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
8398 | if (PyErr_Occurred()) SWIG_fail; | |
8399 | } | |
8400 | if (obj5) { | |
8401 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | { | |
8405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8406 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8407 | ||
8408 | wxPyEndAllowThreads(__tstate); | |
8409 | if (PyErr_Occurred()) SWIG_fail; | |
8410 | } | |
8411 | resultobj = PyInt_FromLong((long)result); | |
8412 | { | |
8413 | if (temp2) | |
8414 | delete arg2; | |
8415 | } | |
8416 | { | |
8417 | if (temp3) | |
8418 | delete arg3; | |
8419 | } | |
8420 | { | |
8421 | if (temp4) | |
8422 | delete arg4; | |
8423 | } | |
8424 | return resultobj; | |
8425 | fail: | |
8426 | { | |
8427 | if (temp2) | |
8428 | delete arg2; | |
8429 | } | |
8430 | { | |
8431 | if (temp3) | |
8432 | delete arg3; | |
8433 | } | |
8434 | { | |
8435 | if (temp4) | |
8436 | delete arg4; | |
8437 | } | |
8438 | return NULL; | |
8439 | } | |
8440 | ||
8441 | ||
8442 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8443 | PyObject *resultobj; | |
8444 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8445 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
8446 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8447 | bool result; | |
8448 | PyObject * obj0 = 0 ; | |
8449 | char *kwnames[] = { | |
8450 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
8451 | }; | |
8452 | ||
8453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:Locale_Init2",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8455 | { | |
8456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8457 | result = (bool)(arg1)->Init(arg2,arg3); | |
8458 | ||
8459 | wxPyEndAllowThreads(__tstate); | |
8460 | if (PyErr_Occurred()) SWIG_fail; | |
8461 | } | |
8462 | resultobj = PyInt_FromLong((long)result); | |
8463 | return resultobj; | |
8464 | fail: | |
8465 | return NULL; | |
8466 | } | |
8467 | ||
8468 | ||
8469 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8470 | PyObject *resultobj; | |
8471 | int result; | |
8472 | char *kwnames[] = { | |
8473 | NULL | |
8474 | }; | |
8475 | ||
8476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
8477 | { | |
8478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8479 | result = (int)wxLocale::GetSystemLanguage(); | |
8480 | ||
8481 | wxPyEndAllowThreads(__tstate); | |
8482 | if (PyErr_Occurred()) SWIG_fail; | |
8483 | } | |
8484 | resultobj = PyInt_FromLong((long)result); | |
8485 | return resultobj; | |
8486 | fail: | |
8487 | return NULL; | |
8488 | } | |
8489 | ||
8490 | ||
8491 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject *resultobj; | |
8493 | int result; | |
8494 | char *kwnames[] = { | |
8495 | NULL | |
8496 | }; | |
8497 | ||
8498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
8499 | { | |
8500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8501 | result = (int)wxLocale::GetSystemEncoding(); | |
8502 | ||
8503 | wxPyEndAllowThreads(__tstate); | |
8504 | if (PyErr_Occurred()) SWIG_fail; | |
8505 | } | |
8506 | resultobj = PyInt_FromLong((long)result); | |
8507 | return resultobj; | |
8508 | fail: | |
8509 | return NULL; | |
8510 | } | |
8511 | ||
8512 | ||
8513 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8514 | PyObject *resultobj; | |
8515 | wxString result; | |
8516 | char *kwnames[] = { | |
8517 | NULL | |
8518 | }; | |
8519 | ||
8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
8521 | { | |
8522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8523 | result = wxLocale::GetSystemEncodingName(); | |
8524 | ||
8525 | wxPyEndAllowThreads(__tstate); | |
8526 | if (PyErr_Occurred()) SWIG_fail; | |
8527 | } | |
8528 | { | |
8529 | #if wxUSE_UNICODE | |
8530 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8531 | #else | |
8532 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8533 | #endif | |
8534 | } | |
8535 | return resultobj; | |
8536 | fail: | |
8537 | return NULL; | |
8538 | } | |
8539 | ||
8540 | ||
8541 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8542 | PyObject *resultobj; | |
8543 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8544 | bool result; | |
8545 | PyObject * obj0 = 0 ; | |
8546 | char *kwnames[] = { | |
8547 | (char *) "self", NULL | |
8548 | }; | |
8549 | ||
8550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
8551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8552 | { | |
8553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8554 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
8555 | ||
8556 | wxPyEndAllowThreads(__tstate); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
8559 | resultobj = PyInt_FromLong((long)result); | |
8560 | return resultobj; | |
8561 | fail: | |
8562 | return NULL; | |
8563 | } | |
8564 | ||
8565 | ||
8566 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8567 | PyObject *resultobj; | |
8568 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8569 | wxString result; | |
8570 | PyObject * obj0 = 0 ; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "self", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
8576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8577 | { | |
8578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8579 | result = ((wxLocale const *)arg1)->GetLocale(); | |
8580 | ||
8581 | wxPyEndAllowThreads(__tstate); | |
8582 | if (PyErr_Occurred()) SWIG_fail; | |
8583 | } | |
8584 | { | |
8585 | #if wxUSE_UNICODE | |
8586 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8587 | #else | |
8588 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8589 | #endif | |
8590 | } | |
8591 | return resultobj; | |
8592 | fail: | |
8593 | return NULL; | |
8594 | } | |
8595 | ||
8596 | ||
8597 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8598 | PyObject *resultobj; | |
8599 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8600 | int result; | |
8601 | PyObject * obj0 = 0 ; | |
8602 | char *kwnames[] = { | |
8603 | (char *) "self", NULL | |
8604 | }; | |
8605 | ||
8606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
8607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8608 | { | |
8609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8610 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
8611 | ||
8612 | wxPyEndAllowThreads(__tstate); | |
8613 | if (PyErr_Occurred()) SWIG_fail; | |
8614 | } | |
8615 | resultobj = PyInt_FromLong((long)result); | |
8616 | return resultobj; | |
8617 | fail: | |
8618 | return NULL; | |
8619 | } | |
8620 | ||
8621 | ||
8622 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8623 | PyObject *resultobj; | |
8624 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8625 | wxString result; | |
8626 | PyObject * obj0 = 0 ; | |
8627 | char *kwnames[] = { | |
8628 | (char *) "self", NULL | |
8629 | }; | |
8630 | ||
8631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
8632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8633 | { | |
8634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8635 | result = ((wxLocale const *)arg1)->GetSysName(); | |
8636 | ||
8637 | wxPyEndAllowThreads(__tstate); | |
8638 | if (PyErr_Occurred()) SWIG_fail; | |
8639 | } | |
8640 | { | |
8641 | #if wxUSE_UNICODE | |
8642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8643 | #else | |
8644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8645 | #endif | |
8646 | } | |
8647 | return resultobj; | |
8648 | fail: | |
8649 | return NULL; | |
8650 | } | |
8651 | ||
8652 | ||
8653 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8654 | PyObject *resultobj; | |
8655 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8656 | wxString result; | |
8657 | PyObject * obj0 = 0 ; | |
8658 | char *kwnames[] = { | |
8659 | (char *) "self", NULL | |
8660 | }; | |
8661 | ||
8662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
8663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8664 | { | |
8665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8666 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
8667 | ||
8668 | wxPyEndAllowThreads(__tstate); | |
8669 | if (PyErr_Occurred()) SWIG_fail; | |
8670 | } | |
8671 | { | |
8672 | #if wxUSE_UNICODE | |
8673 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8674 | #else | |
8675 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8676 | #endif | |
8677 | } | |
8678 | return resultobj; | |
8679 | fail: | |
8680 | return NULL; | |
8681 | } | |
8682 | ||
8683 | ||
8684 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8685 | PyObject *resultobj; | |
8686 | wxString *arg1 = 0 ; | |
423f194a | 8687 | bool temp1 = False ; |
d14a1e28 RD |
8688 | PyObject * obj0 = 0 ; |
8689 | char *kwnames[] = { | |
8690 | (char *) "prefix", NULL | |
8691 | }; | |
8692 | ||
8693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
8694 | { | |
8695 | arg1 = wxString_in_helper(obj0); | |
8696 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8697 | temp1 = True; |
d14a1e28 RD |
8698 | } |
8699 | { | |
8700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8701 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
8702 | ||
8703 | wxPyEndAllowThreads(__tstate); | |
8704 | if (PyErr_Occurred()) SWIG_fail; | |
8705 | } | |
8706 | Py_INCREF(Py_None); resultobj = Py_None; | |
8707 | { | |
8708 | if (temp1) | |
8709 | delete arg1; | |
8710 | } | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | { | |
8714 | if (temp1) | |
8715 | delete arg1; | |
8716 | } | |
8717 | return NULL; | |
8718 | } | |
8719 | ||
8720 | ||
8721 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8722 | PyObject *resultobj; | |
8723 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8724 | wxString *arg2 = 0 ; | |
8725 | bool result; | |
423f194a | 8726 | bool temp2 = False ; |
d14a1e28 RD |
8727 | PyObject * obj0 = 0 ; |
8728 | PyObject * obj1 = 0 ; | |
8729 | char *kwnames[] = { | |
8730 | (char *) "self",(char *) "szDomain", NULL | |
8731 | }; | |
8732 | ||
8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
8734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8735 | { | |
8736 | arg2 = wxString_in_helper(obj1); | |
8737 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8738 | temp2 = True; |
d14a1e28 RD |
8739 | } |
8740 | { | |
8741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8742 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
8743 | ||
8744 | wxPyEndAllowThreads(__tstate); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | resultobj = PyInt_FromLong((long)result); | |
8748 | { | |
8749 | if (temp2) | |
8750 | delete arg2; | |
8751 | } | |
8752 | return resultobj; | |
8753 | fail: | |
8754 | { | |
8755 | if (temp2) | |
8756 | delete arg2; | |
8757 | } | |
8758 | return NULL; | |
8759 | } | |
8760 | ||
8761 | ||
8762 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8763 | PyObject *resultobj; | |
8764 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8765 | wxString *arg2 = 0 ; | |
8766 | bool result; | |
423f194a | 8767 | bool temp2 = False ; |
d14a1e28 RD |
8768 | PyObject * obj0 = 0 ; |
8769 | PyObject * obj1 = 0 ; | |
8770 | char *kwnames[] = { | |
8771 | (char *) "self",(char *) "szDomain", NULL | |
8772 | }; | |
8773 | ||
8774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
8775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8776 | { | |
8777 | arg2 = wxString_in_helper(obj1); | |
8778 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8779 | temp2 = True; |
d14a1e28 RD |
8780 | } |
8781 | { | |
8782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8783 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
8784 | ||
8785 | wxPyEndAllowThreads(__tstate); | |
8786 | if (PyErr_Occurred()) SWIG_fail; | |
8787 | } | |
8788 | resultobj = PyInt_FromLong((long)result); | |
8789 | { | |
8790 | if (temp2) | |
8791 | delete arg2; | |
8792 | } | |
8793 | return resultobj; | |
8794 | fail: | |
8795 | { | |
8796 | if (temp2) | |
8797 | delete arg2; | |
8798 | } | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
8803 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8804 | PyObject *resultobj; | |
8805 | int arg1 ; | |
8806 | wxLanguageInfo *result; | |
8807 | char *kwnames[] = { | |
8808 | (char *) "lang", NULL | |
8809 | }; | |
8810 | ||
8811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageInfo",kwnames,&arg1)) goto fail; | |
8812 | { | |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8820 | return resultobj; | |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
8826 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8827 | PyObject *resultobj; | |
8828 | int arg1 ; | |
8829 | wxString result; | |
8830 | char *kwnames[] = { | |
8831 | (char *) "lang", NULL | |
8832 | }; | |
8833 | ||
8834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Locale_GetLanguageName",kwnames,&arg1)) goto fail; | |
8835 | { | |
8836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8837 | result = wxLocale::GetLanguageName(arg1); | |
8838 | ||
8839 | wxPyEndAllowThreads(__tstate); | |
8840 | if (PyErr_Occurred()) SWIG_fail; | |
8841 | } | |
8842 | { | |
8843 | #if wxUSE_UNICODE | |
8844 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8845 | #else | |
8846 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8847 | #endif | |
8848 | } | |
8849 | return resultobj; | |
8850 | fail: | |
8851 | return NULL; | |
8852 | } | |
8853 | ||
8854 | ||
8855 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject *resultobj; | |
8857 | wxString *arg1 = 0 ; | |
8858 | wxLanguageInfo *result; | |
423f194a | 8859 | bool temp1 = False ; |
d14a1e28 RD |
8860 | PyObject * obj0 = 0 ; |
8861 | char *kwnames[] = { | |
8862 | (char *) "locale", NULL | |
8863 | }; | |
8864 | ||
8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
8866 | { | |
8867 | arg1 = wxString_in_helper(obj0); | |
8868 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8869 | temp1 = True; |
d14a1e28 RD |
8870 | } |
8871 | { | |
8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8873 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
8874 | ||
8875 | wxPyEndAllowThreads(__tstate); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
8877 | } | |
8878 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0); | |
8879 | { | |
8880 | if (temp1) | |
8881 | delete arg1; | |
8882 | } | |
8883 | return resultobj; | |
8884 | fail: | |
8885 | { | |
8886 | if (temp1) | |
8887 | delete arg1; | |
8888 | } | |
8889 | return NULL; | |
8890 | } | |
8891 | ||
8892 | ||
8893 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8894 | PyObject *resultobj; | |
8895 | wxLanguageInfo *arg1 = 0 ; | |
8896 | PyObject * obj0 = 0 ; | |
8897 | char *kwnames[] = { | |
8898 | (char *) "info", NULL | |
8899 | }; | |
8900 | ||
8901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
8902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8903 | if (arg1 == NULL) { | |
8904 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8905 | } | |
8906 | { | |
8907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8908 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
8909 | ||
8910 | wxPyEndAllowThreads(__tstate); | |
8911 | if (PyErr_Occurred()) SWIG_fail; | |
8912 | } | |
8913 | Py_INCREF(Py_None); resultobj = Py_None; | |
8914 | return resultobj; | |
8915 | fail: | |
8916 | return NULL; | |
8917 | } | |
8918 | ||
8919 | ||
8920 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8921 | PyObject *resultobj; | |
8922 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8923 | wxString *arg2 = 0 ; | |
8924 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8925 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8926 | wxString result; | |
423f194a RD |
8927 | bool temp2 = False ; |
8928 | bool temp3 = False ; | |
d14a1e28 RD |
8929 | PyObject * obj0 = 0 ; |
8930 | PyObject * obj1 = 0 ; | |
8931 | PyObject * obj2 = 0 ; | |
8932 | char *kwnames[] = { | |
8933 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
8934 | }; | |
8935 | ||
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8938 | { | |
8939 | arg2 = wxString_in_helper(obj1); | |
8940 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8941 | temp2 = True; |
d14a1e28 RD |
8942 | } |
8943 | if (obj2) { | |
8944 | { | |
8945 | arg3 = wxString_in_helper(obj2); | |
8946 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8947 | temp3 = True; |
d14a1e28 RD |
8948 | } |
8949 | } | |
8950 | { | |
8951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8952 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
8953 | ||
8954 | wxPyEndAllowThreads(__tstate); | |
8955 | if (PyErr_Occurred()) SWIG_fail; | |
8956 | } | |
8957 | { | |
8958 | #if wxUSE_UNICODE | |
8959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8960 | #else | |
8961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8962 | #endif | |
8963 | } | |
8964 | { | |
8965 | if (temp2) | |
8966 | delete arg2; | |
8967 | } | |
8968 | { | |
8969 | if (temp3) | |
8970 | delete arg3; | |
8971 | } | |
8972 | return resultobj; | |
8973 | fail: | |
8974 | { | |
8975 | if (temp2) | |
8976 | delete arg2; | |
8977 | } | |
8978 | { | |
8979 | if (temp3) | |
8980 | delete arg3; | |
8981 | } | |
8982 | return NULL; | |
8983 | } | |
8984 | ||
8985 | ||
8986 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8987 | PyObject *resultobj; | |
8988 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8989 | wxString *result; | |
8990 | PyObject * obj0 = 0 ; | |
8991 | char *kwnames[] = { | |
8992 | (char *) "self", NULL | |
8993 | }; | |
8994 | ||
8995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
8996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8997 | { | |
8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8999 | { | |
9000 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9001 | result = (wxString *) &_result_ref; | |
9002 | } | |
9003 | ||
9004 | wxPyEndAllowThreads(__tstate); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | } | |
f0983263 RD |
9007 | { |
9008 | #if wxUSE_UNICODE | |
9009 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9010 | #else | |
9011 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9012 | #endif | |
9013 | } | |
d14a1e28 RD |
9014 | return resultobj; |
9015 | fail: | |
9016 | return NULL; | |
9017 | } | |
9018 | ||
9019 | ||
9020 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9021 | PyObject *obj; | |
9022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9023 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9024 | Py_INCREF(obj); | |
9025 | return Py_BuildValue((char *)""); | |
9026 | } | |
9027 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9028 | PyObject *resultobj; | |
9029 | wxLocale *result; | |
9030 | char *kwnames[] = { | |
9031 | NULL | |
9032 | }; | |
9033 | ||
9034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9035 | { | |
9036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9037 | result = (wxLocale *)wxGetLocale(); | |
9038 | ||
9039 | wxPyEndAllowThreads(__tstate); | |
9040 | if (PyErr_Occurred()) SWIG_fail; | |
9041 | } | |
9042 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0); | |
9043 | return resultobj; | |
9044 | fail: | |
9045 | return NULL; | |
9046 | } | |
9047 | ||
9048 | ||
9049 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9050 | PyObject *resultobj; | |
9051 | wxString *arg1 = 0 ; | |
9052 | wxString result; | |
423f194a | 9053 | bool temp1 = False ; |
d14a1e28 RD |
9054 | PyObject * obj0 = 0 ; |
9055 | ||
9056 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9057 | { | |
9058 | arg1 = wxString_in_helper(obj0); | |
9059 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9060 | temp1 = True; |
d14a1e28 RD |
9061 | } |
9062 | { | |
9063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9064 | result = wxGetTranslation((wxString const &)*arg1); | |
9065 | ||
9066 | wxPyEndAllowThreads(__tstate); | |
9067 | if (PyErr_Occurred()) SWIG_fail; | |
9068 | } | |
9069 | { | |
9070 | #if wxUSE_UNICODE | |
9071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9072 | #else | |
9073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9074 | #endif | |
9075 | } | |
9076 | { | |
9077 | if (temp1) | |
9078 | delete arg1; | |
9079 | } | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | { | |
9083 | if (temp1) | |
9084 | delete arg1; | |
9085 | } | |
9086 | return NULL; | |
9087 | } | |
9088 | ||
9089 | ||
9090 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9091 | PyObject *resultobj; | |
9092 | wxString *arg1 = 0 ; | |
9093 | wxString *arg2 = 0 ; | |
9094 | size_t arg3 ; | |
9095 | wxString result; | |
423f194a RD |
9096 | bool temp1 = False ; |
9097 | bool temp2 = False ; | |
d14a1e28 RD |
9098 | PyObject * obj0 = 0 ; |
9099 | PyObject * obj1 = 0 ; | |
9100 | PyObject * obj2 = 0 ; | |
9101 | ||
9102 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9103 | { | |
9104 | arg1 = wxString_in_helper(obj0); | |
9105 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9106 | temp1 = True; |
d14a1e28 RD |
9107 | } |
9108 | { | |
9109 | arg2 = wxString_in_helper(obj1); | |
9110 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9111 | temp2 = True; |
d14a1e28 RD |
9112 | } |
9113 | arg3 = (size_t) PyInt_AsLong(obj2); | |
9114 | if (PyErr_Occurred()) SWIG_fail; | |
9115 | { | |
9116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9117 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9118 | ||
9119 | wxPyEndAllowThreads(__tstate); | |
9120 | if (PyErr_Occurred()) SWIG_fail; | |
9121 | } | |
9122 | { | |
9123 | #if wxUSE_UNICODE | |
9124 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9125 | #else | |
9126 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9127 | #endif | |
9128 | } | |
9129 | { | |
9130 | if (temp1) | |
9131 | delete arg1; | |
9132 | } | |
9133 | { | |
9134 | if (temp2) | |
9135 | delete arg2; | |
9136 | } | |
9137 | return resultobj; | |
9138 | fail: | |
9139 | { | |
9140 | if (temp1) | |
9141 | delete arg1; | |
9142 | } | |
9143 | { | |
9144 | if (temp2) | |
9145 | delete arg2; | |
9146 | } | |
9147 | return NULL; | |
9148 | } | |
9149 | ||
9150 | ||
9151 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9152 | int argc; | |
9153 | PyObject *argv[4]; | |
9154 | int ii; | |
9155 | ||
9156 | argc = PyObject_Length(args); | |
9157 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9158 | argv[ii] = PyTuple_GetItem(args,ii); | |
9159 | } | |
9160 | if (argc == 1) { | |
9161 | int _v; | |
9162 | { | |
9163 | void *ptr; | |
9164 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9165 | _v = 0; | |
9166 | PyErr_Clear(); | |
9167 | } else { | |
9168 | _v = 1; | |
9169 | } | |
9170 | } | |
9171 | if (_v) { | |
9172 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9173 | } | |
9174 | } | |
9175 | if (argc == 3) { | |
9176 | int _v; | |
9177 | { | |
9178 | void *ptr; | |
9179 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9180 | _v = 0; | |
9181 | PyErr_Clear(); | |
9182 | } else { | |
9183 | _v = 1; | |
9184 | } | |
9185 | } | |
9186 | if (_v) { | |
9187 | { | |
9188 | void *ptr; | |
9189 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
9190 | _v = 0; | |
9191 | PyErr_Clear(); | |
9192 | } else { | |
9193 | _v = 1; | |
9194 | } | |
9195 | } | |
9196 | if (_v) { | |
9197 | { | |
9198 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
9199 | } | |
9200 | if (_v) { | |
9201 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9202 | } | |
9203 | } | |
9204 | } | |
9205 | } | |
9206 | ||
9207 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9208 | return NULL; | |
9209 | } | |
9210 | ||
9211 | ||
9212 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9213 | PyObject *resultobj; | |
9214 | wxEncodingConverter *result; | |
9215 | char *kwnames[] = { | |
9216 | NULL | |
9217 | }; | |
9218 | ||
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9220 | { | |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9223 | ||
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
9227 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1); | |
9228 | return resultobj; | |
9229 | fail: | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
9234 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9235 | PyObject *resultobj; | |
9236 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9237 | PyObject * obj0 = 0 ; | |
9238 | char *kwnames[] = { | |
9239 | (char *) "self", NULL | |
9240 | }; | |
9241 | ||
9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9244 | { | |
9245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9246 | delete arg1; | |
9247 | ||
9248 | wxPyEndAllowThreads(__tstate); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
9251 | Py_INCREF(Py_None); resultobj = Py_None; | |
9252 | return resultobj; | |
9253 | fail: | |
9254 | return NULL; | |
9255 | } | |
9256 | ||
9257 | ||
9258 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9259 | PyObject *resultobj; | |
9260 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9261 | int arg2 ; | |
9262 | int arg3 ; | |
9263 | int arg4 = (int) wxCONVERT_STRICT ; | |
9264 | bool result; | |
9265 | PyObject * obj0 = 0 ; | |
9266 | char *kwnames[] = { | |
9267 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9268 | }; | |
9269 | ||
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:EncodingConverter_Init",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
9271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9272 | { | |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9275 | ||
9276 | wxPyEndAllowThreads(__tstate); | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
9279 | resultobj = PyInt_FromLong((long)result); | |
9280 | return resultobj; | |
9281 | fail: | |
9282 | return NULL; | |
9283 | } | |
9284 | ||
9285 | ||
9286 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9287 | PyObject *resultobj; | |
9288 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9289 | wxString *arg2 = 0 ; | |
9290 | wxString result; | |
423f194a | 9291 | bool temp2 = False ; |
d14a1e28 RD |
9292 | PyObject * obj0 = 0 ; |
9293 | PyObject * obj1 = 0 ; | |
9294 | char *kwnames[] = { | |
9295 | (char *) "self",(char *) "input", NULL | |
9296 | }; | |
9297 | ||
9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
9299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9300 | { | |
9301 | arg2 = wxString_in_helper(obj1); | |
9302 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9303 | temp2 = True; |
d14a1e28 RD |
9304 | } |
9305 | { | |
9306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9307 | result = (arg1)->Convert((wxString const &)*arg2); | |
9308 | ||
9309 | wxPyEndAllowThreads(__tstate); | |
9310 | if (PyErr_Occurred()) SWIG_fail; | |
9311 | } | |
9312 | { | |
9313 | #if wxUSE_UNICODE | |
9314 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9315 | #else | |
9316 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9317 | #endif | |
9318 | } | |
9319 | { | |
9320 | if (temp2) | |
9321 | delete arg2; | |
9322 | } | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | { | |
9326 | if (temp2) | |
9327 | delete arg2; | |
9328 | } | |
9329 | return NULL; | |
9330 | } | |
9331 | ||
9332 | ||
9333 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9334 | PyObject *resultobj; | |
9335 | int arg1 ; | |
9336 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9337 | wxFontEncodingArray result; | |
9338 | char *kwnames[] = { | |
9339 | (char *) "enc",(char *) "platform", NULL | |
9340 | }; | |
9341 | ||
9342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:EncodingConverter_GetPlatformEquivalents",kwnames,&arg1,&arg2)) goto fail; | |
9343 | { | |
9344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9345 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9346 | ||
9347 | wxPyEndAllowThreads(__tstate); | |
9348 | if (PyErr_Occurred()) SWIG_fail; | |
9349 | } | |
9350 | { | |
9351 | resultobj = PyList_New(0); | |
9352 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9353 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9354 | PyList_Append(resultobj, number); | |
9355 | Py_DECREF(number); | |
9356 | } | |
9357 | } | |
9358 | return resultobj; | |
9359 | fail: | |
9360 | return NULL; | |
9361 | } | |
9362 | ||
9363 | ||
9364 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9365 | PyObject *resultobj; | |
9366 | int arg1 ; | |
9367 | wxFontEncodingArray result; | |
9368 | char *kwnames[] = { | |
9369 | (char *) "enc", NULL | |
9370 | }; | |
9371 | ||
9372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:EncodingConverter_GetAllEquivalents",kwnames,&arg1)) goto fail; | |
9373 | { | |
9374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9375 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
9376 | ||
9377 | wxPyEndAllowThreads(__tstate); | |
9378 | if (PyErr_Occurred()) SWIG_fail; | |
9379 | } | |
9380 | { | |
9381 | resultobj = PyList_New(0); | |
9382 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9383 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9384 | PyList_Append(resultobj, number); | |
9385 | Py_DECREF(number); | |
9386 | } | |
9387 | } | |
9388 | return resultobj; | |
9389 | fail: | |
9390 | return NULL; | |
9391 | } | |
9392 | ||
9393 | ||
9394 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9395 | PyObject *resultobj; | |
9396 | int arg1 ; | |
9397 | int arg2 ; | |
9398 | bool result; | |
9399 | char *kwnames[] = { | |
9400 | (char *) "encIn",(char *) "encOut", NULL | |
9401 | }; | |
9402 | ||
9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii:EncodingConverter_CanConvert",kwnames,&arg1,&arg2)) goto fail; | |
9404 | { | |
9405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9406 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
9407 | ||
9408 | wxPyEndAllowThreads(__tstate); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | } | |
9411 | resultobj = PyInt_FromLong((long)result); | |
9412 | return resultobj; | |
9413 | fail: | |
9414 | return NULL; | |
9415 | } | |
9416 | ||
9417 | ||
9418 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
9419 | PyObject *obj; | |
9420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9421 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
9422 | Py_INCREF(obj); | |
9423 | return Py_BuildValue((char *)""); | |
9424 | } | |
9425 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj; | |
9427 | wxDC *arg1 = (wxDC *) 0 ; | |
9428 | PyObject * obj0 = 0 ; | |
9429 | char *kwnames[] = { | |
9430 | (char *) "self", NULL | |
9431 | }; | |
9432 | ||
9433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
9434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9435 | { | |
9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9437 | delete arg1; | |
9438 | ||
9439 | wxPyEndAllowThreads(__tstate); | |
9440 | if (PyErr_Occurred()) SWIG_fail; | |
9441 | } | |
9442 | Py_INCREF(Py_None); resultobj = Py_None; | |
9443 | return resultobj; | |
9444 | fail: | |
9445 | return NULL; | |
9446 | } | |
9447 | ||
9448 | ||
9449 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9450 | PyObject *resultobj; | |
9451 | wxDC *arg1 = (wxDC *) 0 ; | |
9452 | PyObject * obj0 = 0 ; | |
9453 | char *kwnames[] = { | |
9454 | (char *) "self", NULL | |
9455 | }; | |
9456 | ||
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
9458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9459 | { | |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | (arg1)->BeginDrawing(); | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
9466 | Py_INCREF(Py_None); resultobj = Py_None; | |
9467 | return resultobj; | |
9468 | fail: | |
9469 | return NULL; | |
9470 | } | |
9471 | ||
9472 | ||
9473 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9474 | PyObject *resultobj; | |
9475 | wxDC *arg1 = (wxDC *) 0 ; | |
9476 | PyObject * obj0 = 0 ; | |
9477 | char *kwnames[] = { | |
9478 | (char *) "self", NULL | |
9479 | }; | |
9480 | ||
9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
9482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9483 | { | |
9484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9485 | (arg1)->EndDrawing(); | |
9486 | ||
9487 | wxPyEndAllowThreads(__tstate); | |
9488 | if (PyErr_Occurred()) SWIG_fail; | |
9489 | } | |
9490 | Py_INCREF(Py_None); resultobj = Py_None; | |
9491 | return resultobj; | |
9492 | fail: | |
9493 | return NULL; | |
9494 | } | |
9495 | ||
9496 | ||
9497 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9498 | PyObject *resultobj; | |
9499 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9500 | int arg2 ; |
9501 | int arg3 ; | |
d14a1e28 RD |
9502 | wxColour *arg4 = 0 ; |
9503 | int arg5 = (int) wxFLOOD_SURFACE ; | |
9504 | bool result; | |
9505 | wxColour temp4 ; | |
9506 | PyObject * obj0 = 0 ; | |
9507 | PyObject * obj3 = 0 ; | |
9508 | char *kwnames[] = { | |
9509 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
9510 | }; | |
9511 | ||
9512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO|i:DC_FloodFillXY",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
9513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9514 | { | |
9515 | arg4 = &temp4; | |
9516 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
9517 | } | |
9518 | { | |
9519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9520 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
9521 | ||
9522 | wxPyEndAllowThreads(__tstate); | |
9523 | if (PyErr_Occurred()) SWIG_fail; | |
9524 | } | |
9525 | resultobj = PyInt_FromLong((long)result); | |
9526 | return resultobj; | |
9527 | fail: | |
9528 | return NULL; | |
9529 | } | |
9530 | ||
9531 | ||
9532 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9533 | PyObject *resultobj; | |
9534 | wxDC *arg1 = (wxDC *) 0 ; | |
9535 | wxPoint *arg2 = 0 ; | |
9536 | wxColour *arg3 = 0 ; | |
9537 | int arg4 = (int) wxFLOOD_SURFACE ; | |
9538 | bool result; | |
9539 | wxPoint temp2 ; | |
9540 | wxColour temp3 ; | |
9541 | PyObject * obj0 = 0 ; | |
9542 | PyObject * obj1 = 0 ; | |
9543 | PyObject * obj2 = 0 ; | |
9544 | char *kwnames[] = { | |
9545 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
9546 | }; | |
9547 | ||
9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
9549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9550 | { | |
9551 | arg2 = &temp2; | |
9552 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9553 | } | |
9554 | { | |
9555 | arg3 = &temp3; | |
9556 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
9557 | } | |
9558 | { | |
9559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9560 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
9561 | ||
9562 | wxPyEndAllowThreads(__tstate); | |
9563 | if (PyErr_Occurred()) SWIG_fail; | |
9564 | } | |
9565 | resultobj = PyInt_FromLong((long)result); | |
9566 | return resultobj; | |
9567 | fail: | |
9568 | return NULL; | |
9569 | } | |
9570 | ||
9571 | ||
9572 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9573 | PyObject *resultobj; | |
9574 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9575 | int arg2 ; |
9576 | int arg3 ; | |
d14a1e28 RD |
9577 | wxColour result; |
9578 | PyObject * obj0 = 0 ; | |
9579 | char *kwnames[] = { | |
9580 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9581 | }; | |
9582 | ||
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_GetPixelXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9585 | { | |
9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9587 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
9588 | ||
9589 | wxPyEndAllowThreads(__tstate); | |
9590 | if (PyErr_Occurred()) SWIG_fail; | |
9591 | } | |
9592 | { | |
9593 | wxColour * resultptr; | |
9594 | resultptr = new wxColour((wxColour &) result); | |
9595 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9596 | } | |
9597 | return resultobj; | |
9598 | fail: | |
9599 | return NULL; | |
9600 | } | |
9601 | ||
9602 | ||
9603 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9604 | PyObject *resultobj; | |
9605 | wxDC *arg1 = (wxDC *) 0 ; | |
9606 | wxPoint *arg2 = 0 ; | |
9607 | wxColour result; | |
9608 | wxPoint temp2 ; | |
9609 | PyObject * obj0 = 0 ; | |
9610 | PyObject * obj1 = 0 ; | |
9611 | char *kwnames[] = { | |
9612 | (char *) "self",(char *) "pt", NULL | |
9613 | }; | |
9614 | ||
9615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
9616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9617 | { | |
9618 | arg2 = &temp2; | |
9619 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9620 | } | |
9621 | { | |
9622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9623 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
9624 | ||
9625 | wxPyEndAllowThreads(__tstate); | |
9626 | if (PyErr_Occurred()) SWIG_fail; | |
9627 | } | |
9628 | { | |
9629 | wxColour * resultptr; | |
9630 | resultptr = new wxColour((wxColour &) result); | |
9631 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
9632 | } | |
9633 | return resultobj; | |
9634 | fail: | |
9635 | return NULL; | |
9636 | } | |
9637 | ||
9638 | ||
9639 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9640 | PyObject *resultobj; | |
9641 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9642 | int arg2 ; |
9643 | int arg3 ; | |
9644 | int arg4 ; | |
9645 | int arg5 ; | |
d14a1e28 RD |
9646 | PyObject * obj0 = 0 ; |
9647 | char *kwnames[] = { | |
9648 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
9649 | }; | |
9650 | ||
9651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawLineXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | Py_INCREF(Py_None); resultobj = Py_None; | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
9664 | } | |
9665 | ||
9666 | ||
9667 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9668 | PyObject *resultobj; | |
9669 | wxDC *arg1 = (wxDC *) 0 ; | |
9670 | wxPoint *arg2 = 0 ; | |
9671 | wxPoint *arg3 = 0 ; | |
9672 | wxPoint temp2 ; | |
9673 | wxPoint temp3 ; | |
9674 | PyObject * obj0 = 0 ; | |
9675 | PyObject * obj1 = 0 ; | |
9676 | PyObject * obj2 = 0 ; | |
9677 | char *kwnames[] = { | |
9678 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
9679 | }; | |
9680 | ||
9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9683 | { | |
9684 | arg2 = &temp2; | |
9685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9686 | } | |
9687 | { | |
9688 | arg3 = &temp3; | |
9689 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9690 | } | |
9691 | { | |
9692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9693 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
9694 | ||
9695 | wxPyEndAllowThreads(__tstate); | |
9696 | if (PyErr_Occurred()) SWIG_fail; | |
9697 | } | |
9698 | Py_INCREF(Py_None); resultobj = Py_None; | |
9699 | return resultobj; | |
9700 | fail: | |
9701 | return NULL; | |
9702 | } | |
9703 | ||
9704 | ||
9705 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9706 | PyObject *resultobj; | |
9707 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9708 | int arg2 ; |
9709 | int arg3 ; | |
d14a1e28 RD |
9710 | PyObject * obj0 = 0 ; |
9711 | char *kwnames[] = { | |
9712 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9713 | }; | |
9714 | ||
9715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CrossHairXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9717 | { | |
9718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9719 | (arg1)->CrossHair(arg2,arg3); | |
9720 | ||
9721 | wxPyEndAllowThreads(__tstate); | |
9722 | if (PyErr_Occurred()) SWIG_fail; | |
9723 | } | |
9724 | Py_INCREF(Py_None); resultobj = Py_None; | |
9725 | return resultobj; | |
9726 | fail: | |
9727 | return NULL; | |
9728 | } | |
9729 | ||
9730 | ||
9731 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9732 | PyObject *resultobj; | |
9733 | wxDC *arg1 = (wxDC *) 0 ; | |
9734 | wxPoint *arg2 = 0 ; | |
9735 | wxPoint temp2 ; | |
9736 | PyObject * obj0 = 0 ; | |
9737 | PyObject * obj1 = 0 ; | |
9738 | char *kwnames[] = { | |
9739 | (char *) "self",(char *) "pt", NULL | |
9740 | }; | |
9741 | ||
9742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
9743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9744 | { | |
9745 | arg2 = &temp2; | |
9746 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9747 | } | |
9748 | { | |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
9751 | ||
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
9755 | Py_INCREF(Py_None); resultobj = Py_None; | |
9756 | return resultobj; | |
9757 | fail: | |
9758 | return NULL; | |
9759 | } | |
9760 | ||
9761 | ||
9762 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9763 | PyObject *resultobj; | |
9764 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9765 | int arg2 ; |
9766 | int arg3 ; | |
9767 | int arg4 ; | |
9768 | int arg5 ; | |
9769 | int arg6 ; | |
9770 | int arg7 ; | |
d14a1e28 RD |
9771 | PyObject * obj0 = 0 ; |
9772 | char *kwnames[] = { | |
9773 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiiii:DC_DrawArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9781 | ||
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) SWIG_fail; | |
9784 | } | |
9785 | Py_INCREF(Py_None); resultobj = Py_None; | |
9786 | return resultobj; | |
9787 | fail: | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
9792 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9793 | PyObject *resultobj; | |
9794 | wxDC *arg1 = (wxDC *) 0 ; | |
9795 | wxPoint *arg2 = 0 ; | |
9796 | wxPoint *arg3 = 0 ; | |
9797 | wxPoint *arg4 = 0 ; | |
9798 | wxPoint temp2 ; | |
9799 | wxPoint temp3 ; | |
9800 | wxPoint temp4 ; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | PyObject * obj1 = 0 ; | |
9803 | PyObject * obj2 = 0 ; | |
9804 | PyObject * obj3 = 0 ; | |
9805 | char *kwnames[] = { | |
9806 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
9807 | }; | |
9808 | ||
9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9811 | { | |
9812 | arg2 = &temp2; | |
9813 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9814 | } | |
9815 | { | |
9816 | arg3 = &temp3; | |
9817 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9818 | } | |
9819 | { | |
9820 | arg4 = &temp4; | |
9821 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9822 | } | |
9823 | { | |
9824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9825 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
9826 | ||
9827 | wxPyEndAllowThreads(__tstate); | |
9828 | if (PyErr_Occurred()) SWIG_fail; | |
9829 | } | |
9830 | Py_INCREF(Py_None); resultobj = Py_None; | |
9831 | return resultobj; | |
9832 | fail: | |
9833 | return NULL; | |
9834 | } | |
9835 | ||
9836 | ||
9837 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9838 | PyObject *resultobj; | |
9839 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9840 | int arg2 ; |
9841 | int arg3 ; | |
9842 | int arg4 ; | |
9843 | int arg5 ; | |
d14a1e28 RD |
9844 | PyObject * obj0 = 0 ; |
9845 | char *kwnames[] = { | |
9846 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9847 | }; | |
9848 | ||
9849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawCheckMarkXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
9850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9851 | { | |
9852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9853 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
9854 | ||
9855 | wxPyEndAllowThreads(__tstate); | |
9856 | if (PyErr_Occurred()) SWIG_fail; | |
9857 | } | |
9858 | Py_INCREF(Py_None); resultobj = Py_None; | |
9859 | return resultobj; | |
9860 | fail: | |
9861 | return NULL; | |
9862 | } | |
9863 | ||
9864 | ||
9865 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9866 | PyObject *resultobj; | |
9867 | wxDC *arg1 = (wxDC *) 0 ; | |
9868 | wxRect *arg2 = 0 ; | |
9869 | wxRect temp2 ; | |
9870 | PyObject * obj0 = 0 ; | |
9871 | PyObject * obj1 = 0 ; | |
9872 | char *kwnames[] = { | |
9873 | (char *) "self",(char *) "rect", NULL | |
9874 | }; | |
9875 | ||
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
9877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9878 | { | |
9879 | arg2 = &temp2; | |
9880 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9881 | } | |
9882 | { | |
9883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9884 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
9885 | ||
9886 | wxPyEndAllowThreads(__tstate); | |
9887 | if (PyErr_Occurred()) SWIG_fail; | |
9888 | } | |
9889 | Py_INCREF(Py_None); resultobj = Py_None; | |
9890 | return resultobj; | |
9891 | fail: | |
9892 | return NULL; | |
9893 | } | |
9894 | ||
9895 | ||
9896 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9897 | PyObject *resultobj; | |
9898 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9899 | int arg2 ; |
9900 | int arg3 ; | |
9901 | int arg4 ; | |
9902 | int arg5 ; | |
d14a1e28 RD |
9903 | double arg6 ; |
9904 | double arg7 ; | |
9905 | PyObject * obj0 = 0 ; | |
9906 | char *kwnames[] = { | |
9907 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
9908 | }; | |
9909 | ||
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiidd:DC_DrawEllipticArcXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; | |
9911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | Py_INCREF(Py_None); resultobj = Py_None; | |
9920 | return resultobj; | |
9921 | fail: | |
9922 | return NULL; | |
9923 | } | |
9924 | ||
9925 | ||
9926 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9927 | PyObject *resultobj; | |
9928 | wxDC *arg1 = (wxDC *) 0 ; | |
9929 | wxPoint *arg2 = 0 ; | |
9930 | wxSize *arg3 = 0 ; | |
9931 | double arg4 ; | |
9932 | double arg5 ; | |
9933 | wxPoint temp2 ; | |
9934 | wxSize temp3 ; | |
9935 | PyObject * obj0 = 0 ; | |
9936 | PyObject * obj1 = 0 ; | |
9937 | PyObject * obj2 = 0 ; | |
9938 | char *kwnames[] = { | |
9939 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
9940 | }; | |
9941 | ||
9942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOdd:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
9943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9944 | { | |
9945 | arg2 = &temp2; | |
9946 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9947 | } | |
9948 | { | |
9949 | arg3 = &temp3; | |
9950 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
9951 | } | |
9952 | { | |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9954 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
9955 | ||
9956 | wxPyEndAllowThreads(__tstate); | |
9957 | if (PyErr_Occurred()) SWIG_fail; | |
9958 | } | |
9959 | Py_INCREF(Py_None); resultobj = Py_None; | |
9960 | return resultobj; | |
9961 | fail: | |
9962 | return NULL; | |
9963 | } | |
9964 | ||
9965 | ||
9966 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9967 | PyObject *resultobj; | |
9968 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
9969 | int arg2 ; |
9970 | int arg3 ; | |
d14a1e28 RD |
9971 | PyObject * obj0 = 0 ; |
9972 | char *kwnames[] = { | |
9973 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9974 | }; | |
9975 | ||
9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_DrawPointXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | (arg1)->DrawPoint(arg2,arg3); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
9985 | Py_INCREF(Py_None); resultobj = Py_None; | |
9986 | return resultobj; | |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9993 | PyObject *resultobj; | |
9994 | wxDC *arg1 = (wxDC *) 0 ; | |
9995 | wxPoint *arg2 = 0 ; | |
9996 | wxPoint temp2 ; | |
9997 | PyObject * obj0 = 0 ; | |
9998 | PyObject * obj1 = 0 ; | |
9999 | char *kwnames[] = { | |
10000 | (char *) "self",(char *) "pt", NULL | |
10001 | }; | |
10002 | ||
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
10004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10005 | { | |
10006 | arg2 = &temp2; | |
10007 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10008 | } | |
10009 | { | |
10010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10011 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10012 | ||
10013 | wxPyEndAllowThreads(__tstate); | |
10014 | if (PyErr_Occurred()) SWIG_fail; | |
10015 | } | |
10016 | Py_INCREF(Py_None); resultobj = Py_None; | |
10017 | return resultobj; | |
10018 | fail: | |
10019 | return NULL; | |
10020 | } | |
10021 | ||
10022 | ||
10023 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10024 | PyObject *resultobj; | |
10025 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10026 | int arg2 ; |
10027 | int arg3 ; | |
10028 | int arg4 ; | |
10029 | int arg5 ; | |
d14a1e28 RD |
10030 | PyObject * obj0 = 0 ; |
10031 | char *kwnames[] = { | |
10032 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10033 | }; | |
10034 | ||
10035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10037 | { | |
10038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10039 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10040 | ||
10041 | wxPyEndAllowThreads(__tstate); | |
10042 | if (PyErr_Occurred()) SWIG_fail; | |
10043 | } | |
10044 | Py_INCREF(Py_None); resultobj = Py_None; | |
10045 | return resultobj; | |
10046 | fail: | |
10047 | return NULL; | |
10048 | } | |
10049 | ||
10050 | ||
10051 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10052 | PyObject *resultobj; | |
10053 | wxDC *arg1 = (wxDC *) 0 ; | |
10054 | wxPoint *arg2 = 0 ; | |
10055 | wxSize *arg3 = 0 ; | |
10056 | wxPoint temp2 ; | |
10057 | wxSize temp3 ; | |
10058 | PyObject * obj0 = 0 ; | |
10059 | PyObject * obj1 = 0 ; | |
10060 | PyObject * obj2 = 0 ; | |
10061 | char *kwnames[] = { | |
10062 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10067 | { | |
10068 | arg2 = &temp2; | |
10069 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10070 | } | |
10071 | { | |
10072 | arg3 = &temp3; | |
10073 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10074 | } | |
10075 | { | |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10077 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10078 | ||
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | } | |
10082 | Py_INCREF(Py_None); resultobj = Py_None; | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
10089 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10090 | PyObject *resultobj; | |
10091 | wxDC *arg1 = (wxDC *) 0 ; | |
10092 | wxRect *arg2 = 0 ; | |
10093 | wxRect temp2 ; | |
10094 | PyObject * obj0 = 0 ; | |
10095 | PyObject * obj1 = 0 ; | |
10096 | char *kwnames[] = { | |
10097 | (char *) "self",(char *) "rect", NULL | |
10098 | }; | |
10099 | ||
10100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
10101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10102 | { | |
10103 | arg2 = &temp2; | |
10104 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10105 | } | |
10106 | { | |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10108 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
10112 | } | |
10113 | Py_INCREF(Py_None); resultobj = Py_None; | |
10114 | return resultobj; | |
10115 | fail: | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10121 | PyObject *resultobj; | |
10122 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10123 | int arg2 ; |
10124 | int arg3 ; | |
10125 | int arg4 ; | |
10126 | int arg5 ; | |
d14a1e28 RD |
10127 | double arg6 ; |
10128 | PyObject * obj0 = 0 ; | |
10129 | char *kwnames[] = { | |
10130 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10131 | }; | |
10132 | ||
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiiid:DC_DrawRoundedRectangleXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
10134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
10142 | Py_INCREF(Py_None); resultobj = Py_None; | |
10143 | return resultobj; | |
10144 | fail: | |
10145 | return NULL; | |
10146 | } | |
10147 | ||
10148 | ||
10149 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10150 | PyObject *resultobj; | |
10151 | wxDC *arg1 = (wxDC *) 0 ; | |
10152 | wxPoint *arg2 = 0 ; | |
10153 | wxSize *arg3 = 0 ; | |
10154 | double arg4 ; | |
10155 | wxPoint temp2 ; | |
10156 | wxSize temp3 ; | |
10157 | PyObject * obj0 = 0 ; | |
10158 | PyObject * obj1 = 0 ; | |
10159 | PyObject * obj2 = 0 ; | |
10160 | char *kwnames[] = { | |
10161 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10162 | }; | |
10163 | ||
10164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10166 | { | |
10167 | arg2 = &temp2; | |
10168 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10169 | } | |
10170 | { | |
10171 | arg3 = &temp3; | |
10172 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10173 | } | |
10174 | { | |
10175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10176 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10177 | ||
10178 | wxPyEndAllowThreads(__tstate); | |
10179 | if (PyErr_Occurred()) SWIG_fail; | |
10180 | } | |
10181 | Py_INCREF(Py_None); resultobj = Py_None; | |
10182 | return resultobj; | |
10183 | fail: | |
10184 | return NULL; | |
10185 | } | |
10186 | ||
10187 | ||
10188 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10189 | PyObject *resultobj; | |
10190 | wxDC *arg1 = (wxDC *) 0 ; | |
10191 | wxRect *arg2 = 0 ; | |
10192 | double arg3 ; | |
10193 | wxRect temp2 ; | |
10194 | PyObject * obj0 = 0 ; | |
10195 | PyObject * obj1 = 0 ; | |
10196 | char *kwnames[] = { | |
10197 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10198 | }; | |
10199 | ||
10200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10202 | { | |
10203 | arg2 = &temp2; | |
10204 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10205 | } | |
10206 | { | |
10207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10208 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10209 | ||
10210 | wxPyEndAllowThreads(__tstate); | |
10211 | if (PyErr_Occurred()) SWIG_fail; | |
10212 | } | |
10213 | Py_INCREF(Py_None); resultobj = Py_None; | |
10214 | return resultobj; | |
10215 | fail: | |
10216 | return NULL; | |
10217 | } | |
10218 | ||
10219 | ||
10220 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10221 | PyObject *resultobj; | |
10222 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10223 | int arg2 ; |
10224 | int arg3 ; | |
10225 | int arg4 ; | |
d14a1e28 RD |
10226 | PyObject * obj0 = 0 ; |
10227 | char *kwnames[] = { | |
10228 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
10229 | }; | |
10230 | ||
10231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DC_DrawCircleXY",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10233 | { | |
10234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10235 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
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_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10248 | PyObject *resultobj; | |
10249 | wxDC *arg1 = (wxDC *) 0 ; | |
10250 | wxPoint *arg2 = 0 ; | |
423f194a | 10251 | int arg3 ; |
d14a1e28 RD |
10252 | wxPoint temp2 ; |
10253 | PyObject * obj0 = 0 ; | |
10254 | PyObject * obj1 = 0 ; | |
10255 | char *kwnames[] = { | |
10256 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
10257 | }; | |
10258 | ||
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DC_DrawCircle",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10261 | { | |
10262 | arg2 = &temp2; | |
10263 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10264 | } | |
10265 | { | |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
10272 | Py_INCREF(Py_None); resultobj = Py_None; | |
10273 | return resultobj; | |
10274 | fail: | |
10275 | return NULL; | |
10276 | } | |
10277 | ||
10278 | ||
10279 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject *resultobj; | |
10281 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10282 | int arg2 ; |
10283 | int arg3 ; | |
10284 | int arg4 ; | |
10285 | int arg5 ; | |
d14a1e28 RD |
10286 | PyObject * obj0 = 0 ; |
10287 | char *kwnames[] = { | |
10288 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10289 | }; | |
10290 | ||
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_DrawEllipseXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
10292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10293 | { | |
10294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10295 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
10296 | ||
10297 | wxPyEndAllowThreads(__tstate); | |
10298 | if (PyErr_Occurred()) SWIG_fail; | |
10299 | } | |
10300 | Py_INCREF(Py_None); resultobj = Py_None; | |
10301 | return resultobj; | |
10302 | fail: | |
10303 | return NULL; | |
10304 | } | |
10305 | ||
10306 | ||
10307 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10308 | PyObject *resultobj; | |
10309 | wxDC *arg1 = (wxDC *) 0 ; | |
10310 | wxPoint *arg2 = 0 ; | |
10311 | wxSize *arg3 = 0 ; | |
10312 | wxPoint temp2 ; | |
10313 | wxSize temp3 ; | |
10314 | PyObject * obj0 = 0 ; | |
10315 | PyObject * obj1 = 0 ; | |
10316 | PyObject * obj2 = 0 ; | |
10317 | char *kwnames[] = { | |
10318 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10319 | }; | |
10320 | ||
10321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10323 | { | |
10324 | arg2 = &temp2; | |
10325 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10326 | } | |
10327 | { | |
10328 | arg3 = &temp3; | |
10329 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10330 | } | |
10331 | { | |
10332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10333 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10334 | ||
10335 | wxPyEndAllowThreads(__tstate); | |
10336 | if (PyErr_Occurred()) SWIG_fail; | |
10337 | } | |
10338 | Py_INCREF(Py_None); resultobj = Py_None; | |
10339 | return resultobj; | |
10340 | fail: | |
10341 | return NULL; | |
10342 | } | |
10343 | ||
10344 | ||
10345 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10346 | PyObject *resultobj; | |
10347 | wxDC *arg1 = (wxDC *) 0 ; | |
10348 | wxRect *arg2 = 0 ; | |
10349 | wxRect temp2 ; | |
10350 | PyObject * obj0 = 0 ; | |
10351 | PyObject * obj1 = 0 ; | |
10352 | char *kwnames[] = { | |
10353 | (char *) "self",(char *) "rect", NULL | |
10354 | }; | |
10355 | ||
10356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
10357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10358 | { | |
10359 | arg2 = &temp2; | |
10360 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10361 | } | |
10362 | { | |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
10365 | ||
10366 | wxPyEndAllowThreads(__tstate); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
10369 | Py_INCREF(Py_None); resultobj = Py_None; | |
10370 | return resultobj; | |
10371 | fail: | |
10372 | return NULL; | |
10373 | } | |
10374 | ||
10375 | ||
10376 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10377 | PyObject *resultobj; | |
10378 | wxDC *arg1 = (wxDC *) 0 ; | |
10379 | wxIcon *arg2 = 0 ; | |
423f194a RD |
10380 | int arg3 ; |
10381 | int arg4 ; | |
d14a1e28 RD |
10382 | PyObject * obj0 = 0 ; |
10383 | PyObject * obj1 = 0 ; | |
10384 | char *kwnames[] = { | |
10385 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
10386 | }; | |
10387 | ||
10388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawIconXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10391 | if (arg2 == NULL) { | |
10392 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10393 | } | |
10394 | { | |
10395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10396 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
10397 | ||
10398 | wxPyEndAllowThreads(__tstate); | |
10399 | if (PyErr_Occurred()) SWIG_fail; | |
10400 | } | |
10401 | Py_INCREF(Py_None); resultobj = Py_None; | |
10402 | return resultobj; | |
10403 | fail: | |
10404 | return NULL; | |
10405 | } | |
10406 | ||
10407 | ||
10408 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10409 | PyObject *resultobj; | |
10410 | wxDC *arg1 = (wxDC *) 0 ; | |
10411 | wxIcon *arg2 = 0 ; | |
10412 | wxPoint *arg3 = 0 ; | |
10413 | wxPoint temp3 ; | |
10414 | PyObject * obj0 = 0 ; | |
10415 | PyObject * obj1 = 0 ; | |
10416 | PyObject * obj2 = 0 ; | |
10417 | char *kwnames[] = { | |
10418 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
10419 | }; | |
10420 | ||
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10423 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10424 | if (arg2 == NULL) { | |
10425 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10426 | } | |
10427 | { | |
10428 | arg3 = &temp3; | |
10429 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10430 | } | |
10431 | { | |
10432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10433 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
10434 | ||
10435 | wxPyEndAllowThreads(__tstate); | |
10436 | if (PyErr_Occurred()) SWIG_fail; | |
10437 | } | |
10438 | Py_INCREF(Py_None); resultobj = Py_None; | |
10439 | return resultobj; | |
10440 | fail: | |
10441 | return NULL; | |
10442 | } | |
10443 | ||
10444 | ||
10445 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10446 | PyObject *resultobj; | |
10447 | wxDC *arg1 = (wxDC *) 0 ; | |
10448 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
10449 | int arg3 ; |
10450 | int arg4 ; | |
10451 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
10452 | PyObject * obj0 = 0 ; |
10453 | PyObject * obj1 = 0 ; | |
10454 | PyObject * obj4 = 0 ; | |
10455 | char *kwnames[] = { | |
10456 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
10457 | }; | |
10458 | ||
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
10460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10461 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10462 | if (arg2 == NULL) { | |
10463 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10464 | } | |
10465 | if (obj4) { | |
10466 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
10467 | if (PyErr_Occurred()) SWIG_fail; | |
10468 | } | |
10469 | { | |
10470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10471 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
10472 | ||
10473 | wxPyEndAllowThreads(__tstate); | |
10474 | if (PyErr_Occurred()) SWIG_fail; | |
10475 | } | |
10476 | Py_INCREF(Py_None); resultobj = Py_None; | |
10477 | return resultobj; | |
10478 | fail: | |
10479 | return NULL; | |
10480 | } | |
10481 | ||
10482 | ||
10483 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10484 | PyObject *resultobj; | |
10485 | wxDC *arg1 = (wxDC *) 0 ; | |
10486 | wxBitmap *arg2 = 0 ; | |
10487 | wxPoint *arg3 = 0 ; | |
423f194a | 10488 | bool arg4 = (bool) False ; |
d14a1e28 RD |
10489 | wxPoint temp3 ; |
10490 | PyObject * obj0 = 0 ; | |
10491 | PyObject * obj1 = 0 ; | |
10492 | PyObject * obj2 = 0 ; | |
10493 | PyObject * obj3 = 0 ; | |
10494 | char *kwnames[] = { | |
10495 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
10496 | }; | |
10497 | ||
10498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10500 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10501 | if (arg2 == NULL) { | |
10502 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10503 | } | |
10504 | { | |
10505 | arg3 = &temp3; | |
10506 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10507 | } | |
10508 | if (obj3) { | |
10509 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | { | |
10513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10514 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10515 | ||
10516 | wxPyEndAllowThreads(__tstate); | |
10517 | if (PyErr_Occurred()) SWIG_fail; | |
10518 | } | |
10519 | Py_INCREF(Py_None); resultobj = Py_None; | |
10520 | return resultobj; | |
10521 | fail: | |
10522 | return NULL; | |
10523 | } | |
10524 | ||
10525 | ||
10526 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10527 | PyObject *resultobj; | |
10528 | wxDC *arg1 = (wxDC *) 0 ; | |
10529 | wxString *arg2 = 0 ; | |
423f194a RD |
10530 | int arg3 ; |
10531 | int arg4 ; | |
10532 | bool temp2 = False ; | |
d14a1e28 RD |
10533 | PyObject * obj0 = 0 ; |
10534 | PyObject * obj1 = 0 ; | |
10535 | char *kwnames[] = { | |
10536 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
10537 | }; | |
10538 | ||
10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:DC_DrawTextXY",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
10540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10541 | { | |
10542 | arg2 = wxString_in_helper(obj1); | |
10543 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10544 | temp2 = True; |
d14a1e28 RD |
10545 | } |
10546 | { | |
10547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10548 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
10549 | ||
10550 | wxPyEndAllowThreads(__tstate); | |
10551 | if (PyErr_Occurred()) SWIG_fail; | |
10552 | } | |
10553 | Py_INCREF(Py_None); resultobj = Py_None; | |
10554 | { | |
10555 | if (temp2) | |
10556 | delete arg2; | |
10557 | } | |
10558 | return resultobj; | |
10559 | fail: | |
10560 | { | |
10561 | if (temp2) | |
10562 | delete arg2; | |
10563 | } | |
10564 | return NULL; | |
10565 | } | |
10566 | ||
10567 | ||
10568 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10569 | PyObject *resultobj; | |
10570 | wxDC *arg1 = (wxDC *) 0 ; | |
10571 | wxString *arg2 = 0 ; | |
10572 | wxPoint *arg3 = 0 ; | |
423f194a | 10573 | bool temp2 = False ; |
d14a1e28 RD |
10574 | wxPoint temp3 ; |
10575 | PyObject * obj0 = 0 ; | |
10576 | PyObject * obj1 = 0 ; | |
10577 | PyObject * obj2 = 0 ; | |
10578 | char *kwnames[] = { | |
10579 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
10580 | }; | |
10581 | ||
10582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10584 | { | |
10585 | arg2 = wxString_in_helper(obj1); | |
10586 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10587 | temp2 = True; |
d14a1e28 RD |
10588 | } |
10589 | { | |
10590 | arg3 = &temp3; | |
10591 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10592 | } | |
10593 | { | |
10594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10595 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
10596 | ||
10597 | wxPyEndAllowThreads(__tstate); | |
10598 | if (PyErr_Occurred()) SWIG_fail; | |
10599 | } | |
10600 | Py_INCREF(Py_None); resultobj = Py_None; | |
10601 | { | |
10602 | if (temp2) | |
10603 | delete arg2; | |
10604 | } | |
10605 | return resultobj; | |
10606 | fail: | |
10607 | { | |
10608 | if (temp2) | |
10609 | delete arg2; | |
10610 | } | |
10611 | return NULL; | |
10612 | } | |
10613 | ||
10614 | ||
10615 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject *resultobj; | |
10617 | wxDC *arg1 = (wxDC *) 0 ; | |
10618 | wxString *arg2 = 0 ; | |
423f194a RD |
10619 | int arg3 ; |
10620 | int arg4 ; | |
d14a1e28 | 10621 | double arg5 ; |
423f194a | 10622 | bool temp2 = False ; |
d14a1e28 RD |
10623 | PyObject * obj0 = 0 ; |
10624 | PyObject * obj1 = 0 ; | |
10625 | char *kwnames[] = { | |
10626 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
10627 | }; | |
10628 | ||
10629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiid:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
10630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10631 | { | |
10632 | arg2 = wxString_in_helper(obj1); | |
10633 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10634 | temp2 = True; |
d14a1e28 RD |
10635 | } |
10636 | { | |
10637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10638 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
10639 | ||
10640 | wxPyEndAllowThreads(__tstate); | |
10641 | if (PyErr_Occurred()) SWIG_fail; | |
10642 | } | |
10643 | Py_INCREF(Py_None); resultobj = Py_None; | |
10644 | { | |
10645 | if (temp2) | |
10646 | delete arg2; | |
10647 | } | |
10648 | return resultobj; | |
10649 | fail: | |
10650 | { | |
10651 | if (temp2) | |
10652 | delete arg2; | |
10653 | } | |
10654 | return NULL; | |
10655 | } | |
10656 | ||
10657 | ||
10658 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10659 | PyObject *resultobj; | |
10660 | wxDC *arg1 = (wxDC *) 0 ; | |
10661 | wxString *arg2 = 0 ; | |
10662 | wxPoint *arg3 = 0 ; | |
10663 | double arg4 ; | |
423f194a | 10664 | bool temp2 = False ; |
d14a1e28 RD |
10665 | wxPoint temp3 ; |
10666 | PyObject * obj0 = 0 ; | |
10667 | PyObject * obj1 = 0 ; | |
10668 | PyObject * obj2 = 0 ; | |
10669 | char *kwnames[] = { | |
10670 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
10671 | }; | |
10672 | ||
10673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOd:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
10674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10675 | { | |
10676 | arg2 = wxString_in_helper(obj1); | |
10677 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10678 | temp2 = True; |
d14a1e28 RD |
10679 | } |
10680 | { | |
10681 | arg3 = &temp3; | |
10682 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10683 | } | |
10684 | { | |
10685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10686 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
10687 | ||
10688 | wxPyEndAllowThreads(__tstate); | |
10689 | if (PyErr_Occurred()) SWIG_fail; | |
10690 | } | |
10691 | Py_INCREF(Py_None); resultobj = Py_None; | |
10692 | { | |
10693 | if (temp2) | |
10694 | delete arg2; | |
10695 | } | |
10696 | return resultobj; | |
10697 | fail: | |
10698 | { | |
10699 | if (temp2) | |
10700 | delete arg2; | |
10701 | } | |
10702 | return NULL; | |
10703 | } | |
10704 | ||
10705 | ||
10706 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10707 | PyObject *resultobj; | |
10708 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10709 | int arg2 ; |
10710 | int arg3 ; | |
10711 | int arg4 ; | |
10712 | int arg5 ; | |
d14a1e28 | 10713 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
10714 | int arg7 ; |
10715 | int arg8 ; | |
d14a1e28 | 10716 | int arg9 = (int) wxCOPY ; |
423f194a RD |
10717 | bool arg10 = (bool) False ; |
10718 | int arg11 = (int) -1 ; | |
10719 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
10720 | bool result; |
10721 | PyObject * obj0 = 0 ; | |
10722 | PyObject * obj5 = 0 ; | |
10723 | PyObject * obj9 = 0 ; | |
10724 | char *kwnames[] = { | |
10725 | (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 | |
10726 | }; | |
10727 | ||
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiiiOii|iOii:DC_BlitXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&arg7,&arg8,&arg9,&obj9,&arg11,&arg12)) goto fail; | |
10729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10730 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10731 | if (obj9) { | |
10732 | arg10 = PyInt_AsLong(obj9) ? true : false; | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
10734 | } | |
10735 | { | |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10737 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
10738 | ||
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | resultobj = PyInt_FromLong((long)result); | |
10743 | return resultobj; | |
10744 | fail: | |
10745 | return NULL; | |
10746 | } | |
10747 | ||
10748 | ||
10749 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10750 | PyObject *resultobj; | |
10751 | wxDC *arg1 = (wxDC *) 0 ; | |
10752 | wxPoint *arg2 = 0 ; | |
10753 | wxSize *arg3 = 0 ; | |
10754 | wxDC *arg4 = (wxDC *) 0 ; | |
10755 | wxPoint *arg5 = 0 ; | |
10756 | int arg6 = (int) wxCOPY ; | |
423f194a | 10757 | bool arg7 = (bool) False ; |
d14a1e28 RD |
10758 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
10759 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
10760 | bool result; | |
10761 | wxPoint temp2 ; | |
10762 | wxSize temp3 ; | |
10763 | wxPoint temp5 ; | |
10764 | wxPoint temp8 ; | |
10765 | PyObject * obj0 = 0 ; | |
10766 | PyObject * obj1 = 0 ; | |
10767 | PyObject * obj2 = 0 ; | |
10768 | PyObject * obj3 = 0 ; | |
10769 | PyObject * obj4 = 0 ; | |
10770 | PyObject * obj6 = 0 ; | |
10771 | PyObject * obj7 = 0 ; | |
10772 | char *kwnames[] = { | |
10773 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
10774 | }; | |
10775 | ||
10776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|iOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10778 | { | |
10779 | arg2 = &temp2; | |
10780 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10781 | } | |
10782 | { | |
10783 | arg3 = &temp3; | |
10784 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10785 | } | |
10786 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10787 | { | |
10788 | arg5 = &temp5; | |
10789 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10790 | } | |
10791 | if (obj6) { | |
10792 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
10793 | if (PyErr_Occurred()) SWIG_fail; | |
10794 | } | |
10795 | if (obj7) { | |
10796 | { | |
10797 | arg8 = &temp8; | |
10798 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
10799 | } | |
10800 | } | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
10804 | ||
10805 | wxPyEndAllowThreads(__tstate); | |
10806 | if (PyErr_Occurred()) SWIG_fail; | |
10807 | } | |
10808 | resultobj = PyInt_FromLong((long)result); | |
10809 | return resultobj; | |
10810 | fail: | |
10811 | return NULL; | |
10812 | } | |
10813 | ||
10814 | ||
10815 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10816 | PyObject *resultobj; | |
10817 | wxDC *arg1 = (wxDC *) 0 ; | |
10818 | int arg2 ; | |
10819 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
10820 | int arg4 = (int) 0 ; |
10821 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
10822 | PyObject * obj0 = 0 ; |
10823 | PyObject * obj1 = 0 ; | |
10824 | char *kwnames[] = { | |
10825 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
10826 | }; | |
10827 | ||
10828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DC_DrawLines",kwnames,&obj0,&obj1,&arg4,&arg5)) goto fail; | |
10829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10830 | { | |
10831 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10832 | if (arg3 == NULL) SWIG_fail; | |
10833 | } | |
10834 | { | |
10835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10836 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
10837 | ||
10838 | wxPyEndAllowThreads(__tstate); | |
10839 | if (PyErr_Occurred()) SWIG_fail; | |
10840 | } | |
10841 | Py_INCREF(Py_None); resultobj = Py_None; | |
10842 | { | |
10843 | if (arg3) delete [] arg3; | |
10844 | } | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | { | |
10848 | if (arg3) delete [] arg3; | |
10849 | } | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj; | |
10856 | wxDC *arg1 = (wxDC *) 0 ; | |
10857 | int arg2 ; | |
10858 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
10859 | int arg4 = (int) 0 ; |
10860 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
10861 | int arg6 = (int) wxODDEVEN_RULE ; |
10862 | PyObject * obj0 = 0 ; | |
10863 | PyObject * obj1 = 0 ; | |
10864 | char *kwnames[] = { | |
10865 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
10866 | }; | |
10867 | ||
10868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iii:DC_DrawPolygon",kwnames,&obj0,&obj1,&arg4,&arg5,&arg6)) goto fail; | |
10869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10870 | { | |
10871 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
10872 | if (arg3 == NULL) SWIG_fail; | |
10873 | } | |
10874 | { | |
10875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10876 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
10877 | ||
10878 | wxPyEndAllowThreads(__tstate); | |
10879 | if (PyErr_Occurred()) SWIG_fail; | |
10880 | } | |
10881 | Py_INCREF(Py_None); resultobj = Py_None; | |
10882 | { | |
10883 | if (arg3) delete [] arg3; | |
10884 | } | |
10885 | return resultobj; | |
10886 | fail: | |
10887 | { | |
10888 | if (arg3) delete [] arg3; | |
10889 | } | |
10890 | return NULL; | |
10891 | } | |
10892 | ||
10893 | ||
10894 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10895 | PyObject *resultobj; | |
10896 | wxDC *arg1 = (wxDC *) 0 ; | |
10897 | wxString *arg2 = 0 ; | |
10898 | wxRect *arg3 = 0 ; | |
10899 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10900 | int arg5 = (int) -1 ; | |
423f194a | 10901 | bool temp2 = False ; |
d14a1e28 RD |
10902 | wxRect temp3 ; |
10903 | PyObject * obj0 = 0 ; | |
10904 | PyObject * obj1 = 0 ; | |
10905 | PyObject * obj2 = 0 ; | |
10906 | char *kwnames[] = { | |
10907 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10908 | }; | |
10909 | ||
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|ii:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; | |
10911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10912 | { | |
10913 | arg2 = wxString_in_helper(obj1); | |
10914 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10915 | temp2 = True; |
d14a1e28 RD |
10916 | } |
10917 | { | |
10918 | arg3 = &temp3; | |
10919 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
10920 | } | |
10921 | { | |
10922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10923 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
10924 | ||
10925 | wxPyEndAllowThreads(__tstate); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
10928 | Py_INCREF(Py_None); resultobj = Py_None; | |
10929 | { | |
10930 | if (temp2) | |
10931 | delete arg2; | |
10932 | } | |
10933 | return resultobj; | |
10934 | fail: | |
10935 | { | |
10936 | if (temp2) | |
10937 | delete arg2; | |
10938 | } | |
10939 | return NULL; | |
10940 | } | |
10941 | ||
10942 | ||
10943 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10944 | PyObject *resultobj; | |
10945 | wxDC *arg1 = (wxDC *) 0 ; | |
10946 | wxString *arg2 = 0 ; | |
10947 | wxBitmap *arg3 = 0 ; | |
10948 | wxRect *arg4 = 0 ; | |
10949 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
10950 | int arg6 = (int) -1 ; | |
10951 | wxRect result; | |
423f194a | 10952 | bool temp2 = False ; |
d14a1e28 RD |
10953 | wxRect temp4 ; |
10954 | PyObject * obj0 = 0 ; | |
10955 | PyObject * obj1 = 0 ; | |
10956 | PyObject * obj2 = 0 ; | |
10957 | PyObject * obj3 = 0 ; | |
10958 | char *kwnames[] = { | |
10959 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
10960 | }; | |
10961 | ||
10962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|ii:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail; | |
10963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10964 | { | |
10965 | arg2 = wxString_in_helper(obj1); | |
10966 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10967 | temp2 = True; |
d14a1e28 RD |
10968 | } |
10969 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10970 | if (arg3 == NULL) { | |
10971 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10972 | } | |
10973 | { | |
10974 | arg4 = &temp4; | |
10975 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
10976 | } | |
10977 | { | |
10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10979 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
10980 | ||
10981 | wxPyEndAllowThreads(__tstate); | |
10982 | if (PyErr_Occurred()) SWIG_fail; | |
10983 | } | |
10984 | { | |
10985 | wxRect * resultptr; | |
10986 | resultptr = new wxRect((wxRect &) result); | |
10987 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
10988 | } | |
10989 | { | |
10990 | if (temp2) | |
10991 | delete arg2; | |
10992 | } | |
10993 | return resultobj; | |
10994 | fail: | |
10995 | { | |
10996 | if (temp2) | |
10997 | delete arg2; | |
10998 | } | |
10999 | return NULL; | |
11000 | } | |
11001 | ||
11002 | ||
11003 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11004 | PyObject *resultobj; | |
11005 | wxDC *arg1 = (wxDC *) 0 ; | |
11006 | int arg2 ; | |
11007 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11008 | PyObject * obj0 = 0 ; | |
11009 | PyObject * obj1 = 0 ; | |
11010 | char *kwnames[] = { | |
11011 | (char *) "self",(char *) "points", NULL | |
11012 | }; | |
11013 | ||
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
11015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11016 | { | |
11017 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11018 | if (arg3 == NULL) SWIG_fail; | |
11019 | } | |
11020 | { | |
11021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11022 | (arg1)->DrawSpline(arg2,arg3); | |
11023 | ||
11024 | wxPyEndAllowThreads(__tstate); | |
11025 | if (PyErr_Occurred()) SWIG_fail; | |
11026 | } | |
11027 | Py_INCREF(Py_None); resultobj = Py_None; | |
11028 | { | |
11029 | if (arg3) delete [] arg3; | |
11030 | } | |
11031 | return resultobj; | |
11032 | fail: | |
11033 | { | |
11034 | if (arg3) delete [] arg3; | |
11035 | } | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
11040 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11041 | PyObject *resultobj; | |
11042 | wxDC *arg1 = (wxDC *) 0 ; | |
11043 | PyObject * obj0 = 0 ; | |
11044 | char *kwnames[] = { | |
11045 | (char *) "self", NULL | |
11046 | }; | |
11047 | ||
11048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
11049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11050 | { | |
11051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11052 | (arg1)->Clear(); | |
11053 | ||
11054 | wxPyEndAllowThreads(__tstate); | |
11055 | if (PyErr_Occurred()) SWIG_fail; | |
11056 | } | |
11057 | Py_INCREF(Py_None); resultobj = Py_None; | |
11058 | return resultobj; | |
11059 | fail: | |
11060 | return NULL; | |
11061 | } | |
11062 | ||
11063 | ||
11064 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11065 | PyObject *resultobj; | |
11066 | wxDC *arg1 = (wxDC *) 0 ; | |
11067 | wxString *arg2 = 0 ; | |
11068 | bool result; | |
423f194a | 11069 | bool temp2 = False ; |
d14a1e28 RD |
11070 | PyObject * obj0 = 0 ; |
11071 | PyObject * obj1 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "self",(char *) "message", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
11077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11078 | { | |
11079 | arg2 = wxString_in_helper(obj1); | |
11080 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11081 | temp2 = True; |
d14a1e28 RD |
11082 | } |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | resultobj = PyInt_FromLong((long)result); | |
11091 | { | |
11092 | if (temp2) | |
11093 | delete arg2; | |
11094 | } | |
11095 | return resultobj; | |
11096 | fail: | |
11097 | { | |
11098 | if (temp2) | |
11099 | delete arg2; | |
11100 | } | |
11101 | return NULL; | |
11102 | } | |
11103 | ||
11104 | ||
11105 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject *resultobj; | |
11107 | wxDC *arg1 = (wxDC *) 0 ; | |
11108 | PyObject * obj0 = 0 ; | |
11109 | char *kwnames[] = { | |
11110 | (char *) "self", NULL | |
11111 | }; | |
11112 | ||
11113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
11114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11115 | { | |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | (arg1)->EndDoc(); | |
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_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11130 | PyObject *resultobj; | |
11131 | wxDC *arg1 = (wxDC *) 0 ; | |
11132 | PyObject * obj0 = 0 ; | |
11133 | char *kwnames[] = { | |
11134 | (char *) "self", NULL | |
11135 | }; | |
11136 | ||
11137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
11138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11139 | { | |
11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11141 | (arg1)->StartPage(); | |
11142 | ||
11143 | wxPyEndAllowThreads(__tstate); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | Py_INCREF(Py_None); resultobj = Py_None; | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11154 | PyObject *resultobj; | |
11155 | wxDC *arg1 = (wxDC *) 0 ; | |
11156 | PyObject * obj0 = 0 ; | |
11157 | char *kwnames[] = { | |
11158 | (char *) "self", NULL | |
11159 | }; | |
11160 | ||
11161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
11162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11163 | { | |
11164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11165 | (arg1)->EndPage(); | |
11166 | ||
11167 | wxPyEndAllowThreads(__tstate); | |
11168 | if (PyErr_Occurred()) SWIG_fail; | |
11169 | } | |
11170 | Py_INCREF(Py_None); resultobj = Py_None; | |
11171 | return resultobj; | |
11172 | fail: | |
11173 | return NULL; | |
11174 | } | |
11175 | ||
11176 | ||
11177 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11178 | PyObject *resultobj; | |
11179 | wxDC *arg1 = (wxDC *) 0 ; | |
11180 | wxFont *arg2 = 0 ; | |
11181 | PyObject * obj0 = 0 ; | |
11182 | PyObject * obj1 = 0 ; | |
11183 | char *kwnames[] = { | |
11184 | (char *) "self",(char *) "font", NULL | |
11185 | }; | |
11186 | ||
11187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
11188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11189 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11190 | if (arg2 == NULL) { | |
11191 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11192 | } | |
11193 | { | |
11194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11195 | (arg1)->SetFont((wxFont const &)*arg2); | |
11196 | ||
11197 | wxPyEndAllowThreads(__tstate); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | } | |
11200 | Py_INCREF(Py_None); resultobj = Py_None; | |
11201 | return resultobj; | |
11202 | fail: | |
11203 | return NULL; | |
11204 | } | |
11205 | ||
11206 | ||
11207 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11208 | PyObject *resultobj; | |
11209 | wxDC *arg1 = (wxDC *) 0 ; | |
11210 | wxPen *arg2 = 0 ; | |
11211 | PyObject * obj0 = 0 ; | |
11212 | PyObject * obj1 = 0 ; | |
11213 | char *kwnames[] = { | |
11214 | (char *) "self",(char *) "pen", NULL | |
11215 | }; | |
11216 | ||
11217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
11218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11219 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11220 | if (arg2 == NULL) { | |
11221 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11222 | } | |
11223 | { | |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | (arg1)->SetPen((wxPen const &)*arg2); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | Py_INCREF(Py_None); resultobj = Py_None; | |
11231 | return resultobj; | |
11232 | fail: | |
11233 | return NULL; | |
11234 | } | |
11235 | ||
11236 | ||
11237 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11238 | PyObject *resultobj; | |
11239 | wxDC *arg1 = (wxDC *) 0 ; | |
11240 | wxBrush *arg2 = 0 ; | |
11241 | PyObject * obj0 = 0 ; | |
11242 | PyObject * obj1 = 0 ; | |
11243 | char *kwnames[] = { | |
11244 | (char *) "self",(char *) "brush", NULL | |
11245 | }; | |
11246 | ||
11247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
11248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11249 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11250 | if (arg2 == NULL) { | |
11251 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11252 | } | |
11253 | { | |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
11256 | ||
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
11260 | Py_INCREF(Py_None); resultobj = Py_None; | |
11261 | return resultobj; | |
11262 | fail: | |
11263 | return NULL; | |
11264 | } | |
11265 | ||
11266 | ||
11267 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11268 | PyObject *resultobj; | |
11269 | wxDC *arg1 = (wxDC *) 0 ; | |
11270 | wxBrush *arg2 = 0 ; | |
11271 | PyObject * obj0 = 0 ; | |
11272 | PyObject * obj1 = 0 ; | |
11273 | char *kwnames[] = { | |
11274 | (char *) "self",(char *) "brush", NULL | |
11275 | }; | |
11276 | ||
11277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
11278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11279 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11280 | if (arg2 == NULL) { | |
11281 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11282 | } | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
11286 | ||
11287 | wxPyEndAllowThreads(__tstate); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | } | |
11290 | Py_INCREF(Py_None); resultobj = Py_None; | |
11291 | return resultobj; | |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
11297 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11298 | PyObject *resultobj; | |
11299 | wxDC *arg1 = (wxDC *) 0 ; | |
11300 | int arg2 ; | |
11301 | PyObject * obj0 = 0 ; | |
11302 | char *kwnames[] = { | |
11303 | (char *) "self",(char *) "mode", NULL | |
11304 | }; | |
11305 | ||
11306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetBackgroundMode",kwnames,&obj0,&arg2)) goto fail; | |
11307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11308 | { | |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11310 | (arg1)->SetBackgroundMode(arg2); | |
11311 | ||
11312 | wxPyEndAllowThreads(__tstate); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | } | |
11315 | Py_INCREF(Py_None); resultobj = Py_None; | |
11316 | return resultobj; | |
11317 | fail: | |
11318 | return NULL; | |
11319 | } | |
11320 | ||
11321 | ||
11322 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11323 | PyObject *resultobj; | |
11324 | wxDC *arg1 = (wxDC *) 0 ; | |
11325 | wxPalette *arg2 = 0 ; | |
11326 | PyObject * obj0 = 0 ; | |
11327 | PyObject * obj1 = 0 ; | |
11328 | char *kwnames[] = { | |
11329 | (char *) "self",(char *) "palette", NULL | |
11330 | }; | |
11331 | ||
11332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
11333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11334 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11335 | if (arg2 == NULL) { | |
11336 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11337 | } | |
11338 | { | |
11339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11340 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
11341 | ||
11342 | wxPyEndAllowThreads(__tstate); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | Py_INCREF(Py_None); resultobj = Py_None; | |
11346 | return resultobj; | |
11347 | fail: | |
11348 | return NULL; | |
11349 | } | |
11350 | ||
11351 | ||
f0983263 | 11352 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11353 | PyObject *resultobj; |
11354 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11355 | int arg2 ; |
11356 | int arg3 ; | |
11357 | int arg4 ; | |
11358 | int arg5 ; | |
d14a1e28 RD |
11359 | PyObject * obj0 = 0 ; |
11360 | char *kwnames[] = { | |
11361 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11362 | }; | |
11363 | ||
f0983263 | 11364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:DC_SetClippingRegionXY",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 RD |
11365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11366 | { | |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
11373 | Py_INCREF(Py_None); resultobj = Py_None; | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
f0983263 RD |
11380 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
11381 | PyObject *resultobj; | |
11382 | wxDC *arg1 = (wxDC *) 0 ; | |
11383 | wxPoint *arg2 = 0 ; | |
11384 | wxSize *arg3 = 0 ; | |
11385 | wxPoint temp2 ; | |
11386 | wxSize temp3 ; | |
11387 | PyObject * obj0 = 0 ; | |
11388 | PyObject * obj1 = 0 ; | |
11389 | PyObject * obj2 = 0 ; | |
11390 | char *kwnames[] = { | |
11391 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11392 | }; | |
11393 | ||
11394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11396 | { | |
11397 | arg2 = &temp2; | |
11398 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11399 | } | |
11400 | { | |
11401 | arg3 = &temp3; | |
11402 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11403 | } | |
11404 | { | |
11405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11406 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11407 | ||
11408 | wxPyEndAllowThreads(__tstate); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | } | |
11411 | Py_INCREF(Py_None); resultobj = Py_None; | |
11412 | return resultobj; | |
11413 | fail: | |
11414 | return NULL; | |
11415 | } | |
11416 | ||
11417 | ||
d14a1e28 RD |
11418 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
11419 | PyObject *resultobj; | |
11420 | wxDC *arg1 = (wxDC *) 0 ; | |
11421 | wxRect *arg2 = 0 ; | |
11422 | wxRect temp2 ; | |
11423 | PyObject * obj0 = 0 ; | |
11424 | PyObject * obj1 = 0 ; | |
11425 | char *kwnames[] = { | |
11426 | (char *) "self",(char *) "rect", NULL | |
11427 | }; | |
11428 | ||
11429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
11430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11431 | { | |
11432 | arg2 = &temp2; | |
11433 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11434 | } | |
11435 | { | |
11436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11437 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
11438 | ||
11439 | wxPyEndAllowThreads(__tstate); | |
11440 | if (PyErr_Occurred()) SWIG_fail; | |
11441 | } | |
11442 | Py_INCREF(Py_None); resultobj = Py_None; | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
11449 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11450 | PyObject *resultobj; | |
11451 | wxDC *arg1 = (wxDC *) 0 ; | |
11452 | wxRegion *arg2 = 0 ; | |
11453 | PyObject * obj0 = 0 ; | |
11454 | PyObject * obj1 = 0 ; | |
11455 | char *kwnames[] = { | |
11456 | (char *) "self",(char *) "region", NULL | |
11457 | }; | |
11458 | ||
11459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
11460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11461 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11462 | if (arg2 == NULL) { | |
11463 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11464 | } | |
11465 | { | |
11466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11467 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
11468 | ||
11469 | wxPyEndAllowThreads(__tstate); | |
11470 | if (PyErr_Occurred()) SWIG_fail; | |
11471 | } | |
11472 | Py_INCREF(Py_None); resultobj = Py_None; | |
11473 | return resultobj; | |
11474 | fail: | |
11475 | return NULL; | |
11476 | } | |
11477 | ||
11478 | ||
11479 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11480 | PyObject *resultobj; | |
11481 | wxDC *arg1 = (wxDC *) 0 ; | |
11482 | PyObject * obj0 = 0 ; | |
11483 | char *kwnames[] = { | |
11484 | (char *) "self", NULL | |
11485 | }; | |
11486 | ||
11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
11488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11489 | { | |
11490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11491 | (arg1)->DestroyClippingRegion(); | |
11492 | ||
11493 | wxPyEndAllowThreads(__tstate); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
11495 | } | |
11496 | Py_INCREF(Py_None); resultobj = Py_None; | |
11497 | return resultobj; | |
11498 | fail: | |
11499 | return NULL; | |
11500 | } | |
11501 | ||
11502 | ||
11503 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11504 | PyObject *resultobj; | |
11505 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11506 | int *arg2 = (int *) 0 ; |
11507 | int *arg3 = (int *) 0 ; | |
11508 | int *arg4 = (int *) 0 ; | |
11509 | int *arg5 = (int *) 0 ; | |
11510 | int temp2 ; | |
11511 | int temp3 ; | |
11512 | int temp4 ; | |
11513 | int temp5 ; | |
d14a1e28 RD |
11514 | PyObject * obj0 = 0 ; |
11515 | char *kwnames[] = { | |
11516 | (char *) "self", NULL | |
11517 | }; | |
11518 | ||
11519 | arg2 = &temp2; | |
11520 | arg3 = &temp3; | |
11521 | arg4 = &temp4; | |
11522 | arg5 = &temp5; | |
11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
11524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
11528 | ||
11529 | wxPyEndAllowThreads(__tstate); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
11532 | Py_INCREF(Py_None); resultobj = Py_None; | |
11533 | { | |
11534 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11535 | resultobj = t_output_helper(resultobj,o); | |
11536 | } | |
11537 | { | |
11538 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11539 | resultobj = t_output_helper(resultobj,o); | |
11540 | } | |
11541 | { | |
11542 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11543 | resultobj = t_output_helper(resultobj,o); | |
11544 | } | |
11545 | { | |
11546 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11547 | resultobj = t_output_helper(resultobj,o); | |
11548 | } | |
11549 | return resultobj; | |
11550 | fail: | |
11551 | return NULL; | |
11552 | } | |
11553 | ||
11554 | ||
11555 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11556 | PyObject *resultobj; | |
11557 | wxDC *arg1 = (wxDC *) 0 ; | |
11558 | wxRect result; | |
11559 | PyObject * obj0 = 0 ; | |
11560 | char *kwnames[] = { | |
11561 | (char *) "self", NULL | |
11562 | }; | |
11563 | ||
11564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
11565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11566 | { | |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11568 | result = wxDC_GetClippingRect(arg1); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
11573 | { | |
11574 | wxRect * resultptr; | |
11575 | resultptr = new wxRect((wxRect &) result); | |
11576 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
11577 | } | |
11578 | return resultobj; | |
11579 | fail: | |
11580 | return NULL; | |
11581 | } | |
11582 | ||
11583 | ||
11584 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11585 | PyObject *resultobj; | |
11586 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11587 | int result; |
d14a1e28 RD |
11588 | PyObject * obj0 = 0 ; |
11589 | char *kwnames[] = { | |
11590 | (char *) "self", NULL | |
11591 | }; | |
11592 | ||
11593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
11594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11595 | { | |
11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11597 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
11598 | |
11599 | wxPyEndAllowThreads(__tstate); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | } | |
11602 | resultobj = PyInt_FromLong((long)result); | |
11603 | return resultobj; | |
11604 | fail: | |
11605 | return NULL; | |
11606 | } | |
11607 | ||
11608 | ||
11609 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11610 | PyObject *resultobj; | |
11611 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 11612 | int result; |
d14a1e28 RD |
11613 | PyObject * obj0 = 0 ; |
11614 | char *kwnames[] = { | |
11615 | (char *) "self", NULL | |
11616 | }; | |
11617 | ||
11618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
11619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11620 | { | |
11621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11622 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
11623 | |
11624 | wxPyEndAllowThreads(__tstate); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | } | |
11627 | resultobj = PyInt_FromLong((long)result); | |
11628 | return resultobj; | |
11629 | fail: | |
11630 | return NULL; | |
11631 | } | |
11632 | ||
11633 | ||
11634 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11635 | PyObject *resultobj; | |
11636 | wxDC *arg1 = (wxDC *) 0 ; | |
11637 | wxString *arg2 = 0 ; | |
423f194a RD |
11638 | int *arg3 = (int *) 0 ; |
11639 | int *arg4 = (int *) 0 ; | |
11640 | bool temp2 = False ; | |
11641 | int temp3 ; | |
11642 | int temp4 ; | |
d14a1e28 RD |
11643 | PyObject * obj0 = 0 ; |
11644 | PyObject * obj1 = 0 ; | |
11645 | char *kwnames[] = { | |
11646 | (char *) "self",(char *) "string", NULL | |
11647 | }; | |
11648 | ||
11649 | arg3 = &temp3; | |
11650 | arg4 = &temp4; | |
11651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
11652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11653 | { | |
11654 | arg2 = wxString_in_helper(obj1); | |
11655 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11656 | temp2 = True; |
d14a1e28 RD |
11657 | } |
11658 | { | |
11659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11660 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
11661 | ||
11662 | wxPyEndAllowThreads(__tstate); | |
11663 | if (PyErr_Occurred()) SWIG_fail; | |
11664 | } | |
11665 | Py_INCREF(Py_None); resultobj = Py_None; | |
11666 | { | |
11667 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11668 | resultobj = t_output_helper(resultobj,o); | |
11669 | } | |
11670 | { | |
11671 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11672 | resultobj = t_output_helper(resultobj,o); | |
11673 | } | |
11674 | { | |
11675 | if (temp2) | |
11676 | delete arg2; | |
11677 | } | |
11678 | return resultobj; | |
11679 | fail: | |
11680 | { | |
11681 | if (temp2) | |
11682 | delete arg2; | |
11683 | } | |
11684 | return NULL; | |
11685 | } | |
11686 | ||
11687 | ||
11688 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11689 | PyObject *resultobj; | |
11690 | wxDC *arg1 = (wxDC *) 0 ; | |
11691 | wxString *arg2 = 0 ; | |
423f194a RD |
11692 | int *arg3 = (int *) 0 ; |
11693 | int *arg4 = (int *) 0 ; | |
11694 | int *arg5 = (int *) 0 ; | |
11695 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 11696 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
11697 | bool temp2 = False ; |
11698 | int temp3 ; | |
11699 | int temp4 ; | |
11700 | int temp5 ; | |
11701 | int temp6 ; | |
d14a1e28 RD |
11702 | PyObject * obj0 = 0 ; |
11703 | PyObject * obj1 = 0 ; | |
11704 | PyObject * obj2 = 0 ; | |
11705 | char *kwnames[] = { | |
11706 | (char *) "self",(char *) "string",(char *) "font", NULL | |
11707 | }; | |
11708 | ||
11709 | arg3 = &temp3; | |
11710 | arg4 = &temp4; | |
11711 | arg5 = &temp5; | |
11712 | arg6 = &temp6; | |
11713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11715 | { | |
11716 | arg2 = wxString_in_helper(obj1); | |
11717 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11718 | temp2 = True; |
d14a1e28 RD |
11719 | } |
11720 | if (obj2) { | |
11721 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11722 | } | |
11723 | { | |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
11726 | ||
11727 | wxPyEndAllowThreads(__tstate); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
11730 | Py_INCREF(Py_None); resultobj = Py_None; | |
11731 | { | |
11732 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11733 | resultobj = t_output_helper(resultobj,o); | |
11734 | } | |
11735 | { | |
11736 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11737 | resultobj = t_output_helper(resultobj,o); | |
11738 | } | |
11739 | { | |
11740 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11741 | resultobj = t_output_helper(resultobj,o); | |
11742 | } | |
11743 | { | |
11744 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
11745 | resultobj = t_output_helper(resultobj,o); | |
11746 | } | |
11747 | { | |
11748 | if (temp2) | |
11749 | delete arg2; | |
11750 | } | |
11751 | return resultobj; | |
11752 | fail: | |
11753 | { | |
11754 | if (temp2) | |
11755 | delete arg2; | |
11756 | } | |
11757 | return NULL; | |
11758 | } | |
11759 | ||
11760 | ||
11761 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11762 | PyObject *resultobj; | |
11763 | wxDC *arg1 = (wxDC *) 0 ; | |
11764 | wxString *arg2 = 0 ; | |
423f194a RD |
11765 | int *arg3 = (int *) 0 ; |
11766 | int *arg4 = (int *) 0 ; | |
11767 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 11768 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
11769 | bool temp2 = False ; |
11770 | int temp3 ; | |
11771 | int temp4 ; | |
11772 | int temp5 ; | |
d14a1e28 RD |
11773 | PyObject * obj0 = 0 ; |
11774 | PyObject * obj1 = 0 ; | |
11775 | PyObject * obj2 = 0 ; | |
11776 | char *kwnames[] = { | |
11777 | (char *) "self",(char *) "text",(char *) "font", NULL | |
11778 | }; | |
11779 | ||
11780 | arg3 = &temp3; | |
11781 | arg4 = &temp4; | |
11782 | arg5 = &temp5; | |
11783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11785 | { | |
11786 | arg2 = wxString_in_helper(obj1); | |
11787 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11788 | temp2 = True; |
d14a1e28 RD |
11789 | } |
11790 | if (obj2) { | |
11791 | if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11792 | } | |
11793 | { | |
11794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11795 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
11796 | ||
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | Py_INCREF(Py_None); resultobj = Py_None; | |
11801 | { | |
11802 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11803 | resultobj = t_output_helper(resultobj,o); | |
11804 | } | |
11805 | { | |
11806 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
11807 | resultobj = t_output_helper(resultobj,o); | |
11808 | } | |
11809 | { | |
11810 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
11811 | resultobj = t_output_helper(resultobj,o); | |
11812 | } | |
11813 | { | |
11814 | if (temp2) | |
11815 | delete arg2; | |
11816 | } | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | { | |
11820 | if (temp2) | |
11821 | delete arg2; | |
11822 | } | |
11823 | return NULL; | |
11824 | } | |
11825 | ||
11826 | ||
44127b65 RD |
11827 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
11828 | PyObject *resultobj; | |
11829 | wxDC *arg1 = (wxDC *) 0 ; | |
11830 | wxSize result; | |
11831 | PyObject * obj0 = 0 ; | |
11832 | char *kwnames[] = { | |
11833 | (char *) "self", NULL | |
11834 | }; | |
11835 | ||
11836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
11837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11838 | { | |
11839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11840 | result = (arg1)->GetSize(); | |
11841 | ||
11842 | wxPyEndAllowThreads(__tstate); | |
11843 | if (PyErr_Occurred()) SWIG_fail; | |
11844 | } | |
11845 | { | |
11846 | wxSize * resultptr; | |
11847 | resultptr = new wxSize((wxSize &) result); | |
11848 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11849 | } | |
11850 | return resultobj; | |
11851 | fail: | |
11852 | return NULL; | |
11853 | } | |
11854 | ||
11855 | ||
d14a1e28 RD |
11856 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
11857 | PyObject *resultobj; | |
11858 | wxDC *arg1 = (wxDC *) 0 ; | |
11859 | int *arg2 = (int *) 0 ; | |
11860 | int *arg3 = (int *) 0 ; | |
11861 | int temp2 ; | |
11862 | int temp3 ; | |
11863 | PyObject * obj0 = 0 ; | |
11864 | char *kwnames[] = { | |
11865 | (char *) "self", NULL | |
11866 | }; | |
11867 | ||
11868 | arg2 = &temp2; | |
11869 | arg3 = &temp3; | |
11870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
11871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11872 | { | |
11873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11874 | (arg1)->GetSize(arg2,arg3); | |
11875 | ||
11876 | wxPyEndAllowThreads(__tstate); | |
11877 | if (PyErr_Occurred()) SWIG_fail; | |
11878 | } | |
11879 | Py_INCREF(Py_None); resultobj = Py_None; | |
11880 | { | |
11881 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11882 | resultobj = t_output_helper(resultobj,o); | |
11883 | } | |
11884 | { | |
11885 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11886 | resultobj = t_output_helper(resultobj,o); | |
11887 | } | |
11888 | return resultobj; | |
11889 | fail: | |
11890 | return NULL; | |
11891 | } | |
11892 | ||
11893 | ||
44127b65 | 11894 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11895 | PyObject *resultobj; |
11896 | wxDC *arg1 = (wxDC *) 0 ; | |
11897 | wxSize result; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | char *kwnames[] = { | |
11900 | (char *) "self", NULL | |
11901 | }; | |
11902 | ||
44127b65 | 11903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
11904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11905 | { | |
11906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 11907 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
11908 | |
11909 | wxPyEndAllowThreads(__tstate); | |
11910 | if (PyErr_Occurred()) SWIG_fail; | |
11911 | } | |
11912 | { | |
11913 | wxSize * resultptr; | |
11914 | resultptr = new wxSize((wxSize &) result); | |
11915 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11916 | } | |
11917 | return resultobj; | |
11918 | fail: | |
11919 | return NULL; | |
11920 | } | |
11921 | ||
11922 | ||
44127b65 | 11923 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11924 | PyObject *resultobj; |
11925 | wxDC *arg1 = (wxDC *) 0 ; | |
11926 | int *arg2 = (int *) 0 ; | |
11927 | int *arg3 = (int *) 0 ; | |
11928 | int temp2 ; | |
11929 | int temp3 ; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | char *kwnames[] = { | |
11932 | (char *) "self", NULL | |
11933 | }; | |
11934 | ||
11935 | arg2 = &temp2; | |
11936 | arg3 = &temp3; | |
44127b65 | 11937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
11938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11939 | { | |
11940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11941 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
11942 | ||
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | Py_INCREF(Py_None); resultobj = Py_None; | |
11947 | { | |
11948 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
11949 | resultobj = t_output_helper(resultobj,o); | |
11950 | } | |
11951 | { | |
11952 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
11953 | resultobj = t_output_helper(resultobj,o); | |
11954 | } | |
11955 | return resultobj; | |
11956 | fail: | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
d14a1e28 RD |
11961 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
11962 | PyObject *resultobj; | |
11963 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11964 | int arg2 ; |
11965 | int result; | |
d14a1e28 RD |
11966 | PyObject * obj0 = 0 ; |
11967 | char *kwnames[] = { | |
11968 | (char *) "self",(char *) "x", NULL | |
11969 | }; | |
11970 | ||
11971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalX",kwnames,&obj0,&arg2)) goto fail; | |
11972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11973 | { | |
11974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 11975 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
11976 | |
11977 | wxPyEndAllowThreads(__tstate); | |
11978 | if (PyErr_Occurred()) SWIG_fail; | |
11979 | } | |
11980 | resultobj = PyInt_FromLong((long)result); | |
11981 | return resultobj; | |
11982 | fail: | |
11983 | return NULL; | |
11984 | } | |
11985 | ||
11986 | ||
11987 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11988 | PyObject *resultobj; | |
11989 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11990 | int arg2 ; |
11991 | int result; | |
d14a1e28 RD |
11992 | PyObject * obj0 = 0 ; |
11993 | char *kwnames[] = { | |
11994 | (char *) "self",(char *) "y", NULL | |
11995 | }; | |
11996 | ||
11997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalY",kwnames,&obj0,&arg2)) goto fail; | |
11998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11999 | { | |
12000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12001 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
12002 | |
12003 | wxPyEndAllowThreads(__tstate); | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
12005 | } | |
12006 | resultobj = PyInt_FromLong((long)result); | |
12007 | return resultobj; | |
12008 | fail: | |
12009 | return NULL; | |
12010 | } | |
12011 | ||
12012 | ||
12013 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12014 | PyObject *resultobj; | |
12015 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12016 | int arg2 ; |
12017 | int result; | |
d14a1e28 RD |
12018 | PyObject * obj0 = 0 ; |
12019 | char *kwnames[] = { | |
12020 | (char *) "self",(char *) "x", NULL | |
12021 | }; | |
12022 | ||
12023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalXRel",kwnames,&obj0,&arg2)) goto fail; | |
12024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12025 | { | |
12026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12027 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
12028 | |
12029 | wxPyEndAllowThreads(__tstate); | |
12030 | if (PyErr_Occurred()) SWIG_fail; | |
12031 | } | |
12032 | resultobj = PyInt_FromLong((long)result); | |
12033 | return resultobj; | |
12034 | fail: | |
12035 | return NULL; | |
12036 | } | |
12037 | ||
12038 | ||
12039 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12040 | PyObject *resultobj; | |
12041 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12042 | int arg2 ; |
12043 | int result; | |
d14a1e28 RD |
12044 | PyObject * obj0 = 0 ; |
12045 | char *kwnames[] = { | |
12046 | (char *) "self",(char *) "y", NULL | |
12047 | }; | |
12048 | ||
12049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_DeviceToLogicalYRel",kwnames,&obj0,&arg2)) goto fail; | |
12050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12051 | { | |
12052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12053 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
12054 | |
12055 | wxPyEndAllowThreads(__tstate); | |
12056 | if (PyErr_Occurred()) SWIG_fail; | |
12057 | } | |
12058 | resultobj = PyInt_FromLong((long)result); | |
12059 | return resultobj; | |
12060 | fail: | |
12061 | return NULL; | |
12062 | } | |
12063 | ||
12064 | ||
12065 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12066 | PyObject *resultobj; | |
12067 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12068 | int arg2 ; |
12069 | int result; | |
d14a1e28 RD |
12070 | PyObject * obj0 = 0 ; |
12071 | char *kwnames[] = { | |
12072 | (char *) "self",(char *) "x", NULL | |
12073 | }; | |
12074 | ||
12075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceX",kwnames,&obj0,&arg2)) goto fail; | |
12076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12077 | { | |
12078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12079 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
12080 | |
12081 | wxPyEndAllowThreads(__tstate); | |
12082 | if (PyErr_Occurred()) SWIG_fail; | |
12083 | } | |
12084 | resultobj = PyInt_FromLong((long)result); | |
12085 | return resultobj; | |
12086 | fail: | |
12087 | return NULL; | |
12088 | } | |
12089 | ||
12090 | ||
12091 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12092 | PyObject *resultobj; | |
12093 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12094 | int arg2 ; |
12095 | int result; | |
d14a1e28 RD |
12096 | PyObject * obj0 = 0 ; |
12097 | char *kwnames[] = { | |
12098 | (char *) "self",(char *) "y", NULL | |
12099 | }; | |
12100 | ||
12101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceY",kwnames,&obj0,&arg2)) goto fail; | |
12102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12103 | { | |
12104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12105 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
12106 | |
12107 | wxPyEndAllowThreads(__tstate); | |
12108 | if (PyErr_Occurred()) SWIG_fail; | |
12109 | } | |
12110 | resultobj = PyInt_FromLong((long)result); | |
12111 | return resultobj; | |
12112 | fail: | |
12113 | return NULL; | |
12114 | } | |
12115 | ||
12116 | ||
12117 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12118 | PyObject *resultobj; | |
12119 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12120 | int arg2 ; |
12121 | int result; | |
d14a1e28 RD |
12122 | PyObject * obj0 = 0 ; |
12123 | char *kwnames[] = { | |
12124 | (char *) "self",(char *) "x", NULL | |
12125 | }; | |
12126 | ||
12127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceXRel",kwnames,&obj0,&arg2)) goto fail; | |
12128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12129 | { | |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12131 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
12132 | |
12133 | wxPyEndAllowThreads(__tstate); | |
12134 | if (PyErr_Occurred()) SWIG_fail; | |
12135 | } | |
12136 | resultobj = PyInt_FromLong((long)result); | |
12137 | return resultobj; | |
12138 | fail: | |
12139 | return NULL; | |
12140 | } | |
12141 | ||
12142 | ||
12143 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12144 | PyObject *resultobj; | |
12145 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12146 | int arg2 ; |
12147 | int result; | |
d14a1e28 RD |
12148 | PyObject * obj0 = 0 ; |
12149 | char *kwnames[] = { | |
12150 | (char *) "self",(char *) "y", NULL | |
12151 | }; | |
12152 | ||
12153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_LogicalToDeviceYRel",kwnames,&obj0,&arg2)) goto fail; | |
12154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12155 | { | |
12156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12157 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
12158 | |
12159 | wxPyEndAllowThreads(__tstate); | |
12160 | if (PyErr_Occurred()) SWIG_fail; | |
12161 | } | |
12162 | resultobj = PyInt_FromLong((long)result); | |
12163 | return resultobj; | |
12164 | fail: | |
12165 | return NULL; | |
12166 | } | |
12167 | ||
12168 | ||
12169 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12170 | PyObject *resultobj; | |
12171 | wxDC *arg1 = (wxDC *) 0 ; | |
12172 | bool result; | |
12173 | PyObject * obj0 = 0 ; | |
12174 | char *kwnames[] = { | |
12175 | (char *) "self", NULL | |
12176 | }; | |
12177 | ||
12178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
12179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12180 | { | |
12181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12182 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
12183 | ||
12184 | wxPyEndAllowThreads(__tstate); | |
12185 | if (PyErr_Occurred()) SWIG_fail; | |
12186 | } | |
12187 | resultobj = PyInt_FromLong((long)result); | |
12188 | return resultobj; | |
12189 | fail: | |
12190 | return NULL; | |
12191 | } | |
12192 | ||
12193 | ||
12194 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12195 | PyObject *resultobj; | |
12196 | wxDC *arg1 = (wxDC *) 0 ; | |
12197 | bool result; | |
12198 | PyObject * obj0 = 0 ; | |
12199 | char *kwnames[] = { | |
12200 | (char *) "self", NULL | |
12201 | }; | |
12202 | ||
12203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
12204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12205 | { | |
12206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12207 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
12208 | ||
12209 | wxPyEndAllowThreads(__tstate); | |
12210 | if (PyErr_Occurred()) SWIG_fail; | |
12211 | } | |
12212 | resultobj = PyInt_FromLong((long)result); | |
12213 | return resultobj; | |
12214 | fail: | |
12215 | return NULL; | |
12216 | } | |
12217 | ||
12218 | ||
12219 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12220 | PyObject *resultobj; | |
12221 | wxDC *arg1 = (wxDC *) 0 ; | |
12222 | int result; | |
12223 | PyObject * obj0 = 0 ; | |
12224 | char *kwnames[] = { | |
12225 | (char *) "self", NULL | |
12226 | }; | |
12227 | ||
12228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
12229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12230 | { | |
12231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12232 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
12233 | ||
12234 | wxPyEndAllowThreads(__tstate); | |
12235 | if (PyErr_Occurred()) SWIG_fail; | |
12236 | } | |
12237 | resultobj = PyInt_FromLong((long)result); | |
12238 | return resultobj; | |
12239 | fail: | |
12240 | return NULL; | |
12241 | } | |
12242 | ||
12243 | ||
12244 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12245 | PyObject *resultobj; | |
12246 | wxDC *arg1 = (wxDC *) 0 ; | |
12247 | wxSize result; | |
12248 | PyObject * obj0 = 0 ; | |
12249 | char *kwnames[] = { | |
12250 | (char *) "self", NULL | |
12251 | }; | |
12252 | ||
12253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
12254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12255 | { | |
12256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12257 | result = ((wxDC const *)arg1)->GetPPI(); | |
12258 | ||
12259 | wxPyEndAllowThreads(__tstate); | |
12260 | if (PyErr_Occurred()) SWIG_fail; | |
12261 | } | |
12262 | { | |
12263 | wxSize * resultptr; | |
12264 | resultptr = new wxSize((wxSize &) result); | |
12265 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12266 | } | |
12267 | return resultobj; | |
12268 | fail: | |
12269 | return NULL; | |
12270 | } | |
12271 | ||
12272 | ||
12273 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12274 | PyObject *resultobj; | |
12275 | wxDC *arg1 = (wxDC *) 0 ; | |
12276 | bool result; | |
12277 | PyObject * obj0 = 0 ; | |
12278 | char *kwnames[] = { | |
12279 | (char *) "self", NULL | |
12280 | }; | |
12281 | ||
12282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
12283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12284 | { | |
12285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12286 | result = (bool)((wxDC const *)arg1)->Ok(); | |
12287 | ||
12288 | wxPyEndAllowThreads(__tstate); | |
12289 | if (PyErr_Occurred()) SWIG_fail; | |
12290 | } | |
12291 | resultobj = PyInt_FromLong((long)result); | |
12292 | return resultobj; | |
12293 | fail: | |
12294 | return NULL; | |
12295 | } | |
12296 | ||
12297 | ||
12298 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12299 | PyObject *resultobj; | |
12300 | wxDC *arg1 = (wxDC *) 0 ; | |
12301 | int result; | |
12302 | PyObject * obj0 = 0 ; | |
12303 | char *kwnames[] = { | |
12304 | (char *) "self", NULL | |
12305 | }; | |
12306 | ||
12307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
12308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12309 | { | |
12310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12311 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
12312 | ||
12313 | wxPyEndAllowThreads(__tstate); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | } | |
12316 | resultobj = PyInt_FromLong((long)result); | |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
12323 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12324 | PyObject *resultobj; | |
12325 | wxDC *arg1 = (wxDC *) 0 ; | |
12326 | wxBrush *result; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "self", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
12333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12334 | { | |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | { | |
12337 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
12338 | result = (wxBrush *) &_result_ref; | |
12339 | } | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxDC *arg1 = (wxDC *) 0 ; | |
12354 | wxBrush *result; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
12361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | { | |
12365 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
12366 | result = (wxBrush *) &_result_ref; | |
12367 | } | |
12368 | ||
12369 | wxPyEndAllowThreads(__tstate); | |
12370 | if (PyErr_Occurred()) SWIG_fail; | |
12371 | } | |
12372 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
12373 | return resultobj; | |
12374 | fail: | |
12375 | return NULL; | |
12376 | } | |
12377 | ||
12378 | ||
12379 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12380 | PyObject *resultobj; | |
12381 | wxDC *arg1 = (wxDC *) 0 ; | |
12382 | wxFont *result; | |
12383 | PyObject * obj0 = 0 ; | |
12384 | char *kwnames[] = { | |
12385 | (char *) "self", NULL | |
12386 | }; | |
12387 | ||
12388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
12389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12390 | { | |
12391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12392 | { | |
12393 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
12394 | result = (wxFont *) &_result_ref; | |
12395 | } | |
12396 | ||
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
12400 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
12401 | return resultobj; | |
12402 | fail: | |
12403 | return NULL; | |
12404 | } | |
12405 | ||
12406 | ||
12407 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12408 | PyObject *resultobj; | |
12409 | wxDC *arg1 = (wxDC *) 0 ; | |
12410 | wxPen *result; | |
12411 | PyObject * obj0 = 0 ; | |
12412 | char *kwnames[] = { | |
12413 | (char *) "self", NULL | |
12414 | }; | |
12415 | ||
12416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
12417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12418 | { | |
12419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12420 | { | |
12421 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
12422 | result = (wxPen *) &_result_ref; | |
12423 | } | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
12428 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
12429 | return resultobj; | |
12430 | fail: | |
12431 | return NULL; | |
12432 | } | |
12433 | ||
12434 | ||
12435 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12436 | PyObject *resultobj; | |
12437 | wxDC *arg1 = (wxDC *) 0 ; | |
12438 | wxColour *result; | |
12439 | PyObject * obj0 = 0 ; | |
12440 | char *kwnames[] = { | |
12441 | (char *) "self", NULL | |
12442 | }; | |
12443 | ||
12444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
12445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12446 | { | |
12447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12448 | { | |
12449 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
12450 | result = (wxColour *) &_result_ref; | |
12451 | } | |
12452 | ||
12453 | wxPyEndAllowThreads(__tstate); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12457 | return resultobj; | |
12458 | fail: | |
12459 | return NULL; | |
12460 | } | |
12461 | ||
12462 | ||
12463 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12464 | PyObject *resultobj; | |
12465 | wxDC *arg1 = (wxDC *) 0 ; | |
12466 | wxColour *result; | |
12467 | PyObject * obj0 = 0 ; | |
12468 | char *kwnames[] = { | |
12469 | (char *) "self", NULL | |
12470 | }; | |
12471 | ||
12472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
12473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12474 | { | |
12475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12476 | { | |
12477 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
12478 | result = (wxColour *) &_result_ref; | |
12479 | } | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
12485 | return resultobj; | |
12486 | fail: | |
12487 | return NULL; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12492 | PyObject *resultobj; | |
12493 | wxDC *arg1 = (wxDC *) 0 ; | |
12494 | wxColour *arg2 = 0 ; | |
12495 | wxColour temp2 ; | |
12496 | PyObject * obj0 = 0 ; | |
12497 | PyObject * obj1 = 0 ; | |
12498 | char *kwnames[] = { | |
12499 | (char *) "self",(char *) "colour", NULL | |
12500 | }; | |
12501 | ||
12502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
12503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12504 | { | |
12505 | arg2 = &temp2; | |
12506 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12507 | } | |
12508 | { | |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12510 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
12511 | ||
12512 | wxPyEndAllowThreads(__tstate); | |
12513 | if (PyErr_Occurred()) SWIG_fail; | |
12514 | } | |
12515 | Py_INCREF(Py_None); resultobj = Py_None; | |
12516 | return resultobj; | |
12517 | fail: | |
12518 | return NULL; | |
12519 | } | |
12520 | ||
12521 | ||
12522 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12523 | PyObject *resultobj; | |
12524 | wxDC *arg1 = (wxDC *) 0 ; | |
12525 | wxColour *arg2 = 0 ; | |
12526 | wxColour temp2 ; | |
12527 | PyObject * obj0 = 0 ; | |
12528 | PyObject * obj1 = 0 ; | |
12529 | char *kwnames[] = { | |
12530 | (char *) "self",(char *) "colour", NULL | |
12531 | }; | |
12532 | ||
12533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
12534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12535 | { | |
12536 | arg2 = &temp2; | |
12537 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12538 | } | |
12539 | { | |
12540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12541 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
12542 | ||
12543 | wxPyEndAllowThreads(__tstate); | |
12544 | if (PyErr_Occurred()) SWIG_fail; | |
12545 | } | |
12546 | Py_INCREF(Py_None); resultobj = Py_None; | |
12547 | return resultobj; | |
12548 | fail: | |
12549 | return NULL; | |
12550 | } | |
12551 | ||
12552 | ||
12553 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12554 | PyObject *resultobj; | |
12555 | wxDC *arg1 = (wxDC *) 0 ; | |
12556 | int result; | |
12557 | PyObject * obj0 = 0 ; | |
12558 | char *kwnames[] = { | |
12559 | (char *) "self", NULL | |
12560 | }; | |
12561 | ||
12562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
12563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12564 | { | |
12565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12566 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
12567 | ||
12568 | wxPyEndAllowThreads(__tstate); | |
12569 | if (PyErr_Occurred()) SWIG_fail; | |
12570 | } | |
12571 | resultobj = PyInt_FromLong((long)result); | |
12572 | return resultobj; | |
12573 | fail: | |
12574 | return NULL; | |
12575 | } | |
12576 | ||
12577 | ||
12578 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12579 | PyObject *resultobj; | |
12580 | wxDC *arg1 = (wxDC *) 0 ; | |
12581 | int arg2 ; | |
12582 | PyObject * obj0 = 0 ; | |
12583 | char *kwnames[] = { | |
12584 | (char *) "self",(char *) "mode", NULL | |
12585 | }; | |
12586 | ||
12587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetMapMode",kwnames,&obj0,&arg2)) goto fail; | |
12588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12589 | { | |
12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12591 | (arg1)->SetMapMode(arg2); | |
12592 | ||
12593 | wxPyEndAllowThreads(__tstate); | |
12594 | if (PyErr_Occurred()) SWIG_fail; | |
12595 | } | |
12596 | Py_INCREF(Py_None); resultobj = Py_None; | |
12597 | return resultobj; | |
12598 | fail: | |
12599 | return NULL; | |
12600 | } | |
12601 | ||
12602 | ||
12603 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxDC *arg1 = (wxDC *) 0 ; | |
12606 | double *arg2 = (double *) 0 ; | |
12607 | double *arg3 = (double *) 0 ; | |
12608 | double temp2 ; | |
12609 | double temp3 ; | |
12610 | PyObject * obj0 = 0 ; | |
12611 | char *kwnames[] = { | |
12612 | (char *) "self", NULL | |
12613 | }; | |
12614 | ||
12615 | arg2 = &temp2; | |
12616 | arg3 = &temp3; | |
12617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
12618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12619 | { | |
12620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12621 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
12622 | ||
12623 | wxPyEndAllowThreads(__tstate); | |
12624 | if (PyErr_Occurred()) SWIG_fail; | |
12625 | } | |
12626 | Py_INCREF(Py_None); resultobj = Py_None; | |
12627 | { | |
12628 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12629 | resultobj = t_output_helper(resultobj,o); | |
12630 | } | |
12631 | { | |
12632 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12633 | resultobj = t_output_helper(resultobj,o); | |
12634 | } | |
12635 | return resultobj; | |
12636 | fail: | |
12637 | return NULL; | |
12638 | } | |
12639 | ||
12640 | ||
12641 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12642 | PyObject *resultobj; | |
12643 | wxDC *arg1 = (wxDC *) 0 ; | |
12644 | double arg2 ; | |
12645 | double arg3 ; | |
12646 | PyObject * obj0 = 0 ; | |
12647 | char *kwnames[] = { | |
12648 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12649 | }; | |
12650 | ||
12651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetUserScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12653 | { | |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | (arg1)->SetUserScale(arg2,arg3); | |
12656 | ||
12657 | wxPyEndAllowThreads(__tstate); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
12659 | } | |
12660 | Py_INCREF(Py_None); resultobj = Py_None; | |
12661 | return resultobj; | |
12662 | fail: | |
12663 | return NULL; | |
12664 | } | |
12665 | ||
12666 | ||
12667 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12668 | PyObject *resultobj; | |
12669 | wxDC *arg1 = (wxDC *) 0 ; | |
12670 | double *arg2 = (double *) 0 ; | |
12671 | double *arg3 = (double *) 0 ; | |
12672 | double temp2 ; | |
12673 | double temp3 ; | |
12674 | PyObject * obj0 = 0 ; | |
12675 | char *kwnames[] = { | |
12676 | (char *) "self", NULL | |
12677 | }; | |
12678 | ||
12679 | arg2 = &temp2; | |
12680 | arg3 = &temp3; | |
12681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
12682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12683 | { | |
12684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12685 | (arg1)->GetLogicalScale(arg2,arg3); | |
12686 | ||
12687 | wxPyEndAllowThreads(__tstate); | |
12688 | if (PyErr_Occurred()) SWIG_fail; | |
12689 | } | |
12690 | Py_INCREF(Py_None); resultobj = Py_None; | |
12691 | { | |
12692 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
12693 | resultobj = t_output_helper(resultobj,o); | |
12694 | } | |
12695 | { | |
12696 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
12697 | resultobj = t_output_helper(resultobj,o); | |
12698 | } | |
12699 | return resultobj; | |
12700 | fail: | |
12701 | return NULL; | |
12702 | } | |
12703 | ||
12704 | ||
12705 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12706 | PyObject *resultobj; | |
12707 | wxDC *arg1 = (wxDC *) 0 ; | |
12708 | double arg2 ; | |
12709 | double arg3 ; | |
12710 | PyObject * obj0 = 0 ; | |
12711 | char *kwnames[] = { | |
12712 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12713 | }; | |
12714 | ||
12715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Odd:DC_SetLogicalScale",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12717 | { | |
12718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12719 | (arg1)->SetLogicalScale(arg2,arg3); | |
12720 | ||
12721 | wxPyEndAllowThreads(__tstate); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
12724 | Py_INCREF(Py_None); resultobj = Py_None; | |
12725 | return resultobj; | |
12726 | fail: | |
12727 | return NULL; | |
12728 | } | |
12729 | ||
12730 | ||
44127b65 | 12731 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12732 | PyObject *resultobj; |
12733 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 12734 | wxPoint result; |
d14a1e28 RD |
12735 | PyObject * obj0 = 0 ; |
12736 | char *kwnames[] = { | |
12737 | (char *) "self", NULL | |
12738 | }; | |
12739 | ||
44127b65 | 12740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12742 | { | |
12743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12744 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
12745 | |
12746 | wxPyEndAllowThreads(__tstate); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
d14a1e28 | 12749 | { |
44127b65 RD |
12750 | wxPoint * resultptr; |
12751 | resultptr = new wxPoint((wxPoint &) result); | |
12752 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
12753 | } |
12754 | return resultobj; | |
12755 | fail: | |
12756 | return NULL; | |
12757 | } | |
12758 | ||
12759 | ||
44127b65 | 12760 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12761 | PyObject *resultobj; |
12762 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
12763 | int *arg2 = (int *) 0 ; |
12764 | int *arg3 = (int *) 0 ; | |
12765 | int temp2 ; | |
12766 | int temp3 ; | |
d14a1e28 RD |
12767 | PyObject * obj0 = 0 ; |
12768 | char *kwnames[] = { | |
12769 | (char *) "self", NULL | |
12770 | }; | |
12771 | ||
44127b65 RD |
12772 | arg2 = &temp2; |
12773 | arg3 = &temp3; | |
12774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
12775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12776 | { | |
12777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12778 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
12779 | |
12780 | wxPyEndAllowThreads(__tstate); | |
12781 | if (PyErr_Occurred()) SWIG_fail; | |
12782 | } | |
44127b65 | 12783 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 12784 | { |
44127b65 RD |
12785 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
12786 | resultobj = t_output_helper(resultobj,o); | |
12787 | } | |
12788 | { | |
12789 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12790 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
12791 | } |
12792 | return resultobj; | |
12793 | fail: | |
12794 | return NULL; | |
12795 | } | |
12796 | ||
12797 | ||
12798 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12799 | PyObject *resultobj; | |
12800 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12801 | int arg2 ; |
12802 | int arg3 ; | |
d14a1e28 RD |
12803 | PyObject * obj0 = 0 ; |
12804 | char *kwnames[] = { | |
12805 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12806 | }; | |
12807 | ||
12808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetLogicalOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12810 | { | |
12811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12812 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
12813 | ||
12814 | wxPyEndAllowThreads(__tstate); | |
12815 | if (PyErr_Occurred()) SWIG_fail; | |
12816 | } | |
12817 | Py_INCREF(Py_None); resultobj = Py_None; | |
12818 | return resultobj; | |
12819 | fail: | |
12820 | return NULL; | |
12821 | } | |
12822 | ||
12823 | ||
44127b65 | 12824 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12825 | PyObject *resultobj; |
12826 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 12827 | wxPoint result; |
d14a1e28 RD |
12828 | PyObject * obj0 = 0 ; |
12829 | char *kwnames[] = { | |
12830 | (char *) "self", NULL | |
12831 | }; | |
12832 | ||
44127b65 | 12833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
12834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12835 | { | |
12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12837 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
12838 | |
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
d14a1e28 | 12842 | { |
44127b65 RD |
12843 | wxPoint * resultptr; |
12844 | resultptr = new wxPoint((wxPoint &) result); | |
12845 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
12846 | } |
12847 | return resultobj; | |
12848 | fail: | |
12849 | return NULL; | |
12850 | } | |
12851 | ||
12852 | ||
44127b65 | 12853 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12854 | PyObject *resultobj; |
12855 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
12856 | int *arg2 = (int *) 0 ; |
12857 | int *arg3 = (int *) 0 ; | |
12858 | int temp2 ; | |
12859 | int temp3 ; | |
d14a1e28 RD |
12860 | PyObject * obj0 = 0 ; |
12861 | char *kwnames[] = { | |
12862 | (char *) "self", NULL | |
12863 | }; | |
12864 | ||
44127b65 RD |
12865 | arg2 = &temp2; |
12866 | arg3 = &temp3; | |
12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",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(); | |
44127b65 | 12871 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
12872 | |
12873 | wxPyEndAllowThreads(__tstate); | |
12874 | if (PyErr_Occurred()) SWIG_fail; | |
12875 | } | |
44127b65 | 12876 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 12877 | { |
44127b65 RD |
12878 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
12879 | resultobj = t_output_helper(resultobj,o); | |
12880 | } | |
12881 | { | |
12882 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12883 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
12884 | } |
12885 | return resultobj; | |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
12891 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12892 | PyObject *resultobj; | |
12893 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12894 | int arg2 ; |
12895 | int arg3 ; | |
d14a1e28 RD |
12896 | PyObject * obj0 = 0 ; |
12897 | char *kwnames[] = { | |
12898 | (char *) "self",(char *) "x",(char *) "y", NULL | |
12899 | }; | |
12900 | ||
12901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_SetDeviceOrigin",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
12902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12903 | { | |
12904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12905 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
12906 | ||
12907 | wxPyEndAllowThreads(__tstate); | |
12908 | if (PyErr_Occurred()) SWIG_fail; | |
12909 | } | |
12910 | Py_INCREF(Py_None); resultobj = Py_None; | |
12911 | return resultobj; | |
12912 | fail: | |
12913 | return NULL; | |
12914 | } | |
12915 | ||
12916 | ||
12917 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12918 | PyObject *resultobj; | |
12919 | wxDC *arg1 = (wxDC *) 0 ; | |
12920 | bool arg2 ; | |
12921 | bool arg3 ; | |
12922 | PyObject * obj0 = 0 ; | |
12923 | PyObject * obj1 = 0 ; | |
12924 | PyObject * obj2 = 0 ; | |
12925 | char *kwnames[] = { | |
12926 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
12927 | }; | |
12928 | ||
12929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12931 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
12932 | if (PyErr_Occurred()) SWIG_fail; | |
12933 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12934 | if (PyErr_Occurred()) SWIG_fail; | |
12935 | { | |
12936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12937 | (arg1)->SetAxisOrientation(arg2,arg3); | |
12938 | ||
12939 | wxPyEndAllowThreads(__tstate); | |
12940 | if (PyErr_Occurred()) SWIG_fail; | |
12941 | } | |
12942 | Py_INCREF(Py_None); resultobj = Py_None; | |
12943 | return resultobj; | |
12944 | fail: | |
12945 | return NULL; | |
12946 | } | |
12947 | ||
12948 | ||
12949 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12950 | PyObject *resultobj; | |
12951 | wxDC *arg1 = (wxDC *) 0 ; | |
12952 | int result; | |
12953 | PyObject * obj0 = 0 ; | |
12954 | char *kwnames[] = { | |
12955 | (char *) "self", NULL | |
12956 | }; | |
12957 | ||
12958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
12959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12960 | { | |
12961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12962 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
12963 | ||
12964 | wxPyEndAllowThreads(__tstate); | |
12965 | if (PyErr_Occurred()) SWIG_fail; | |
12966 | } | |
12967 | resultobj = PyInt_FromLong((long)result); | |
12968 | return resultobj; | |
12969 | fail: | |
12970 | return NULL; | |
12971 | } | |
12972 | ||
12973 | ||
12974 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12975 | PyObject *resultobj; | |
12976 | wxDC *arg1 = (wxDC *) 0 ; | |
12977 | int arg2 ; | |
12978 | PyObject * obj0 = 0 ; | |
12979 | char *kwnames[] = { | |
12980 | (char *) "self",(char *) "function", NULL | |
12981 | }; | |
12982 | ||
12983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DC_SetLogicalFunction",kwnames,&obj0,&arg2)) goto fail; | |
12984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12985 | { | |
12986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12987 | (arg1)->SetLogicalFunction(arg2); | |
12988 | ||
12989 | wxPyEndAllowThreads(__tstate); | |
12990 | if (PyErr_Occurred()) SWIG_fail; | |
12991 | } | |
12992 | Py_INCREF(Py_None); resultobj = Py_None; | |
12993 | return resultobj; | |
12994 | fail: | |
12995 | return NULL; | |
12996 | } | |
12997 | ||
12998 | ||
12999 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13000 | PyObject *resultobj; | |
13001 | wxDC *arg1 = (wxDC *) 0 ; | |
13002 | bool arg2 ; | |
13003 | PyObject * obj0 = 0 ; | |
13004 | PyObject * obj1 = 0 ; | |
13005 | char *kwnames[] = { | |
13006 | (char *) "self",(char *) "opt", NULL | |
13007 | }; | |
13008 | ||
13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
13010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13011 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13012 | if (PyErr_Occurred()) SWIG_fail; | |
13013 | { | |
13014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13015 | (arg1)->SetOptimization(arg2); | |
13016 | ||
13017 | wxPyEndAllowThreads(__tstate); | |
13018 | if (PyErr_Occurred()) SWIG_fail; | |
13019 | } | |
13020 | Py_INCREF(Py_None); resultobj = Py_None; | |
13021 | return resultobj; | |
13022 | fail: | |
13023 | return NULL; | |
13024 | } | |
13025 | ||
13026 | ||
13027 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13028 | PyObject *resultobj; | |
13029 | wxDC *arg1 = (wxDC *) 0 ; | |
13030 | bool result; | |
13031 | PyObject * obj0 = 0 ; | |
13032 | char *kwnames[] = { | |
13033 | (char *) "self", NULL | |
13034 | }; | |
13035 | ||
13036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
13037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13038 | { | |
13039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13040 | result = (bool)(arg1)->GetOptimization(); | |
13041 | ||
13042 | wxPyEndAllowThreads(__tstate); | |
13043 | if (PyErr_Occurred()) SWIG_fail; | |
13044 | } | |
13045 | resultobj = PyInt_FromLong((long)result); | |
13046 | return resultobj; | |
13047 | fail: | |
13048 | return NULL; | |
13049 | } | |
13050 | ||
13051 | ||
13052 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13053 | PyObject *resultobj; | |
13054 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13055 | int arg2 ; |
13056 | int arg3 ; | |
d14a1e28 RD |
13057 | PyObject * obj0 = 0 ; |
13058 | char *kwnames[] = { | |
13059 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13060 | }; | |
13061 | ||
13062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DC_CalcBoundingBox",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
13063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13064 | { | |
13065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13066 | (arg1)->CalcBoundingBox(arg2,arg3); | |
13067 | ||
13068 | wxPyEndAllowThreads(__tstate); | |
13069 | if (PyErr_Occurred()) SWIG_fail; | |
13070 | } | |
13071 | Py_INCREF(Py_None); resultobj = Py_None; | |
13072 | return resultobj; | |
13073 | fail: | |
13074 | return NULL; | |
13075 | } | |
13076 | ||
13077 | ||
13078 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13079 | PyObject *resultobj; | |
13080 | wxDC *arg1 = (wxDC *) 0 ; | |
13081 | PyObject * obj0 = 0 ; | |
13082 | char *kwnames[] = { | |
13083 | (char *) "self", NULL | |
13084 | }; | |
13085 | ||
13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
13087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13088 | { | |
13089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13090 | (arg1)->ResetBoundingBox(); | |
13091 | ||
13092 | wxPyEndAllowThreads(__tstate); | |
13093 | if (PyErr_Occurred()) SWIG_fail; | |
13094 | } | |
13095 | Py_INCREF(Py_None); resultobj = Py_None; | |
13096 | return resultobj; | |
13097 | fail: | |
13098 | return NULL; | |
13099 | } | |
13100 | ||
13101 | ||
13102 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13103 | PyObject *resultobj; | |
13104 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13105 | int result; |
d14a1e28 RD |
13106 | PyObject * obj0 = 0 ; |
13107 | char *kwnames[] = { | |
13108 | (char *) "self", NULL | |
13109 | }; | |
13110 | ||
13111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
13112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13113 | { | |
13114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13115 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
13116 | |
13117 | wxPyEndAllowThreads(__tstate); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
13120 | resultobj = PyInt_FromLong((long)result); | |
13121 | return resultobj; | |
13122 | fail: | |
13123 | return NULL; | |
13124 | } | |
13125 | ||
13126 | ||
13127 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13128 | PyObject *resultobj; | |
13129 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13130 | int result; |
d14a1e28 RD |
13131 | PyObject * obj0 = 0 ; |
13132 | char *kwnames[] = { | |
13133 | (char *) "self", NULL | |
13134 | }; | |
13135 | ||
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
13137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13138 | { | |
13139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13140 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
13141 | |
13142 | wxPyEndAllowThreads(__tstate); | |
13143 | if (PyErr_Occurred()) SWIG_fail; | |
13144 | } | |
13145 | resultobj = PyInt_FromLong((long)result); | |
13146 | return resultobj; | |
13147 | fail: | |
13148 | return NULL; | |
13149 | } | |
13150 | ||
13151 | ||
13152 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13153 | PyObject *resultobj; | |
13154 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13155 | int result; |
d14a1e28 RD |
13156 | PyObject * obj0 = 0 ; |
13157 | char *kwnames[] = { | |
13158 | (char *) "self", NULL | |
13159 | }; | |
13160 | ||
13161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
13162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13163 | { | |
13164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13165 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
13166 | |
13167 | wxPyEndAllowThreads(__tstate); | |
13168 | if (PyErr_Occurred()) SWIG_fail; | |
13169 | } | |
13170 | resultobj = PyInt_FromLong((long)result); | |
13171 | return resultobj; | |
13172 | fail: | |
13173 | return NULL; | |
13174 | } | |
13175 | ||
13176 | ||
13177 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13178 | PyObject *resultobj; | |
13179 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13180 | int result; |
d14a1e28 RD |
13181 | PyObject * obj0 = 0 ; |
13182 | char *kwnames[] = { | |
13183 | (char *) "self", NULL | |
13184 | }; | |
13185 | ||
13186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
13187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13188 | { | |
13189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13190 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
13191 | |
13192 | wxPyEndAllowThreads(__tstate); | |
13193 | if (PyErr_Occurred()) SWIG_fail; | |
13194 | } | |
13195 | resultobj = PyInt_FromLong((long)result); | |
13196 | return resultobj; | |
13197 | fail: | |
13198 | return NULL; | |
13199 | } | |
13200 | ||
13201 | ||
13202 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13203 | PyObject *resultobj; | |
13204 | wxDC *arg1 = (wxDC *) 0 ; | |
13205 | int *arg2 = (int *) 0 ; | |
13206 | int *arg3 = (int *) 0 ; | |
13207 | int *arg4 = (int *) 0 ; | |
13208 | int *arg5 = (int *) 0 ; | |
13209 | int temp2 ; | |
13210 | int temp3 ; | |
13211 | int temp4 ; | |
13212 | int temp5 ; | |
13213 | PyObject * obj0 = 0 ; | |
13214 | char *kwnames[] = { | |
13215 | (char *) "self", NULL | |
13216 | }; | |
13217 | ||
13218 | arg2 = &temp2; | |
13219 | arg3 = &temp3; | |
13220 | arg4 = &temp4; | |
13221 | arg5 = &temp5; | |
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
13223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13224 | { | |
13225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13226 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
13227 | ||
13228 | wxPyEndAllowThreads(__tstate); | |
13229 | if (PyErr_Occurred()) SWIG_fail; | |
13230 | } | |
13231 | Py_INCREF(Py_None); resultobj = Py_None; | |
13232 | { | |
13233 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13234 | resultobj = t_output_helper(resultobj,o); | |
13235 | } | |
13236 | { | |
13237 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13238 | resultobj = t_output_helper(resultobj,o); | |
13239 | } | |
13240 | { | |
13241 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13242 | resultobj = t_output_helper(resultobj,o); | |
13243 | } | |
13244 | { | |
13245 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13246 | resultobj = t_output_helper(resultobj,o); | |
13247 | } | |
13248 | return resultobj; | |
13249 | fail: | |
13250 | return NULL; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13255 | PyObject *resultobj; | |
13256 | wxDC *arg1 = (wxDC *) 0 ; | |
13257 | PyObject *arg2 = (PyObject *) 0 ; | |
13258 | PyObject *arg3 = (PyObject *) 0 ; | |
13259 | PyObject *arg4 = (PyObject *) 0 ; | |
13260 | PyObject *result; | |
13261 | PyObject * obj0 = 0 ; | |
13262 | PyObject * obj1 = 0 ; | |
13263 | PyObject * obj2 = 0 ; | |
13264 | PyObject * obj3 = 0 ; | |
13265 | char *kwnames[] = { | |
13266 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13267 | }; | |
13268 | ||
13269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13271 | arg2 = obj1; | |
13272 | arg3 = obj2; | |
13273 | arg4 = obj3; | |
13274 | { | |
13275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13276 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
13277 | ||
13278 | wxPyEndAllowThreads(__tstate); | |
13279 | if (PyErr_Occurred()) SWIG_fail; | |
13280 | } | |
13281 | resultobj = result; | |
13282 | return resultobj; | |
13283 | fail: | |
13284 | return NULL; | |
13285 | } | |
13286 | ||
13287 | ||
13288 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13289 | PyObject *resultobj; | |
13290 | wxDC *arg1 = (wxDC *) 0 ; | |
13291 | PyObject *arg2 = (PyObject *) 0 ; | |
13292 | PyObject *arg3 = (PyObject *) 0 ; | |
13293 | PyObject *arg4 = (PyObject *) 0 ; | |
13294 | PyObject *result; | |
13295 | PyObject * obj0 = 0 ; | |
13296 | PyObject * obj1 = 0 ; | |
13297 | PyObject * obj2 = 0 ; | |
13298 | PyObject * obj3 = 0 ; | |
13299 | char *kwnames[] = { | |
13300 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13301 | }; | |
13302 | ||
13303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13305 | arg2 = obj1; | |
13306 | arg3 = obj2; | |
13307 | arg4 = obj3; | |
13308 | { | |
13309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13310 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
13311 | ||
13312 | wxPyEndAllowThreads(__tstate); | |
13313 | if (PyErr_Occurred()) SWIG_fail; | |
13314 | } | |
13315 | resultobj = result; | |
13316 | return resultobj; | |
13317 | fail: | |
13318 | return NULL; | |
13319 | } | |
13320 | ||
13321 | ||
13322 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13323 | PyObject *resultobj; | |
13324 | wxDC *arg1 = (wxDC *) 0 ; | |
13325 | PyObject *arg2 = (PyObject *) 0 ; | |
13326 | PyObject *arg3 = (PyObject *) 0 ; | |
13327 | PyObject *arg4 = (PyObject *) 0 ; | |
13328 | PyObject *result; | |
13329 | PyObject * obj0 = 0 ; | |
13330 | PyObject * obj1 = 0 ; | |
13331 | PyObject * obj2 = 0 ; | |
13332 | PyObject * obj3 = 0 ; | |
13333 | char *kwnames[] = { | |
13334 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13335 | }; | |
13336 | ||
13337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13339 | arg2 = obj1; | |
13340 | arg3 = obj2; | |
13341 | arg4 = obj3; | |
13342 | { | |
13343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13344 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
13345 | ||
13346 | wxPyEndAllowThreads(__tstate); | |
13347 | if (PyErr_Occurred()) SWIG_fail; | |
13348 | } | |
13349 | resultobj = result; | |
13350 | return resultobj; | |
13351 | fail: | |
13352 | return NULL; | |
13353 | } | |
13354 | ||
13355 | ||
13356 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13357 | PyObject *resultobj; | |
13358 | wxDC *arg1 = (wxDC *) 0 ; | |
13359 | PyObject *arg2 = (PyObject *) 0 ; | |
13360 | PyObject *arg3 = (PyObject *) 0 ; | |
13361 | PyObject *arg4 = (PyObject *) 0 ; | |
13362 | PyObject *result; | |
13363 | PyObject * obj0 = 0 ; | |
13364 | PyObject * obj1 = 0 ; | |
13365 | PyObject * obj2 = 0 ; | |
13366 | PyObject * obj3 = 0 ; | |
13367 | char *kwnames[] = { | |
13368 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13369 | }; | |
13370 | ||
13371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13373 | arg2 = obj1; | |
13374 | arg3 = obj2; | |
13375 | arg4 = obj3; | |
13376 | { | |
13377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13378 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
13379 | ||
13380 | wxPyEndAllowThreads(__tstate); | |
13381 | if (PyErr_Occurred()) SWIG_fail; | |
13382 | } | |
13383 | resultobj = result; | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | return NULL; | |
13387 | } | |
13388 | ||
13389 | ||
13390 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13391 | PyObject *resultobj; | |
13392 | wxDC *arg1 = (wxDC *) 0 ; | |
13393 | PyObject *arg2 = (PyObject *) 0 ; | |
13394 | PyObject *arg3 = (PyObject *) 0 ; | |
13395 | PyObject *arg4 = (PyObject *) 0 ; | |
13396 | PyObject *result; | |
13397 | PyObject * obj0 = 0 ; | |
13398 | PyObject * obj1 = 0 ; | |
13399 | PyObject * obj2 = 0 ; | |
13400 | PyObject * obj3 = 0 ; | |
13401 | char *kwnames[] = { | |
13402 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
13403 | }; | |
13404 | ||
13405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13407 | arg2 = obj1; | |
13408 | arg3 = obj2; | |
13409 | arg4 = obj3; | |
13410 | { | |
13411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13412 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
13413 | ||
13414 | wxPyEndAllowThreads(__tstate); | |
13415 | if (PyErr_Occurred()) SWIG_fail; | |
13416 | } | |
13417 | resultobj = result; | |
13418 | return resultobj; | |
13419 | fail: | |
13420 | return NULL; | |
13421 | } | |
13422 | ||
13423 | ||
13424 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13425 | PyObject *resultobj; | |
13426 | wxDC *arg1 = (wxDC *) 0 ; | |
13427 | PyObject *arg2 = (PyObject *) 0 ; | |
13428 | PyObject *arg3 = (PyObject *) 0 ; | |
13429 | PyObject *arg4 = (PyObject *) 0 ; | |
13430 | PyObject *arg5 = (PyObject *) 0 ; | |
13431 | PyObject *result; | |
13432 | PyObject * obj0 = 0 ; | |
13433 | PyObject * obj1 = 0 ; | |
13434 | PyObject * obj2 = 0 ; | |
13435 | PyObject * obj3 = 0 ; | |
13436 | PyObject * obj4 = 0 ; | |
13437 | char *kwnames[] = { | |
13438 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
13439 | }; | |
13440 | ||
13441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13443 | arg2 = obj1; | |
13444 | arg3 = obj2; | |
13445 | arg4 = obj3; | |
13446 | arg5 = obj4; | |
13447 | { | |
13448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13449 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
13450 | ||
13451 | wxPyEndAllowThreads(__tstate); | |
13452 | if (PyErr_Occurred()) SWIG_fail; | |
13453 | } | |
13454 | resultobj = result; | |
13455 | return resultobj; | |
13456 | fail: | |
13457 | return NULL; | |
13458 | } | |
13459 | ||
13460 | ||
13461 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
13462 | PyObject *obj; | |
13463 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13464 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
13465 | Py_INCREF(obj); | |
13466 | return Py_BuildValue((char *)""); | |
13467 | } | |
13468 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13469 | PyObject *resultobj; | |
13470 | wxMemoryDC *result; | |
13471 | char *kwnames[] = { | |
13472 | NULL | |
13473 | }; | |
13474 | ||
13475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
13476 | { | |
13477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13478 | result = (wxMemoryDC *)new wxMemoryDC(); | |
13479 | ||
13480 | wxPyEndAllowThreads(__tstate); | |
13481 | if (PyErr_Occurred()) SWIG_fail; | |
13482 | } | |
13483 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13484 | return resultobj; | |
13485 | fail: | |
13486 | return NULL; | |
13487 | } | |
13488 | ||
13489 | ||
13490 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13491 | PyObject *resultobj; | |
13492 | wxDC *arg1 = (wxDC *) 0 ; | |
13493 | wxMemoryDC *result; | |
13494 | PyObject * obj0 = 0 ; | |
13495 | char *kwnames[] = { | |
13496 | (char *) "oldDC", NULL | |
13497 | }; | |
13498 | ||
13499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
13500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13501 | { | |
13502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13503 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
13504 | ||
13505 | wxPyEndAllowThreads(__tstate); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
13507 | } | |
13508 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1); | |
13509 | return resultobj; | |
13510 | fail: | |
13511 | return NULL; | |
13512 | } | |
13513 | ||
13514 | ||
13515 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13516 | PyObject *resultobj; | |
13517 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
13518 | wxBitmap *arg2 = 0 ; | |
13519 | PyObject * obj0 = 0 ; | |
13520 | PyObject * obj1 = 0 ; | |
13521 | char *kwnames[] = { | |
13522 | (char *) "self",(char *) "bitmap", NULL | |
13523 | }; | |
13524 | ||
13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
13526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13527 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13528 | if (arg2 == NULL) { | |
13529 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13530 | } | |
13531 | { | |
13532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13533 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
13534 | ||
13535 | wxPyEndAllowThreads(__tstate); | |
13536 | if (PyErr_Occurred()) SWIG_fail; | |
13537 | } | |
13538 | Py_INCREF(Py_None); resultobj = Py_None; | |
13539 | return resultobj; | |
13540 | fail: | |
13541 | return NULL; | |
13542 | } | |
13543 | ||
13544 | ||
13545 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
13546 | PyObject *obj; | |
13547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13548 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
13549 | Py_INCREF(obj); | |
13550 | return Py_BuildValue((char *)""); | |
13551 | } | |
13552 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj; | |
13554 | wxDC *arg1 = (wxDC *) 0 ; | |
13555 | wxBitmap *arg2 = 0 ; | |
13556 | wxBufferedDC *result; | |
13557 | PyObject * obj0 = 0 ; | |
13558 | PyObject * obj1 = 0 ; | |
13559 | char *kwnames[] = { | |
13560 | (char *) "dc",(char *) "buffer", NULL | |
13561 | }; | |
13562 | ||
13563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail; | |
13564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13565 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13566 | if (arg2 == NULL) { | |
13567 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13568 | } | |
13569 | { | |
13570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13571 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
13572 | ||
13573 | wxPyEndAllowThreads(__tstate); | |
13574 | if (PyErr_Occurred()) SWIG_fail; | |
13575 | } | |
13576 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13577 | return resultobj; | |
13578 | fail: | |
13579 | return NULL; | |
13580 | } | |
13581 | ||
13582 | ||
13583 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13584 | PyObject *resultobj; | |
13585 | wxDC *arg1 = (wxDC *) 0 ; | |
13586 | wxSize *arg2 = 0 ; | |
13587 | wxBufferedDC *result; | |
13588 | wxSize temp2 ; | |
13589 | PyObject * obj0 = 0 ; | |
13590 | PyObject * obj1 = 0 ; | |
13591 | char *kwnames[] = { | |
13592 | (char *) "dc",(char *) "area", NULL | |
13593 | }; | |
13594 | ||
13595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail; | |
13596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13597 | { | |
13598 | arg2 = &temp2; | |
13599 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13600 | } | |
13601 | { | |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
13604 | ||
13605 | wxPyEndAllowThreads(__tstate); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
13608 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1); | |
13609 | return resultobj; | |
13610 | fail: | |
13611 | return NULL; | |
13612 | } | |
13613 | ||
13614 | ||
13615 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13616 | PyObject *resultobj; | |
13617 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
13618 | PyObject * obj0 = 0 ; | |
13619 | char *kwnames[] = { | |
13620 | (char *) "self", NULL | |
13621 | }; | |
13622 | ||
13623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
13624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13625 | { | |
13626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13627 | (arg1)->UnMask(); | |
13628 | ||
13629 | wxPyEndAllowThreads(__tstate); | |
13630 | if (PyErr_Occurred()) SWIG_fail; | |
13631 | } | |
13632 | Py_INCREF(Py_None); resultobj = Py_None; | |
13633 | return resultobj; | |
13634 | fail: | |
13635 | return NULL; | |
13636 | } | |
13637 | ||
13638 | ||
13639 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
13640 | PyObject *obj; | |
13641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13642 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
13643 | Py_INCREF(obj); | |
13644 | return Py_BuildValue((char *)""); | |
13645 | } | |
13646 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13647 | PyObject *resultobj; | |
13648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13649 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
13650 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
13651 | wxBufferedPaintDC *result; | |
13652 | PyObject * obj0 = 0 ; | |
13653 | PyObject * obj1 = 0 ; | |
13654 | char *kwnames[] = { | |
13655 | (char *) "window",(char *) "buffer", NULL | |
13656 | }; | |
13657 | ||
13658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
13659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13660 | if (obj1) { | |
13661 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13662 | if (arg2 == NULL) { | |
13663 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13664 | } | |
13665 | } | |
13666 | { | |
13667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13668 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
13669 | ||
13670 | wxPyEndAllowThreads(__tstate); | |
13671 | if (PyErr_Occurred()) SWIG_fail; | |
13672 | } | |
13673 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1); | |
13674 | return resultobj; | |
13675 | fail: | |
13676 | return NULL; | |
13677 | } | |
13678 | ||
13679 | ||
13680 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
13681 | PyObject *obj; | |
13682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13683 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
13684 | Py_INCREF(obj); | |
13685 | return Py_BuildValue((char *)""); | |
13686 | } | |
13687 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13688 | PyObject *resultobj; | |
13689 | wxScreenDC *result; | |
13690 | char *kwnames[] = { | |
13691 | NULL | |
13692 | }; | |
13693 | ||
13694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
13695 | { | |
13696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13697 | result = (wxScreenDC *)new wxScreenDC(); | |
13698 | ||
13699 | wxPyEndAllowThreads(__tstate); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | } | |
13702 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1); | |
13703 | return resultobj; | |
13704 | fail: | |
13705 | return NULL; | |
13706 | } | |
13707 | ||
13708 | ||
13709 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13710 | PyObject *resultobj; | |
13711 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13712 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13713 | bool result; | |
13714 | PyObject * obj0 = 0 ; | |
13715 | PyObject * obj1 = 0 ; | |
13716 | char *kwnames[] = { | |
13717 | (char *) "self",(char *) "window", NULL | |
13718 | }; | |
13719 | ||
13720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
13721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13723 | { | |
13724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13725 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13726 | ||
13727 | wxPyEndAllowThreads(__tstate); | |
13728 | if (PyErr_Occurred()) SWIG_fail; | |
13729 | } | |
13730 | resultobj = PyInt_FromLong((long)result); | |
13731 | return resultobj; | |
13732 | fail: | |
13733 | return NULL; | |
13734 | } | |
13735 | ||
13736 | ||
13737 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13738 | PyObject *resultobj; | |
13739 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13740 | wxRect *arg2 = (wxRect *) NULL ; | |
13741 | bool result; | |
13742 | PyObject * obj0 = 0 ; | |
13743 | PyObject * obj1 = 0 ; | |
13744 | char *kwnames[] = { | |
13745 | (char *) "self",(char *) "rect", NULL | |
13746 | }; | |
13747 | ||
13748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
13749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13750 | if (obj1) { | |
13751 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13752 | } | |
13753 | { | |
13754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13755 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
13756 | ||
13757 | wxPyEndAllowThreads(__tstate); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
13759 | } | |
13760 | resultobj = PyInt_FromLong((long)result); | |
13761 | return resultobj; | |
13762 | fail: | |
13763 | return NULL; | |
13764 | } | |
13765 | ||
13766 | ||
13767 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13768 | PyObject *resultobj; | |
13769 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
13770 | bool result; | |
13771 | PyObject * obj0 = 0 ; | |
13772 | char *kwnames[] = { | |
13773 | (char *) "self", NULL | |
13774 | }; | |
13775 | ||
13776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
13777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13778 | { | |
13779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13780 | result = (bool)(arg1)->EndDrawingOnTop(); | |
13781 | ||
13782 | wxPyEndAllowThreads(__tstate); | |
13783 | if (PyErr_Occurred()) SWIG_fail; | |
13784 | } | |
13785 | resultobj = PyInt_FromLong((long)result); | |
13786 | return resultobj; | |
13787 | fail: | |
13788 | return NULL; | |
13789 | } | |
13790 | ||
13791 | ||
13792 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
13793 | PyObject *obj; | |
13794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13795 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
13796 | Py_INCREF(obj); | |
13797 | return Py_BuildValue((char *)""); | |
13798 | } | |
13799 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13800 | PyObject *resultobj; | |
13801 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13802 | wxClientDC *result; | |
13803 | PyObject * obj0 = 0 ; | |
13804 | char *kwnames[] = { | |
13805 | (char *) "win", NULL | |
13806 | }; | |
13807 | ||
13808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
13809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13810 | { | |
13811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13812 | result = (wxClientDC *)new wxClientDC(arg1); | |
13813 | ||
13814 | wxPyEndAllowThreads(__tstate); | |
13815 | if (PyErr_Occurred()) SWIG_fail; | |
13816 | } | |
13817 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1); | |
13818 | return resultobj; | |
13819 | fail: | |
13820 | return NULL; | |
13821 | } | |
13822 | ||
13823 | ||
13824 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
13825 | PyObject *obj; | |
13826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13827 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
13828 | Py_INCREF(obj); | |
13829 | return Py_BuildValue((char *)""); | |
13830 | } | |
13831 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13832 | PyObject *resultobj; | |
13833 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13834 | wxPaintDC *result; | |
13835 | PyObject * obj0 = 0 ; | |
13836 | char *kwnames[] = { | |
13837 | (char *) "win", NULL | |
13838 | }; | |
13839 | ||
13840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
13841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13842 | { | |
13843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13844 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
13845 | ||
13846 | wxPyEndAllowThreads(__tstate); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
13849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1); | |
13850 | return resultobj; | |
13851 | fail: | |
13852 | return NULL; | |
13853 | } | |
13854 | ||
13855 | ||
13856 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
13857 | PyObject *obj; | |
13858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13859 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
13860 | Py_INCREF(obj); | |
13861 | return Py_BuildValue((char *)""); | |
13862 | } | |
13863 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13864 | PyObject *resultobj; | |
13865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13866 | wxWindowDC *result; | |
13867 | PyObject * obj0 = 0 ; | |
13868 | char *kwnames[] = { | |
13869 | (char *) "win", NULL | |
13870 | }; | |
13871 | ||
13872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
13873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13874 | { | |
13875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13876 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
13877 | ||
13878 | wxPyEndAllowThreads(__tstate); | |
13879 | if (PyErr_Occurred()) SWIG_fail; | |
13880 | } | |
13881 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1); | |
13882 | return resultobj; | |
13883 | fail: | |
13884 | return NULL; | |
13885 | } | |
13886 | ||
13887 | ||
13888 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
13889 | PyObject *obj; | |
13890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13891 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
13892 | Py_INCREF(obj); | |
13893 | return Py_BuildValue((char *)""); | |
13894 | } | |
13895 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13896 | PyObject *resultobj; | |
13897 | wxDC *arg1 = 0 ; | |
13898 | bool arg2 ; | |
13899 | wxMirrorDC *result; | |
13900 | PyObject * obj0 = 0 ; | |
13901 | PyObject * obj1 = 0 ; | |
13902 | char *kwnames[] = { | |
13903 | (char *) "dc",(char *) "mirror", NULL | |
13904 | }; | |
13905 | ||
13906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
13907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13908 | if (arg1 == NULL) { | |
13909 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13910 | } | |
13911 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13912 | if (PyErr_Occurred()) SWIG_fail; | |
13913 | { | |
13914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13915 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
13916 | ||
13917 | wxPyEndAllowThreads(__tstate); | |
13918 | if (PyErr_Occurred()) SWIG_fail; | |
13919 | } | |
13920 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1); | |
13921 | return resultobj; | |
13922 | fail: | |
13923 | return NULL; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
13928 | PyObject *obj; | |
13929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13930 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
13931 | Py_INCREF(obj); | |
13932 | return Py_BuildValue((char *)""); | |
13933 | } | |
13934 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13935 | PyObject *resultobj; | |
13936 | wxPrintData *arg1 = 0 ; | |
13937 | wxPostScriptDC *result; | |
13938 | PyObject * obj0 = 0 ; | |
13939 | char *kwnames[] = { | |
13940 | (char *) "printData", NULL | |
13941 | }; | |
13942 | ||
13943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
13944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13945 | if (arg1 == NULL) { | |
13946 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13947 | } | |
13948 | { | |
13949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13950 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
13951 | ||
13952 | wxPyEndAllowThreads(__tstate); | |
13953 | if (PyErr_Occurred()) SWIG_fail; | |
13954 | } | |
13955 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1); | |
13956 | return resultobj; | |
13957 | fail: | |
13958 | return NULL; | |
13959 | } | |
13960 | ||
13961 | ||
13962 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13963 | PyObject *resultobj; | |
13964 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13965 | wxPrintData *result; | |
13966 | PyObject * obj0 = 0 ; | |
13967 | char *kwnames[] = { | |
13968 | (char *) "self", NULL | |
13969 | }; | |
13970 | ||
13971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
13972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13973 | { | |
13974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13975 | { | |
13976 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
13977 | result = (wxPrintData *) &_result_ref; | |
13978 | } | |
13979 | ||
13980 | wxPyEndAllowThreads(__tstate); | |
13981 | if (PyErr_Occurred()) SWIG_fail; | |
13982 | } | |
13983 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
13984 | return resultobj; | |
13985 | fail: | |
13986 | return NULL; | |
13987 | } | |
13988 | ||
13989 | ||
13990 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13991 | PyObject *resultobj; | |
13992 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
13993 | wxPrintData *arg2 = 0 ; | |
13994 | PyObject * obj0 = 0 ; | |
13995 | PyObject * obj1 = 0 ; | |
13996 | char *kwnames[] = { | |
13997 | (char *) "self",(char *) "data", NULL | |
13998 | }; | |
13999 | ||
14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
14001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14002 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14003 | if (arg2 == NULL) { | |
14004 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14005 | } | |
14006 | { | |
14007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14008 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
14009 | ||
14010 | wxPyEndAllowThreads(__tstate); | |
14011 | if (PyErr_Occurred()) SWIG_fail; | |
14012 | } | |
14013 | Py_INCREF(Py_None); resultobj = Py_None; | |
14014 | return resultobj; | |
14015 | fail: | |
14016 | return NULL; | |
14017 | } | |
14018 | ||
14019 | ||
14020 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14021 | PyObject *resultobj; | |
14022 | int arg1 ; | |
14023 | char *kwnames[] = { | |
14024 | (char *) "ppi", NULL | |
14025 | }; | |
14026 | ||
14027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:PostScriptDC_SetResolution",kwnames,&arg1)) goto fail; | |
14028 | { | |
14029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14030 | wxPostScriptDC::SetResolution(arg1); | |
14031 | ||
14032 | wxPyEndAllowThreads(__tstate); | |
14033 | if (PyErr_Occurred()) SWIG_fail; | |
14034 | } | |
14035 | Py_INCREF(Py_None); resultobj = Py_None; | |
14036 | return resultobj; | |
14037 | fail: | |
14038 | return NULL; | |
14039 | } | |
14040 | ||
14041 | ||
14042 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14043 | PyObject *resultobj; | |
14044 | int result; | |
14045 | char *kwnames[] = { | |
14046 | NULL | |
14047 | }; | |
14048 | ||
14049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
14050 | { | |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = (int)wxPostScriptDC::GetResolution(); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
14057 | resultobj = PyInt_FromLong((long)result); | |
14058 | return resultobj; | |
14059 | fail: | |
14060 | return NULL; | |
14061 | } | |
14062 | ||
14063 | ||
14064 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
14065 | PyObject *obj; | |
14066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14067 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
14068 | Py_INCREF(obj); | |
14069 | return Py_BuildValue((char *)""); | |
14070 | } | |
14071 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14072 | PyObject *resultobj; | |
14073 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14074 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14075 | wxMetaFile *result; | |
423f194a | 14076 | bool temp1 = False ; |
d14a1e28 RD |
14077 | PyObject * obj0 = 0 ; |
14078 | char *kwnames[] = { | |
14079 | (char *) "filename", NULL | |
14080 | }; | |
14081 | ||
14082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
14083 | if (obj0) { | |
14084 | { | |
14085 | arg1 = wxString_in_helper(obj0); | |
14086 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14087 | temp1 = True; |
d14a1e28 RD |
14088 | } |
14089 | } | |
14090 | { | |
14091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14092 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
14093 | ||
14094 | wxPyEndAllowThreads(__tstate); | |
14095 | if (PyErr_Occurred()) SWIG_fail; | |
14096 | } | |
14097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1); | |
14098 | { | |
14099 | if (temp1) | |
14100 | delete arg1; | |
14101 | } | |
14102 | return resultobj; | |
14103 | fail: | |
14104 | { | |
14105 | if (temp1) | |
14106 | delete arg1; | |
14107 | } | |
14108 | return NULL; | |
14109 | } | |
14110 | ||
14111 | ||
14112 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14113 | PyObject *resultobj; | |
14114 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14115 | PyObject * obj0 = 0 ; | |
14116 | char *kwnames[] = { | |
14117 | (char *) "self", NULL | |
14118 | }; | |
14119 | ||
14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
14121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14122 | { | |
14123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14124 | delete arg1; | |
14125 | ||
14126 | wxPyEndAllowThreads(__tstate); | |
14127 | if (PyErr_Occurred()) SWIG_fail; | |
14128 | } | |
14129 | Py_INCREF(Py_None); resultobj = Py_None; | |
14130 | return resultobj; | |
14131 | fail: | |
14132 | return NULL; | |
14133 | } | |
14134 | ||
14135 | ||
14136 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14137 | PyObject *resultobj; | |
14138 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14139 | bool result; | |
14140 | PyObject * obj0 = 0 ; | |
14141 | char *kwnames[] = { | |
14142 | (char *) "self", NULL | |
14143 | }; | |
14144 | ||
14145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
14146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14147 | { | |
14148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14149 | result = (bool)(arg1)->Ok(); | |
14150 | ||
14151 | wxPyEndAllowThreads(__tstate); | |
14152 | if (PyErr_Occurred()) SWIG_fail; | |
14153 | } | |
14154 | resultobj = PyInt_FromLong((long)result); | |
14155 | return resultobj; | |
14156 | fail: | |
14157 | return NULL; | |
14158 | } | |
14159 | ||
14160 | ||
14161 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14162 | PyObject *resultobj; | |
14163 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14164 | int arg2 = (int) 0 ; | |
14165 | int arg3 = (int) 0 ; | |
14166 | bool result; | |
14167 | PyObject * obj0 = 0 ; | |
14168 | char *kwnames[] = { | |
14169 | (char *) "self",(char *) "width",(char *) "height", NULL | |
14170 | }; | |
14171 | ||
14172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:MetaFile_SetClipboard",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14174 | { | |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | resultobj = PyInt_FromLong((long)result); | |
14182 | return resultobj; | |
14183 | fail: | |
14184 | return NULL; | |
14185 | } | |
14186 | ||
14187 | ||
14188 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14189 | PyObject *resultobj; | |
14190 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14191 | wxSize result; | |
14192 | PyObject * obj0 = 0 ; | |
14193 | char *kwnames[] = { | |
14194 | (char *) "self", NULL | |
14195 | }; | |
14196 | ||
14197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
14198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14199 | { | |
14200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14201 | result = (arg1)->GetSize(); | |
14202 | ||
14203 | wxPyEndAllowThreads(__tstate); | |
14204 | if (PyErr_Occurred()) SWIG_fail; | |
14205 | } | |
14206 | { | |
14207 | wxSize * resultptr; | |
14208 | resultptr = new wxSize((wxSize &) result); | |
14209 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14210 | } | |
14211 | return resultobj; | |
14212 | fail: | |
14213 | return NULL; | |
14214 | } | |
14215 | ||
14216 | ||
14217 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14218 | PyObject *resultobj; | |
14219 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14220 | int result; | |
14221 | PyObject * obj0 = 0 ; | |
14222 | char *kwnames[] = { | |
14223 | (char *) "self", NULL | |
14224 | }; | |
14225 | ||
14226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
14227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14228 | { | |
14229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14230 | result = (int)(arg1)->GetWidth(); | |
14231 | ||
14232 | wxPyEndAllowThreads(__tstate); | |
14233 | if (PyErr_Occurred()) SWIG_fail; | |
14234 | } | |
14235 | resultobj = PyInt_FromLong((long)result); | |
14236 | return resultobj; | |
14237 | fail: | |
14238 | return NULL; | |
14239 | } | |
14240 | ||
14241 | ||
14242 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14243 | PyObject *resultobj; | |
14244 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14245 | int result; | |
14246 | PyObject * obj0 = 0 ; | |
14247 | char *kwnames[] = { | |
14248 | (char *) "self", NULL | |
14249 | }; | |
14250 | ||
14251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
14252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14253 | { | |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | result = (int)(arg1)->GetHeight(); | |
14256 | ||
14257 | wxPyEndAllowThreads(__tstate); | |
14258 | if (PyErr_Occurred()) SWIG_fail; | |
14259 | } | |
14260 | resultobj = PyInt_FromLong((long)result); | |
14261 | return resultobj; | |
14262 | fail: | |
14263 | return NULL; | |
14264 | } | |
14265 | ||
14266 | ||
14267 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14268 | PyObject *resultobj; | |
14269 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
14270 | wxString *result; | |
14271 | PyObject * obj0 = 0 ; | |
14272 | char *kwnames[] = { | |
14273 | (char *) "self", NULL | |
14274 | }; | |
14275 | ||
14276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
14277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14278 | { | |
14279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14280 | { | |
14281 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
14282 | result = (wxString *) &_result_ref; | |
14283 | } | |
14284 | ||
14285 | wxPyEndAllowThreads(__tstate); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
f0983263 RD |
14288 | { |
14289 | #if wxUSE_UNICODE | |
14290 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14291 | #else | |
14292 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14293 | #endif | |
14294 | } | |
d14a1e28 RD |
14295 | return resultobj; |
14296 | fail: | |
14297 | return NULL; | |
14298 | } | |
14299 | ||
14300 | ||
14301 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
14302 | PyObject *obj; | |
14303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14304 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
14305 | Py_INCREF(obj); | |
14306 | return Py_BuildValue((char *)""); | |
14307 | } | |
14308 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14309 | PyObject *resultobj; | |
14310 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14311 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14312 | int arg2 = (int) 0 ; | |
14313 | int arg3 = (int) 0 ; | |
14314 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14315 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14316 | wxMetaFileDC *result; | |
423f194a RD |
14317 | bool temp1 = False ; |
14318 | bool temp4 = False ; | |
d14a1e28 RD |
14319 | PyObject * obj0 = 0 ; |
14320 | PyObject * obj3 = 0 ; | |
14321 | char *kwnames[] = { | |
14322 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
14323 | }; | |
14324 | ||
14325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OiiO:new_MetaFileDC",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
14326 | if (obj0) { | |
14327 | { | |
14328 | arg1 = wxString_in_helper(obj0); | |
14329 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14330 | temp1 = True; |
d14a1e28 RD |
14331 | } |
14332 | } | |
14333 | if (obj3) { | |
14334 | { | |
14335 | arg4 = wxString_in_helper(obj3); | |
14336 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14337 | temp4 = True; |
d14a1e28 RD |
14338 | } |
14339 | } | |
14340 | { | |
14341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14342 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
14343 | ||
14344 | wxPyEndAllowThreads(__tstate); | |
14345 | if (PyErr_Occurred()) SWIG_fail; | |
14346 | } | |
14347 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1); | |
14348 | { | |
14349 | if (temp1) | |
14350 | delete arg1; | |
14351 | } | |
14352 | { | |
14353 | if (temp4) | |
14354 | delete arg4; | |
14355 | } | |
14356 | return resultobj; | |
14357 | fail: | |
14358 | { | |
14359 | if (temp1) | |
14360 | delete arg1; | |
14361 | } | |
14362 | { | |
14363 | if (temp4) | |
14364 | delete arg4; | |
14365 | } | |
14366 | return NULL; | |
14367 | } | |
14368 | ||
14369 | ||
14370 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14371 | PyObject *resultobj; | |
14372 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
14373 | wxMetaFile *result; | |
14374 | PyObject * obj0 = 0 ; | |
14375 | char *kwnames[] = { | |
14376 | (char *) "self", NULL | |
14377 | }; | |
14378 | ||
14379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
14380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14381 | { | |
14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14383 | result = (wxMetaFile *)(arg1)->Close(); | |
14384 | ||
14385 | wxPyEndAllowThreads(__tstate); | |
14386 | if (PyErr_Occurred()) SWIG_fail; | |
14387 | } | |
14388 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0); | |
14389 | return resultobj; | |
14390 | fail: | |
14391 | return NULL; | |
14392 | } | |
14393 | ||
14394 | ||
14395 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
14396 | PyObject *obj; | |
14397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14398 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
14399 | Py_INCREF(obj); | |
14400 | return Py_BuildValue((char *)""); | |
14401 | } | |
14402 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14403 | PyObject *resultobj; | |
14404 | wxPrintData *arg1 = 0 ; | |
14405 | wxPrinterDC *result; | |
14406 | PyObject * obj0 = 0 ; | |
14407 | char *kwnames[] = { | |
14408 | (char *) "printData", NULL | |
14409 | }; | |
14410 | ||
14411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
14412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14413 | if (arg1 == NULL) { | |
14414 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14415 | } | |
14416 | { | |
14417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14418 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
14419 | ||
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1); | |
14424 | return resultobj; | |
14425 | fail: | |
14426 | return NULL; | |
14427 | } | |
14428 | ||
14429 | ||
14430 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
14431 | PyObject *obj; | |
14432 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14433 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
14434 | Py_INCREF(obj); | |
14435 | return Py_BuildValue((char *)""); | |
14436 | } | |
14437 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14438 | PyObject *resultobj; | |
14439 | int arg1 ; | |
14440 | int arg2 ; | |
423f194a | 14441 | int arg3 = (int) True ; |
d14a1e28 RD |
14442 | int arg4 = (int) 1 ; |
14443 | wxImageList *result; | |
14444 | char *kwnames[] = { | |
14445 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
14446 | }; | |
14447 | ||
14448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"ii|ii:new_ImageList",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
14449 | { | |
14450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14451 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
14452 | ||
14453 | wxPyEndAllowThreads(__tstate); | |
14454 | if (PyErr_Occurred()) SWIG_fail; | |
14455 | } | |
14456 | { | |
14457 | resultobj = wxPyMake_wxObject(result); | |
14458 | } | |
14459 | return resultobj; | |
14460 | fail: | |
14461 | return NULL; | |
14462 | } | |
14463 | ||
14464 | ||
14465 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14466 | PyObject *resultobj; | |
14467 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14468 | PyObject * obj0 = 0 ; | |
14469 | char *kwnames[] = { | |
14470 | (char *) "self", NULL | |
14471 | }; | |
14472 | ||
14473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
14474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14475 | { | |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14477 | delete arg1; | |
14478 | ||
14479 | wxPyEndAllowThreads(__tstate); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | Py_INCREF(Py_None); resultobj = Py_None; | |
14483 | return resultobj; | |
14484 | fail: | |
14485 | return NULL; | |
14486 | } | |
14487 | ||
14488 | ||
14489 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14490 | PyObject *resultobj; | |
14491 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14492 | wxBitmap *arg2 = 0 ; | |
14493 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
14494 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
14495 | int result; | |
14496 | PyObject * obj0 = 0 ; | |
14497 | PyObject * obj1 = 0 ; | |
14498 | PyObject * obj2 = 0 ; | |
14499 | char *kwnames[] = { | |
14500 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
14501 | }; | |
14502 | ||
14503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14505 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14506 | if (arg2 == NULL) { | |
14507 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14508 | } | |
14509 | if (obj2) { | |
14510 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14511 | if (arg3 == NULL) { | |
14512 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14513 | } | |
14514 | } | |
14515 | { | |
14516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14517 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
14518 | ||
14519 | wxPyEndAllowThreads(__tstate); | |
14520 | if (PyErr_Occurred()) SWIG_fail; | |
14521 | } | |
14522 | resultobj = PyInt_FromLong((long)result); | |
14523 | return resultobj; | |
14524 | fail: | |
14525 | return NULL; | |
14526 | } | |
14527 | ||
14528 | ||
14529 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14530 | PyObject *resultobj; | |
14531 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14532 | wxBitmap *arg2 = 0 ; | |
14533 | wxColour *arg3 = 0 ; | |
14534 | int result; | |
14535 | wxColour temp3 ; | |
14536 | PyObject * obj0 = 0 ; | |
14537 | PyObject * obj1 = 0 ; | |
14538 | PyObject * obj2 = 0 ; | |
14539 | char *kwnames[] = { | |
14540 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
14541 | }; | |
14542 | ||
14543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14545 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14546 | if (arg2 == NULL) { | |
14547 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14548 | } | |
14549 | { | |
14550 | arg3 = &temp3; | |
14551 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14552 | } | |
14553 | { | |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14555 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
14556 | ||
14557 | wxPyEndAllowThreads(__tstate); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | resultobj = PyInt_FromLong((long)result); | |
14561 | return resultobj; | |
14562 | fail: | |
14563 | return NULL; | |
14564 | } | |
14565 | ||
14566 | ||
14567 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14568 | PyObject *resultobj; | |
14569 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14570 | wxIcon *arg2 = 0 ; | |
14571 | int result; | |
14572 | PyObject * obj0 = 0 ; | |
14573 | PyObject * obj1 = 0 ; | |
14574 | char *kwnames[] = { | |
14575 | (char *) "self",(char *) "icon", NULL | |
14576 | }; | |
14577 | ||
14578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
14579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14580 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14581 | if (arg2 == NULL) { | |
14582 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14583 | } | |
14584 | { | |
14585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14586 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
14587 | ||
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
14591 | resultobj = PyInt_FromLong((long)result); | |
14592 | return resultobj; | |
14593 | fail: | |
14594 | return NULL; | |
14595 | } | |
14596 | ||
14597 | ||
14598 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14599 | PyObject *resultobj; | |
14600 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14601 | int arg2 ; | |
14602 | wxBitmap *arg3 = 0 ; | |
14603 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
14604 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
14605 | bool result; | |
14606 | PyObject * obj0 = 0 ; | |
14607 | PyObject * obj2 = 0 ; | |
14608 | PyObject * obj3 = 0 ; | |
14609 | char *kwnames[] = { | |
14610 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
14611 | }; | |
14612 | ||
14613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|O:ImageList_Replace",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
14614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14615 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14616 | if (arg3 == NULL) { | |
14617 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14618 | } | |
14619 | if (obj3) { | |
14620 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14621 | if (arg4 == NULL) { | |
14622 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14623 | } | |
14624 | } | |
14625 | { | |
14626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14627 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
14628 | ||
14629 | wxPyEndAllowThreads(__tstate); | |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
14631 | } | |
14632 | resultobj = PyInt_FromLong((long)result); | |
14633 | return resultobj; | |
14634 | fail: | |
14635 | return NULL; | |
14636 | } | |
14637 | ||
14638 | ||
14639 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14640 | PyObject *resultobj; | |
14641 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14642 | int arg2 ; | |
14643 | wxDC *arg3 = 0 ; | |
14644 | int arg4 ; | |
14645 | int arg5 ; | |
14646 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 14647 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
14648 | bool result; |
14649 | PyObject * obj0 = 0 ; | |
14650 | PyObject * obj2 = 0 ; | |
14651 | PyObject * obj6 = 0 ; | |
14652 | char *kwnames[] = { | |
14653 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
14654 | }; | |
14655 | ||
14656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOii|iO:ImageList_Draw",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6)) goto fail; | |
14657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14658 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14659 | if (arg3 == NULL) { | |
14660 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14661 | } | |
14662 | if (obj6) { | |
14663 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
14665 | } | |
14666 | { | |
14667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14668 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
14669 | ||
14670 | wxPyEndAllowThreads(__tstate); | |
14671 | if (PyErr_Occurred()) SWIG_fail; | |
14672 | } | |
14673 | resultobj = PyInt_FromLong((long)result); | |
14674 | return resultobj; | |
14675 | fail: | |
14676 | return NULL; | |
14677 | } | |
14678 | ||
14679 | ||
14680 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14681 | PyObject *resultobj; | |
14682 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14683 | int result; | |
14684 | PyObject * obj0 = 0 ; | |
14685 | char *kwnames[] = { | |
14686 | (char *) "self", NULL | |
14687 | }; | |
14688 | ||
14689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
14690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14691 | { | |
14692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14693 | result = (int)(arg1)->GetImageCount(); | |
14694 | ||
14695 | wxPyEndAllowThreads(__tstate); | |
14696 | if (PyErr_Occurred()) SWIG_fail; | |
14697 | } | |
14698 | resultobj = PyInt_FromLong((long)result); | |
14699 | return resultobj; | |
14700 | fail: | |
14701 | return NULL; | |
14702 | } | |
14703 | ||
14704 | ||
14705 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14706 | PyObject *resultobj; | |
14707 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14708 | int arg2 ; | |
14709 | bool result; | |
14710 | PyObject * obj0 = 0 ; | |
14711 | char *kwnames[] = { | |
14712 | (char *) "self",(char *) "index", NULL | |
14713 | }; | |
14714 | ||
14715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_Remove",kwnames,&obj0,&arg2)) goto fail; | |
14716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14717 | { | |
14718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14719 | result = (bool)(arg1)->Remove(arg2); | |
14720 | ||
14721 | wxPyEndAllowThreads(__tstate); | |
14722 | if (PyErr_Occurred()) SWIG_fail; | |
14723 | } | |
14724 | resultobj = PyInt_FromLong((long)result); | |
14725 | return resultobj; | |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14732 | PyObject *resultobj; | |
14733 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14734 | bool result; | |
14735 | PyObject * obj0 = 0 ; | |
14736 | char *kwnames[] = { | |
14737 | (char *) "self", NULL | |
14738 | }; | |
14739 | ||
14740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
14741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14742 | { | |
14743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14744 | result = (bool)(arg1)->RemoveAll(); | |
14745 | ||
14746 | wxPyEndAllowThreads(__tstate); | |
14747 | if (PyErr_Occurred()) SWIG_fail; | |
14748 | } | |
14749 | resultobj = PyInt_FromLong((long)result); | |
14750 | return resultobj; | |
14751 | fail: | |
14752 | return NULL; | |
14753 | } | |
14754 | ||
14755 | ||
14756 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14757 | PyObject *resultobj; | |
14758 | wxImageList *arg1 = (wxImageList *) 0 ; | |
14759 | int arg2 ; | |
14760 | int *arg3 = 0 ; | |
14761 | int *arg4 = 0 ; | |
14762 | int temp3 ; | |
14763 | int temp4 ; | |
14764 | PyObject * obj0 = 0 ; | |
14765 | char *kwnames[] = { | |
14766 | (char *) "self",(char *) "index", NULL | |
14767 | }; | |
14768 | ||
14769 | arg3 = &temp3; | |
14770 | arg4 = &temp4; | |
14771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ImageList_GetSize",kwnames,&obj0,&arg2)) goto fail; | |
14772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14773 | { | |
14774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14775 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
14776 | ||
14777 | wxPyEndAllowThreads(__tstate); | |
14778 | if (PyErr_Occurred()) SWIG_fail; | |
14779 | } | |
14780 | Py_INCREF(Py_None); resultobj = Py_None; | |
14781 | { | |
14782 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14783 | resultobj = t_output_helper(resultobj,o); | |
14784 | } | |
14785 | { | |
14786 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14787 | resultobj = t_output_helper(resultobj,o); | |
14788 | } | |
14789 | return resultobj; | |
14790 | fail: | |
14791 | return NULL; | |
14792 | } | |
14793 | ||
14794 | ||
14795 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
14796 | PyObject *obj; | |
14797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14798 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
14799 | Py_INCREF(obj); | |
14800 | return Py_BuildValue((char *)""); | |
14801 | } | |
14802 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14803 | PyObject *resultobj; | |
14804 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14805 | wxPen *arg2 = (wxPen *) 0 ; | |
14806 | PyObject * obj0 = 0 ; | |
14807 | PyObject * obj1 = 0 ; | |
14808 | char *kwnames[] = { | |
14809 | (char *) "self",(char *) "pen", NULL | |
14810 | }; | |
14811 | ||
14812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
14813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14814 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14815 | { | |
14816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14817 | (arg1)->AddPen(arg2); | |
14818 | ||
14819 | wxPyEndAllowThreads(__tstate); | |
14820 | if (PyErr_Occurred()) SWIG_fail; | |
14821 | } | |
14822 | Py_INCREF(Py_None); resultobj = Py_None; | |
14823 | return resultobj; | |
14824 | fail: | |
14825 | return NULL; | |
14826 | } | |
14827 | ||
14828 | ||
14829 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14830 | PyObject *resultobj; | |
14831 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14832 | wxColour *arg2 = 0 ; | |
14833 | int arg3 ; | |
14834 | int arg4 ; | |
14835 | wxPen *result; | |
14836 | wxColour temp2 ; | |
14837 | PyObject * obj0 = 0 ; | |
14838 | PyObject * obj1 = 0 ; | |
14839 | char *kwnames[] = { | |
14840 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
14841 | }; | |
14842 | ||
14843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
14844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14845 | { | |
14846 | arg2 = &temp2; | |
14847 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14848 | } | |
14849 | { | |
14850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14851 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
14852 | ||
14853 | wxPyEndAllowThreads(__tstate); | |
14854 | if (PyErr_Occurred()) SWIG_fail; | |
14855 | } | |
14856 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0); | |
14857 | return resultobj; | |
14858 | fail: | |
14859 | return NULL; | |
14860 | } | |
14861 | ||
14862 | ||
14863 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14864 | PyObject *resultobj; | |
14865 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14866 | wxPen *arg2 = (wxPen *) 0 ; | |
14867 | PyObject * obj0 = 0 ; | |
14868 | PyObject * obj1 = 0 ; | |
14869 | char *kwnames[] = { | |
14870 | (char *) "self",(char *) "pen", NULL | |
14871 | }; | |
14872 | ||
14873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
14874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14875 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14876 | { | |
14877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14878 | (arg1)->RemovePen(arg2); | |
14879 | ||
14880 | wxPyEndAllowThreads(__tstate); | |
14881 | if (PyErr_Occurred()) SWIG_fail; | |
14882 | } | |
14883 | Py_INCREF(Py_None); resultobj = Py_None; | |
14884 | return resultobj; | |
14885 | fail: | |
14886 | return NULL; | |
14887 | } | |
14888 | ||
14889 | ||
14890 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14891 | PyObject *resultobj; | |
14892 | wxPenList *arg1 = (wxPenList *) 0 ; | |
14893 | int result; | |
14894 | PyObject * obj0 = 0 ; | |
14895 | char *kwnames[] = { | |
14896 | (char *) "self", NULL | |
14897 | }; | |
14898 | ||
14899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
14900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14901 | { | |
14902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14903 | result = (int)(arg1)->GetCount(); | |
14904 | ||
14905 | wxPyEndAllowThreads(__tstate); | |
14906 | if (PyErr_Occurred()) SWIG_fail; | |
14907 | } | |
14908 | resultobj = PyInt_FromLong((long)result); | |
14909 | return resultobj; | |
14910 | fail: | |
14911 | return NULL; | |
14912 | } | |
14913 | ||
14914 | ||
14915 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
14916 | PyObject *obj; | |
14917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14918 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
14919 | Py_INCREF(obj); | |
14920 | return Py_BuildValue((char *)""); | |
14921 | } | |
14922 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14923 | PyObject *resultobj; | |
14924 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14925 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14926 | PyObject * obj0 = 0 ; | |
14927 | PyObject * obj1 = 0 ; | |
14928 | char *kwnames[] = { | |
14929 | (char *) "self",(char *) "brush", NULL | |
14930 | }; | |
14931 | ||
14932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
14933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14934 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14935 | { | |
14936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14937 | (arg1)->AddBrush(arg2); | |
14938 | ||
14939 | wxPyEndAllowThreads(__tstate); | |
14940 | if (PyErr_Occurred()) SWIG_fail; | |
14941 | } | |
14942 | Py_INCREF(Py_None); resultobj = Py_None; | |
14943 | return resultobj; | |
14944 | fail: | |
14945 | return NULL; | |
14946 | } | |
14947 | ||
14948 | ||
14949 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14950 | PyObject *resultobj; | |
14951 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14952 | wxColour *arg2 = 0 ; | |
14953 | int arg3 ; | |
14954 | wxBrush *result; | |
14955 | wxColour temp2 ; | |
14956 | PyObject * obj0 = 0 ; | |
14957 | PyObject * obj1 = 0 ; | |
14958 | char *kwnames[] = { | |
14959 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
14960 | }; | |
14961 | ||
14962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14964 | { | |
14965 | arg2 = &temp2; | |
14966 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14967 | } | |
14968 | { | |
14969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14970 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
14971 | ||
14972 | wxPyEndAllowThreads(__tstate); | |
14973 | if (PyErr_Occurred()) SWIG_fail; | |
14974 | } | |
14975 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0); | |
14976 | return resultobj; | |
14977 | fail: | |
14978 | return NULL; | |
14979 | } | |
14980 | ||
14981 | ||
14982 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14983 | PyObject *resultobj; | |
14984 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
14985 | wxBrush *arg2 = (wxBrush *) 0 ; | |
14986 | PyObject * obj0 = 0 ; | |
14987 | PyObject * obj1 = 0 ; | |
14988 | char *kwnames[] = { | |
14989 | (char *) "self",(char *) "brush", NULL | |
14990 | }; | |
14991 | ||
14992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
14993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14994 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14995 | { | |
14996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14997 | (arg1)->RemoveBrush(arg2); | |
14998 | ||
14999 | wxPyEndAllowThreads(__tstate); | |
15000 | if (PyErr_Occurred()) SWIG_fail; | |
15001 | } | |
15002 | Py_INCREF(Py_None); resultobj = Py_None; | |
15003 | return resultobj; | |
15004 | fail: | |
15005 | return NULL; | |
15006 | } | |
15007 | ||
15008 | ||
15009 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15010 | PyObject *resultobj; | |
15011 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
15012 | int result; | |
15013 | PyObject * obj0 = 0 ; | |
15014 | char *kwnames[] = { | |
15015 | (char *) "self", NULL | |
15016 | }; | |
15017 | ||
15018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
15019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15020 | { | |
15021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15022 | result = (int)(arg1)->GetCount(); | |
15023 | ||
15024 | wxPyEndAllowThreads(__tstate); | |
15025 | if (PyErr_Occurred()) SWIG_fail; | |
15026 | } | |
15027 | resultobj = PyInt_FromLong((long)result); | |
15028 | return resultobj; | |
15029 | fail: | |
15030 | return NULL; | |
15031 | } | |
15032 | ||
15033 | ||
15034 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
15035 | PyObject *obj; | |
15036 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15037 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
15038 | Py_INCREF(obj); | |
15039 | return Py_BuildValue((char *)""); | |
15040 | } | |
15041 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15042 | PyObject *resultobj; | |
15043 | wxColourDatabase *result; | |
15044 | char *kwnames[] = { | |
15045 | NULL | |
15046 | }; | |
15047 | ||
15048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
15049 | { | |
15050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15051 | result = (wxColourDatabase *)new wxColourDatabase(); | |
15052 | ||
15053 | wxPyEndAllowThreads(__tstate); | |
15054 | if (PyErr_Occurred()) SWIG_fail; | |
15055 | } | |
15056 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1); | |
15057 | return resultobj; | |
15058 | fail: | |
15059 | return NULL; | |
15060 | } | |
15061 | ||
15062 | ||
15063 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15064 | PyObject *resultobj; | |
15065 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | char *kwnames[] = { | |
15068 | (char *) "self", NULL | |
15069 | }; | |
15070 | ||
15071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
15072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15073 | { | |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15075 | delete arg1; | |
15076 | ||
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
15080 | Py_INCREF(Py_None); resultobj = Py_None; | |
15081 | return resultobj; | |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
15087 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15088 | PyObject *resultobj; | |
15089 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15090 | wxString *arg2 = 0 ; | |
15091 | wxColour result; | |
423f194a | 15092 | bool temp2 = False ; |
d14a1e28 RD |
15093 | PyObject * obj0 = 0 ; |
15094 | PyObject * obj1 = 0 ; | |
15095 | char *kwnames[] = { | |
15096 | (char *) "self",(char *) "name", NULL | |
15097 | }; | |
15098 | ||
15099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15101 | { | |
15102 | arg2 = wxString_in_helper(obj1); | |
15103 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15104 | temp2 = True; |
d14a1e28 RD |
15105 | } |
15106 | { | |
15107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15108 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
15109 | ||
15110 | wxPyEndAllowThreads(__tstate); | |
15111 | if (PyErr_Occurred()) SWIG_fail; | |
15112 | } | |
15113 | { | |
15114 | wxColour * resultptr; | |
15115 | resultptr = new wxColour((wxColour &) result); | |
15116 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15117 | } | |
15118 | { | |
15119 | if (temp2) | |
15120 | delete arg2; | |
15121 | } | |
15122 | return resultobj; | |
15123 | fail: | |
15124 | { | |
15125 | if (temp2) | |
15126 | delete arg2; | |
15127 | } | |
15128 | return NULL; | |
15129 | } | |
15130 | ||
15131 | ||
15132 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15133 | PyObject *resultobj; | |
15134 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15135 | wxColour *arg2 = 0 ; | |
15136 | wxString result; | |
15137 | wxColour temp2 ; | |
15138 | PyObject * obj0 = 0 ; | |
15139 | PyObject * obj1 = 0 ; | |
15140 | char *kwnames[] = { | |
15141 | (char *) "self",(char *) "colour", NULL | |
15142 | }; | |
15143 | ||
15144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
15145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15146 | { | |
15147 | arg2 = &temp2; | |
15148 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15149 | } | |
15150 | { | |
15151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15152 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
15153 | ||
15154 | wxPyEndAllowThreads(__tstate); | |
15155 | if (PyErr_Occurred()) SWIG_fail; | |
15156 | } | |
15157 | { | |
15158 | #if wxUSE_UNICODE | |
15159 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15160 | #else | |
15161 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15162 | #endif | |
15163 | } | |
15164 | return resultobj; | |
15165 | fail: | |
15166 | return NULL; | |
15167 | } | |
15168 | ||
15169 | ||
15170 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15171 | PyObject *resultobj; | |
15172 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15173 | wxString *arg2 = 0 ; | |
15174 | wxColour *arg3 = 0 ; | |
423f194a | 15175 | bool temp2 = False ; |
d14a1e28 RD |
15176 | wxColour temp3 ; |
15177 | PyObject * obj0 = 0 ; | |
15178 | PyObject * obj1 = 0 ; | |
15179 | PyObject * obj2 = 0 ; | |
15180 | char *kwnames[] = { | |
15181 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
15182 | }; | |
15183 | ||
15184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15186 | { | |
15187 | arg2 = wxString_in_helper(obj1); | |
15188 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15189 | temp2 = True; |
d14a1e28 RD |
15190 | } |
15191 | { | |
15192 | arg3 = &temp3; | |
15193 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15194 | } | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | Py_INCREF(Py_None); resultobj = Py_None; | |
15203 | { | |
15204 | if (temp2) | |
15205 | delete arg2; | |
15206 | } | |
15207 | return resultobj; | |
15208 | fail: | |
15209 | { | |
15210 | if (temp2) | |
15211 | delete arg2; | |
15212 | } | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
15217 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15218 | PyObject *resultobj; | |
15219 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
15220 | wxString *arg2 = 0 ; | |
15221 | int arg3 ; | |
15222 | int arg4 ; | |
15223 | int arg5 ; | |
423f194a | 15224 | bool temp2 = False ; |
d14a1e28 RD |
15225 | PyObject * obj0 = 0 ; |
15226 | PyObject * obj1 = 0 ; | |
15227 | char *kwnames[] = { | |
15228 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
15229 | }; | |
15230 | ||
15231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiii:ColourDatabase_Append",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5)) goto fail; | |
15232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15233 | { | |
15234 | arg2 = wxString_in_helper(obj1); | |
15235 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15236 | temp2 = True; |
d14a1e28 RD |
15237 | } |
15238 | { | |
15239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15240 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
15241 | ||
15242 | wxPyEndAllowThreads(__tstate); | |
15243 | if (PyErr_Occurred()) SWIG_fail; | |
15244 | } | |
15245 | Py_INCREF(Py_None); resultobj = Py_None; | |
15246 | { | |
15247 | if (temp2) | |
15248 | delete arg2; | |
15249 | } | |
15250 | return resultobj; | |
15251 | fail: | |
15252 | { | |
15253 | if (temp2) | |
15254 | delete arg2; | |
15255 | } | |
15256 | return NULL; | |
15257 | } | |
15258 | ||
15259 | ||
15260 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
15261 | PyObject *obj; | |
15262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15263 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
15264 | Py_INCREF(obj); | |
15265 | return Py_BuildValue((char *)""); | |
15266 | } | |
15267 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15268 | PyObject *resultobj; | |
15269 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15270 | wxFont *arg2 = (wxFont *) 0 ; | |
15271 | PyObject * obj0 = 0 ; | |
15272 | PyObject * obj1 = 0 ; | |
15273 | char *kwnames[] = { | |
15274 | (char *) "self",(char *) "font", NULL | |
15275 | }; | |
15276 | ||
15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
15278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15279 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15280 | { | |
15281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15282 | (arg1)->AddFont(arg2); | |
15283 | ||
15284 | wxPyEndAllowThreads(__tstate); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | Py_INCREF(Py_None); resultobj = Py_None; | |
15288 | return resultobj; | |
15289 | fail: | |
15290 | return NULL; | |
15291 | } | |
15292 | ||
15293 | ||
15294 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15295 | PyObject *resultobj; | |
15296 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15297 | int arg2 ; | |
15298 | int arg3 ; | |
15299 | int arg4 ; | |
15300 | int arg5 ; | |
423f194a | 15301 | bool arg6 = (bool) False ; |
d14a1e28 RD |
15302 | wxString const &arg7_defvalue = wxPyEmptyString ; |
15303 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15304 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
15305 | wxFont *result; | |
423f194a | 15306 | bool temp7 = False ; |
d14a1e28 RD |
15307 | PyObject * obj0 = 0 ; |
15308 | PyObject * obj5 = 0 ; | |
15309 | PyObject * obj6 = 0 ; | |
15310 | char *kwnames[] = { | |
15311 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
15312 | }; | |
15313 | ||
15314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOi:FontList_FindOrCreateFont",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8)) goto fail; | |
15315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15316 | if (obj5) { | |
15317 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
15318 | if (PyErr_Occurred()) SWIG_fail; | |
15319 | } | |
15320 | if (obj6) { | |
15321 | { | |
15322 | arg7 = wxString_in_helper(obj6); | |
15323 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15324 | temp7 = True; |
d14a1e28 RD |
15325 | } |
15326 | } | |
15327 | { | |
15328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15329 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
15330 | ||
15331 | wxPyEndAllowThreads(__tstate); | |
15332 | if (PyErr_Occurred()) SWIG_fail; | |
15333 | } | |
15334 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
15335 | { | |
15336 | if (temp7) | |
15337 | delete arg7; | |
15338 | } | |
15339 | return resultobj; | |
15340 | fail: | |
15341 | { | |
15342 | if (temp7) | |
15343 | delete arg7; | |
15344 | } | |
15345 | return NULL; | |
15346 | } | |
15347 | ||
15348 | ||
15349 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15350 | PyObject *resultobj; | |
15351 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15352 | wxFont *arg2 = (wxFont *) 0 ; | |
15353 | PyObject * obj0 = 0 ; | |
15354 | PyObject * obj1 = 0 ; | |
15355 | char *kwnames[] = { | |
15356 | (char *) "self",(char *) "font", NULL | |
15357 | }; | |
15358 | ||
15359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
15360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15361 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15362 | { | |
15363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15364 | (arg1)->RemoveFont(arg2); | |
15365 | ||
15366 | wxPyEndAllowThreads(__tstate); | |
15367 | if (PyErr_Occurred()) SWIG_fail; | |
15368 | } | |
15369 | Py_INCREF(Py_None); resultobj = Py_None; | |
15370 | return resultobj; | |
15371 | fail: | |
15372 | return NULL; | |
15373 | } | |
15374 | ||
15375 | ||
15376 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15377 | PyObject *resultobj; | |
15378 | wxFontList *arg1 = (wxFontList *) 0 ; | |
15379 | int result; | |
15380 | PyObject * obj0 = 0 ; | |
15381 | char *kwnames[] = { | |
15382 | (char *) "self", NULL | |
15383 | }; | |
15384 | ||
15385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
15386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15387 | { | |
15388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15389 | result = (int)(arg1)->GetCount(); | |
15390 | ||
15391 | wxPyEndAllowThreads(__tstate); | |
15392 | if (PyErr_Occurred()) SWIG_fail; | |
15393 | } | |
15394 | resultobj = PyInt_FromLong((long)result); | |
15395 | return resultobj; | |
15396 | fail: | |
15397 | return NULL; | |
15398 | } | |
15399 | ||
15400 | ||
15401 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
15402 | PyObject *obj; | |
15403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15404 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
15405 | Py_INCREF(obj); | |
15406 | return Py_BuildValue((char *)""); | |
15407 | } | |
15408 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
15409 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15410 | return 1; | |
15411 | } | |
15412 | ||
15413 | ||
15414 | static PyObject *_wrap_NORMAL_FONT_get() { | |
15415 | PyObject *pyobj; | |
15416 | ||
15417 | pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0); | |
15418 | return pyobj; | |
15419 | } | |
15420 | ||
15421 | ||
15422 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
15423 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
15424 | return 1; | |
15425 | } | |
15426 | ||
15427 | ||
15428 | static PyObject *_wrap_SMALL_FONT_get() { | |
15429 | PyObject *pyobj; | |
15430 | ||
15431 | pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0); | |
15432 | return pyobj; | |
15433 | } | |
15434 | ||
15435 | ||
15436 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
15437 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
15438 | return 1; | |
15439 | } | |
15440 | ||
15441 | ||
15442 | static PyObject *_wrap_ITALIC_FONT_get() { | |
15443 | PyObject *pyobj; | |
15444 | ||
15445 | pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0); | |
15446 | return pyobj; | |
15447 | } | |
15448 | ||
15449 | ||
15450 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
15451 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
15452 | return 1; | |
15453 | } | |
15454 | ||
15455 | ||
15456 | static PyObject *_wrap_SWISS_FONT_get() { | |
15457 | PyObject *pyobj; | |
15458 | ||
15459 | pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0); | |
15460 | return pyobj; | |
15461 | } | |
15462 | ||
15463 | ||
15464 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
15465 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
15466 | return 1; | |
15467 | } | |
15468 | ||
15469 | ||
15470 | static PyObject *_wrap_RED_PEN_get() { | |
15471 | PyObject *pyobj; | |
15472 | ||
15473 | pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0); | |
15474 | return pyobj; | |
15475 | } | |
15476 | ||
15477 | ||
15478 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
15479 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
15480 | return 1; | |
15481 | } | |
15482 | ||
15483 | ||
15484 | static PyObject *_wrap_CYAN_PEN_get() { | |
15485 | PyObject *pyobj; | |
15486 | ||
15487 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0); | |
15488 | return pyobj; | |
15489 | } | |
15490 | ||
15491 | ||
15492 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
15493 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
15494 | return 1; | |
15495 | } | |
15496 | ||
15497 | ||
15498 | static PyObject *_wrap_GREEN_PEN_get() { | |
15499 | PyObject *pyobj; | |
15500 | ||
15501 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0); | |
15502 | return pyobj; | |
15503 | } | |
15504 | ||
15505 | ||
15506 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
15507 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
15508 | return 1; | |
15509 | } | |
15510 | ||
15511 | ||
15512 | static PyObject *_wrap_BLACK_PEN_get() { | |
15513 | PyObject *pyobj; | |
15514 | ||
15515 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0); | |
15516 | return pyobj; | |
15517 | } | |
15518 | ||
15519 | ||
15520 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
15521 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
15522 | return 1; | |
15523 | } | |
15524 | ||
15525 | ||
15526 | static PyObject *_wrap_WHITE_PEN_get() { | |
15527 | PyObject *pyobj; | |
15528 | ||
15529 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0); | |
15530 | return pyobj; | |
15531 | } | |
15532 | ||
15533 | ||
15534 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
15535 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
15536 | return 1; | |
15537 | } | |
15538 | ||
15539 | ||
15540 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
15541 | PyObject *pyobj; | |
15542 | ||
15543 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0); | |
15544 | return pyobj; | |
15545 | } | |
15546 | ||
15547 | ||
15548 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
15549 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
15550 | return 1; | |
15551 | } | |
15552 | ||
15553 | ||
15554 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
15555 | PyObject *pyobj; | |
15556 | ||
15557 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0); | |
15558 | return pyobj; | |
15559 | } | |
15560 | ||
15561 | ||
15562 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
15563 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
15564 | return 1; | |
15565 | } | |
15566 | ||
15567 | ||
15568 | static PyObject *_wrap_GREY_PEN_get() { | |
15569 | PyObject *pyobj; | |
15570 | ||
15571 | pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15572 | return pyobj; | |
15573 | } | |
15574 | ||
15575 | ||
15576 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
15577 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
15578 | return 1; | |
15579 | } | |
15580 | ||
15581 | ||
15582 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
15583 | PyObject *pyobj; | |
15584 | ||
15585 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15586 | return pyobj; | |
15587 | } | |
15588 | ||
15589 | ||
15590 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
15591 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
15592 | return 1; | |
15593 | } | |
15594 | ||
15595 | ||
15596 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
15597 | PyObject *pyobj; | |
15598 | ||
15599 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0); | |
15600 | return pyobj; | |
15601 | } | |
15602 | ||
15603 | ||
15604 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
15605 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
15606 | return 1; | |
15607 | } | |
15608 | ||
15609 | ||
15610 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
15611 | PyObject *pyobj; | |
15612 | ||
15613 | pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15614 | return pyobj; | |
15615 | } | |
15616 | ||
15617 | ||
15618 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
15619 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
15620 | return 1; | |
15621 | } | |
15622 | ||
15623 | ||
15624 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
15625 | PyObject *pyobj; | |
15626 | ||
15627 | pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15628 | return pyobj; | |
15629 | } | |
15630 | ||
15631 | ||
15632 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
15633 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
15634 | return 1; | |
15635 | } | |
15636 | ||
15637 | ||
15638 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
15639 | PyObject *pyobj; | |
15640 | ||
15641 | pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15642 | return pyobj; | |
15643 | } | |
15644 | ||
15645 | ||
15646 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
15647 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
15648 | return 1; | |
15649 | } | |
15650 | ||
15651 | ||
15652 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
15653 | PyObject *pyobj; | |
15654 | ||
15655 | pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15656 | return pyobj; | |
15657 | } | |
15658 | ||
15659 | ||
15660 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
15661 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
15662 | return 1; | |
15663 | } | |
15664 | ||
15665 | ||
15666 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
15667 | PyObject *pyobj; | |
15668 | ||
15669 | pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15670 | return pyobj; | |
15671 | } | |
15672 | ||
15673 | ||
15674 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
15675 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
15676 | return 1; | |
15677 | } | |
15678 | ||
15679 | ||
15680 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
15681 | PyObject *pyobj; | |
15682 | ||
15683 | pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15684 | return pyobj; | |
15685 | } | |
15686 | ||
15687 | ||
15688 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
15689 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
15690 | return 1; | |
15691 | } | |
15692 | ||
15693 | ||
15694 | static PyObject *_wrap_RED_BRUSH_get() { | |
15695 | PyObject *pyobj; | |
15696 | ||
15697 | pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15698 | return pyobj; | |
15699 | } | |
15700 | ||
15701 | ||
15702 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
15703 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
15704 | return 1; | |
15705 | } | |
15706 | ||
15707 | ||
15708 | static PyObject *_wrap_GREY_BRUSH_get() { | |
15709 | PyObject *pyobj; | |
15710 | ||
15711 | pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15712 | return pyobj; | |
15713 | } | |
15714 | ||
15715 | ||
15716 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
15717 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
15718 | return 1; | |
15719 | } | |
15720 | ||
15721 | ||
15722 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
15723 | PyObject *pyobj; | |
15724 | ||
15725 | pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15726 | return pyobj; | |
15727 | } | |
15728 | ||
15729 | ||
15730 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
15731 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
15732 | return 1; | |
15733 | } | |
15734 | ||
15735 | ||
15736 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
15737 | PyObject *pyobj; | |
15738 | ||
15739 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0); | |
15740 | return pyobj; | |
15741 | } | |
15742 | ||
15743 | ||
15744 | static int _wrap_BLACK_set(PyObject *_val) { | |
15745 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
15746 | return 1; | |
15747 | } | |
15748 | ||
15749 | ||
15750 | static PyObject *_wrap_BLACK_get() { | |
15751 | PyObject *pyobj; | |
15752 | ||
15753 | pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0); | |
15754 | return pyobj; | |
15755 | } | |
15756 | ||
15757 | ||
15758 | static int _wrap_WHITE_set(PyObject *_val) { | |
15759 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
15760 | return 1; | |
15761 | } | |
15762 | ||
15763 | ||
15764 | static PyObject *_wrap_WHITE_get() { | |
15765 | PyObject *pyobj; | |
15766 | ||
15767 | pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0); | |
15768 | return pyobj; | |
15769 | } | |
15770 | ||
15771 | ||
15772 | static int _wrap_RED_set(PyObject *_val) { | |
15773 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
15774 | return 1; | |
15775 | } | |
15776 | ||
15777 | ||
15778 | static PyObject *_wrap_RED_get() { | |
15779 | PyObject *pyobj; | |
15780 | ||
15781 | pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0); | |
15782 | return pyobj; | |
15783 | } | |
15784 | ||
15785 | ||
15786 | static int _wrap_BLUE_set(PyObject *_val) { | |
15787 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
15788 | return 1; | |
15789 | } | |
15790 | ||
15791 | ||
15792 | static PyObject *_wrap_BLUE_get() { | |
15793 | PyObject *pyobj; | |
15794 | ||
15795 | pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0); | |
15796 | return pyobj; | |
15797 | } | |
15798 | ||
15799 | ||
15800 | static int _wrap_GREEN_set(PyObject *_val) { | |
15801 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
15802 | return 1; | |
15803 | } | |
15804 | ||
15805 | ||
15806 | static PyObject *_wrap_GREEN_get() { | |
15807 | PyObject *pyobj; | |
15808 | ||
15809 | pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0); | |
15810 | return pyobj; | |
15811 | } | |
15812 | ||
15813 | ||
15814 | static int _wrap_CYAN_set(PyObject *_val) { | |
15815 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
15816 | return 1; | |
15817 | } | |
15818 | ||
15819 | ||
15820 | static PyObject *_wrap_CYAN_get() { | |
15821 | PyObject *pyobj; | |
15822 | ||
15823 | pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0); | |
15824 | return pyobj; | |
15825 | } | |
15826 | ||
15827 | ||
15828 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
15829 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
15830 | return 1; | |
15831 | } | |
15832 | ||
15833 | ||
15834 | static PyObject *_wrap_LIGHT_GREY_get() { | |
15835 | PyObject *pyobj; | |
15836 | ||
15837 | pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0); | |
15838 | return pyobj; | |
15839 | } | |
15840 | ||
15841 | ||
15842 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
15843 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
15844 | return 1; | |
15845 | } | |
15846 | ||
15847 | ||
15848 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
15849 | PyObject *pyobj; | |
15850 | ||
15851 | pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15852 | return pyobj; | |
15853 | } | |
15854 | ||
15855 | ||
15856 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
15857 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
15858 | return 1; | |
15859 | } | |
15860 | ||
15861 | ||
15862 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
15863 | PyObject *pyobj; | |
15864 | ||
15865 | pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15866 | return pyobj; | |
15867 | } | |
15868 | ||
15869 | ||
15870 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
15871 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
15872 | return 1; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
15877 | PyObject *pyobj; | |
15878 | ||
15879 | pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0); | |
15880 | return pyobj; | |
15881 | } | |
15882 | ||
15883 | ||
15884 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
15885 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
15886 | return 1; | |
15887 | } | |
15888 | ||
15889 | ||
15890 | static PyObject *_wrap_NullBitmap_get() { | |
15891 | PyObject *pyobj; | |
15892 | ||
15893 | pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0); | |
15894 | return pyobj; | |
15895 | } | |
15896 | ||
15897 | ||
15898 | static int _wrap_NullIcon_set(PyObject *_val) { | |
15899 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
15900 | return 1; | |
15901 | } | |
15902 | ||
15903 | ||
15904 | static PyObject *_wrap_NullIcon_get() { | |
15905 | PyObject *pyobj; | |
15906 | ||
15907 | pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0); | |
15908 | return pyobj; | |
15909 | } | |
15910 | ||
15911 | ||
15912 | static int _wrap_NullCursor_set(PyObject *_val) { | |
15913 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
15914 | return 1; | |
15915 | } | |
15916 | ||
15917 | ||
15918 | static PyObject *_wrap_NullCursor_get() { | |
15919 | PyObject *pyobj; | |
15920 | ||
15921 | pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0); | |
15922 | return pyobj; | |
15923 | } | |
15924 | ||
15925 | ||
15926 | static int _wrap_NullPen_set(PyObject *_val) { | |
15927 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
15928 | return 1; | |
15929 | } | |
15930 | ||
15931 | ||
15932 | static PyObject *_wrap_NullPen_get() { | |
15933 | PyObject *pyobj; | |
15934 | ||
15935 | pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0); | |
15936 | return pyobj; | |
15937 | } | |
15938 | ||
15939 | ||
15940 | static int _wrap_NullBrush_set(PyObject *_val) { | |
15941 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
15942 | return 1; | |
15943 | } | |
15944 | ||
15945 | ||
15946 | static PyObject *_wrap_NullBrush_get() { | |
15947 | PyObject *pyobj; | |
15948 | ||
15949 | pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0); | |
15950 | return pyobj; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static int _wrap_NullPalette_set(PyObject *_val) { | |
15955 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
15956 | return 1; | |
15957 | } | |
15958 | ||
15959 | ||
15960 | static PyObject *_wrap_NullPalette_get() { | |
15961 | PyObject *pyobj; | |
15962 | ||
15963 | pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0); | |
15964 | return pyobj; | |
15965 | } | |
15966 | ||
15967 | ||
15968 | static int _wrap_NullFont_set(PyObject *_val) { | |
15969 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
15970 | return 1; | |
15971 | } | |
15972 | ||
15973 | ||
15974 | static PyObject *_wrap_NullFont_get() { | |
15975 | PyObject *pyobj; | |
15976 | ||
15977 | pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0); | |
15978 | return pyobj; | |
15979 | } | |
15980 | ||
15981 | ||
15982 | static int _wrap_NullColour_set(PyObject *_val) { | |
15983 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
15984 | return 1; | |
15985 | } | |
15986 | ||
15987 | ||
15988 | static PyObject *_wrap_NullColour_get() { | |
15989 | PyObject *pyobj; | |
15990 | ||
15991 | pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0); | |
15992 | return pyobj; | |
15993 | } | |
15994 | ||
15995 | ||
15996 | static int _wrap_TheFontList_set(PyObject *_val) { | |
15997 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
15998 | return 1; | |
15999 | } | |
16000 | ||
16001 | ||
16002 | static PyObject *_wrap_TheFontList_get() { | |
16003 | PyObject *pyobj; | |
16004 | ||
16005 | pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0); | |
16006 | return pyobj; | |
16007 | } | |
16008 | ||
16009 | ||
16010 | static int _wrap_ThePenList_set(PyObject *_val) { | |
16011 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
16012 | return 1; | |
16013 | } | |
16014 | ||
16015 | ||
16016 | static PyObject *_wrap_ThePenList_get() { | |
16017 | PyObject *pyobj; | |
16018 | ||
16019 | pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0); | |
16020 | return pyobj; | |
16021 | } | |
16022 | ||
16023 | ||
16024 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
16025 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
16026 | return 1; | |
16027 | } | |
16028 | ||
16029 | ||
16030 | static PyObject *_wrap_TheBrushList_get() { | |
16031 | PyObject *pyobj; | |
16032 | ||
16033 | pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0); | |
16034 | return pyobj; | |
16035 | } | |
16036 | ||
16037 | ||
16038 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
16039 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
16040 | return 1; | |
16041 | } | |
16042 | ||
16043 | ||
16044 | static PyObject *_wrap_TheColourDatabase_get() { | |
16045 | PyObject *pyobj; | |
16046 | ||
16047 | pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0); | |
16048 | return pyobj; | |
16049 | } | |
16050 | ||
16051 | ||
423f194a | 16052 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16053 | PyObject *resultobj; |
423f194a | 16054 | wxEffects *result; |
d14a1e28 | 16055 | char *kwnames[] = { |
423f194a | 16056 | NULL |
d14a1e28 RD |
16057 | }; |
16058 | ||
423f194a | 16059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
16060 | { |
16061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16062 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
16063 | |
16064 | wxPyEndAllowThreads(__tstate); | |
16065 | if (PyErr_Occurred()) SWIG_fail; | |
16066 | } | |
423f194a | 16067 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
16068 | return resultobj; |
16069 | fail: | |
16070 | return NULL; | |
16071 | } | |
16072 | ||
16073 | ||
423f194a | 16074 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16075 | PyObject *resultobj; |
423f194a RD |
16076 | wxEffects *arg1 = (wxEffects *) 0 ; |
16077 | wxColour result; | |
d14a1e28 | 16078 | PyObject * obj0 = 0 ; |
d14a1e28 | 16079 | char *kwnames[] = { |
423f194a | 16080 | (char *) "self", NULL |
d14a1e28 RD |
16081 | }; |
16082 | ||
423f194a RD |
16083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
16084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16085 | { |
16086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16087 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
16088 | |
16089 | wxPyEndAllowThreads(__tstate); | |
16090 | if (PyErr_Occurred()) SWIG_fail; | |
16091 | } | |
423f194a RD |
16092 | { |
16093 | wxColour * resultptr; | |
16094 | resultptr = new wxColour((wxColour &) result); | |
16095 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16096 | } | |
d14a1e28 RD |
16097 | return resultobj; |
16098 | fail: | |
16099 | return NULL; | |
16100 | } | |
16101 | ||
16102 | ||
423f194a | 16103 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16104 | PyObject *resultobj; |
423f194a RD |
16105 | wxEffects *arg1 = (wxEffects *) 0 ; |
16106 | wxColour result; | |
d14a1e28 | 16107 | PyObject * obj0 = 0 ; |
d14a1e28 | 16108 | char *kwnames[] = { |
423f194a | 16109 | (char *) "self", NULL |
d14a1e28 RD |
16110 | }; |
16111 | ||
423f194a RD |
16112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
16113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16114 | { |
16115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16116 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
16117 | |
16118 | wxPyEndAllowThreads(__tstate); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
d14a1e28 | 16121 | { |
423f194a RD |
16122 | wxColour * resultptr; |
16123 | resultptr = new wxColour((wxColour &) result); | |
16124 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
d14a1e28 RD |
16125 | } |
16126 | return resultobj; | |
16127 | fail: | |
d14a1e28 RD |
16128 | return NULL; |
16129 | } | |
16130 | ||
16131 | ||
423f194a | 16132 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16133 | PyObject *resultobj; |
423f194a RD |
16134 | wxEffects *arg1 = (wxEffects *) 0 ; |
16135 | wxColour result; | |
d14a1e28 | 16136 | PyObject * obj0 = 0 ; |
d14a1e28 | 16137 | char *kwnames[] = { |
423f194a | 16138 | (char *) "self", NULL |
d14a1e28 RD |
16139 | }; |
16140 | ||
423f194a RD |
16141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
16142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
16143 | { |
16144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 16145 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
16146 | |
16147 | wxPyEndAllowThreads(__tstate); | |
16148 | if (PyErr_Occurred()) SWIG_fail; | |
16149 | } | |
423f194a RD |
16150 | { |
16151 | wxColour * resultptr; | |
16152 | resultptr = new wxColour((wxColour &) result); | |
16153 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16154 | } | |
d14a1e28 RD |
16155 | return resultobj; |
16156 | fail: | |
16157 | return NULL; | |
16158 | } | |
16159 | ||
16160 | ||
423f194a | 16161 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16162 | PyObject *resultobj; |
423f194a RD |
16163 | wxEffects *arg1 = (wxEffects *) 0 ; |
16164 | wxColour result; | |
d14a1e28 RD |
16165 | PyObject * obj0 = 0 ; |
16166 | char *kwnames[] = { | |
16167 | (char *) "self", NULL | |
16168 | }; | |
16169 | ||
16170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
16171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16172 | { | |
16173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16174 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
16175 | ||
16176 | wxPyEndAllowThreads(__tstate); | |
16177 | if (PyErr_Occurred()) SWIG_fail; | |
16178 | } | |
16179 | { | |
16180 | wxColour * resultptr; | |
16181 | resultptr = new wxColour((wxColour &) result); | |
16182 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16183 | } | |
16184 | return resultobj; | |
16185 | fail: | |
16186 | return NULL; | |
16187 | } | |
16188 | ||
16189 | ||
16190 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16191 | PyObject *resultobj; | |
16192 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16193 | wxColour result; | |
16194 | PyObject * obj0 = 0 ; | |
16195 | char *kwnames[] = { | |
16196 | (char *) "self", NULL | |
16197 | }; | |
16198 | ||
16199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
16200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16201 | { | |
16202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16203 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
16204 | ||
16205 | wxPyEndAllowThreads(__tstate); | |
16206 | if (PyErr_Occurred()) SWIG_fail; | |
16207 | } | |
16208 | { | |
16209 | wxColour * resultptr; | |
16210 | resultptr = new wxColour((wxColour &) result); | |
16211 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16212 | } | |
16213 | return resultobj; | |
16214 | fail: | |
16215 | return NULL; | |
16216 | } | |
16217 | ||
16218 | ||
16219 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16220 | PyObject *resultobj; | |
16221 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16222 | wxColour *arg2 = 0 ; | |
16223 | wxColour temp2 ; | |
16224 | PyObject * obj0 = 0 ; | |
16225 | PyObject * obj1 = 0 ; | |
16226 | char *kwnames[] = { | |
16227 | (char *) "self",(char *) "c", NULL | |
16228 | }; | |
16229 | ||
16230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
16231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16232 | { | |
16233 | arg2 = &temp2; | |
16234 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16235 | } | |
16236 | { | |
16237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16238 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
16239 | ||
16240 | wxPyEndAllowThreads(__tstate); | |
16241 | if (PyErr_Occurred()) SWIG_fail; | |
16242 | } | |
16243 | Py_INCREF(Py_None); resultobj = Py_None; | |
16244 | return resultobj; | |
16245 | fail: | |
16246 | return NULL; | |
16247 | } | |
16248 | ||
16249 | ||
16250 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16251 | PyObject *resultobj; | |
16252 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16253 | wxColour *arg2 = 0 ; | |
16254 | wxColour temp2 ; | |
16255 | PyObject * obj0 = 0 ; | |
16256 | PyObject * obj1 = 0 ; | |
16257 | char *kwnames[] = { | |
16258 | (char *) "self",(char *) "c", NULL | |
16259 | }; | |
16260 | ||
16261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
16262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16263 | { | |
16264 | arg2 = &temp2; | |
16265 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16266 | } | |
16267 | { | |
16268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16269 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
16270 | ||
16271 | wxPyEndAllowThreads(__tstate); | |
16272 | if (PyErr_Occurred()) SWIG_fail; | |
16273 | } | |
16274 | Py_INCREF(Py_None); resultobj = Py_None; | |
16275 | return resultobj; | |
16276 | fail: | |
16277 | return NULL; | |
16278 | } | |
16279 | ||
16280 | ||
16281 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16282 | PyObject *resultobj; | |
16283 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16284 | wxColour *arg2 = 0 ; | |
16285 | wxColour temp2 ; | |
16286 | PyObject * obj0 = 0 ; | |
16287 | PyObject * obj1 = 0 ; | |
16288 | char *kwnames[] = { | |
16289 | (char *) "self",(char *) "c", NULL | |
16290 | }; | |
16291 | ||
16292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
16293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16294 | { | |
16295 | arg2 = &temp2; | |
16296 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16297 | } | |
16298 | { | |
16299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16300 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
16301 | ||
16302 | wxPyEndAllowThreads(__tstate); | |
16303 | if (PyErr_Occurred()) SWIG_fail; | |
16304 | } | |
16305 | Py_INCREF(Py_None); resultobj = Py_None; | |
16306 | return resultobj; | |
16307 | fail: | |
16308 | return NULL; | |
16309 | } | |
16310 | ||
16311 | ||
16312 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16313 | PyObject *resultobj; | |
16314 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16315 | wxColour *arg2 = 0 ; | |
16316 | wxColour temp2 ; | |
16317 | PyObject * obj0 = 0 ; | |
16318 | PyObject * obj1 = 0 ; | |
16319 | char *kwnames[] = { | |
16320 | (char *) "self",(char *) "c", NULL | |
16321 | }; | |
16322 | ||
16323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
16324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16325 | { | |
16326 | arg2 = &temp2; | |
16327 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16328 | } | |
16329 | { | |
16330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16331 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
16332 | ||
16333 | wxPyEndAllowThreads(__tstate); | |
16334 | if (PyErr_Occurred()) SWIG_fail; | |
16335 | } | |
16336 | Py_INCREF(Py_None); resultobj = Py_None; | |
16337 | return resultobj; | |
16338 | fail: | |
16339 | return NULL; | |
16340 | } | |
16341 | ||
16342 | ||
16343 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16344 | PyObject *resultobj; | |
16345 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16346 | wxColour *arg2 = 0 ; | |
16347 | wxColour temp2 ; | |
16348 | PyObject * obj0 = 0 ; | |
16349 | PyObject * obj1 = 0 ; | |
16350 | char *kwnames[] = { | |
16351 | (char *) "self",(char *) "c", NULL | |
16352 | }; | |
16353 | ||
16354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
16355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16356 | { | |
16357 | arg2 = &temp2; | |
16358 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16359 | } | |
16360 | { | |
16361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16362 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
16363 | ||
16364 | wxPyEndAllowThreads(__tstate); | |
16365 | if (PyErr_Occurred()) SWIG_fail; | |
16366 | } | |
16367 | Py_INCREF(Py_None); resultobj = Py_None; | |
16368 | return resultobj; | |
16369 | fail: | |
16370 | return NULL; | |
16371 | } | |
16372 | ||
16373 | ||
16374 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16375 | PyObject *resultobj; | |
16376 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16377 | wxColour *arg2 = 0 ; | |
16378 | wxColour *arg3 = 0 ; | |
16379 | wxColour *arg4 = 0 ; | |
16380 | wxColour *arg5 = 0 ; | |
16381 | wxColour *arg6 = 0 ; | |
16382 | wxColour temp2 ; | |
16383 | wxColour temp3 ; | |
16384 | wxColour temp4 ; | |
16385 | wxColour temp5 ; | |
16386 | wxColour temp6 ; | |
16387 | PyObject * obj0 = 0 ; | |
16388 | PyObject * obj1 = 0 ; | |
16389 | PyObject * obj2 = 0 ; | |
16390 | PyObject * obj3 = 0 ; | |
16391 | PyObject * obj4 = 0 ; | |
16392 | PyObject * obj5 = 0 ; | |
16393 | char *kwnames[] = { | |
16394 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
16395 | }; | |
16396 | ||
16397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16399 | { | |
16400 | arg2 = &temp2; | |
16401 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16402 | } | |
16403 | { | |
16404 | arg3 = &temp3; | |
16405 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16406 | } | |
16407 | { | |
16408 | arg4 = &temp4; | |
16409 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
16410 | } | |
16411 | { | |
16412 | arg5 = &temp5; | |
16413 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
16414 | } | |
16415 | { | |
16416 | arg6 = &temp6; | |
16417 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
16418 | } | |
16419 | { | |
16420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16421 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
16422 | ||
16423 | wxPyEndAllowThreads(__tstate); | |
16424 | if (PyErr_Occurred()) SWIG_fail; | |
16425 | } | |
16426 | Py_INCREF(Py_None); resultobj = Py_None; | |
16427 | return resultobj; | |
16428 | fail: | |
16429 | return NULL; | |
16430 | } | |
16431 | ||
16432 | ||
16433 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16434 | PyObject *resultobj; | |
16435 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16436 | wxDC *arg2 = 0 ; | |
16437 | wxRect *arg3 = 0 ; | |
16438 | int arg4 = (int) 1 ; | |
16439 | wxRect temp3 ; | |
16440 | PyObject * obj0 = 0 ; | |
16441 | PyObject * obj1 = 0 ; | |
16442 | PyObject * obj2 = 0 ; | |
16443 | char *kwnames[] = { | |
16444 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
16445 | }; | |
16446 | ||
16447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|i:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
16448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16449 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16450 | if (arg2 == NULL) { | |
16451 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16452 | } | |
16453 | { | |
16454 | arg3 = &temp3; | |
16455 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
16456 | } | |
16457 | { | |
16458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16459 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
16460 | ||
16461 | wxPyEndAllowThreads(__tstate); | |
16462 | if (PyErr_Occurred()) SWIG_fail; | |
16463 | } | |
16464 | Py_INCREF(Py_None); resultobj = Py_None; | |
16465 | return resultobj; | |
16466 | fail: | |
16467 | return NULL; | |
16468 | } | |
16469 | ||
16470 | ||
16471 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16472 | PyObject *resultobj; | |
16473 | wxEffects *arg1 = (wxEffects *) 0 ; | |
16474 | wxRect *arg2 = 0 ; | |
16475 | wxDC *arg3 = 0 ; | |
16476 | wxBitmap *arg4 = 0 ; | |
16477 | bool result; | |
16478 | wxRect temp2 ; | |
16479 | PyObject * obj0 = 0 ; | |
16480 | PyObject * obj1 = 0 ; | |
16481 | PyObject * obj2 = 0 ; | |
16482 | PyObject * obj3 = 0 ; | |
16483 | char *kwnames[] = { | |
16484 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
16485 | }; | |
16486 | ||
16487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16489 | { | |
16490 | arg2 = &temp2; | |
16491 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
16492 | } | |
16493 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16494 | if (arg3 == NULL) { | |
16495 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16496 | } | |
16497 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16498 | if (arg4 == NULL) { | |
16499 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16500 | } | |
16501 | { | |
16502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16503 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
16504 | ||
16505 | wxPyEndAllowThreads(__tstate); | |
16506 | if (PyErr_Occurred()) SWIG_fail; | |
16507 | } | |
16508 | resultobj = PyInt_FromLong((long)result); | |
16509 | return resultobj; | |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
16515 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
16516 | PyObject *obj; | |
16517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16518 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
16519 | Py_INCREF(obj); | |
16520 | return Py_BuildValue((char *)""); | |
16521 | } | |
16522 | static PyMethodDef SwigMethods[] = { | |
16523 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16524 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
16525 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16526 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
16527 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
16528 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
16529 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16530 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
16531 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
16532 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
16533 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
16534 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
16535 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
16536 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16537 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
16538 | { (char *)"Colour_SetRBG", (PyCFunction) _wrap_Colour_SetRBG, METH_VARARGS | METH_KEYWORDS }, | |
16539 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
16540 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
16541 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
16542 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
16543 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16544 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
16545 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16546 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
16547 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16548 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
16549 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16550 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
16551 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
16552 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16553 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16554 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16555 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16556 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16557 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
16558 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16559 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
16560 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16561 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16562 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16563 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16564 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16565 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16566 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
16567 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16568 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
16569 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
16570 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
16571 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16572 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
16573 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
16574 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16575 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16576 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
16577 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16578 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
16579 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16580 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
16581 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16582 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
16583 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16584 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16585 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
16586 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16587 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
16588 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
16589 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16590 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16591 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16592 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16593 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16594 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16595 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
16596 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
16597 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
16598 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16599 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16600 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
16601 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16602 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16603 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16604 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16605 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16606 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
16607 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16608 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
16609 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
16610 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
16611 | { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS }, | |
16612 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
16613 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16614 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
16615 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
16616 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
16617 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16618 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
16619 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
16620 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16621 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16622 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16623 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16624 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16625 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16626 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16627 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16628 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16629 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
16630 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16631 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
16632 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16633 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
16634 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16635 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
16636 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
16637 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
16638 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
16639 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
16640 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
16641 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
16642 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
16643 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
16644 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
16645 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
16646 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
16647 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
16648 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
16649 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
16650 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
16651 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
16652 | { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS }, | |
16653 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16654 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
16655 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16656 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16657 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16658 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16659 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16660 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16661 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16662 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
16663 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
16664 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
16665 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16666 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
16667 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
16668 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
16669 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
16670 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
16671 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
16672 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
16673 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
16674 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
16675 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
16676 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
16677 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
16678 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
16679 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
16680 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
16681 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
16682 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
16683 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
16684 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
16685 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
16686 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
16687 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
16688 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16689 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16690 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
16691 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
16692 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
16693 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
16694 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
16695 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
16696 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
16697 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
16698 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
16699 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
16700 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
16701 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
16702 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
16703 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
16704 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
16705 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16706 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16707 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
16708 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
16709 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16710 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16711 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16712 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16713 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16714 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16715 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16716 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16717 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16718 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16719 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16720 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16721 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16722 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16723 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
16724 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
16725 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
16726 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
16727 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
16728 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
16729 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
16730 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
16731 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
16732 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
16733 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
16734 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
16735 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
16736 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
16737 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
16738 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16739 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16740 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
16741 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
16742 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
16743 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
16744 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16745 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
16746 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16747 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
16748 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
16749 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
16750 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
16751 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
16752 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16753 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
16754 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
16755 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
16756 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
16757 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
16758 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
16759 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
16760 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
16761 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
16762 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16763 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
16764 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
16765 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16766 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16767 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16768 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16769 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16770 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16771 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16772 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16773 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
16774 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
16775 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16776 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
16777 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
16778 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
16779 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
16780 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
16781 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
16782 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16783 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
16784 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
16785 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
16786 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
16787 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
16788 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
16789 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16790 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
16791 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16792 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16793 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
16794 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16795 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
16796 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
16797 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16798 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16799 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
16800 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
16801 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
16802 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
16803 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
16804 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
16805 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
16806 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
16807 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
16808 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
16809 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16810 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
16811 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
16812 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
16813 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16814 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
16815 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
16816 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
16817 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16818 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16819 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
16820 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
16821 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
16822 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
16823 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
16824 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16825 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
16826 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
16827 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
16828 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
16829 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
16830 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
16831 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
16832 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
16833 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16834 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
16835 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
16836 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
16837 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16838 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
16839 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
16840 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
16841 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
16842 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16843 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
16844 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
16845 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
16846 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
16847 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
16848 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
16849 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
16850 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
16851 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
16852 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16853 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
16854 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
16855 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
16856 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
16857 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
16858 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
16859 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
16860 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16861 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16862 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16863 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
16864 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
16865 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
16866 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
16867 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
16868 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
16869 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
16870 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
16871 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
16872 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
16873 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
16874 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16875 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16876 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
16877 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
16878 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
16879 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
16880 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
16881 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
16882 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
16883 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
16884 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
16885 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
16886 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
16887 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
16888 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
16889 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
16890 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
16891 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
16892 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
16893 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16894 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16895 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16896 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 16897 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16898 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
16899 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16900 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
16901 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
16902 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
16903 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
16904 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
16905 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
16906 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16907 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16908 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 16909 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16910 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16911 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16912 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16913 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
16914 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
16915 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
16916 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
16917 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
16918 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
16919 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
16920 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
16921 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
16922 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
16923 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
16924 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
16925 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16926 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
16927 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
16928 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
16929 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
16930 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
16931 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16932 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16933 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
16934 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
16935 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16936 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
16937 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16938 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
16939 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
16940 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 16941 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16942 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16943 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 16944 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 16945 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
16946 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
16947 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
16948 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
16949 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
16950 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
16951 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
16952 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16953 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16954 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
16955 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
16956 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
16957 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
16958 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
16959 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
16960 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
16961 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
16962 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
16963 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
16964 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
16965 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
16966 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
16967 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
16968 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
16969 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
16970 | { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
16971 | { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
16972 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
16973 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
16974 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
16975 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
16976 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
16977 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
16978 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
16979 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
16980 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
16981 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
16982 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
16983 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
16984 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
16985 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
16986 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
16987 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
16988 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
16989 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
16990 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
16991 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
16992 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
16993 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
16994 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
16995 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
16996 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
16997 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
16998 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
16999 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17000 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
17001 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
17002 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
17003 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
17004 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17005 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
17006 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
17007 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
17008 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
17009 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17010 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
17011 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
17012 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
17013 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
17014 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
17015 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
17016 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
17017 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
17018 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
17019 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
17020 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
17021 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
17022 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
17023 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
17024 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17025 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
17026 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
17027 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
17028 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
17029 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17030 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
17031 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17032 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
17033 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
17034 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
17035 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
17036 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
17037 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
17038 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
17039 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
17040 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
17041 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
17042 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
17043 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
17044 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17045 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17046 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17047 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17048 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17049 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
17050 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
17051 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
17052 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
17053 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
17054 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
17055 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
17056 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
17057 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
17058 | { NULL, NULL } | |
17059 | }; | |
17060 | ||
17061 | ||
17062 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
17063 | ||
423f194a RD |
17064 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
17065 | return (void *)((wxWindow *) ((wxControl *) x)); | |
17066 | } | |
17067 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
17068 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
17069 | } | |
17070 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
17071 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
17072 | } | |
d14a1e28 RD |
17073 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
17074 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
17075 | } | |
17076 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
17077 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17078 | } | |
d14a1e28 RD |
17079 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
17080 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
17081 | } | |
17082 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
17083 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
17084 | } | |
17085 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
17086 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
17087 | } | |
17088 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
17089 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
17090 | } | |
17091 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
17092 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
17093 | } | |
17094 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
17095 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
17096 | } | |
17097 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
17098 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
17099 | } | |
17100 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
17101 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
17102 | } | |
17103 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
17104 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
17105 | } | |
17106 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
17107 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
17108 | } | |
17109 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
17110 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
17111 | } | |
17112 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
17113 | return (void *)((wxObject *) ((wxSizer *) x)); | |
17114 | } | |
17115 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
17116 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
17117 | } | |
17118 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
17119 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
17120 | } | |
17121 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
17122 | return (void *)((wxObject *) ((wxPenList *) x)); | |
17123 | } | |
17124 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
17125 | return (void *)((wxObject *) ((wxEvent *) x)); | |
17126 | } | |
17127 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
17128 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
17129 | } | |
17130 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
17131 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
17132 | } | |
17133 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
17134 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
17135 | } | |
17136 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
17137 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
17138 | } | |
17139 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
17140 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
17141 | } | |
17142 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
17143 | return (void *)((wxObject *) ((wxDC *) x)); | |
17144 | } | |
17145 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
17146 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
17147 | } | |
17148 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
17149 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
17150 | } | |
17151 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
17152 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
17153 | } | |
17154 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
17155 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
17156 | } | |
17157 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
17158 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
17159 | } | |
17160 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
17161 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
17162 | } | |
17163 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
17164 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
17165 | } | |
17166 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
17167 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
17168 | } | |
17169 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
17170 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
17171 | } | |
17172 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
17173 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
17174 | } | |
17175 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
17176 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
17177 | } | |
17178 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
17179 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
17180 | } | |
17181 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
17182 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
17183 | } | |
17184 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
17185 | return (void *)((wxObject *) ((wxEffects *) x)); | |
17186 | } | |
17187 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
17188 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
17189 | } | |
17190 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
17191 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
17192 | } | |
17193 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
17194 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
17195 | } | |
17196 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
17197 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
17198 | } | |
17199 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
17200 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
17201 | } | |
17202 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
17203 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
17204 | } | |
17205 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
17206 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
17207 | } | |
17208 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
17209 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
17210 | } | |
17211 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
17212 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
17213 | } | |
17214 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
17215 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
17216 | } | |
17217 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
17218 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
17219 | } | |
17220 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
17221 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
17222 | } | |
17223 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
17224 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
17225 | } | |
17226 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
17227 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
17228 | } | |
17229 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
17230 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
17231 | } | |
17232 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
17233 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
17234 | } | |
17235 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
17236 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
17237 | } | |
17238 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
17239 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
17240 | } | |
17241 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
17242 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
17243 | } | |
17244 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
17245 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
17246 | } | |
17247 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
17248 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
17249 | } | |
17250 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
17251 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
17252 | } | |
17253 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
17254 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
17255 | } | |
17256 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
17257 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
17258 | } | |
17259 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
17260 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
17261 | } | |
17262 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
17263 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
17264 | } | |
17265 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
17266 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17267 | } | |
17268 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
17269 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
17270 | } | |
17271 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
17272 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
17273 | } | |
17274 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
17275 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
17276 | } | |
41f1cec7 RD |
17277 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
17278 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
17279 | } | |
d14a1e28 RD |
17280 | static void *_p_wxImageTo_p_wxObject(void *x) { |
17281 | return (void *)((wxObject *) ((wxImage *) x)); | |
17282 | } | |
17283 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
17284 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
17285 | } | |
d14a1e28 RD |
17286 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
17287 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
17288 | } | |
17289 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
17290 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
17291 | } | |
17292 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
17293 | return (void *)((wxObject *) ((wxImageList *) x)); | |
17294 | } | |
17295 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
17296 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
17297 | } | |
17298 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
17299 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
17300 | } | |
17301 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
17302 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
17303 | } | |
17304 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
17305 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
17306 | } | |
17307 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
17308 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
17309 | } | |
17310 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
17311 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
17312 | } | |
17313 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
17314 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
17315 | } | |
17316 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
17317 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
17318 | } | |
17319 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
17320 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
17321 | } | |
17322 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
17323 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
17324 | } | |
17325 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
17326 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
17327 | } | |
17328 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
17329 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
17330 | } | |
17331 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
17332 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
17333 | } | |
17334 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
17335 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
17336 | } | |
17337 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
17338 | return (void *)((wxObject *) ((wxMask *) x)); | |
17339 | } | |
17340 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
17341 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
17342 | } | |
17343 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
17344 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
17345 | } | |
17346 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
17347 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
17348 | } | |
17349 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
17350 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
17351 | } | |
17352 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
17353 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
17354 | } | |
17355 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
17356 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
17357 | } | |
17358 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
17359 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
17360 | } | |
17361 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
17362 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
17363 | } | |
17364 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
17365 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
17366 | } | |
17367 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
17368 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
17369 | } | |
17370 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
17371 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
17372 | } | |
17373 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
17374 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
17375 | } | |
17376 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
17377 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
17378 | } | |
17379 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
17380 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
17381 | } | |
17382 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
17383 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
17384 | } | |
17385 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
17386 | return (void *)((wxObject *) ((wxColour *) x)); | |
17387 | } | |
17388 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
17389 | return (void *)((wxObject *) ((wxFontList *) x)); | |
17390 | } | |
17391 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
17392 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
17393 | } | |
17394 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
17395 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
17396 | } | |
423f194a RD |
17397 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
17398 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 17399 | } |
423f194a RD |
17400 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
17401 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 17402 | } |
423f194a RD |
17403 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
17404 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
17405 | } | |
17406 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
17407 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
17408 | } | |
17409 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
17410 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
17411 | } | |
17412 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
17413 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
17414 | } | |
17415 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
17416 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
17417 | } | |
17418 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
17419 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
17420 | } | |
17421 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
17422 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
17423 | } | |
17424 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
17425 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
17426 | } | |
17427 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
17428 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
17429 | } | |
17430 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
17431 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
17432 | } | |
17433 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
17434 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
17435 | } | |
17436 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
17437 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
17438 | } | |
17439 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
17440 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
17441 | } | |
17442 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
17443 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
17444 | } | |
17445 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
17446 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
17447 | } | |
17448 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
17449 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
17450 | } | |
17451 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
17452 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
17453 | } | |
17454 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
17455 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
17456 | } | |
17457 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
17458 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
17459 | } | |
17460 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
17461 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 RD |
17462 | } |
17463 | static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}}; | |
d14a1e28 RD |
17464 | static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}}; |
17465 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
d14a1e28 RD |
17466 | 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}}; |
17467 | static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}}; | |
17468 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17469 | static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}}; | |
17470 | static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}}; | |
17471 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
17472 | static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}}; | |
17473 | static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}}; | |
17474 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
17475 | 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}}; | |
17476 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
17477 | static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}}; | |
17478 | 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}}; | |
17479 | static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}}; | |
d14a1e28 RD |
17480 | static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}}; |
17481 | static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}}; | |
17482 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
17483 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
41f1cec7 | 17484 | 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 |
17485 | static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}}; |
17486 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
17487 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
17488 | static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}}; | |
17489 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
17490 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
17491 | static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}}; | |
17492 | static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}}; | |
17493 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
17494 | static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}}; | |
d14a1e28 RD |
17495 | static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}}; |
17496 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
17497 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
17498 | 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}}; | |
17499 | static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}}; | |
17500 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
17501 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
17502 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}}; | |
17503 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}}; | |
17504 | static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}}; | |
17505 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
17506 | static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}}; | |
17507 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}}; | |
17508 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}}; | |
17509 | static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}}; | |
17510 | static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}}; | |
17511 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}}; | |
d14a1e28 | 17512 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}}; |
423f194a | 17513 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; |
d14a1e28 RD |
17514 | static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}}; |
17515 | static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}}; | |
17516 | static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}}; | |
17517 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}}; | |
17518 | ||
17519 | static swig_type_info *swig_types_initial[] = { | |
17520 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
17521 | _swigt__p_wxBrush, |
17522 | _swigt__p_wxColour, | |
d14a1e28 RD |
17523 | _swigt__p_wxDC, |
17524 | _swigt__p_wxMirrorDC, | |
17525 | _swigt__p_byte, | |
17526 | _swigt__p_wxPyFontEnumerator, | |
17527 | _swigt__p_wxIconLocation, | |
17528 | _swigt__p_wxImage, | |
17529 | _swigt__p_wxMetaFileDC, | |
17530 | _swigt__p_wxMask, | |
17531 | _swigt__p_wxFont, | |
17532 | _swigt__p_wxWindow, | |
17533 | _swigt__p_wxSize, | |
17534 | _swigt__p_double, | |
17535 | _swigt__p_wxMemoryDC, | |
17536 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
17537 | _swigt__p_wxEffects, |
17538 | _swigt__p_wxNativeEncodingInfo, | |
17539 | _swigt__p_wxPalette, | |
17540 | _swigt__p_wxBitmap, | |
17541 | _swigt__p_wxObject, | |
17542 | _swigt__p_wxRegionIterator, | |
17543 | _swigt__p_wxRect, | |
17544 | _swigt__p_wxString, | |
17545 | _swigt__p_wxPrinterDC, | |
17546 | _swigt__p_wxIconBundle, | |
17547 | _swigt__p_wxPoint, | |
17548 | _swigt__p_wxDash, | |
17549 | _swigt__p_wxScreenDC, | |
17550 | _swigt__p_wxCursor, | |
17551 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
17552 | _swigt__p_wxBufferedDC, |
17553 | _swigt__p_wxImageList, | |
17554 | _swigt__p_unsigned_char, | |
17555 | _swigt__p_wxGDIObject, | |
17556 | _swigt__p_wxLocale, | |
17557 | _swigt__p_wxIcon, | |
17558 | _swigt__p_wxRegion, | |
17559 | _swigt__p_wxLanguageInfo, | |
17560 | _swigt__p_wxConfigBase, | |
17561 | _swigt__p_wxWindowDC, | |
17562 | _swigt__p_wxPrintData, | |
17563 | _swigt__p_wxBrushList, | |
17564 | _swigt__p_wxFontList, | |
17565 | _swigt__p_wxPen, | |
17566 | _swigt__p_wxBufferedPaintDC, | |
17567 | _swigt__p_wxPaintDC, | |
17568 | _swigt__p_wxPenList, | |
d14a1e28 RD |
17569 | _swigt__p_wxPyPen, |
17570 | _swigt__p_int, | |
17571 | _swigt__p_wxMetaFile, | |
17572 | _swigt__p_wxNativeFontInfo, | |
17573 | _swigt__p_wxEncodingConverter, | |
17574 | _swigt__p_wxColourDatabase, | |
17575 | 0 | |
17576 | }; | |
17577 | ||
17578 | ||
17579 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
17580 | ||
17581 | static swig_const_info swig_const_table[] = { | |
17582 | { SWIG_PY_INT, (char *)"OutRegion", (long) wxOutRegion, 0, 0, 0}, | |
17583 | { SWIG_PY_INT, (char *)"PartRegion", (long) wxPartRegion, 0, 0, 0}, | |
17584 | { SWIG_PY_INT, (char *)"InRegion", (long) wxInRegion, 0, 0, 0}, | |
17585 | { SWIG_PY_INT, (char *)"FONTFAMILY_DEFAULT", (long) wxFONTFAMILY_DEFAULT, 0, 0, 0}, | |
17586 | { SWIG_PY_INT, (char *)"FONTFAMILY_DECORATIVE", (long) wxFONTFAMILY_DECORATIVE, 0, 0, 0}, | |
17587 | { SWIG_PY_INT, (char *)"FONTFAMILY_ROMAN", (long) wxFONTFAMILY_ROMAN, 0, 0, 0}, | |
17588 | { SWIG_PY_INT, (char *)"FONTFAMILY_SCRIPT", (long) wxFONTFAMILY_SCRIPT, 0, 0, 0}, | |
17589 | { SWIG_PY_INT, (char *)"FONTFAMILY_SWISS", (long) wxFONTFAMILY_SWISS, 0, 0, 0}, | |
17590 | { SWIG_PY_INT, (char *)"FONTFAMILY_MODERN", (long) wxFONTFAMILY_MODERN, 0, 0, 0}, | |
17591 | { SWIG_PY_INT, (char *)"FONTFAMILY_TELETYPE", (long) wxFONTFAMILY_TELETYPE, 0, 0, 0}, | |
17592 | { SWIG_PY_INT, (char *)"FONTFAMILY_MAX", (long) wxFONTFAMILY_MAX, 0, 0, 0}, | |
17593 | { SWIG_PY_INT, (char *)"FONTFAMILY_UNKNOWN", (long) wxFONTFAMILY_UNKNOWN, 0, 0, 0}, | |
17594 | { SWIG_PY_INT, (char *)"FONTSTYLE_NORMAL", (long) wxFONTSTYLE_NORMAL, 0, 0, 0}, | |
17595 | { SWIG_PY_INT, (char *)"FONTSTYLE_ITALIC", (long) wxFONTSTYLE_ITALIC, 0, 0, 0}, | |
17596 | { SWIG_PY_INT, (char *)"FONTSTYLE_SLANT", (long) wxFONTSTYLE_SLANT, 0, 0, 0}, | |
17597 | { SWIG_PY_INT, (char *)"FONTSTYLE_MAX", (long) wxFONTSTYLE_MAX, 0, 0, 0}, | |
17598 | { SWIG_PY_INT, (char *)"FONTWEIGHT_NORMAL", (long) wxFONTWEIGHT_NORMAL, 0, 0, 0}, | |
17599 | { SWIG_PY_INT, (char *)"FONTWEIGHT_LIGHT", (long) wxFONTWEIGHT_LIGHT, 0, 0, 0}, | |
17600 | { SWIG_PY_INT, (char *)"FONTWEIGHT_BOLD", (long) wxFONTWEIGHT_BOLD, 0, 0, 0}, | |
17601 | { SWIG_PY_INT, (char *)"FONTWEIGHT_MAX", (long) wxFONTWEIGHT_MAX, 0, 0, 0}, | |
17602 | { SWIG_PY_INT, (char *)"FONTFLAG_DEFAULT", (long) wxFONTFLAG_DEFAULT, 0, 0, 0}, | |
17603 | { SWIG_PY_INT, (char *)"FONTFLAG_ITALIC", (long) wxFONTFLAG_ITALIC, 0, 0, 0}, | |
17604 | { SWIG_PY_INT, (char *)"FONTFLAG_SLANT", (long) wxFONTFLAG_SLANT, 0, 0, 0}, | |
17605 | { SWIG_PY_INT, (char *)"FONTFLAG_LIGHT", (long) wxFONTFLAG_LIGHT, 0, 0, 0}, | |
17606 | { SWIG_PY_INT, (char *)"FONTFLAG_BOLD", (long) wxFONTFLAG_BOLD, 0, 0, 0}, | |
17607 | { SWIG_PY_INT, (char *)"FONTFLAG_ANTIALIASED", (long) wxFONTFLAG_ANTIALIASED, 0, 0, 0}, | |
17608 | { SWIG_PY_INT, (char *)"FONTFLAG_NOT_ANTIALIASED", (long) wxFONTFLAG_NOT_ANTIALIASED, 0, 0, 0}, | |
17609 | { SWIG_PY_INT, (char *)"FONTFLAG_UNDERLINED", (long) wxFONTFLAG_UNDERLINED, 0, 0, 0}, | |
17610 | { SWIG_PY_INT, (char *)"FONTFLAG_STRIKETHROUGH", (long) wxFONTFLAG_STRIKETHROUGH, 0, 0, 0}, | |
17611 | { SWIG_PY_INT, (char *)"FONTFLAG_MASK", (long) wxFONTFLAG_MASK, 0, 0, 0}, | |
17612 | { SWIG_PY_INT, (char *)"FONTENCODING_SYSTEM", (long) wxFONTENCODING_SYSTEM, 0, 0, 0}, | |
17613 | { SWIG_PY_INT, (char *)"FONTENCODING_DEFAULT", (long) wxFONTENCODING_DEFAULT, 0, 0, 0}, | |
17614 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_1", (long) wxFONTENCODING_ISO8859_1, 0, 0, 0}, | |
17615 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_2", (long) wxFONTENCODING_ISO8859_2, 0, 0, 0}, | |
17616 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_3", (long) wxFONTENCODING_ISO8859_3, 0, 0, 0}, | |
17617 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_4", (long) wxFONTENCODING_ISO8859_4, 0, 0, 0}, | |
17618 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_5", (long) wxFONTENCODING_ISO8859_5, 0, 0, 0}, | |
17619 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_6", (long) wxFONTENCODING_ISO8859_6, 0, 0, 0}, | |
17620 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_7", (long) wxFONTENCODING_ISO8859_7, 0, 0, 0}, | |
17621 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_8", (long) wxFONTENCODING_ISO8859_8, 0, 0, 0}, | |
17622 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_9", (long) wxFONTENCODING_ISO8859_9, 0, 0, 0}, | |
17623 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_10", (long) wxFONTENCODING_ISO8859_10, 0, 0, 0}, | |
17624 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_11", (long) wxFONTENCODING_ISO8859_11, 0, 0, 0}, | |
17625 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_12", (long) wxFONTENCODING_ISO8859_12, 0, 0, 0}, | |
17626 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_13", (long) wxFONTENCODING_ISO8859_13, 0, 0, 0}, | |
17627 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_14", (long) wxFONTENCODING_ISO8859_14, 0, 0, 0}, | |
17628 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_15", (long) wxFONTENCODING_ISO8859_15, 0, 0, 0}, | |
17629 | { SWIG_PY_INT, (char *)"FONTENCODING_ISO8859_MAX", (long) wxFONTENCODING_ISO8859_MAX, 0, 0, 0}, | |
17630 | { SWIG_PY_INT, (char *)"FONTENCODING_KOI8", (long) wxFONTENCODING_KOI8, 0, 0, 0}, | |
17631 | { SWIG_PY_INT, (char *)"FONTENCODING_ALTERNATIVE", (long) wxFONTENCODING_ALTERNATIVE, 0, 0, 0}, | |
17632 | { SWIG_PY_INT, (char *)"FONTENCODING_BULGARIAN", (long) wxFONTENCODING_BULGARIAN, 0, 0, 0}, | |
17633 | { SWIG_PY_INT, (char *)"FONTENCODING_CP437", (long) wxFONTENCODING_CP437, 0, 0, 0}, | |
17634 | { SWIG_PY_INT, (char *)"FONTENCODING_CP850", (long) wxFONTENCODING_CP850, 0, 0, 0}, | |
17635 | { SWIG_PY_INT, (char *)"FONTENCODING_CP852", (long) wxFONTENCODING_CP852, 0, 0, 0}, | |
17636 | { SWIG_PY_INT, (char *)"FONTENCODING_CP855", (long) wxFONTENCODING_CP855, 0, 0, 0}, | |
17637 | { SWIG_PY_INT, (char *)"FONTENCODING_CP866", (long) wxFONTENCODING_CP866, 0, 0, 0}, | |
17638 | { SWIG_PY_INT, (char *)"FONTENCODING_CP874", (long) wxFONTENCODING_CP874, 0, 0, 0}, | |
17639 | { SWIG_PY_INT, (char *)"FONTENCODING_CP932", (long) wxFONTENCODING_CP932, 0, 0, 0}, | |
17640 | { SWIG_PY_INT, (char *)"FONTENCODING_CP936", (long) wxFONTENCODING_CP936, 0, 0, 0}, | |
17641 | { SWIG_PY_INT, (char *)"FONTENCODING_CP949", (long) wxFONTENCODING_CP949, 0, 0, 0}, | |
17642 | { SWIG_PY_INT, (char *)"FONTENCODING_CP950", (long) wxFONTENCODING_CP950, 0, 0, 0}, | |
17643 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1250", (long) wxFONTENCODING_CP1250, 0, 0, 0}, | |
17644 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1251", (long) wxFONTENCODING_CP1251, 0, 0, 0}, | |
17645 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1252", (long) wxFONTENCODING_CP1252, 0, 0, 0}, | |
17646 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1253", (long) wxFONTENCODING_CP1253, 0, 0, 0}, | |
17647 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1254", (long) wxFONTENCODING_CP1254, 0, 0, 0}, | |
17648 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1255", (long) wxFONTENCODING_CP1255, 0, 0, 0}, | |
17649 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1256", (long) wxFONTENCODING_CP1256, 0, 0, 0}, | |
17650 | { SWIG_PY_INT, (char *)"FONTENCODING_CP1257", (long) wxFONTENCODING_CP1257, 0, 0, 0}, | |
17651 | { SWIG_PY_INT, (char *)"FONTENCODING_CP12_MAX", (long) wxFONTENCODING_CP12_MAX, 0, 0, 0}, | |
17652 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF7", (long) wxFONTENCODING_UTF7, 0, 0, 0}, | |
17653 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF8", (long) wxFONTENCODING_UTF8, 0, 0, 0}, | |
17654 | { SWIG_PY_INT, (char *)"FONTENCODING_EUC_JP", (long) wxFONTENCODING_EUC_JP, 0, 0, 0}, | |
17655 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16BE", (long) wxFONTENCODING_UTF16BE, 0, 0, 0}, | |
17656 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16LE", (long) wxFONTENCODING_UTF16LE, 0, 0, 0}, | |
17657 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32BE", (long) wxFONTENCODING_UTF32BE, 0, 0, 0}, | |
17658 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32LE", (long) wxFONTENCODING_UTF32LE, 0, 0, 0}, | |
17659 | { SWIG_PY_INT, (char *)"FONTENCODING_MAX", (long) wxFONTENCODING_MAX, 0, 0, 0}, | |
17660 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF16", (long) wxFONTENCODING_UTF16, 0, 0, 0}, | |
17661 | { SWIG_PY_INT, (char *)"FONTENCODING_UTF32", (long) wxFONTENCODING_UTF32, 0, 0, 0}, | |
17662 | { SWIG_PY_INT, (char *)"FONTENCODING_UNICODE", (long) wxFONTENCODING_UNICODE, 0, 0, 0}, | |
17663 | { SWIG_PY_INT, (char *)"FONTENCODING_GB2312", (long) wxFONTENCODING_GB2312, 0, 0, 0}, | |
17664 | { SWIG_PY_INT, (char *)"FONTENCODING_BIG5", (long) wxFONTENCODING_BIG5, 0, 0, 0}, | |
17665 | { SWIG_PY_INT, (char *)"FONTENCODING_SHIFT_JIS", (long) wxFONTENCODING_SHIFT_JIS, 0, 0, 0}, | |
17666 | { SWIG_PY_INT, (char *)"LANGUAGE_DEFAULT", (long) wxLANGUAGE_DEFAULT, 0, 0, 0}, | |
17667 | { SWIG_PY_INT, (char *)"LANGUAGE_UNKNOWN", (long) wxLANGUAGE_UNKNOWN, 0, 0, 0}, | |
17668 | { SWIG_PY_INT, (char *)"LANGUAGE_ABKHAZIAN", (long) wxLANGUAGE_ABKHAZIAN, 0, 0, 0}, | |
17669 | { SWIG_PY_INT, (char *)"LANGUAGE_AFAR", (long) wxLANGUAGE_AFAR, 0, 0, 0}, | |
17670 | { SWIG_PY_INT, (char *)"LANGUAGE_AFRIKAANS", (long) wxLANGUAGE_AFRIKAANS, 0, 0, 0}, | |
17671 | { SWIG_PY_INT, (char *)"LANGUAGE_ALBANIAN", (long) wxLANGUAGE_ALBANIAN, 0, 0, 0}, | |
17672 | { SWIG_PY_INT, (char *)"LANGUAGE_AMHARIC", (long) wxLANGUAGE_AMHARIC, 0, 0, 0}, | |
17673 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC", (long) wxLANGUAGE_ARABIC, 0, 0, 0}, | |
17674 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_ALGERIA", (long) wxLANGUAGE_ARABIC_ALGERIA, 0, 0, 0}, | |
17675 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_BAHRAIN", (long) wxLANGUAGE_ARABIC_BAHRAIN, 0, 0, 0}, | |
17676 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_EGYPT", (long) wxLANGUAGE_ARABIC_EGYPT, 0, 0, 0}, | |
17677 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_IRAQ", (long) wxLANGUAGE_ARABIC_IRAQ, 0, 0, 0}, | |
17678 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_JORDAN", (long) wxLANGUAGE_ARABIC_JORDAN, 0, 0, 0}, | |
17679 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_KUWAIT", (long) wxLANGUAGE_ARABIC_KUWAIT, 0, 0, 0}, | |
17680 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LEBANON", (long) wxLANGUAGE_ARABIC_LEBANON, 0, 0, 0}, | |
17681 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_LIBYA", (long) wxLANGUAGE_ARABIC_LIBYA, 0, 0, 0}, | |
17682 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_MOROCCO", (long) wxLANGUAGE_ARABIC_MOROCCO, 0, 0, 0}, | |
17683 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_OMAN", (long) wxLANGUAGE_ARABIC_OMAN, 0, 0, 0}, | |
17684 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_QATAR", (long) wxLANGUAGE_ARABIC_QATAR, 0, 0, 0}, | |
17685 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SAUDI_ARABIA", (long) wxLANGUAGE_ARABIC_SAUDI_ARABIA, 0, 0, 0}, | |
17686 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SUDAN", (long) wxLANGUAGE_ARABIC_SUDAN, 0, 0, 0}, | |
17687 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_SYRIA", (long) wxLANGUAGE_ARABIC_SYRIA, 0, 0, 0}, | |
17688 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_TUNISIA", (long) wxLANGUAGE_ARABIC_TUNISIA, 0, 0, 0}, | |
17689 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_UAE", (long) wxLANGUAGE_ARABIC_UAE, 0, 0, 0}, | |
17690 | { SWIG_PY_INT, (char *)"LANGUAGE_ARABIC_YEMEN", (long) wxLANGUAGE_ARABIC_YEMEN, 0, 0, 0}, | |
17691 | { SWIG_PY_INT, (char *)"LANGUAGE_ARMENIAN", (long) wxLANGUAGE_ARMENIAN, 0, 0, 0}, | |
17692 | { SWIG_PY_INT, (char *)"LANGUAGE_ASSAMESE", (long) wxLANGUAGE_ASSAMESE, 0, 0, 0}, | |
17693 | { SWIG_PY_INT, (char *)"LANGUAGE_AYMARA", (long) wxLANGUAGE_AYMARA, 0, 0, 0}, | |
17694 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI", (long) wxLANGUAGE_AZERI, 0, 0, 0}, | |
17695 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_CYRILLIC", (long) wxLANGUAGE_AZERI_CYRILLIC, 0, 0, 0}, | |
17696 | { SWIG_PY_INT, (char *)"LANGUAGE_AZERI_LATIN", (long) wxLANGUAGE_AZERI_LATIN, 0, 0, 0}, | |
17697 | { SWIG_PY_INT, (char *)"LANGUAGE_BASHKIR", (long) wxLANGUAGE_BASHKIR, 0, 0, 0}, | |
17698 | { SWIG_PY_INT, (char *)"LANGUAGE_BASQUE", (long) wxLANGUAGE_BASQUE, 0, 0, 0}, | |
17699 | { SWIG_PY_INT, (char *)"LANGUAGE_BELARUSIAN", (long) wxLANGUAGE_BELARUSIAN, 0, 0, 0}, | |
17700 | { SWIG_PY_INT, (char *)"LANGUAGE_BENGALI", (long) wxLANGUAGE_BENGALI, 0, 0, 0}, | |
17701 | { SWIG_PY_INT, (char *)"LANGUAGE_BHUTANI", (long) wxLANGUAGE_BHUTANI, 0, 0, 0}, | |
17702 | { SWIG_PY_INT, (char *)"LANGUAGE_BIHARI", (long) wxLANGUAGE_BIHARI, 0, 0, 0}, | |
17703 | { SWIG_PY_INT, (char *)"LANGUAGE_BISLAMA", (long) wxLANGUAGE_BISLAMA, 0, 0, 0}, | |
17704 | { SWIG_PY_INT, (char *)"LANGUAGE_BRETON", (long) wxLANGUAGE_BRETON, 0, 0, 0}, | |
17705 | { SWIG_PY_INT, (char *)"LANGUAGE_BULGARIAN", (long) wxLANGUAGE_BULGARIAN, 0, 0, 0}, | |
17706 | { SWIG_PY_INT, (char *)"LANGUAGE_BURMESE", (long) wxLANGUAGE_BURMESE, 0, 0, 0}, | |
17707 | { SWIG_PY_INT, (char *)"LANGUAGE_CAMBODIAN", (long) wxLANGUAGE_CAMBODIAN, 0, 0, 0}, | |
17708 | { SWIG_PY_INT, (char *)"LANGUAGE_CATALAN", (long) wxLANGUAGE_CATALAN, 0, 0, 0}, | |
17709 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE", (long) wxLANGUAGE_CHINESE, 0, 0, 0}, | |
17710 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SIMPLIFIED", (long) wxLANGUAGE_CHINESE_SIMPLIFIED, 0, 0, 0}, | |
17711 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TRADITIONAL", (long) wxLANGUAGE_CHINESE_TRADITIONAL, 0, 0, 0}, | |
17712 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_HONGKONG", (long) wxLANGUAGE_CHINESE_HONGKONG, 0, 0, 0}, | |
17713 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_MACAU", (long) wxLANGUAGE_CHINESE_MACAU, 0, 0, 0}, | |
17714 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_SINGAPORE", (long) wxLANGUAGE_CHINESE_SINGAPORE, 0, 0, 0}, | |
17715 | { SWIG_PY_INT, (char *)"LANGUAGE_CHINESE_TAIWAN", (long) wxLANGUAGE_CHINESE_TAIWAN, 0, 0, 0}, | |
17716 | { SWIG_PY_INT, (char *)"LANGUAGE_CORSICAN", (long) wxLANGUAGE_CORSICAN, 0, 0, 0}, | |
17717 | { SWIG_PY_INT, (char *)"LANGUAGE_CROATIAN", (long) wxLANGUAGE_CROATIAN, 0, 0, 0}, | |
17718 | { SWIG_PY_INT, (char *)"LANGUAGE_CZECH", (long) wxLANGUAGE_CZECH, 0, 0, 0}, | |
17719 | { SWIG_PY_INT, (char *)"LANGUAGE_DANISH", (long) wxLANGUAGE_DANISH, 0, 0, 0}, | |
17720 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH", (long) wxLANGUAGE_DUTCH, 0, 0, 0}, | |
17721 | { SWIG_PY_INT, (char *)"LANGUAGE_DUTCH_BELGIAN", (long) wxLANGUAGE_DUTCH_BELGIAN, 0, 0, 0}, | |
17722 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH", (long) wxLANGUAGE_ENGLISH, 0, 0, 0}, | |
17723 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_UK", (long) wxLANGUAGE_ENGLISH_UK, 0, 0, 0}, | |
17724 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_US", (long) wxLANGUAGE_ENGLISH_US, 0, 0, 0}, | |
17725 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_AUSTRALIA", (long) wxLANGUAGE_ENGLISH_AUSTRALIA, 0, 0, 0}, | |
17726 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BELIZE", (long) wxLANGUAGE_ENGLISH_BELIZE, 0, 0, 0}, | |
17727 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_BOTSWANA", (long) wxLANGUAGE_ENGLISH_BOTSWANA, 0, 0, 0}, | |
17728 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CANADA", (long) wxLANGUAGE_ENGLISH_CANADA, 0, 0, 0}, | |
17729 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_CARIBBEAN", (long) wxLANGUAGE_ENGLISH_CARIBBEAN, 0, 0, 0}, | |
17730 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_DENMARK", (long) wxLANGUAGE_ENGLISH_DENMARK, 0, 0, 0}, | |
17731 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_EIRE", (long) wxLANGUAGE_ENGLISH_EIRE, 0, 0, 0}, | |
17732 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_JAMAICA", (long) wxLANGUAGE_ENGLISH_JAMAICA, 0, 0, 0}, | |
17733 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_NEW_ZEALAND", (long) wxLANGUAGE_ENGLISH_NEW_ZEALAND, 0, 0, 0}, | |
17734 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_PHILIPPINES", (long) wxLANGUAGE_ENGLISH_PHILIPPINES, 0, 0, 0}, | |
17735 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_SOUTH_AFRICA", (long) wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 0, 0, 0}, | |
17736 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_TRINIDAD", (long) wxLANGUAGE_ENGLISH_TRINIDAD, 0, 0, 0}, | |
17737 | { SWIG_PY_INT, (char *)"LANGUAGE_ENGLISH_ZIMBABWE", (long) wxLANGUAGE_ENGLISH_ZIMBABWE, 0, 0, 0}, | |
17738 | { SWIG_PY_INT, (char *)"LANGUAGE_ESPERANTO", (long) wxLANGUAGE_ESPERANTO, 0, 0, 0}, | |
17739 | { SWIG_PY_INT, (char *)"LANGUAGE_ESTONIAN", (long) wxLANGUAGE_ESTONIAN, 0, 0, 0}, | |
17740 | { SWIG_PY_INT, (char *)"LANGUAGE_FAEROESE", (long) wxLANGUAGE_FAEROESE, 0, 0, 0}, | |
17741 | { SWIG_PY_INT, (char *)"LANGUAGE_FARSI", (long) wxLANGUAGE_FARSI, 0, 0, 0}, | |
17742 | { SWIG_PY_INT, (char *)"LANGUAGE_FIJI", (long) wxLANGUAGE_FIJI, 0, 0, 0}, | |
17743 | { SWIG_PY_INT, (char *)"LANGUAGE_FINNISH", (long) wxLANGUAGE_FINNISH, 0, 0, 0}, | |
17744 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH", (long) wxLANGUAGE_FRENCH, 0, 0, 0}, | |
17745 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_BELGIAN", (long) wxLANGUAGE_FRENCH_BELGIAN, 0, 0, 0}, | |
17746 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_CANADIAN", (long) wxLANGUAGE_FRENCH_CANADIAN, 0, 0, 0}, | |
17747 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_LUXEMBOURG", (long) wxLANGUAGE_FRENCH_LUXEMBOURG, 0, 0, 0}, | |
17748 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_MONACO", (long) wxLANGUAGE_FRENCH_MONACO, 0, 0, 0}, | |
17749 | { SWIG_PY_INT, (char *)"LANGUAGE_FRENCH_SWISS", (long) wxLANGUAGE_FRENCH_SWISS, 0, 0, 0}, | |
17750 | { SWIG_PY_INT, (char *)"LANGUAGE_FRISIAN", (long) wxLANGUAGE_FRISIAN, 0, 0, 0}, | |
17751 | { SWIG_PY_INT, (char *)"LANGUAGE_GALICIAN", (long) wxLANGUAGE_GALICIAN, 0, 0, 0}, | |
17752 | { SWIG_PY_INT, (char *)"LANGUAGE_GEORGIAN", (long) wxLANGUAGE_GEORGIAN, 0, 0, 0}, | |
17753 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN", (long) wxLANGUAGE_GERMAN, 0, 0, 0}, | |
17754 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_AUSTRIAN", (long) wxLANGUAGE_GERMAN_AUSTRIAN, 0, 0, 0}, | |
17755 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_BELGIUM", (long) wxLANGUAGE_GERMAN_BELGIUM, 0, 0, 0}, | |
17756 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LIECHTENSTEIN", (long) wxLANGUAGE_GERMAN_LIECHTENSTEIN, 0, 0, 0}, | |
17757 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_LUXEMBOURG", (long) wxLANGUAGE_GERMAN_LUXEMBOURG, 0, 0, 0}, | |
17758 | { SWIG_PY_INT, (char *)"LANGUAGE_GERMAN_SWISS", (long) wxLANGUAGE_GERMAN_SWISS, 0, 0, 0}, | |
17759 | { SWIG_PY_INT, (char *)"LANGUAGE_GREEK", (long) wxLANGUAGE_GREEK, 0, 0, 0}, | |
17760 | { SWIG_PY_INT, (char *)"LANGUAGE_GREENLANDIC", (long) wxLANGUAGE_GREENLANDIC, 0, 0, 0}, | |
17761 | { SWIG_PY_INT, (char *)"LANGUAGE_GUARANI", (long) wxLANGUAGE_GUARANI, 0, 0, 0}, | |
17762 | { SWIG_PY_INT, (char *)"LANGUAGE_GUJARATI", (long) wxLANGUAGE_GUJARATI, 0, 0, 0}, | |
17763 | { SWIG_PY_INT, (char *)"LANGUAGE_HAUSA", (long) wxLANGUAGE_HAUSA, 0, 0, 0}, | |
17764 | { SWIG_PY_INT, (char *)"LANGUAGE_HEBREW", (long) wxLANGUAGE_HEBREW, 0, 0, 0}, | |
17765 | { SWIG_PY_INT, (char *)"LANGUAGE_HINDI", (long) wxLANGUAGE_HINDI, 0, 0, 0}, | |
17766 | { SWIG_PY_INT, (char *)"LANGUAGE_HUNGARIAN", (long) wxLANGUAGE_HUNGARIAN, 0, 0, 0}, | |
17767 | { SWIG_PY_INT, (char *)"LANGUAGE_ICELANDIC", (long) wxLANGUAGE_ICELANDIC, 0, 0, 0}, | |
17768 | { SWIG_PY_INT, (char *)"LANGUAGE_INDONESIAN", (long) wxLANGUAGE_INDONESIAN, 0, 0, 0}, | |
17769 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUA", (long) wxLANGUAGE_INTERLINGUA, 0, 0, 0}, | |
17770 | { SWIG_PY_INT, (char *)"LANGUAGE_INTERLINGUE", (long) wxLANGUAGE_INTERLINGUE, 0, 0, 0}, | |
17771 | { SWIG_PY_INT, (char *)"LANGUAGE_INUKTITUT", (long) wxLANGUAGE_INUKTITUT, 0, 0, 0}, | |
17772 | { SWIG_PY_INT, (char *)"LANGUAGE_INUPIAK", (long) wxLANGUAGE_INUPIAK, 0, 0, 0}, | |
17773 | { SWIG_PY_INT, (char *)"LANGUAGE_IRISH", (long) wxLANGUAGE_IRISH, 0, 0, 0}, | |
17774 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN", (long) wxLANGUAGE_ITALIAN, 0, 0, 0}, | |
17775 | { SWIG_PY_INT, (char *)"LANGUAGE_ITALIAN_SWISS", (long) wxLANGUAGE_ITALIAN_SWISS, 0, 0, 0}, | |
17776 | { SWIG_PY_INT, (char *)"LANGUAGE_JAPANESE", (long) wxLANGUAGE_JAPANESE, 0, 0, 0}, | |
17777 | { SWIG_PY_INT, (char *)"LANGUAGE_JAVANESE", (long) wxLANGUAGE_JAVANESE, 0, 0, 0}, | |
17778 | { SWIG_PY_INT, (char *)"LANGUAGE_KANNADA", (long) wxLANGUAGE_KANNADA, 0, 0, 0}, | |
17779 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI", (long) wxLANGUAGE_KASHMIRI, 0, 0, 0}, | |
17780 | { SWIG_PY_INT, (char *)"LANGUAGE_KASHMIRI_INDIA", (long) wxLANGUAGE_KASHMIRI_INDIA, 0, 0, 0}, | |
17781 | { SWIG_PY_INT, (char *)"LANGUAGE_KAZAKH", (long) wxLANGUAGE_KAZAKH, 0, 0, 0}, | |
17782 | { SWIG_PY_INT, (char *)"LANGUAGE_KERNEWEK", (long) wxLANGUAGE_KERNEWEK, 0, 0, 0}, | |
17783 | { SWIG_PY_INT, (char *)"LANGUAGE_KINYARWANDA", (long) wxLANGUAGE_KINYARWANDA, 0, 0, 0}, | |
17784 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRGHIZ", (long) wxLANGUAGE_KIRGHIZ, 0, 0, 0}, | |
17785 | { SWIG_PY_INT, (char *)"LANGUAGE_KIRUNDI", (long) wxLANGUAGE_KIRUNDI, 0, 0, 0}, | |
17786 | { SWIG_PY_INT, (char *)"LANGUAGE_KONKANI", (long) wxLANGUAGE_KONKANI, 0, 0, 0}, | |
17787 | { SWIG_PY_INT, (char *)"LANGUAGE_KOREAN", (long) wxLANGUAGE_KOREAN, 0, 0, 0}, | |
17788 | { SWIG_PY_INT, (char *)"LANGUAGE_KURDISH", (long) wxLANGUAGE_KURDISH, 0, 0, 0}, | |
17789 | { SWIG_PY_INT, (char *)"LANGUAGE_LAOTHIAN", (long) wxLANGUAGE_LAOTHIAN, 0, 0, 0}, | |
17790 | { SWIG_PY_INT, (char *)"LANGUAGE_LATIN", (long) wxLANGUAGE_LATIN, 0, 0, 0}, | |
17791 | { SWIG_PY_INT, (char *)"LANGUAGE_LATVIAN", (long) wxLANGUAGE_LATVIAN, 0, 0, 0}, | |
17792 | { SWIG_PY_INT, (char *)"LANGUAGE_LINGALA", (long) wxLANGUAGE_LINGALA, 0, 0, 0}, | |
17793 | { SWIG_PY_INT, (char *)"LANGUAGE_LITHUANIAN", (long) wxLANGUAGE_LITHUANIAN, 0, 0, 0}, | |
17794 | { SWIG_PY_INT, (char *)"LANGUAGE_MACEDONIAN", (long) wxLANGUAGE_MACEDONIAN, 0, 0, 0}, | |
17795 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAGASY", (long) wxLANGUAGE_MALAGASY, 0, 0, 0}, | |
17796 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY", (long) wxLANGUAGE_MALAY, 0, 0, 0}, | |
17797 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAYALAM", (long) wxLANGUAGE_MALAYALAM, 0, 0, 0}, | |
17798 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", (long) wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 0, 0, 0}, | |
17799 | { SWIG_PY_INT, (char *)"LANGUAGE_MALAY_MALAYSIA", (long) wxLANGUAGE_MALAY_MALAYSIA, 0, 0, 0}, | |
17800 | { SWIG_PY_INT, (char *)"LANGUAGE_MALTESE", (long) wxLANGUAGE_MALTESE, 0, 0, 0}, | |
17801 | { SWIG_PY_INT, (char *)"LANGUAGE_MANIPURI", (long) wxLANGUAGE_MANIPURI, 0, 0, 0}, | |
17802 | { SWIG_PY_INT, (char *)"LANGUAGE_MAORI", (long) wxLANGUAGE_MAORI, 0, 0, 0}, | |
17803 | { SWIG_PY_INT, (char *)"LANGUAGE_MARATHI", (long) wxLANGUAGE_MARATHI, 0, 0, 0}, | |
17804 | { SWIG_PY_INT, (char *)"LANGUAGE_MOLDAVIAN", (long) wxLANGUAGE_MOLDAVIAN, 0, 0, 0}, | |
17805 | { SWIG_PY_INT, (char *)"LANGUAGE_MONGOLIAN", (long) wxLANGUAGE_MONGOLIAN, 0, 0, 0}, | |
17806 | { SWIG_PY_INT, (char *)"LANGUAGE_NAURU", (long) wxLANGUAGE_NAURU, 0, 0, 0}, | |
17807 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI", (long) wxLANGUAGE_NEPALI, 0, 0, 0}, | |
17808 | { SWIG_PY_INT, (char *)"LANGUAGE_NEPALI_INDIA", (long) wxLANGUAGE_NEPALI_INDIA, 0, 0, 0}, | |
17809 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_BOKMAL", (long) wxLANGUAGE_NORWEGIAN_BOKMAL, 0, 0, 0}, | |
17810 | { SWIG_PY_INT, (char *)"LANGUAGE_NORWEGIAN_NYNORSK", (long) wxLANGUAGE_NORWEGIAN_NYNORSK, 0, 0, 0}, | |
17811 | { SWIG_PY_INT, (char *)"LANGUAGE_OCCITAN", (long) wxLANGUAGE_OCCITAN, 0, 0, 0}, | |
17812 | { SWIG_PY_INT, (char *)"LANGUAGE_ORIYA", (long) wxLANGUAGE_ORIYA, 0, 0, 0}, | |
17813 | { SWIG_PY_INT, (char *)"LANGUAGE_OROMO", (long) wxLANGUAGE_OROMO, 0, 0, 0}, | |
17814 | { SWIG_PY_INT, (char *)"LANGUAGE_PASHTO", (long) wxLANGUAGE_PASHTO, 0, 0, 0}, | |
17815 | { SWIG_PY_INT, (char *)"LANGUAGE_POLISH", (long) wxLANGUAGE_POLISH, 0, 0, 0}, | |
17816 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE", (long) wxLANGUAGE_PORTUGUESE, 0, 0, 0}, | |
17817 | { SWIG_PY_INT, (char *)"LANGUAGE_PORTUGUESE_BRAZILIAN", (long) wxLANGUAGE_PORTUGUESE_BRAZILIAN, 0, 0, 0}, | |
17818 | { SWIG_PY_INT, (char *)"LANGUAGE_PUNJABI", (long) wxLANGUAGE_PUNJABI, 0, 0, 0}, | |
17819 | { SWIG_PY_INT, (char *)"LANGUAGE_QUECHUA", (long) wxLANGUAGE_QUECHUA, 0, 0, 0}, | |
17820 | { SWIG_PY_INT, (char *)"LANGUAGE_RHAETO_ROMANCE", (long) wxLANGUAGE_RHAETO_ROMANCE, 0, 0, 0}, | |
17821 | { SWIG_PY_INT, (char *)"LANGUAGE_ROMANIAN", (long) wxLANGUAGE_ROMANIAN, 0, 0, 0}, | |
17822 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN", (long) wxLANGUAGE_RUSSIAN, 0, 0, 0}, | |
17823 | { SWIG_PY_INT, (char *)"LANGUAGE_RUSSIAN_UKRAINE", (long) wxLANGUAGE_RUSSIAN_UKRAINE, 0, 0, 0}, | |
17824 | { SWIG_PY_INT, (char *)"LANGUAGE_SAMOAN", (long) wxLANGUAGE_SAMOAN, 0, 0, 0}, | |
17825 | { SWIG_PY_INT, (char *)"LANGUAGE_SANGHO", (long) wxLANGUAGE_SANGHO, 0, 0, 0}, | |
17826 | { SWIG_PY_INT, (char *)"LANGUAGE_SANSKRIT", (long) wxLANGUAGE_SANSKRIT, 0, 0, 0}, | |
17827 | { SWIG_PY_INT, (char *)"LANGUAGE_SCOTS_GAELIC", (long) wxLANGUAGE_SCOTS_GAELIC, 0, 0, 0}, | |
17828 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN", (long) wxLANGUAGE_SERBIAN, 0, 0, 0}, | |
17829 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_CYRILLIC", (long) wxLANGUAGE_SERBIAN_CYRILLIC, 0, 0, 0}, | |
17830 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBIAN_LATIN", (long) wxLANGUAGE_SERBIAN_LATIN, 0, 0, 0}, | |
17831 | { SWIG_PY_INT, (char *)"LANGUAGE_SERBO_CROATIAN", (long) wxLANGUAGE_SERBO_CROATIAN, 0, 0, 0}, | |
17832 | { SWIG_PY_INT, (char *)"LANGUAGE_SESOTHO", (long) wxLANGUAGE_SESOTHO, 0, 0, 0}, | |
17833 | { SWIG_PY_INT, (char *)"LANGUAGE_SETSWANA", (long) wxLANGUAGE_SETSWANA, 0, 0, 0}, | |
17834 | { SWIG_PY_INT, (char *)"LANGUAGE_SHONA", (long) wxLANGUAGE_SHONA, 0, 0, 0}, | |
17835 | { SWIG_PY_INT, (char *)"LANGUAGE_SINDHI", (long) wxLANGUAGE_SINDHI, 0, 0, 0}, | |
17836 | { SWIG_PY_INT, (char *)"LANGUAGE_SINHALESE", (long) wxLANGUAGE_SINHALESE, 0, 0, 0}, | |
17837 | { SWIG_PY_INT, (char *)"LANGUAGE_SISWATI", (long) wxLANGUAGE_SISWATI, 0, 0, 0}, | |
17838 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVAK", (long) wxLANGUAGE_SLOVAK, 0, 0, 0}, | |
17839 | { SWIG_PY_INT, (char *)"LANGUAGE_SLOVENIAN", (long) wxLANGUAGE_SLOVENIAN, 0, 0, 0}, | |
17840 | { SWIG_PY_INT, (char *)"LANGUAGE_SOMALI", (long) wxLANGUAGE_SOMALI, 0, 0, 0}, | |
17841 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH", (long) wxLANGUAGE_SPANISH, 0, 0, 0}, | |
17842 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ARGENTINA", (long) wxLANGUAGE_SPANISH_ARGENTINA, 0, 0, 0}, | |
17843 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_BOLIVIA", (long) wxLANGUAGE_SPANISH_BOLIVIA, 0, 0, 0}, | |
17844 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_CHILE", (long) wxLANGUAGE_SPANISH_CHILE, 0, 0, 0}, | |
17845 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COLOMBIA", (long) wxLANGUAGE_SPANISH_COLOMBIA, 0, 0, 0}, | |
17846 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_COSTA_RICA", (long) wxLANGUAGE_SPANISH_COSTA_RICA, 0, 0, 0}, | |
17847 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", (long) wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 0, 0, 0}, | |
17848 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_ECUADOR", (long) wxLANGUAGE_SPANISH_ECUADOR, 0, 0, 0}, | |
17849 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_EL_SALVADOR", (long) wxLANGUAGE_SPANISH_EL_SALVADOR, 0, 0, 0}, | |
17850 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_GUATEMALA", (long) wxLANGUAGE_SPANISH_GUATEMALA, 0, 0, 0}, | |
17851 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_HONDURAS", (long) wxLANGUAGE_SPANISH_HONDURAS, 0, 0, 0}, | |
17852 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MEXICAN", (long) wxLANGUAGE_SPANISH_MEXICAN, 0, 0, 0}, | |
17853 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_MODERN", (long) wxLANGUAGE_SPANISH_MODERN, 0, 0, 0}, | |
17854 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_NICARAGUA", (long) wxLANGUAGE_SPANISH_NICARAGUA, 0, 0, 0}, | |
17855 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PANAMA", (long) wxLANGUAGE_SPANISH_PANAMA, 0, 0, 0}, | |
17856 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PARAGUAY", (long) wxLANGUAGE_SPANISH_PARAGUAY, 0, 0, 0}, | |
17857 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PERU", (long) wxLANGUAGE_SPANISH_PERU, 0, 0, 0}, | |
17858 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_PUERTO_RICO", (long) wxLANGUAGE_SPANISH_PUERTO_RICO, 0, 0, 0}, | |
17859 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_URUGUAY", (long) wxLANGUAGE_SPANISH_URUGUAY, 0, 0, 0}, | |
17860 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_US", (long) wxLANGUAGE_SPANISH_US, 0, 0, 0}, | |
17861 | { SWIG_PY_INT, (char *)"LANGUAGE_SPANISH_VENEZUELA", (long) wxLANGUAGE_SPANISH_VENEZUELA, 0, 0, 0}, | |
17862 | { SWIG_PY_INT, (char *)"LANGUAGE_SUNDANESE", (long) wxLANGUAGE_SUNDANESE, 0, 0, 0}, | |
17863 | { SWIG_PY_INT, (char *)"LANGUAGE_SWAHILI", (long) wxLANGUAGE_SWAHILI, 0, 0, 0}, | |
17864 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH", (long) wxLANGUAGE_SWEDISH, 0, 0, 0}, | |
17865 | { SWIG_PY_INT, (char *)"LANGUAGE_SWEDISH_FINLAND", (long) wxLANGUAGE_SWEDISH_FINLAND, 0, 0, 0}, | |
17866 | { SWIG_PY_INT, (char *)"LANGUAGE_TAGALOG", (long) wxLANGUAGE_TAGALOG, 0, 0, 0}, | |
17867 | { SWIG_PY_INT, (char *)"LANGUAGE_TAJIK", (long) wxLANGUAGE_TAJIK, 0, 0, 0}, | |
17868 | { SWIG_PY_INT, (char *)"LANGUAGE_TAMIL", (long) wxLANGUAGE_TAMIL, 0, 0, 0}, | |
17869 | { SWIG_PY_INT, (char *)"LANGUAGE_TATAR", (long) wxLANGUAGE_TATAR, 0, 0, 0}, | |
17870 | { SWIG_PY_INT, (char *)"LANGUAGE_TELUGU", (long) wxLANGUAGE_TELUGU, 0, 0, 0}, | |
17871 | { SWIG_PY_INT, (char *)"LANGUAGE_THAI", (long) wxLANGUAGE_THAI, 0, 0, 0}, | |
17872 | { SWIG_PY_INT, (char *)"LANGUAGE_TIBETAN", (long) wxLANGUAGE_TIBETAN, 0, 0, 0}, | |
17873 | { SWIG_PY_INT, (char *)"LANGUAGE_TIGRINYA", (long) wxLANGUAGE_TIGRINYA, 0, 0, 0}, | |
17874 | { SWIG_PY_INT, (char *)"LANGUAGE_TONGA", (long) wxLANGUAGE_TONGA, 0, 0, 0}, | |
17875 | { SWIG_PY_INT, (char *)"LANGUAGE_TSONGA", (long) wxLANGUAGE_TSONGA, 0, 0, 0}, | |
17876 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKISH", (long) wxLANGUAGE_TURKISH, 0, 0, 0}, | |
17877 | { SWIG_PY_INT, (char *)"LANGUAGE_TURKMEN", (long) wxLANGUAGE_TURKMEN, 0, 0, 0}, | |
17878 | { SWIG_PY_INT, (char *)"LANGUAGE_TWI", (long) wxLANGUAGE_TWI, 0, 0, 0}, | |
17879 | { SWIG_PY_INT, (char *)"LANGUAGE_UIGHUR", (long) wxLANGUAGE_UIGHUR, 0, 0, 0}, | |
17880 | { SWIG_PY_INT, (char *)"LANGUAGE_UKRAINIAN", (long) wxLANGUAGE_UKRAINIAN, 0, 0, 0}, | |
17881 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU", (long) wxLANGUAGE_URDU, 0, 0, 0}, | |
17882 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_INDIA", (long) wxLANGUAGE_URDU_INDIA, 0, 0, 0}, | |
17883 | { SWIG_PY_INT, (char *)"LANGUAGE_URDU_PAKISTAN", (long) wxLANGUAGE_URDU_PAKISTAN, 0, 0, 0}, | |
17884 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK", (long) wxLANGUAGE_UZBEK, 0, 0, 0}, | |
17885 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_CYRILLIC", (long) wxLANGUAGE_UZBEK_CYRILLIC, 0, 0, 0}, | |
17886 | { SWIG_PY_INT, (char *)"LANGUAGE_UZBEK_LATIN", (long) wxLANGUAGE_UZBEK_LATIN, 0, 0, 0}, | |
17887 | { SWIG_PY_INT, (char *)"LANGUAGE_VIETNAMESE", (long) wxLANGUAGE_VIETNAMESE, 0, 0, 0}, | |
17888 | { SWIG_PY_INT, (char *)"LANGUAGE_VOLAPUK", (long) wxLANGUAGE_VOLAPUK, 0, 0, 0}, | |
17889 | { SWIG_PY_INT, (char *)"LANGUAGE_WELSH", (long) wxLANGUAGE_WELSH, 0, 0, 0}, | |
17890 | { SWIG_PY_INT, (char *)"LANGUAGE_WOLOF", (long) wxLANGUAGE_WOLOF, 0, 0, 0}, | |
17891 | { SWIG_PY_INT, (char *)"LANGUAGE_XHOSA", (long) wxLANGUAGE_XHOSA, 0, 0, 0}, | |
17892 | { SWIG_PY_INT, (char *)"LANGUAGE_YIDDISH", (long) wxLANGUAGE_YIDDISH, 0, 0, 0}, | |
17893 | { SWIG_PY_INT, (char *)"LANGUAGE_YORUBA", (long) wxLANGUAGE_YORUBA, 0, 0, 0}, | |
17894 | { SWIG_PY_INT, (char *)"LANGUAGE_ZHUANG", (long) wxLANGUAGE_ZHUANG, 0, 0, 0}, | |
17895 | { SWIG_PY_INT, (char *)"LANGUAGE_ZULU", (long) wxLANGUAGE_ZULU, 0, 0, 0}, | |
17896 | { SWIG_PY_INT, (char *)"LANGUAGE_USER_DEFINED", (long) wxLANGUAGE_USER_DEFINED, 0, 0, 0}, | |
17897 | { SWIG_PY_INT, (char *)"LOCALE_CAT_NUMBER", (long) wxLOCALE_CAT_NUMBER, 0, 0, 0}, | |
17898 | { SWIG_PY_INT, (char *)"LOCALE_CAT_DATE", (long) wxLOCALE_CAT_DATE, 0, 0, 0}, | |
17899 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MONEY", (long) wxLOCALE_CAT_MONEY, 0, 0, 0}, | |
17900 | { SWIG_PY_INT, (char *)"LOCALE_CAT_MAX", (long) wxLOCALE_CAT_MAX, 0, 0, 0}, | |
17901 | { SWIG_PY_INT, (char *)"LOCALE_THOUSANDS_SEP", (long) wxLOCALE_THOUSANDS_SEP, 0, 0, 0}, | |
17902 | { SWIG_PY_INT, (char *)"LOCALE_DECIMAL_POINT", (long) wxLOCALE_DECIMAL_POINT, 0, 0, 0}, | |
17903 | { SWIG_PY_INT, (char *)"LOCALE_LOAD_DEFAULT", (long) wxLOCALE_LOAD_DEFAULT, 0, 0, 0}, | |
17904 | { SWIG_PY_INT, (char *)"LOCALE_CONV_ENCODING", (long) wxLOCALE_CONV_ENCODING, 0, 0, 0}, | |
17905 | { SWIG_PY_INT, (char *)"CONVERT_STRICT", (long) wxCONVERT_STRICT, 0, 0, 0}, | |
17906 | { SWIG_PY_INT, (char *)"CONVERT_SUBSTITUTE", (long) wxCONVERT_SUBSTITUTE, 0, 0, 0}, | |
17907 | { SWIG_PY_INT, (char *)"PLATFORM_CURRENT", (long) wxPLATFORM_CURRENT, 0, 0, 0}, | |
17908 | { SWIG_PY_INT, (char *)"PLATFORM_UNIX", (long) wxPLATFORM_UNIX, 0, 0, 0}, | |
17909 | { SWIG_PY_INT, (char *)"PLATFORM_WINDOWS", (long) wxPLATFORM_WINDOWS, 0, 0, 0}, | |
17910 | { SWIG_PY_INT, (char *)"PLATFORM_OS2", (long) wxPLATFORM_OS2, 0, 0, 0}, | |
17911 | { SWIG_PY_INT, (char *)"PLATFORM_MAC", (long) wxPLATFORM_MAC, 0, 0, 0}, | |
17912 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_NORMAL", (long) wxIMAGELIST_DRAW_NORMAL, 0, 0, 0}, | |
17913 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_TRANSPARENT", (long) wxIMAGELIST_DRAW_TRANSPARENT, 0, 0, 0}, | |
17914 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_SELECTED", (long) wxIMAGELIST_DRAW_SELECTED, 0, 0, 0}, | |
17915 | { SWIG_PY_INT, (char *)"IMAGELIST_DRAW_FOCUSED", (long) wxIMAGELIST_DRAW_FOCUSED, 0, 0, 0}, | |
17916 | { SWIG_PY_INT, (char *)"IMAGE_LIST_NORMAL", (long) wxIMAGE_LIST_NORMAL, 0, 0, 0}, | |
17917 | { SWIG_PY_INT, (char *)"IMAGE_LIST_SMALL", (long) wxIMAGE_LIST_SMALL, 0, 0, 0}, | |
17918 | { SWIG_PY_INT, (char *)"IMAGE_LIST_STATE", (long) wxIMAGE_LIST_STATE, 0, 0, 0}, | |
17919 | {0}}; | |
17920 | ||
17921 | #ifdef __cplusplus | |
17922 | } | |
17923 | #endif | |
17924 | ||
17925 | #ifdef __cplusplus | |
17926 | extern "C" | |
17927 | #endif | |
17928 | SWIGEXPORT(void) SWIG_init(void) { | |
17929 | static PyObject *SWIG_globals = 0; | |
17930 | static int typeinit = 0; | |
17931 | PyObject *m, *d; | |
17932 | int i; | |
17933 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
17934 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
17935 | d = PyModule_GetDict(m); | |
17936 | ||
17937 | if (!typeinit) { | |
17938 | for (i = 0; swig_types_initial[i]; i++) { | |
17939 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
17940 | } | |
17941 | typeinit = 1; | |
17942 | } | |
17943 | SWIG_InstallConstants(d,swig_const_table); | |
17944 | ||
17945 | ||
17946 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
17947 | ||
17948 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
17949 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
17950 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
17951 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
17952 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
17953 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
17954 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
17955 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
17956 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
17957 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
17958 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
17959 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
17960 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
17961 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
17962 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
17963 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
17964 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
17965 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
17966 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
17967 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
17968 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
17969 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
17970 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
17971 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
17972 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
17973 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
17974 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
17975 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
17976 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
17977 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
17978 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
17979 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
17980 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
17981 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
17982 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
17983 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
17984 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
17985 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
17986 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
17987 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
17988 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
17989 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
17990 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
17991 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
17992 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
17993 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
17994 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
17995 | |
17996 | // Work around a chicken/egg problem in drawlist.cpp | |
17997 | wxPyDrawList_SetAPIPtr(); | |
17998 | ||
d14a1e28 RD |
17999 | } |
18000 |